/* CSS Variables - Dark Mode (Default) */
:root {
    /* Primary Colors */
    --primary: #000000;
    --secondary: #2b2b2b;
    --accent: #f5b369;

    /* Background Colors - Dark */
    --bg-primary: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-alt: #151515;
    --bg-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #151515 100%);

    /* Text Colors - Dark */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.5);

    /* Border & Shadow - Dark */
    --border: rgba(245, 179, 105, 0.2);
    --shadow-sm: 0 2px 8px rgba(245, 179, 105, 0.08);
    --shadow-md: 0 4px 16px rgba(245, 179, 105, 0.12);
    --shadow-lg: 0 8px 32px rgba(245, 179, 105, 0.16);

    /* Glassmorphism - Dark */
    --glass-bg: rgba(26, 26, 26, 0.4);
    --glass-gradient: linear-gradient(135deg, rgba(245, 179, 105, 0.08) 0%, rgba(26, 26, 26, 0.6) 100%);
    --glass-border: rgba(245, 179, 105, 0.2);
    --glass-blur: 14px;
    --glass-shadow: 0 8px 30px rgba(2, 24, 54, 0.12);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Mode Variables */
:root.light-mode {
    /* Primary Colors */
    --primary: #0077b6;
    --secondary: #00b4d8;
    --accent: #f5b369;

    /* Background Colors - Light */
    --bg-primary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-alt: #e9ecef;
    --bg-hero: linear-gradient(135deg, #caf0f8 0%, #ade8f4 50%, #90e0ef 100%);

    /* Text Colors - Light */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;

    /* Border & Shadow - Light */
    --border: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 119, 182, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 119, 182, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 119, 182, 0.16);

    /* Glassmorphism - Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --glass-border: rgba(0, 119, 182, 0.2);
    --glass-blur: 14px;
    --glass-shadow: 0 8px 30px rgba(0, 119, 182, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

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

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

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, var(--spacing-sm));
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* About section override: dark background like footer */
#about {
    background:
        radial-gradient(circle at 10% 20%, rgba(245, 179, 105, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 213, 167, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #151515 100%);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 20%,
        rgba(245, 179, 105, 0.6) 50%,
        rgba(245, 179, 105, 0.3) 80%,
        transparent 100%);
}

.light-mode #about {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
}

.light-mode #about::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

#about-me-head {
    color: #f5b369;
}

.light-mode #about-me-head {
    color: #0077b6;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #2c2c2c;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f5b369 0%, #f9d5a7 100%);
    border-radius: 2px;
}

/* About section title override for dark background */
#about .section-title h2 {
    color: #f5b369;
}

#about .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.light-mode #about .section-title h2 {
    color: #000000;
}

.light-mode #about .section-title::after {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

/* Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(13, 13, 13, 0.92) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 2px 20px rgba(245, 179, 105, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(245, 179, 105, 0.3);
}

#header.scrolled {
    box-shadow: 0 4px 24px rgba(245, 179, 105, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(13, 13, 13, 0.96) 100%);
    border-bottom: 1px solid rgba(245, 179, 105, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem clamp(0.75rem, 4vw, var(--spacing-md));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-container > .theme-toggle {
    margin-left: auto;
    margin-right: 0;
}

@media (min-width: 901px) {
    .nav-container > .theme-toggle {
        order: 1;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-container > .logo {
        order: 0;
    }

    .nav-container > .nav-links {
        order: 1;
        margin-left: auto;
        margin-right: 1rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f5b369 0%, #f9d5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-base);
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #f9d5a7 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
    transition: width var(--transition-base);
    box-shadow: 0 0 8px rgba(245, 179, 105, 0.5);
}

.nav-links a:hover {
    color: #f9d5a7;
}

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

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(245, 179, 105, 0.1);
    border: 1px solid rgba(245, 179, 105, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(245, 179, 105, 0.2);
    border-color: rgba(245, 179, 105, 0.5);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: all var(--transition-base);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode icon states */
.light-mode .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.light-mode .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

/* Light mode theme toggle colors */
.light-mode .theme-toggle {
    background: rgba(0, 119, 182, 0.1);
    border-color: rgba(0, 119, 182, 0.3);
}

.light-mode .theme-toggle:hover {
    background: rgba(0, 119, 182, 0.2);
    border-color: rgba(0, 119, 182, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f5b369;
    border-radius: 3px;
    transition: all var(--transition-base);
    box-shadow: 0 0 8px rgba(245, 179, 105, 0.3);
}

.light-mode .hamburger span {
    background: #0077b6;
    box-shadow: 0 0 8px rgba(0, 119, 182, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f5b369 0%, #f9d5a7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245, 179, 105, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: linear-gradient(135deg, #f9d5a7 0%, #f5b369 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(245, 179, 105, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 85%, rgba(245, 179, 105, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(249, 213, 167, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(245, 179, 105, 0.05) 0%, transparent 60%),
        linear-gradient(135deg, #0a0a0a 0%, #121212 20%, #1a1a1a 50%, #0d0d0d 100%);
    transition: background var(--transition-slow);
}

/* Light Mode Hero */
.light-mode .hero {
    background:
        radial-gradient(circle at 15% 85%, rgba(0, 180, 216, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(0, 119, 182, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(144, 224, 239, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #caf0f8 0%, #b0e6f5 20%, #90e0ef 50%, #ade8f4 100%);
}

/* Hero grid - single combined card layout */
.hero-grid {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: stretch;
    justify-content: center;
    padding: 0 clamp(1rem, 4vw, var(--spacing-md));
}

.hero-card {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: block;
    align-self: center;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.protein-section {
    display: none;
}

/* Card styling */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: clamp(0.9rem, 1.8vw, 1.6rem);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

/* Light mode card base */
.light-mode .card {
    background: var(--bg-card);
    border-color: rgba(0, 119, 182, 0.15);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.08);
}

/* Glassmorphic card */
.card.glass,
.hero .card {
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.08) 0%, rgba(26, 26, 26, 0.6) 100%);
    background-color: rgba(20, 20, 20, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(245, 179, 105, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(245, 179, 105, 0.15),
        inset 0 1px 0 rgba(245, 179, 105, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    color: var(--text-primary);
    position: relative;
}

/* Light mode glass cards */
.light-mode .card.glass,
.light-mode .hero .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.65) 100%);
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 119, 182, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 119, 182, 0.08),
        0 4px 16px rgba(0, 119, 182, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card.glass::before,
.hero .card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.12) 0%, rgba(249, 213, 167, 0.05) 30%, rgba(0,0,0,0) 100%);
    mix-blend-mode: overlay;
    border-radius: inherit;
    z-index: 1;
}

/* Light mode glass card overlay */
.light-mode .card.glass::before,
.light-mode .hero .card::before {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08) 0%, rgba(0, 180, 216, 0.03) 30%, rgba(0,0,0,0) 100%);
}

/* Hover lift for glass cards */
.card.glass:hover,
.hero .card:hover {
    transform: translateY(-6px);
    transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
    box-shadow: 0 14px 40px rgba(245,179,105,0.12),
                0 8px 24px rgba(245,179,105,0.08),
                inset 0 1px 0 rgba(255,255,255,0.04);
    filter: drop-shadow(0 0 40px rgba(245,179,105,0.15));
}

/* Light mode hover effects */
.light-mode .card.glass:hover,
.light-mode .hero .card:hover {
    box-shadow: 0 14px 40px rgba(0, 119, 182, 0.15),
                0 8px 24px rgba(0, 119, 182, 0.1),
                inset 0 1px 0 rgba(255,255,255,0.2);
    filter: drop-shadow(0 0 40px rgba(0, 119, 182, 0.15));
}

.about-card.card.glass:hover {
    box-shadow: 0 18px 50px rgba(245,179,105,0.14),
                0 8px 40px rgba(245,179,105,0.10),
                0 0 60px rgba(245,179,105,0.06);
    transform: translateY(-6px) translateZ(0);
    filter: drop-shadow(0 0 50px rgba(245,179,105,0.18));
}

@media (max-width: 900px) {
    .hero {
        min-height: 85vh;
        padding: 2rem 0;
    }

    .hero-grid {
        padding: 0 1rem;
    }

    .hero-card {
        padding: clamp(1.25rem, 4vw, 1.75rem);
        max-width: 100%;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    }

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

    .hero-links {
        gap: 0.75rem;
    }

    .protein-section {
        display: none;
    }
}

.protein-wrap {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

#protein-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    z-index: 10;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
}

.hero-grid {
    padding-top: 6.25rem;
    position: relative;
    z-index: 10;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 119, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(72, 202, 228, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.25rem, 5.6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9d5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.light-mode .hero-title {
    background: linear-gradient(135deg, #222222 0%, #242424 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-emoji {
    display: inline-block;
    margin-left: 0.35rem;
    color: #f5b369;
    -webkit-text-fill-color: #f5b369;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: 1.0em;
    line-height: 1;
    transform-origin: 70% 70%;
    transition: transform 0.2s ease;
    cursor: pointer;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.hero-emoji:hover,
.hero-emoji:focus {
    animation: wave 800ms ease-in-out;
    outline: none;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 500;
    min-height: 1.6em;
    animation: fadeInUp 0.7s ease 0.1s backwards;
}

.light-mode .hero-subtitle {
    color: #212529;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #f5b369;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.75rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.9s ease 0.2s backwards;
    line-height: 1.7;
}

.light-mode .hero-description {
    color: #495057;
}

.hero-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease 0.6s backwards;
}

.icon-btn {
    --size: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(245, 179, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.icon-btn.github {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1.5px solid rgba(245, 179, 105, 0.4);
    color: #f5b369;
}

.icon-btn.linkedin {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1.5px solid rgba(245, 179, 105, 0.4);
    color: #f5b369;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover, .icon-btn:focus {
    transform: translateY(-5px) scale(1.06);
    box-shadow:
        0 16px 40px rgba(245, 179, 105, 0.3),
        0 8px 20px rgba(245, 179, 105, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.25) 0%, rgba(249, 213, 167, 0.2) 100%);
    border-color: rgba(245, 179, 105, 0.7);
    color: #f9d5a7;
    outline: none;
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -60%;
    width: 220%;
    height: 180%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) rotate(8deg);
    filter: blur(6px);
    transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 300ms;
    opacity: 0;
    pointer-events: none;
}

.icon-btn:hover::before, .icon-btn:focus::before {
    transform: translateX(30%) rotate(8deg);
    opacity: 1;
}

.icon-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.02);
    pointer-events: none;
}

/* Footer */
.footer {
    background:
        radial-gradient(circle at 25% 30%, rgba(245, 179, 105, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(249, 213, 167, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 20%,
        rgba(245, 179, 105, 0.7) 50%,
        rgba(245, 179, 105, 0.3) 80%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.4);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5b369 0%, #f9d5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #f5b369;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-column li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f5b369;
    transition: width var(--transition-base);
}

.footer-column a:hover {
    color: #f5b369;
    transform: translateX(4px);
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.875rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-built {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 0 1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-info {
        justify-content: center;
    }
}

/* Mobile / responsive nav styles */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        margin: 0;
        padding: 1.5rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(13, 13, 13, 0.96) 100%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        backdrop-filter: blur(20px) saturate(140%);
        transform: translateY(-12px) scaleY(0.98);
        opacity: 0;
        pointer-events: none;
        transition: opacity 260ms ease, transform 260ms ease;
        box-shadow:
            0 4px 24px rgba(245, 179, 105, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(245, 179, 105, 0.3);
    }

    .light-mode .nav-links {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.96) 100%);
        box-shadow:
            0 4px 24px rgba(0, 119, 182, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 119, 182, 0.3);
    }

    .nav-links.open {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        margin-right: 0.5rem;
    }

    .nav-links a {
        padding: 0.75rem 0.5rem;
        display: block;
        width: 100%;
        color: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        transition: all var(--transition-base);
    }

    .light-mode .nav-links a {
        color: rgba(33, 37, 41, 0.8);
    }

    .nav-links a:hover {
        background: rgba(245, 179, 105, 0.1);
        color: #f9d5a7;
        padding-left: 1rem;
    }

    .light-mode .nav-links a:hover {
        background: rgba(0, 119, 182, 0.1);
        color: #0077b6;
    }

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

@media (max-width: 720px) {
    #protein-canvas,
    .protein-wrap,
    .protein-section {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .hero-title { font-size: clamp(2rem, 9vw, 3.2rem); }
    .hero-description { font-size: 0.95rem; }
}

.hero {
    padding: clamp(0.75rem, 3.2vw, 2rem) 0;
    min-height: 62vh; /* slightly shorter hero */
}

.hero-content {
    max-width: min(900px, 95%);
    padding: clamp(0.75rem, 3vw, var(--spacing-md));
}

.icon-btn {
    --size: clamp(28px, 4.2vw, 34px);
    width: var(--size);
    height: var(--size);
}

.icon-btn svg {
    width: calc(var(--size) * 0.5);
    height: calc(var(--size) * 0.5);
}

.hero-links {
    justify-content: center;
}

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

/* About Section - Enhanced Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.about-main {
    width: 100%;
}

.about .section-title {
    margin-bottom: 2rem;
}

.about-content-wrapper {
    width: 100%;
    padding: 2rem;
}

.about-card {
    padding: 2.5rem;
    color: #ffffff;
    transition: all var(--transition-base);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(245, 179, 105, 0.15);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(245,179,105,0.14),
        0 10px 30px rgba(245,179,105,0.10),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-color: rgba(245, 179, 105, 0.25);
    filter: drop-shadow(0 0 50px rgba(245,179,105,0.18));
}

.about-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245,179,105,0.2);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #f5b369 0%, #f9d5a7 100%);
    box-shadow: 0 10px 30px rgba(245,179,105,0.3),
                inset 0 1px 0 rgba(255,255,255,0.08);
    border: 3px solid rgba(245,179,105,0.3);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.about-card:hover .about-avatar {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(245,179,105,0.5),
                inset 0 1px 0 rgba(255,255,255,0.12);
}

.about-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.about-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    pointer-events: none;
}

.about-title-section {
    flex: 1;
    min-width: 0;
}

.about-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #f5b369 0%, #f9d5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .about-name {
    background: linear-gradient(135deg, #212529 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-role {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.35rem 0;
    font-weight: 500;
}

.light-mode .about-role {
    color: #495057;
}

.about-institution {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.light-mode .about-institution {
    color: #6c757d;
}

.about-content .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.light-mode .about-content .lead {
    color: #212529;
}

.about-content p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.light-mode .about-content p {
    color: #495057;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245,179,105,0.2);
}

.light-mode .about-highlights {
    border-top: 1px solid rgba(0, 119, 182, 0.2);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.light-mode .highlight-item {
    color: #495057;
}

.highlight-item svg {
    color: #f5b369;
    flex-shrink: 0;
}

/* Vertical Neural Network beside About */
.about-neural-network {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-neural-network svg {
    width: 100%;
    height: auto;
    max-height: 700px;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.about-neural-network:hover svg {
    opacity: 0.9;
}

/* Neural network animation styles */
.about-connection {
    stroke-linecap: round;
    stroke-opacity: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.8s ease;
}

.about-neuron circle {
    transform-origin: center;
    transition: all 0.3s ease;
}

/* Responsive About Section */
@media (max-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-neural-network {
        display: none;
    }

    .research-nn-background {
        right: 50%;
        transform: translate(50%, -50%);
        width: 100%;
        max-width: 500px;
        opacity: 0.08;
    }
}

@media (max-width: 768px) {
    .about-card {
        padding: 2rem 1.5rem;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .about-name {
        font-size: 1.5rem;
    }

    .about-role {
        font-size: 0.95rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem;
    }

    .research-nn-background {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 550px;
        opacity: 0.3;
    }

    #research-nn-svg {
        width: 133.33%;
        transform: rotate(90deg);
        transform-origin: center center;
    }

    .research-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.75rem;
    }

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

    .hero-description {
        font-size: 0.85rem;
    }

    .icon-btn {
        --size: 32px;
    }

    .about-card {
        padding: 1.5rem 1.25rem;
    }

    .about-avatar {
        width: 100px;
        height: 100px;
    }

    .about-name {
        font-size: 1.35rem;
    }

    .research-nn-background {
        width: 100%;
        max-width: 450px;
        opacity: 0.25;
    }

    #research-nn-svg {
        width: 133.33%;
        transform: rotate(90deg);
        transform-origin: center center;
    }

    .research-card {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .research-illustration {
        width: 50px;
        height: 50px;
    }

    .research-card h3 {
        font-size: 0.85rem;
    }
}

/* Skills Section Styles */
.skill.section,
#skills {
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 179, 105, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(249, 213, 167, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #121212 100%);
    position: relative;
}

.skill.section::before,
#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 30%,
        rgba(245, 179, 105, 0.6) 50%,
        rgba(245, 179, 105, 0.3) 70%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.3);
}

.skill.section .section-title h2,
#skills .section-title h2 {
    color: #f5b369;
}

.skill.section .section-title::after,
#skills .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    padding: 1rem;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.skill-category {
    padding: 1.75rem;
    transition: all var(--transition-base);
    background:
        linear-gradient(135deg, rgba(245, 179, 105, 0.08) 0%, rgba(26, 26, 26, 0.85) 100%) !important;
    border-radius: 14px;
    border: 1px solid rgba(245, 179, 105, 0.25) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(245, 179, 105, 0.10),
        inset 0 1px 0 rgba(245, 179, 105, 0.12) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 35px rgba(245, 179, 105, 0.16),
        0 6px 18px rgba(245, 179, 105, 0.12),
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(245, 179, 105, 0.15);
    border-color: rgba(245, 179, 105, 0.4);
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.12) 0%, rgba(26, 26, 26, 0.9) 100%);
    filter: drop-shadow(0 0 40px rgba(245,179,105,0.20));
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245,179,105,0.15), rgba(249,213,167,0.1));
    color: #f5b369;
    transition: all var(--transition-base);
}

.skill-category:hover .skill-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(245,179,105,0.25), rgba(249,213,167,0.2));
}

.skill-category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.95) !important;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245,179,105,0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(245,179,105,0.2) !important;
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(245,179,105,0.2);
    border-color: rgba(245,179,105,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,179,105,0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* Skills Visual - Background Atom */
.skills-visual {
    position: sticky;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.protein-wrap {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.protein-wrap:hover {
    opacity: 1;
}

#protein-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#protein-canvas:active {
    cursor: grabbing;
}

/* Responsive Skills Section */
@media (max-width: 1024px) {
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-visual {
        position: relative;
        top: 0;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .skill-category {
        padding: 1.25rem;
    }

    .skill-category-header h3 {
        font-size: 1.1rem;
    }

    .skill-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

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

    .skill-tags {
        gap: 0.4rem;
    }

    .skill-tag {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .protein-wrap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .skills-categories {
        gap: 1rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .protein-wrap {
        height: 250px;
    }
}

/* Scrambler header styling */
.scramble-protein {
    cursor: pointer;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    transition: transform var(--transition-fast), background var(--transition-fast);
    color: var(--text-primary);
}

.scramble-protein:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(74,160,230,0.06), rgba(109,211,178,0.06));
}

@media (max-width: 720px) {
    .skill-grid { grid-template-columns: 1fr; }
}

/* Research Interests Section Styles */
.research {
    background:
        radial-gradient(circle at 30% 30%, rgba(245, 179, 105, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(249, 213, 167, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #121212 100%);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.research .section-title h2 {
    color: #f5b369;
}

.research .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 30%,
        rgba(245, 179, 105, 0.6) 50%,
        rgba(245, 179, 105, 0.3) 70%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.3);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    justify-items: center;
    padding: 1rem;
}

.research-card {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    background:
        linear-gradient(135deg, rgba(245, 179, 105, 0.06) 0%, rgba(26, 26, 26, 0.85) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(245, 179, 105, 0.25);
    border-radius: 14px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(245, 179, 105, 0.10),
        inset 0 1px 0 rgba(245, 179, 105, 0.12);
}

.research-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 30%, rgba(0,0,0,0) 100%);
    mix-blend-mode: overlay;
    z-index: 0;
    border-radius: inherit;
}

/* Colored accent bar at the top of each card */
.research-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(245, 179, 105, 0.8), rgba(249, 213, 167, 0.6));
    border-radius: 14px 14px 0 0;
    z-index: 2;
    transition: all var(--transition-base);
}

/* Different colors for each card - warm amber theme variations */
.research-card[data-color="blue"] .research-accent {
    background: linear-gradient(90deg, rgba(255, 193, 77, 0.9), rgba(245, 179, 105, 0.7));
    box-shadow: 0 0 12px rgba(255, 193, 77, 0.4);
}

.research-card[data-color="teal"] .research-accent {
    background: linear-gradient(90deg, rgba(245, 179, 105, 0.9), rgba(249, 213, 167, 0.7));
    box-shadow: 0 0 12px rgba(245, 179, 105, 0.4);
}

.research-card[data-color="amber"] .research-accent {
    background: linear-gradient(90deg, rgba(255, 216, 155, 0.9), rgba(245, 179, 105, 0.7));
    box-shadow: 0 0 12px rgba(255, 216, 155, 0.4);
}

.research-card[data-color="coral"] .research-accent {
    background: linear-gradient(90deg, rgba(245, 179, 105, 0.9), rgba(255, 160, 84, 0.7));
    box-shadow: 0 0 12px rgba(255, 160, 84, 0.4);
}

.research-card[data-color="purple"] .research-accent {
    background: linear-gradient(90deg, rgba(255, 160, 84, 0.9), rgba(230, 126, 115, 0.7));
    box-shadow: 0 0 12px rgba(255, 160, 84, 0.4);
}

.research-card[data-color="gradient"] .research-accent {
    background: linear-gradient(90deg,
        rgba(255, 193, 77, 0.8) 0%,
        rgba(245, 179, 105, 0.8) 25%,
        rgba(255, 216, 155, 0.8) 50%,
        rgba(255, 160, 84, 0.8) 75%,
        rgba(230, 126, 115, 0.8) 100%);
    box-shadow: 0 0 15px rgba(245, 179, 105, 0.5);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 48px rgba(245, 179, 105, 0.16),
        0 8px 24px rgba(245, 179, 105, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(245, 179, 105, 0.15);
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.1) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-color: rgba(245, 179, 105, 0.4);
    filter: drop-shadow(0 0 45px rgba(245,179,105,0.22));
}

.research-card:hover .research-accent {
    height: 5px;
    box-shadow: 0 0 20px currentColor;
}

.research-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.light-mode .research-card h3 {
    color: #212529;
}

/* Research Neural Network Background */
.research-nn-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 650px;
    aspect-ratio: 600 / 800;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.research-nn-background.visible {
    opacity: 0.25;
}

#research-nn-svg {
    width: 133.33%;
    height: auto;
    display: block;
    transform: rotate(90deg);
    transform-origin: center center;
}

/* Neural network color overrides - amber theme */
#research-nn-svg .connection {
    stroke: #f5b369 !important;
    stroke-width: 1.5 !important;
}

#research-nn-svg .neuron circle:first-child {
    fill: #f5b369 !important;
    stroke: #f9d5a7 !important;
    stroke-width: 2 !important;
}

#research-nn-svg .neuron circle:last-child {
    stroke: #f9d5a7 !important;
    opacity: 0.6 !important;
}

/* Responsive adjustments for neural network background */
@media (max-width: 1400px) {
    .research-nn-background {
        width: 80%;
        max-width: 700px;
    }
}

.research-card:hover h3 {
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.02em;
}

/* Stagger animation for cards - initially hidden */
.research-card {
    opacity: 0;
    transform: translateY(30px);
}

.research-card.animate-in:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.research-card.animate-in:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.research-card.animate-in:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.research-card.animate-in:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.research-card.animate-in:nth-child(5) {
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.research-card.animate-in:nth-child(6) {
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

/* Responsive Research Section */
@media (max-width: 900px) {
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        justify-items: center;
    }

    .research-card {
        padding: 1.75rem 1.5rem;
        width: 100%;
    }

    .research-illustration {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .research-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .research-card {
        padding: 1.5rem 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    .research-illustration {
        width: 90px;
        height: 90px;
    }

    .research-card h3 {
        font-size: 1.1rem;
    }

    .research-card p {
        font-size: 0.9rem;
    }
}

/* Projects Section Styles */
/* Papers Section */
.papers {
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 179, 105, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(249, 213, 167, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.papers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 20%,
        rgba(245, 179, 105, 0.7) 50%,
        rgba(245, 179, 105, 0.3) 80%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.3);
}

#papers .section-title h2 {
    color: #f5b369;
}

#papers .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.light-mode #papers .section-title::after {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.papers-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.paper-card {
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(245, 179, 105, 0.2);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(245,179,105,0.12),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,179,105,0.08), transparent);
    transition: left 0.6s ease;
    z-index: 0;
    border-radius: inherit;
}

.paper-card:hover::before {
    left: 100%;
}

.paper-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(245,179,105,0.18),
        0 12px 35px rgba(245,179,105,0.14),
        0 6px 18px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: rgba(245, 179, 105, 0.4);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}

.paper-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.paper-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,179,105,0.25), rgba(249,213,167,0.18));
    color: #f5b369;
    transition: all var(--transition-base);
}

.paper-card:hover .paper-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(245,179,105,0.35), rgba(249,213,167,0.28));
}

.paper-content {
    flex: 1;
    min-width: 0;
}

.paper-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.paper-title a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.paper-title a:hover {
    color: #f5b369;
}

.light-mode .paper-title a {
    color: #212529;
}

.light-mode .paper-title a:hover {
    color: #0077b6;
}

.paper-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.light-mode .paper-meta {
    color: #6c757d;
}

.paper-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1rem 0;
}

.light-mode .paper-description {
    color: #6c757d;
}

.paper-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.paper-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245,179,105,0.15);
    color: #f5b369;
    border: 1px solid rgba(245,179,105,0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.paper-link:hover {
    background: rgba(245,179,105,0.25);
    border-color: rgba(245,179,105,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245,179,105,0.2);
}

.light-mode .paper-link {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
    border-color: rgba(0, 119, 182, 0.3);
}

.light-mode .paper-link:hover {
    background: rgba(0, 119, 182, 0.2);
    border-color: rgba(0, 119, 182, 0.5);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.paper-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(245,179,105,0.12);
    color: #f9d5a7;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(245,179,105,0.2);
    transition: all var(--transition-fast);
}

.paper-tag:hover {
    background: rgba(245,179,105,0.2);
    border-color: rgba(245,179,105,0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Responsive Papers */
@media (max-width: 768px) {
    .papers-list {
        padding: 0.5rem;
    }

    .paper-card {
        padding: 1.5rem;
    }

    .paper-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .paper-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .paper-card {
        padding: 1.25rem;
    }

    .paper-header {
        gap: 1rem;
    }

    .paper-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

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

    .paper-title {
        font-size: 1rem;
    }
}

.projects {
    background:
        radial-gradient(circle at 15% 25%, rgba(245, 179, 105, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(249, 213, 167, 0.08) 0%, transparent 35%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #121212 100%);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 20%,
        rgba(245, 179, 105, 0.7) 50%,
        rgba(245, 179, 105, 0.3) 80%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.3);
}

/* Projects section title override for dark background */
#projects .section-title h2 {
    color: #f5b369;
}

#projects .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.light-mode #projects .section-title::after {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.project-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(245, 179, 105, 0.2);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(245,179,105,0.12),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,179,105,0.08), transparent);
    transition: left 0.6s ease;
    z-index: 0;
    border-radius: inherit;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 24px 60px rgba(245,179,105,0.16),
        0 12px 35px rgba(245,179,105,0.12),
        0 6px 18px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: rgba(245, 179, 105, 0.4);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    filter: drop-shadow(0 0 50px rgba(245,179,105,0.24));
}

.project-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245,179,105,0.2), rgba(249,213,167,0.15));
    color: #f5b369;
    transition: all var(--transition-base);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(245,179,105,0.3), rgba(249,213,167,0.25));
}

.project-meta {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.project-meta h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.light-mode .project-meta h3 {
    color: #212529;
}

.project-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.light-mode .project-date {
    color: #6c757d;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(46,213,115,0.2), rgba(72,219,251,0.2));
    color: #6dd5b1;
    border: 1px solid rgba(46,213,115,0.4);
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.project-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(245,179,105,0.12);
    color: #f9d5a7;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(245,179,105,0.2);
    transition: all var(--transition-fast);
}

.project-tag:hover {
    background: rgba(245,179,105,0.2);
    border-color: rgba(245,179,105,0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Responsive Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .project-meta h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1.25rem;
    }

    .project-header {
        gap: 0.75rem;
    }

    .project-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

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



/* Contact Section Styles */
.contact {
    background:
        radial-gradient(circle at 40% 40%, rgba(245, 179, 105, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 60% 60%, rgba(249, 213, 167, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #121212 100%);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 179, 105, 0.3) 25%,
        rgba(245, 179, 105, 0.7) 50%,
        rgba(245, 179, 105, 0.3) 75%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(245, 179, 105, 0.4);
}

.contact .section-title h2 {
    color: #f5b369;
}

.contact .section-title::after {
    background: linear-gradient(90deg, #f5b369, #f9d5a7);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-intro {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
    background: linear-gradient(135deg,  #f5b369, #f9d5a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .contact-intro h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
    background: linear-gradient(135deg,  #0077b6, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 179, 105, 0.08) 0%, rgba(26, 26, 26, 0.85) 100%);
    border-radius: 16px;
    border: 1px solid rgba(245,179,105,0.25);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(245, 179, 105, 0.12),
        inset 0 1px 0 rgba(245, 179, 105, 0.15);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,179,105,0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 48px rgba(245,179,105,0.32),
        0 10px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(245, 179, 105, 0.2);
    border-color: rgba(245,179,105,0.4);
    background: linear-gradient(135deg, rgba(245, 179, 105, 0.12) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,179,105,0.15), rgba(249,213,167,0.12));
    color: #f5b369;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(245,179,105,0.25), rgba(249,213,167,0.2));
}

.contact-details {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.contact-details h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.contact-details p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    word-break: break-word;
}

/* Responsive contact section */
@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-intro {
        padding: 1.25rem;
    }

    .contact-method {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .contact-icon svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .contact-intro h3 {
        font-size: 1.5rem;
    }

    .contact-text {
        font-size: 0.95rem;
    }

    .contact-method {
        gap: 1rem;
    }
}

/* Global Light Mode Text Colors */
.light-mode body {
    color: var(--text-primary);
}

.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6 {
    color: var(--text-primary);
}

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

/* Light Mode Navigation */
.light-mode #header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.92) 100%);
    border-bottom: 1px solid rgba(0, 119, 182, 0.2);
}

.light-mode #header.scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.96) 100%);
    border-bottom: 1px solid rgba(0, 119, 182, 0.3);
    box-shadow: 0 4px 24px rgba(0, 119, 182, 0.1);
}

.light-mode .logo {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .nav-links a {
    color: rgba(33, 37, 41, 0.8);
}

.light-mode .nav-links a:hover {
    color: #0077b6;
}

.light-mode .nav-links a::after {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    box-shadow: 0 0 8px rgba(0, 119, 182, 0.5);
}

/* Light Mode Scroll to Top Button */
.light-mode .scroll-top {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);
}

.light-mode .scroll-top:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.4);
}

/* Light Mode Hero */
.light-mode .hero-title {
    color: #212529;
}

.light-mode .hero-subtitle {
    color: #212529;
}

.light-mode .hero-description {
    color: #495057;
}

.light-mode .hero-card {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.15);
}

.light-mode .hero-card:hover {
    box-shadow: 0 12px 48px rgba(0, 119, 182, 0.2);
    border-color: rgba(0, 119, 182, 0.3);
}

.light-mode .typing-cursor {
    background: #0077b6;
}

.light-mode .icon-btn {
    background: rgba(0, 119, 182, 0.1);
    border-color: rgba(0, 119, 182, 0.3);
    color: #0077b6;
}

.light-mode .icon-btn:hover {
    background: rgba(0, 119, 182, 0.15);
    border-color: #0077b6;
    color: #005a8c;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.25);
}

.light-mode .icon-btn::before {
    background: radial-gradient(circle, rgba(0, 119, 182, 0.2) 0%, transparent 70%);
}

.light-mode .icon-btn svg {
    fill: #0077b6;
}

.light-mode .icon-btn:hover svg {
    fill: #005a8c;
}

.light-mode .pattern-overlay {
    opacity: 0.2;
}

.light-mode #hero-canvas {
    opacity: 0.6;
}

.light-mode .hero-emoji {
    filter: none;
}

/* Light mode avatar styling */
.light-mode .about-avatar {
    border-color: rgba(0, 119, 182, 0.3);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.15);
}

.light-mode .about-card:hover .about-avatar {
    border-color: rgba(0, 119, 182, 0.5);
    box-shadow: 0 6px 24px rgba(0, 119, 182, 0.2);
}

.light-mode .about-initials {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
}

/* Light Mode Section Titles */
.light-mode .section-title h2 {
    color: #212529;
}

.light-mode .section-title::after {
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
}

/* Light mode scramble text */
.light-mode .scramble-protein {
    color: #0077b6;
}

/* Light Mode About Section */
.light-mode .about-card {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.12);
}

.light-mode .about-card:hover {
    box-shadow: 0 12px 48px rgba(0, 119, 182, 0.18);
    border-color: rgba(0, 119, 182, 0.3);
}

.light-mode .about-card.card.glass:hover {
    box-shadow: 0 18px 50px rgba(0, 119, 182, 0.14),
                0 8px 40px rgba(0, 119, 182, 0.10),
                0 0 60px rgba(0, 119, 182, 0.06);
    filter: drop-shadow(0 0 50px rgba(0, 119, 182, 0.18));
}

.light-mode .about-name {
    color: #212529;
}

.light-mode .about-role {
    color: #495057;
}

.light-mode .about-institution {
    color: #6c757d;
}

.light-mode .about-content .lead {
    color: #212529;
}

.light-mode .about-content p {
    color: #495057;
}

.light-mode .highlight-item {
    color: #495057;
}

.light-mode .highlight-item svg {
    color: #0077b6;
    stroke: #0077b6;
}

/* Light mode neural network SVG */
.light-mode .about-neural-network svg,
.light-mode #research-nn-svg {
    opacity: 0.6;
}

.light-mode .about-connection,
.light-mode #research-nn-svg .connection {
    stroke: #0077b6 !important;
    stroke-width: 1.5 !important;
}

.light-mode .about-neuron circle:first-child,
.light-mode #research-nn-svg .neuron circle:first-child {
    fill: #0077b6 !important;
    stroke: #00b4d8 !important;
    stroke-width: 2 !important;
}

.light-mode .about-neuron circle:last-child,
.light-mode #research-nn-svg .neuron circle:last-child {
    stroke: #00b4d8 !important;
    opacity: 0.6 !important;
}

/* Light Mode Research Section */
.light-mode .research {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
}

.light-mode .research::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode .research-card {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.light-mode .research-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 48px rgba(0, 119, 182, 0.16),
        0 8px 24px rgba(0, 119, 182, 0.12),
        0 4px 12px rgba(0, 119, 182, 0.08),
        inset 0 1px 0 rgba(0, 119, 182, 0.15);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(0, 119, 182, 0.4);
    filter: drop-shadow(0 0 45px rgba(0, 119, 182, 0.22));
}

.light-mode .research-card:hover .research-accent {
    height: 5px;
    box-shadow: 0 0 20px currentColor;
}

.light-mode .research-card h3 {
    color: #212529;
}

/* Light mode research accent colors */
.light-mode .research-card[data-color="blue"] .research-accent {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.light-mode .research-card[data-color="teal"] .research-accent {
    background: linear-gradient(90deg, #06a4b8, #14b8a6);
}

.light-mode .research-card[data-color="amber"] .research-accent {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.light-mode .research-card[data-color="coral"] .research-accent {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.light-mode .research-card[data-color="purple"] .research-accent {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.light-mode .research-card[data-color="gradient"] .research-accent {
    background: linear-gradient(90deg, #0077b6, #00b4d8, #06a4b8);
}

/* Light Mode Projects Section */
/* Light Mode Papers Section */
.light-mode .papers {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

.light-mode .papers::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode #papers .section-title h2 {
    color: #212529;
}

.light-mode .paper-card {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.light-mode .paper-card::before {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08) 0%, rgba(0, 180, 216, 0.03) 30%, transparent 100%);
}

.light-mode .paper-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(0, 119, 182, 0.18),
        0 12px 35px rgba(0, 119, 182, 0.14),
        0 6px 18px rgba(0, 119, 182, 0.08),
        inset 0 1px 0 rgba(0, 119, 182, 0.12);
    border-color: rgba(0, 119, 182, 0.4);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.light-mode .paper-icon {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
}

.light-mode .paper-icon svg {
    stroke: #0077b6;
}

.light-mode .paper-card:hover .paper-icon {
    background: rgba(0, 119, 182, 0.15);
}

.light-mode .paper-tag {
    background: rgba(0, 119, 182, 0.08);
    color: #0077b6;
    border-color: rgba(0, 119, 182, 0.2);
}

.light-mode .paper-tag:hover {
    background: rgba(0, 119, 182, 0.15);
    border-color: #0077b6;
    color: #005a8c;
}

/* Light Mode Projects Section */
.light-mode .projects {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

.light-mode .projects::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode #projects .section-title h2 {
    color: #212529;
}

.light-mode .project-card {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.light-mode .project-card::before {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08) 0%, rgba(0, 180, 216, 0.03) 30%, transparent 100%);
}

.light-mode .project-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 24px 60px rgba(0, 119, 182, 0.16),
        0 12px 35px rgba(0, 119, 182, 0.12),
        0 6px 18px rgba(0, 119, 182, 0.08),
        inset 0 1px 0 rgba(0, 119, 182, 0.12);
    border-color: rgba(0, 119, 182, 0.4);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    filter: drop-shadow(0 0 50px rgba(0, 119, 182, 0.24));
}

.light-mode .project-icon {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
}

.light-mode .project-icon svg {
    stroke: #0077b6;
}

.light-mode .project-card:hover .project-icon {
    background: rgba(0, 119, 182, 0.15);
    transform: scale(1.05);
}

.light-mode .project-meta h3 {
    color: #212529;
}

.light-mode .project-date {
    color: #6c757d;
}

.light-mode .project-description {
    color: #495057;
}

.light-mode .project-tag {
    background: rgba(0, 119, 182, 0.08);
    color: #0077b6;
    border-color: rgba(0, 119, 182, 0.2);
}

.light-mode .project-tag:hover {
    background: rgba(0, 119, 182, 0.15);
    border-color: #0077b6;
    color: #005a8c;
}

.light-mode .status-badge {
    background: rgba(0, 119, 182, 0.12);
    color: #0077b6;
    border: 1px solid rgba(0, 119, 182, 0.25);
}

.light-mode .status-badge.active {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Light Mode Skills Section */
.light-mode .skill.section,
.light-mode #skills {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
}

.light-mode .skill.section::before,
.light-mode #skills::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode .skill-category {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 119, 182, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1) !important;
}

.light-mode .skill-category:hover {
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.15) !important;
    border-color: rgba(0, 119, 182, 0.3) !important;
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85) !important;
}

.light-mode .skill-category-header h3 {
    color: #212529 !important;
}

.light-mode .skill-icon {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
}

.light-mode .skill-icon svg {
    stroke: #0077b6;
}

.light-mode .skill-category:hover {
    box-shadow:
        0 12px 35px rgba(0, 119, 182, 0.16),
        0 6px 18px rgba(0, 119, 182, 0.12),
        0 3px 10px rgba(0, 119, 182, 0.08),
        inset 0 1px 0 rgba(0, 119, 182, 0.15);
    border-color: rgba(0, 119, 182, 0.4);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
    filter: drop-shadow(0 0 40px rgba(0, 119, 182, 0.20));
}

.light-mode .skill-category:hover .skill-icon {
    background: rgba(0, 119, 182, 0.15);
    transform: scale(1.05);
}

.light-mode .skill-tag {
    background: rgba(0, 119, 182, 0.08) !important;
    color: #0077b6 !important;
    border-color: rgba(0, 119, 182, 0.2) !important;
}

.light-mode .skill-tag:hover {
    background: rgba(0, 119, 182, 0.15) !important;
    border-color: #0077b6 !important;
    color: #005a8c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2) !important;
}

.light-mode .protein-wrap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.light-mode .protein-wrap:hover {
    border-color: transparent;
    box-shadow: none;
}

/* Light Mode Contact Section */
.light-mode .contact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
}

.light-mode .contact::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode #contact .section-title h2 {
    color: #212529;
}

.light-mode .contact-intro {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.light-mode .contact-intro h3 {
    color: #212529;
}

.light-mode .contact-text {
    color: #495057;
}

.light-mode .contact-method {
    background: var(--glass-gradient);
    border-color: var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}

.light-mode .contact-method:hover {
    border-color: rgba(0, 119, 182, 0.3);
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.15);
    transform: translateY(-4px);
}

.light-mode .contact-icon {
    background: rgba(0, 119, 182, 0.1);
    color: #0077b6;
}

.light-mode .contact-icon svg {
    stroke: #0077b6;
    fill: currentColor;
}

.light-mode .contact-method:hover .contact-icon {
    background: rgba(0, 119, 182, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.light-mode .contact-details h4 {
    color: #212529;
}

.light-mode .contact-details p {
    color: #495057;
}

/* Light Mode Footer */
.light-mode .footer {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 50%, #ced4da 100%);
}

.light-mode .footer::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

.light-mode .footer-logo {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .footer-tagline {
    color: #6c757d;
}

.light-mode .footer-column h4 {
    color: #0077b6;
}

.light-mode .footer-column a {
    color: #495057;
}

.light-mode .footer-column a:hover {
    color: #0077b6;
}

.light-mode .footer-column a::after {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.light-mode .footer-column li {
    color: #495057;
}

.light-mode .footer-info p {
    color: #6c757d;
}

.light-mode .footer-built {
    color: #6c757d;
}

.light-mode .footer-divider {
    background: rgba(0, 119, 182, 0.2);
}

/* Light mode scroll top button */
.light-mode .scroll-top svg {
    stroke: white;
}

/* Light mode project icons */
.light-mode .project-icon svg {
    stroke: #0077b6;
    fill: none;
}

/* Light mode skill icons */
.light-mode .skill-icon svg {
    stroke: #0077b6;
    fill: none;
}

/* Light mode contact icons */
.light-mode .contact-icon svg {
    stroke: #0077b6;
}

.light-mode .contact-icon svg[fill="currentColor"] {
    fill: #0077b6;
}

.light-mode .contact-icon svg[fill="none"] {
    fill: none;
}

/* Light mode nav links SVG icons if any */
.light-mode .nav-links svg {
    stroke: currentColor;
    fill: currentColor;
}

/* Ensure all inline SVGs respect theme colors */
.light-mode svg {
    color: inherit;
}

/* Light mode status badge colors */
.light-mode .status-badge {
    background: rgba(245, 179, 105, 0.12);
    color: #f9d5a7;
    border: 1px solid rgba(245, 179, 105, 0.25);
}

.light-mode .status-badge.active {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Ensure proper text readability in all cards */
.light-mode .card h3,
.light-mode .card h4,
.light-mode .card h5 {
    color: #212529;
}

.light-mode .card p,
.light-mode .card span:not(.status-badge):not(.skill-tag):not(.project-tag):not(.typing-cursor) {
    color: #495057;
}

/* Light mode specific text elements in light sections */
.light-mode #about .card h3,
.light-mode #research .card h3,
.light-mode #skills .card h3 {
    color: #212529;
}

.light-mode #about .card p,
.light-mode #research .card p,
.light-mode #skills .card p {
    color: #495057;
}

/* Light mode borders and dividers */
.light-mode .footer-divider {
    background: rgba(245, 179, 105, 0.3);
}

/* Light mode research neural network background */
.light-mode .research-nn-background {
    opacity: 0.5;
}

/* Smooth theme transition for all elements */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Exclude elements that should not transition */
*:not(.card):not(.hero):not(section):not(header):not(.icon-btn):not(.skill-tag):not(.project-tag) {
    transition: none;
}

/* Restore specific transitions for interactive elements */
.card,
.icon-btn,
.skill-tag,
.project-tag,
.contact-method,
.nav-links a {
    transition: all var(--transition-base);
}

/* Ensure NO amber/gold shadows or glows in light mode */
.light-mode .card:hover,
.light-mode .skill-category:hover,
.light-mode .research-card:hover,
.light-mode .project-card:hover {
    /* All hover shadows should be blue-tinted */
    filter: drop-shadow(0 0 40px rgba(0, 119, 182, 0.2));
}

/* Override any remaining amber/gold text shadows */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6 {
    text-shadow: none;
}

/* Ensure section borders are blue */
.light-mode .section::before,
.light-mode section::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 119, 182, 0.3) 20%,
        rgba(0, 119, 182, 0.6) 50%,
        rgba(0, 119, 182, 0.3) 80%,
        transparent 100%);
}

/* Skills section title color fix */
.light-mode .skill.section .section-title h2,
.light-mode #skills .section-title h2 {
    color: #212529;
}

.light-mode .skill.section .section-title::after,
.light-mode #skills .section-title::after {
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
}