:root {
    /* Clean Academic Light Theme */
    --bg-base: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-surface-hover: #f0f1f3;

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8b8da3;

    /* Subtle academic accent */
    --accent-color: #2563eb;
    --accent-light: #3b82f6;
    --accent-bg: rgba(37, 99, 235, 0.06);
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --accent-alt: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gold: #b8860b;
    --border-color: #e5e7eb;
    --border-light: #f0f0f0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.2s ease;
    --radius: 8px;
    --radius-sm: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 15px;
}

/* Remove flashy background effects */
.background-effects {
    display: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.gradient-text {
    color: var(--text-primary);
    display: inline-block;
    -webkit-text-fill-color: unset;
}

.gradient-text-alt {
    color: var(--text-primary);
    display: inline-block;
    -webkit-text-fill-color: unset;
}

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

.text-gold {
    color: var(--gold);
}

/* Layout */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.subsection-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.pb-large { padding-bottom: 48px; }

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.8rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-links li a::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Card */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-surface-hover);
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

/* Link Button */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: var(--accent-bg);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.link-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    text-decoration: none;
    transform: none;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-bg);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 24px;
}

.hero-content {
    max-width: 100%;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.2rem;
}

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

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

.hero-description {
    margin-bottom: 1.2rem;
}

.hero-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 100%;
    line-height: 1.75;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-description .highlight-sentence {
    color: var(--text-primary);
    font-weight: 500;
    background: linear-gradient(to bottom, transparent 60%, rgba(37, 99, 235, 0.1) 60%);
    padding: 0 2px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Timeline (Education) */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.85rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--bg-base);
    z-index: 10;
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.timeline-content h3 a {
    color: var(--text-primary);
}

.timeline-content h3 a:hover {
    color: var(--accent-color);
}

.timeline-content h4 {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.timeline-content .meta {
    font-size: 0.82rem;
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.small-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-card h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.experience-card h3 a {
    color: var(--text-primary);
}

.experience-card h3 a:hover {
    color: var(--accent-color);
}

.experience-card .position {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.88rem;
    font-family: var(--font-heading);
}

.experience-card .advisor {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.experience-card .advisor a {
    color: var(--text-secondary);
}

.experience-card .advisor a:hover {
    color: var(--accent-color);
}

.experience-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.experience-card p strong {
    color: var(--text-primary);
}

.bullet-list {
    list-style-type: none;
    padding-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.bullet-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Journey Note */
.journey-note {
    background: var(--accent-bg);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.journey-note a {
    font-weight: 500;
}

/* Publications */
.publication-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.pub-card {
    border-left: 3px solid var(--accent-color);
    padding: 14px 18px;
}

.pub-award {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pub-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.pub-authors strong {
    color: var(--accent-color);
    font-weight: 600;
}

.pub-venue {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pub-links {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.pub-contribution {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pub-card:hover .pub-contribution {
    max-height: 150px;
    padding: 8px 12px;
    margin-top: 0.5rem;
    opacity: 1;
    border-color: var(--border-light);
}

.pub-contribution strong {
    color: var(--text-secondary);
}

/* Projects Gallery */
.project-gallery {
    columns: 2;
    column-gap: 1rem;
}

.project-gallery-item {
    break-inside: avoid;
    display: block;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.project-gallery-item:hover {
    text-decoration: none;
}

.gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.gallery-cover {
    width: 100%;
    overflow: hidden;
    background: var(--border-light);
}

.gallery-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-cover img {
    transform: scale(1.03);
}

.gallery-info {
    padding: 14px 16px 16px;
    position: relative;
}

.gallery-year {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.gallery-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.3;
}

.gallery-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.gallery-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.gallery-award {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 6px;
}

.gallery-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 4px;
}

/* Awards */
.skills-awards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.award-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

.award-list li {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-light);
}

.award-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.award-title {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.award-meta {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
    color: var(--text-muted);
}

.award-date {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 0.78rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Animations — subtler for academic feel */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .award-list {
        grid-template-columns: 1fr;
    }

    .timeline-content .meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .card-header {
        flex-direction: column;
    }

    .date.tag {
        margin-top: 6px;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 16px;
    }

    .project-gallery {
        columns: 1;
    }
}