/* ============================================
   SEONG-EUN HONG - GRAPHICS RESEARCHER
   Premium Dark/Light Theme Portfolio
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
    /* Colors - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;

    /* Accent Colors - Vibrant Gradients */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-accent: #a5b4fc;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Navbar */
    --navbar-bg: rgba(10, 10, 15, 0.9);
    --mobile-menu-bg: #12121a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LIGHT THEME VARIABLES
   ============================================ */
[data-theme="light"] {
    /* Colors - Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;

    /* Text Colors - Light Mode */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-accent: #6366f1;

    /* Glass Effect - Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Navbar - Light Mode */
    --navbar-bg: rgba(248, 250, 252, 0.9);
    --mobile-menu-bg: #f1f5f9;
}

/* Light mode sphere adjustments */
[data-theme="light"] .gradient-sphere {
    opacity: 0.3;
}

[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-image-placeholder {
    background: var(--bg-tertiary);
}

[data-theme="light"] .pub-thumbnail-placeholder,
[data-theme="light"] .project-image-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-tertiary);
}

[data-theme="light"] .tag {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .pub-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .timeline-year {
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .project-tech span {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .pub-type {
    background: rgba(6, 182, 212, 0.1);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--glass-shadow);
}

.theme-toggle:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 16px;
        right: 70px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Higher than content to catch drags */
    pointer-events: none;
    /* Default to pass-through */
    transition: background 0.3s;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   GLASS CARD COMPONENT
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(0, 30px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.05);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    transition: background-image 0.3s ease;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 24px;
}

.hero-image-container {
    position: relative;
    margin-bottom: 40px;
    display: inline-block;
}

.hero-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-primary);
    position: relative;
    z-index: 2;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-tertiary);
    transition: background-color 0.3s ease;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-title {
    margin-bottom: 16px;
}

.greeting {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.highlight {
    color: var(--text-accent);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.hero-scroll {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.scroll-indicator i {
    font-size: 1.25rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   SECTIONS GENERAL STYLES
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

/* ============================================
   YEAR SEPARATOR
   ============================================ */
.year-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 30px;
}

.year-separator span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    padding: 8px 24px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
}

.year-separator:first-of-type {
    margin-top: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text {
    padding: 40px;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-interests h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-accent);
    transition: var(--transition-base);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-card {
    display: flex;
    gap: 30px;
    padding: 30px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.publication-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
}

.pub-thumbnail {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-tertiary);
    transition: background-color 0.3s ease;
}

.pub-thumbnail img,
.pub-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pub-authors strong {
    color: var(--text-accent);
}

.pub-authors sup {
    font-size: 0.7rem;
    color: var(--accent-pink);
}

.pub-venue {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.venue-name {
    font-weight: 600;
    color: var(--accent-primary);
}

.pub-type {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.15);
    border-radius: 50px;
    color: var(--accent-cyan);
    transition: background-color 0.3s ease;
}

.pub-type.oral {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
    font-weight: 600;
}

.pub-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.pub-meta i {
    margin-right: 6px;
    color: var(--accent-primary);
}

.pub-abstract {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition-base);
    text-decoration: none;
}

.pub-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.pub-link i {
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.pub-link:hover i {
    color: var(--accent-primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-tertiary);
    transition: background 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
    transform: scale(0);
    transition: var(--transition-base);
}

.project-card:hover .project-btn {
    transform: scale(1);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50px;
    color: var(--accent-secondary);
    transition: background-color 0.3s ease;
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.awards-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.awards-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    margin-bottom: 24px;
    margin-left: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 40px;
    width: 16px;
    height: 2px;
    background: var(--accent-primary);
}

.timeline-icon {
    position: absolute;
    left: -76px;
    top: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.timeline-year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.award-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.award-org {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    margin-bottom: 8px;
}

.award-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    padding: 50px;
    margin-bottom: 40px;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-credit {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-credit i {
    color: var(--accent-pink);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1 1 150px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-width: 100%;
    }

    .container {
        padding: 0 20px;
    }

    /* Navbar */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--mobile-menu-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: var(--transition-base);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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(7px, -6px);
    }

    /* Hero */
    .hero-image-wrapper {
        width: 130px;
        height: 130px;
    }

    .name {
        font-size: 2.5rem;
    }

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

    /* Publications */
    .publication-card {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .pub-thumbnail {
        width: 100%;
        height: 180px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .awards-timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 30px;
        padding: 20px;
        gap: 15px;
    }

    .timeline-item::before {
        left: -20px;
        width: 10px;
    }

    .timeline-icon {
        left: -44px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        top: 36px;
    }

    /* Contact */
    .contact-info {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .name {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .pub-links {
        flex-direction: column;
    }

    .pub-link {
        justify-content: center;
        width: 100%;
    }

    .timeline-item {
        margin-left: 20px;
        /* Even reducing space for mobile */
        padding: 16px;
    }

    .awards-timeline::before {
        left: 0;
    }

    .timeline-icon {
        left: -16px;
        /* Overlap line slightly */
        width: 32px;
        height: 32px;
    }

    .timeline-item::before {
        display: none;
        /* Remove connector line to save space */
    }
}

/* ============================================
   ANIMATIONS - SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* Staggered animation for cards */
.publication-card:nth-child(1) {
    transition-delay: 0.1s;
}

.publication-card:nth-child(2) {
    transition-delay: 0.2s;
}

.publication-card:nth-child(3) {
    transition-delay: 0.3s;
}

.publication-card:nth-child(4) {
    transition-delay: 0.4s;
}

.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.project-card:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}


/* ============================================
   INTRO ANIMATION STATE
   ============================================ */
/* Hide elements initially to prevent Flash of Unstyled Content (FOUC) */
.navbar,
#interactive-canvas,
.hero-subtitle,
.hero-description,
.hero-cta,
.hero-scroll,
.hero-image-container {
    opacity: 0;
    /* Ensure transitions are set so JS can fade them in */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Ensure greeting/name are visible for typing (but text content is cleared by JS immediately, 
   CSS opacity 1 ensures the container is there) */
.hero-title .greeting,
.hero-title .name {
    opacity: 1;
}