/* ============================================
   Modern Academic Homepage Stylesheet
   Fresh & Elegant Design
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* CSS Variables for Easy Theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Typography */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-hover);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background: var(--accent-hover);
    transition: width var(--transition-smooth);
}

a:hover::after {
    width: 100%;
}

/* Name styling */
name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    letter-spacing: -0.5px;
}

/* Headings */
heading {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Paper title */
papertitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
}

/* Strong text */
strong {
    font-weight: 600;
    color: var(--accent-color);
}

/* Main Layout */
.main-table {
    width: 100%;
    max-width: 900px;
    border: 0;
    border-spacing: 0;
    margin: 0 auto;
    background: transparent;
}

/* Profile Section */
.profile-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.profile-section:hover {
    box-shadow: var(--shadow-lg);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    transition: var(--transition-smooth);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Links Section */
.links-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.links-section a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.links-section a::after {
    display: none;
}

.links-section a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Card Sections */
.section-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 30px 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
}

/* News List */
.news-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition-fast);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    padding-left: 8px;
}

.news-list li b {
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
}

.highlight-text {
    color: #e53e3e;
    font-weight: 600;
}

/* Publications */
.publication-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item:hover {
    background: var(--bg-secondary);
    margin: 0 -20px;
    padding: 24px 20px;
    border-radius: var(--border-radius);
}

.publication-media {
    flex-shrink: 0;
    width: 200px;
}

.publication-media img,
.publication-media video {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.publication-item:hover .publication-media img,
.publication-item:hover .publication-media video {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.publication-content {
    flex: 1;
}

.publication-venue {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0;
}

.publication-venue strong {
    color: var(--text-secondary);
}

.publication-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.publication-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.publication-links a::after {
    display: none;
}

.publication-links a:hover {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
}

.publication-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
}

/* Authors */
.authors {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.authors a {
    color: var(--text-secondary);
}

.authors a:hover {
    color: var(--accent-color);
}

/* Toggle Section */
.toggle-section {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-text {
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.toggle-text:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-text.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.content {
    display: none;
}

.content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Year Headings */
.year-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Awards Section */
.awards-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.awards-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.awards-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--accent-color);
}

/* Visitor Map */
.visitor-map {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    name {
        font-size: 32px;
    }
    
    .profile-section {
        padding: 24px;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .publication-media {
        width: 100%;
        max-width: 280px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .links-section {
        gap: 8px;
    }
    
    .links-section a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 1000;
    transition: width 0.1s;
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* Print styles */
@media print {
    .section-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .visitor-map {
        display: none;
    }
}
