/* ============================================================
   AI MUSIC CPE RESEARCH CENTER - Multi-Theme Stylesheet
   Themes: dark | blue | purple | light
   ============================================================ */

/* ===== Theme: Dark (Default) ===== */
body[data-theme="dark"],
:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-tertiary: #0F0F16;
    --accent-cyan: #00F0FF;
    --accent-magenta: #FF006E;
    --accent-purple: #8B5CF6;
    --text-primary: #F5F5F7;
    --text-secondary: #8B8B9A;
    --text-muted: #5B5B6B;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(0, 240, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #00F0FF, #FF006E);
    --gradient-secondary: linear-gradient(90deg, #00F0FF, #8B5CF6, #FF006E);
    --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
    --shadow-neon-magenta: 0 0 20px rgba(255, 0, 110, 0.3), 0 0 40px rgba(255, 0, 110, 0.1);
    --font-stack: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --nav-bg-scrolled: rgba(10, 10, 15, 0.85);
    --status-ongoing-bg: rgba(0, 240, 255, 0.1);
    --status-ongoing-border: rgba(0, 240, 255, 0.3);
    --status-ongoing-glow: rgba(0, 240, 255, 0.1);
    --status-planning-bg: rgba(139, 92, 246, 0.1);
    --status-planning-border: rgba(139, 92, 246, 0.3);
    --hero-overlay-start: rgba(10, 10, 15, 0.3);
    --hero-overlay-end: rgba(10, 10, 15, 0.8);
    --lecture-overlay-end: rgba(10, 10, 15, 0.95);
    --lecture-date-bg: rgba(10, 10, 15, 0.7);
    --btn-gradient-hover: 0 0 30px rgba(0, 240, 255, 0.4);
    --timeline-marker-glow: rgba(0, 240, 255, 0.5);
    --project-hover-bg: rgba(0, 240, 255, 0.05);
    --researcher-hover-border: rgba(0, 240, 255, 0.5);
}

/* ===== Theme: Blue ===== */
body[data-theme="blue"] {
    --bg-primary: #050D1A;
    --bg-secondary: #0A1628;
    --bg-tertiary: #07101F;
    --accent-cyan: #4DB8FF;
    --accent-magenta: #00D4AA;
    --accent-purple: #3388FF;
    --text-primary: #E8F1FC;
    --text-secondary: #7A9BC4;
    --text-muted: #4A6A94;
    --glass-bg: rgba(77, 184, 255, 0.04);
    --glass-border: rgba(77, 184, 255, 0.12);
    --glass-border-hover: rgba(77, 184, 255, 0.4);
    --gradient-primary: linear-gradient(135deg, #4DB8FF, #00D4AA);
    --gradient-secondary: linear-gradient(90deg, #4DB8FF, #3388FF, #00D4AA);
    --shadow-neon-cyan: 0 0 20px rgba(77, 184, 255, 0.35), 0 0 40px rgba(77, 184, 255, 0.15);
    --shadow-neon-magenta: 0 0 20px rgba(0, 212, 170, 0.35), 0 0 40px rgba(0, 212, 170, 0.15);
    --nav-bg-scrolled: rgba(5, 13, 26, 0.9);
    --status-ongoing-bg: rgba(77, 184, 255, 0.12);
    --status-ongoing-border: rgba(77, 184, 255, 0.4);
    --status-ongoing-glow: rgba(77, 184, 255, 0.15);
    --status-planning-bg: rgba(0, 212, 170, 0.1);
    --status-planning-border: rgba(0, 212, 170, 0.35);
    --hero-overlay-start: rgba(5, 13, 26, 0.35);
    --hero-overlay-end: rgba(5, 13, 26, 0.85);
    --lecture-overlay-end: rgba(5, 13, 26, 0.95);
    --lecture-date-bg: rgba(5, 13, 26, 0.75);
    --btn-gradient-hover: 0 0 30px rgba(77, 184, 255, 0.45);
    --timeline-marker-glow: rgba(77, 184, 255, 0.5);
    --project-hover-bg: rgba(77, 184, 255, 0.06);
    --researcher-hover-border: rgba(77, 184, 255, 0.45);
}

/* ===== Theme: Purple ===== */
body[data-theme="purple"] {
    --bg-primary: #0D0518;
    --bg-secondary: #160D24;
    --bg-tertiary: #120A1E;
    --accent-cyan: #C77DFF;
    --accent-magenta: #FF6B9D;
    --accent-purple: #9D4EDD;
    --text-primary: #F0E6FF;
    --text-secondary: #A88FBF;
    --text-muted: #6B5680;
    --glass-bg: rgba(199, 125, 255, 0.04);
    --glass-border: rgba(199, 125, 255, 0.12);
    --glass-border-hover: rgba(199, 125, 255, 0.4);
    --gradient-primary: linear-gradient(135deg, #C77DFF, #FF6B9D);
    --gradient-secondary: linear-gradient(90deg, #C77DFF, #9D4EDD, #FF6B9D);
    --shadow-neon-cyan: 0 0 20px rgba(199, 125, 255, 0.35), 0 0 40px rgba(199, 125, 255, 0.15);
    --shadow-neon-magenta: 0 0 20px rgba(255, 107, 157, 0.35), 0 0 40px rgba(255, 107, 157, 0.15);
    --nav-bg-scrolled: rgba(13, 5, 24, 0.9);
    --status-ongoing-bg: rgba(199, 125, 255, 0.12);
    --status-ongoing-border: rgba(199, 125, 255, 0.4);
    --status-ongoing-glow: rgba(199, 125, 255, 0.15);
    --status-planning-bg: rgba(157, 78, 221, 0.1);
    --status-planning-border: rgba(157, 78, 221, 0.35);
    --hero-overlay-start: rgba(13, 5, 24, 0.35);
    --hero-overlay-end: rgba(13, 5, 24, 0.85);
    --lecture-overlay-end: rgba(13, 5, 24, 0.95);
    --lecture-date-bg: rgba(13, 5, 24, 0.75);
    --btn-gradient-hover: 0 0 30px rgba(199, 125, 255, 0.45);
    --timeline-marker-glow: rgba(199, 125, 255, 0.5);
    --project-hover-bg: rgba(199, 125, 255, 0.06);
    --researcher-hover-border: rgba(199, 125, 255, 0.45);
}

/* ===== Theme: Light (Modern & Fresh) ===== */
body[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --accent-cyan: #0891B2;
    --accent-magenta: #059669;
    --accent-purple: #4F46E5;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-hover: rgba(8, 145, 178, 0.4);
    --gradient-primary: linear-gradient(135deg, #0891B2, #059669);
    --gradient-secondary: linear-gradient(90deg, #0891B2, #4F46E5, #059669);
    --shadow-neon-cyan: 0 4px 20px rgba(8, 145, 178, 0.12), 0 0 40px rgba(8, 145, 178, 0.04);
    --shadow-neon-magenta: 0 4px 20px rgba(5, 150, 105, 0.12), 0 0 40px rgba(5, 150, 105, 0.04);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.85);
    --status-ongoing-bg: rgba(8, 145, 178, 0.08);
    --status-ongoing-border: rgba(8, 145, 178, 0.25);
    --status-ongoing-glow: rgba(8, 145, 178, 0.06);
    --status-planning-bg: rgba(79, 70, 229, 0.06);
    --status-planning-border: rgba(79, 70, 229, 0.25);
    --hero-overlay-start: rgba(255, 255, 255, 0.15);
    --hero-overlay-end: rgba(255, 255, 255, 0.8);
    --lecture-overlay-end: rgba(255, 255, 255, 0.95);
    --lecture-date-bg: rgba(255, 255, 255, 0.85);
    --btn-gradient-hover: 0 4px 20px rgba(8, 145, 178, 0.2);
    --timeline-marker-glow: rgba(8, 145, 178, 0.25);
    --project-hover-bg: rgba(8, 145, 178, 0.03);
    --researcher-hover-border: rgba(8, 145, 178, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== Gradient Text Utility ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-neon-cyan);
    transform: translateY(-8px);
}

/* ===== Navigation ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.main-nav.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 160px;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transition-delay: 0.15s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-item:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 70%, var(--bg-primary) 100%);
    z-index: 1;
}

/* Fluid blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -10%;
    right: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-magenta);
    bottom: 10%;
    right: 30%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    top: 40%;
    right: 5%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

@keyframes hero-title-in {
    from {
        transform: translateY(30px) scale(0.98);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: transform;
    animation: hero-title-in 0.8s 0.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes hero-subtitle-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: hero-subtitle-in 1s 1.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes hero-line-in {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hero-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-bottom: 2rem;
    transform-origin: left center;
    animation: hero-line-in 0.8s 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes hero-desc-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-desc {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    animation: hero-desc-in 1s 1.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* SVG Soundwave decoration */
.hero-wave {
    position: absolute;
    bottom: 10%;
    right: 5%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.hero-wave svg {
    width: clamp(180px, 25vw, 300px);
    height: auto;
}

.hero-wave path {
    stroke: url(#waveGrad);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawWave 3s ease forwards;
}

@keyframes drawWave {
    to { stroke-dashoffset: 0; }
}

/* Floating geometric shapes */
.floating-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.12;
    animation: floatShape 15s infinite ease-in-out;
    pointer-events: none;
}

.shape-triangle {
    width: 60px;
    height: 60px;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid var(--accent-cyan);
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.shape-ring {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-magenta);
    border-radius: 50%;
    top: 60%;
    right: 25%;
    animation-delay: -7s;
}

.shape-diamond {
    width: 40px;
    height: 40px;
    background: var(--accent-purple);
    transform: rotate(45deg);
    top: 35%;
    right: 8%;
    animation-delay: -12s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== Section Styles ===== */
.section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-tertiary);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes section-header-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header.is-visible > * {
    animation: section-header-in 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.section-header.is-visible > *:nth-child(1) { animation-delay: 0s; }
.section-header.is-visible > *:nth-child(2) { animation-delay: 0.15s; }
.section-header.is-visible > *:nth-child(3) { animation-delay: 0.3s; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

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

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    max-width: 600px;
    margin-top: 1.5rem;
    line-height: 1.7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-ring {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseRing 4s ease-in-out infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(255, 0, 110, 0.15);
    border-color: color-mix(in srgb, var(--accent-magenta) 15%, transparent);
    border-radius: 50%;
    animation: pulseRing 4s ease-in-out infinite reverse;
}

.logo-ring img {
    max-width: 120px;
    max-height: 120px;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

.about-text h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(0.875rem, 1.1vw, 1rem);
}

.about-text p + p {
    margin-top: 1rem;
}

/* ===== Timeline Section ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
    transform: translateX(-50%);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent-cyan) 30%, transparent);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 2rem;
    margin-left: 50%;
}

.timeline-marker {
    position: absolute;
    right: -6px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--timeline-marker-glow);
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -6px;
}

.timeline-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 380px;
    transition: border-color 0.4s ease;
}

.timeline-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-neon-cyan);
}

.timeline-year {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Researchers Section ===== */
.researchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.researcher-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
}

.researcher-card:hover {
    transform: translateY(-8px);
    border-color: var(--researcher-hover-border);
    box-shadow: var(--shadow-neon-cyan);
}

.researcher-avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.researcher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.researcher-card:hover .researcher-avatar img {
    transform: scale(1.05);
}

.researcher-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.researcher-name {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.researcher-title {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.researcher-field {
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Projects Section ===== */
.projects-list {
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: background 0.4s ease;
    cursor: default;
}

.project-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.project-item:hover::before {
    width: 100%;
}

.project-item:hover {
    background: var(--project-hover-bg);
}

.project-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 50px;
}

.project-info h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.project-item:hover .project-info h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.project-members {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.project-member {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.project-member:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    color: var(--text-primary);
}

.project-leader {
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 110, 0.05);
}

.project-leader:hover {
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 110, 0.1);
}

.leader-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-magenta);
    background: rgba(255, 0, 110, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.15rem;
    white-space: nowrap;
}

.project-member img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.member-avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.member-avatar-placeholder svg {
    width: 12px;
    height: 12px;
}

.member-name {
    white-space: nowrap;
}

.project-status {
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: clamp(0.625rem, 1.2vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-ongoing {
    background: var(--status-ongoing-bg);
    color: var(--accent-cyan);
    border: 1px solid var(--status-ongoing-border);
    box-shadow: 0 0 10px var(--status-ongoing-glow);
}

.status-completed {
    background: rgba(139, 139, 154, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(139, 139, 154, 0.2);
}

.status-planning {
    background: var(--status-planning-bg);
    color: var(--accent-purple);
    border: 1px solid var(--status-planning-border);
}

/* ===== Lectures Section ===== */
.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.lecture-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
}

.lecture-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-neon-cyan);
}

.lecture-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 500px;
    max-width: 300px;
    width: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.lecture-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s ease;
}

.lecture-card:hover .lecture-image img {
    transform: scale(1.05);
}

.lecture-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--lecture-overlay-end) 100%);
}

.lecture-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--lecture-date-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.lecture-day {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
}

.lecture-month {
    font-size: 0.625rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
    writing-mode: vertical-rl;
}

.lecture-info {
    padding: 1.25rem;
    position: relative;
}

.lecture-title {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lecture-speaker {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    color: var(--accent-magenta);
    font-weight: 500;
}

.lecture-location {
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== Downloads Section ===== */
.downloads-list {
    max-width: 800px;
    margin: 0 auto;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding-left 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-item:hover {
    padding-left: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.download-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-cyan);
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-meta {
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    color: var(--text-secondary);
}

.download-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.download-item:hover .download-btn {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}

/* ===== Articles Preview Section ===== */
.articles-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.article-preview-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.article-preview-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-neon-cyan);
    transform: translateY(-8px);
}

.article-preview-image {
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-preview-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.article-preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.article-preview-card:hover .article-preview-image img {
    transform: scale(1.03);
}

.article-preview-body {
    padding: 1.5rem;
}

.article-preview-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-preview-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

.article-preview-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-preview-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-preview-title a {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.article-preview-title a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-preview-excerpt {
    font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-more {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    padding: 6rem 2rem 3rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-watermark {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    margin-bottom: 3rem;
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.2vw, 0.875rem);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.2vw, 0.875rem);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.2vw, 0.875rem);
    transition: color 0.3s ease;
}

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

.footer-friendly-links {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
}

.friendly-links-label {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.footer-friendly-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.friendly-links-sep {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: clamp(0.65rem, 1vw, 0.75rem);
}

/* ===== Scroll Reveal Animation Base ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Buttons ===== */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: var(--btn-gradient-hover);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}

/* ===== Theme Switcher Widget ===== */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--glass-border);
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.theme-dot-dark { background: linear-gradient(135deg, #00F0FF, #FF006E); }
.theme-dot-blue { background: linear-gradient(135deg, #4DB8FF, #00D4AA); }
.theme-dot-purple { background: linear-gradient(135deg, #C77DFF, #FF6B9D); }
.theme-dot-light { background: #bbf2f8; }
.theme-dot-auto {
    background: #6B7280;
    position: relative;
}
.theme-dot-auto::after {
    content: 'A';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.8);
    line-height: 1;
}

/* Light theme specific overrides */
body[data-theme="light"] .theme-dot.active {
    border-color: #3B75FF;
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.2);
}
body[data-theme="light"] .project-leader {
    background: rgba(5, 150, 105, 0.05);
}
body[data-theme="light"] .project-leader:hover {
    background: rgba(5, 150, 105, 0.1);
}
body[data-theme="light"] .leader-badge {
    background: rgba(5, 150, 105, 0.1);
}
body[data-theme="light"] .project-member:hover {
    background: rgba(8, 145, 178, 0.05);
}
body[data-theme="light"] .site-footer {
    border-top-color: rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .project-item {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .download-item {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .footer-friendly-links {
    border-top-color: rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .nav-dropdown-menu {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== Light Theme Abstract Decorations ===== */
.theme-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body[data-theme="light"] .theme-decorations {
    opacity: 1;
}

.theme-decorations svg {
    position: absolute;
}

.deco-staff {
    top: 100px;
    left: -30px;
    width: 280px;
    height: 200px;
    transform: rotate(-10deg);
}

.deco-wave {
    top: 45%;
    right: 10px;
    width: 100px;
    height: 300px;
    transform: translateY(-50%);
}

.deco-tech {
    bottom: 80px;
    right: 30px;
    width: 180px;
    height: 180px;
}

.deco-circles {
    bottom: 120px;
    left: -50px;
    width: 200px;
    height: 200px;
}

main {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .theme-decorations {
        display: none;
    }
}

/* ===== Featured Badge ===== */
.featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    z-index: 2;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.theme-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* ===== Responsive: Tablet (<= 1024px) ===== */
@media (max-width: 1024px) {
    .hero {
        padding: 0 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .about-logo {
        order: -1;
    }

    .logo-ring {
        width: 160px;
        height: 160px;
    }

    .timeline-line {
        left: 24px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 3.5rem;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(even) .timeline-marker,
    .timeline-marker {
        left: 18px;
        right: auto;
    }

    .timeline-card {
        max-width: none;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .theme-switcher {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
}

/* ===== Responsive: Mobile (<= 768px) ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero {
        padding: 0 1.25rem;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
        align-items: center;
    }

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

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 1rem;
    }

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

    .hero-desc {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .hero-wave {
        display: none;
    }

    .floating-shape {
        display: none;
    }

    .blob {
        width: 250px !important;
        height: 250px !important;
        opacity: 0.25 !important;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

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

    .container {
        padding: 0 1.25rem;
    }

    /* Navigation mobile - force hidden by default */
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

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

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.875rem 0;
        font-size: 0.9375rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-switcher {
        padding: 0.75rem 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* Nav dropdown mobile */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        padding: 0.875rem 0;
        font-size: 0.9375rem;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0.5rem 0;
        margin-left: 1rem;
        border-left: 2px solid rgba(255, 255, 255, 0.08);
        display: none;
        min-width: auto;
        transition: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu li {
        border-bottom: none;
    }

    .nav-dropdown-item {
        display: block;
        padding: 0.625rem 0 0.625rem 1rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
        border-bottom: none;
    }

    .nav-dropdown-item:hover {
        background: transparent;
        color: var(--accent-cyan);
    }

    /* Projects mobile */
    .project-item {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 1.5rem 0;
        align-items: start;
    }

    .project-number {
        font-size: 1.25rem;
        min-width: auto;
    }

    .project-info h4 {
        font-size: 1rem;
    }

    .project-info p {
        font-size: 0.8125rem;
    }

    .project-status {
        justify-self: end;
        align-self: start;
        margin-top: 0.25rem;
    }

    /* Researchers mobile */
    .researchers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .researcher-card:hover {
        transform: translateY(-4px);
    }

    .researcher-info {
        padding: 1rem;
    }

    .researcher-name {
        font-size: 0.95rem;
    }

    .researcher-title {
        font-size: 0.75rem;
    }

    .researcher-field {
        font-size: 0.7rem;
    }

    /* Lectures mobile */
    .lectures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Articles preview mobile */
    .articles-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .article-preview-card:hover {
        transform: translateY(-4px);
    }

    .article-preview-body {
        padding: 1.25rem;
    }

    .lecture-card:hover {
        transform: translateY(-4px);
    }

    .lecture-date {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.375rem 0.5rem;
    }

    .lecture-day {
        font-size: 1.25rem;
    }

    .lecture-month {
        font-size: 0.55rem;
    }

    .lecture-info {
        padding: 0.875rem;
    }

    .lecture-title {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    .lecture-speaker {
        font-size: 0.75rem;
    }

    .lecture-location {
        font-size: 0.65rem;
    }

    /* Downloads mobile */
    .download-item {
        padding: 1rem;
        gap: 1rem;
    }

    .download-item:hover {
        padding-left: 1rem;
    }

    .download-name {
        font-size: 0.85rem;
    }

    .download-btn {
        opacity: 1;
        transform: none;
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Footer mobile */
    .site-footer {
        padding: 4rem 1.25rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-divider {
        margin-bottom: 2rem;
    }

    .footer-friendly-links {
        padding: 1rem 0;
    }
}

/* ===== Responsive: Small Mobile (<= 480px) ===== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 0 1rem;
        padding-top: 4.5rem;
        padding-bottom: 2.5rem;
        min-height: auto;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .nav-brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .brand-icon svg {
        width: 28px;
        height: 28px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .researchers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .lectures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lecture-month {
        writing-mode: horizontal-tb;
        margin-top: 0.125rem;
    }

    .project-item {
        gap: 0.5rem;
        padding: 1.25rem 0;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 2.75rem;
    }

    .timeline-item:nth-child(even) .timeline-marker,
    .timeline-marker {
        left: 10px;
        width: 10px;
        height: 10px;
    }

    .timeline-card {
        padding: 1rem 1.25rem;
    }

    .download-icon {
        width: 32px;
        height: 32px;
    }

    .download-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .blob {
        animation: none;
    }

    .floating-shape {
        animation: none;
    }

    .brand-icon {
        animation: none;
    }

    .logo-ring {
        animation: none;
    }

    .logo-ring::before {
        animation: none;
    }
}
