/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Dark theme (default) */
    --bg-primary: #06080d;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    --bg-card: rgba(13, 17, 23, 0.85);
    --bg-card-hover: rgba(22, 27, 34, 0.95);
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-heading: 'Exo 2', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Exo 2', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-green: #059669;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.12);
    --glow-cyan: 0 0 20px rgba(8, 145, 178, 0.15);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* ========================================
   Scroll Progress Bar
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
    z-index: 10000;
    width: 0%;
    transition: none;
}

/* ========================================
   Loading Screen
   ======================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #06080d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container { width: min(500px, 90vw); }

.loader-terminal {
    background: #0d1117;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.08);
}

.loader-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.loader-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.loader-dot.red { background: #ff5f57; }
.loader-dot.yellow { background: #febc2e; }
.loader-dot.green { background: #28c840; }

.loader-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #64748b;
    margin-left: auto;
}

.loader-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 2;
}

.loader-line {
    opacity: 0;
    transform: translateY(5px);
    color: #94a3b8;
}

.loader-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.loader-line .prompt { color: var(--accent-green); }
.loader-line .cmd { color: var(--accent-cyan); }
.loader-line .ok { color: var(--accent-green); font-weight: 600; }
.loader-line .welcome { color: var(--accent-cyan); font-weight: 600; }

.loader-progress {
    margin: 16px 20px 20px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ========================================
   Custom Cursor
   ======================================== */
.cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

body:not(.touch-device) .cursor-dot,
body:not(.touch-device) .cursor-ring { opacity: 1; }

.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.hover {
    width: 56px; height: 56px;
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.06);
}

.cursor-ring.click {
    width: 28px; height: 28px;
}

@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] #navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

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

.logo-cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

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

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

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

.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--glass-hover);
    border-color: var(--accent-cyan);
}

.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.nav-menu-btn {
    width: 40px; height: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.nav-menu-btn span {
    width: 18px; height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition);
}

.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.mobile-link {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open .mobile-link:nth-child(7) { transition-delay: 0.4s; }

.mobile-link:hover { color: var(--accent-cyan); }

/* ========================================
   Hero Section
   ======================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

#neural-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg-primary) 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--text-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent-green);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.terminal-prompt { color: var(--accent-green); font-weight: 700; }

.typing-cursor {
    color: var(--accent-cyan);
    animation: blink 0.7s step-end infinite;
    font-weight: 300;
}

/* Glitch Effect */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.hero-name .glitch-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: inset(0);
}

.hero-name .glitch-layer:first-child {
    color: var(--accent-cyan);
    animation: glitch-1 3s infinite linear alternate-reverse;
    opacity: 0.8;
}

.hero-name .glitch-layer:nth-child(2) {
    color: var(--accent-pink);
    animation: glitch-2 3s infinite linear alternate-reverse;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
    92% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
    94% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -1px); }
    96% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 2px); }
    98% { clip-path: inset(70% 0 5% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
    91% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
    93% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 1px); }
    95% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 2px); }
    97% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, -2px); }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-tagline .amp { color: var(--accent-cyan); }

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.5s);
    transition: all var(--transition);
}

.hero-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.tag-icon { font-size: 16px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-muted), transparent);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.06);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    left: -1px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -12px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 60px; opacity: 0; }
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-dec-1 {
    width: 400px; height: 400px;
    background: rgba(0, 212, 255, 0.06);
    top: 10%; right: -100px;
}

.hero-dec-2 {
    width: 300px; height: 300px;
    background: rgba(124, 58, 237, 0.06);
    bottom: 10%; left: -50px;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.tag-hash { opacity: 0.5; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.highlight { color: var(--accent-cyan); }

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 32px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

.terminal-body code { white-space: pre; }

.json-key { color: var(--accent-cyan); }
.json-str { color: var(--accent-green); }

.about-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--text-primary); font-weight: 600; }

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

/* Timeline */
.timeline-title, .skills-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-title::after, .skills-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline-track {
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 4px;
}

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

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    z-index: 1;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: all var(--transition);
    cursor: pointer;
}

.timeline-content:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.timeline-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 8px;
}

.timeline-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.timeline-item.expanded .timeline-detail {
    max-height: 200px;
}

.timeline-detail p {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* Skills Grid */
.skills-section { margin-top: 20px; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.skill-category:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.skill-cat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.skill-category h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan);
    transition: all var(--transition);
    animation: fadeInTag 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.05s);
    opacity: 0;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

@keyframes fadeInTag {
    to { opacity: 1; }
}

/* ========================================
   Photo Gallery Wall
   ======================================== */
.photo-gallery-section {
    margin-top: 80px;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.gallery-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
}

.gallery-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* Photo Waterfall */
.photo-waterfall {
    display: flex;
    gap: 14px;
    height: 480px;
    overflow: hidden;
}

.waterfall-col {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
}

/* Fade edges top/bottom */
.waterfall-col::before,
.waterfall-col::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 5;
    pointer-events: none;
}

.waterfall-col::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.waterfall-col::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.waterfall-track {
    display: flex;
    flex-direction: column;
    animation: waterfall-down var(--wf-speed, 24s) linear infinite;
}

.waterfall-col:hover .waterfall-track {
    animation-play-state: paused;
}

.waterfall-set {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    flex-shrink: 0;
}

@keyframes waterfall-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.waterfall-item {
    height: var(--wf-h, 200px);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.waterfall-item:hover {
    transform: scale(1.06);
    z-index: 10;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
}

.waterfall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.waterfall-item picture,
.cert-scroll-card picture {
    display: contents;
}

.waterfall-item img[src=""] {
    display: none;
}

.waterfall-empty {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--glass);
}

.waterfall-item:not(:has(img[src]:not([src=""]))) .waterfall-empty {
    display: flex;
}

.waterfall-item:has(img[src]:not([src=""])) .waterfall-empty {
    display: none;
}

.waterfall-empty svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    opacity: 0.4;
}

.waterfall-empty span {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Hover overlay with caption */
.waterfall-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.waterfall-item:hover .waterfall-overlay {
    opacity: 1;
}

.waterfall-overlay span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Corner brackets for sci-fi look */
.waterfall-item::before,
.waterfall-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--accent-cyan);
    border-style: solid;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.waterfall-item::before {
    top: 6px;
    left: 6px;
    border-width: 2px 0 0 2px;
}

.waterfall-item::after {
    bottom: 6px;
    right: 6px;
    border-width: 0 2px 2px 0;
}

.waterfall-item:hover::before,
.waterfall-item:hover::after {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .photo-waterfall {
        height: 320px;
        gap: 10px;
    }
    .photo-gallery-section {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .photo-waterfall {
        height: 280px;
        gap: 8px;
    }
    .waterfall-col:last-child {
        display: none;
    }
}

/* ========================================
   Projects Section
   ======================================== */
#projects { background: var(--bg-secondary); }

.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-primary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
    background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-purple), var(--accent-green), var(--accent-cyan));
    z-index: -1;
    filter: blur(2px);
}

.project-card:hover .card-glow { opacity: 0.6; }

.card-image {
    height: 180px;
    background: var(--grad, linear-gradient(135deg, #1a1a2e, #16213e));
    position: relative;
    overflow: hidden;
}

.card-image-pattern {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-pattern svg { width: 100%; height: 100%; }

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.card-badge.hot { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border-color: rgba(239, 68, 68, 0.3); }
.card-badge.award { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.3); }
.card-badge.github { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border-color: rgba(16, 185, 129, 0.3); }
.card-badge.competition { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); border-color: rgba(236, 72, 153, 0.3); }

.card-body { padding: 24px; }

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.metric { display: flex; flex-direction: column; }

.metric-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

.card-link svg { width: 16px; height: 16px; }

/* ========================================
   Awards Section
   ======================================== */
.awards-marquee {
    overflow: hidden;
    padding: 32px 0;
}

.marquee-track {
    display: flex;
    width: fit-content;
    margin-bottom: 16px;
}

.marquee-forward .marquee-content { animation: marquee-scroll 40s linear infinite; }
.marquee-reverse .marquee-content { animation: marquee-scroll-reverse 35s linear infinite; }

.marquee-track:hover .marquee-content { animation-play-state: paused; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.marquee-content {
    display: flex;
    gap: 16px;
    padding: 0 8px;
    flex-shrink: 0;
}

.award-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    min-width: 300px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.award-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.award-card.gold:hover { border-color: var(--accent-amber); box-shadow: 0 0 20px rgba(245, 158, 11, 0.15); }
.award-card.silver:hover { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.award-card.special:hover { border-color: var(--accent-purple); box-shadow: var(--glow-purple); }
.award-card.competition:hover { border-color: var(--accent-pink); box-shadow: 0 0 20px rgba(236, 72, 153, 0.15); }
.award-card.cert:hover { border-color: var(--accent-green); box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }

.award-icon { font-size: 28px; flex-shrink: 0; }

.award-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.award-org {
    font-size: 12px;
    color: var(--text-muted);
}

/* Certificate Scroll Gallery */
.cert-scroll-container {
    overflow: hidden;
    position: relative;
    margin-top: 48px;
    padding: 20px 0;
}

/* Fade edges left/right */
.cert-scroll-container::before,
.cert-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.cert-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.cert-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.cert-scroll-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation: cert-scroll 30s linear infinite;
}

.cert-scroll-container:hover .cert-scroll-track {
    animation-play-state: paused;
}

@keyframes cert-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-scroll-card {
    flex-shrink: 0;
    width: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.cert-scroll-card:hover {
    transform: scale(1.08);
    z-index: 10;
    border-color: var(--accent, var(--accent-cyan));
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.cert-scroll-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    padding: 12px;
    background: var(--glass);
    box-sizing: border-box;
}

.cert-scroll-label {
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

/* ========================================
   Blog Section
   ======================================== */
#blog { background: var(--bg-secondary); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-image {
    height: 200px;
    background: var(--grad, linear-gradient(135deg, #1a1a2e, #16213e));
    display: flex;
    align-items: flex-end;
    padding: 16px;
    position: relative;
}

.blog-featured .blog-image { height: auto; min-height: 250px; }

.blog-category {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    backdrop-filter: blur(10px);
}

.blog-body { padding: 24px; }

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: letter-spacing var(--transition);
}

.blog-card:hover .blog-link { letter-spacing: 1px; }

.blog-cta {
    text-align: center;
    margin-top: 48px;
}

.blog-cta p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========================================
   Resume Section
   ======================================== */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.resume-subtitle {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
}

.resume-subtitle svg { width: 22px; height: 22px; }

.resume-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 40px;
}

.resume-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.resume-item {
    position: relative;
    margin-bottom: 20px;
}

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

.resume-dot {
    position: absolute;
    left: -20px;
    top: 8px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.resume-period {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.resume-role {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.resume-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.resume-rank {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
}

/* Research */
.research-list { margin-bottom: 32px; }

.research-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.research-item:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
}

.research-type {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
}

.research-title {
    font-size: 14px;
    font-weight: 600;
}

.research-venue {
    font-size: 12px;
    color: var(--text-muted);
}

/* Skill Bars */
.skill-bars { margin-bottom: 32px; }

.skill-bar-item { margin-bottom: 18px; }

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.skill-bar-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.skill-bar-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.skill-bar-track {
    height: 6px;
    background: var(--glass);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--bar-color, var(--accent-cyan));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 3px;
}

.resume-download {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

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

/* ========================================
   Contact Section
   ======================================== */
#contact { background: var(--bg-secondary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line,
.form-group select:focus ~ .input-line {
    width: 100%;
}

.form-status {
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.form-status.success { color: var(--accent-green); }
.form-status.error { color: var(--accent-red); }

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.contact-card:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 212, 255, 0.08);
    flex-shrink: 0;
}

.contact-card-icon svg { width: 22px; height: 22px; color: var(--accent-cyan); }

.contact-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-card-value {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
}

a.contact-card-value:hover { color: var(--accent-cyan); }

.cooperation-types {
    margin-top: 24px;
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.cooperation-types h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.coop-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.coop-tag {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
    transition: all var(--transition);
}

.coop-tag:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-purple);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Chatbot
   ======================================== */
.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
}

.chatbot-toggle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    position: relative;
    transition: all var(--transition);
}

.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-toggle svg { width: 24px; height: 24px; color: white; }

.chatbot-icon-close { display: none; }
.chatbot.open .chatbot-icon-open { display: none; }
.chatbot.open .chatbot-icon-close { display: block; }

.chatbot-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.chatbot.open .chatbot-pulse { display: none; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.chatbot-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transition: all 0.3s ease;
}

.chatbot.open .chatbot-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.chatbot-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    display: block;
}

.chatbot-status {
    font-size: 11px;
    color: var(--accent-green);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    min-height: 200px;
}

.chat-msg { display: flex; }

.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.chat-msg.bot .chat-bubble {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

.suggestion-btn {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    transition: all var(--transition);
}

.suggestion-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

.chatbot-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    outline: none;
    font-size: 13px;
    transition: border-color var(--transition);
}

.chatbot-input input:focus { border-color: var(--accent-cyan); }

.chatbot-input button {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.chatbot-input button:hover { transform: scale(1.05); }
.chatbot-input button svg { width: 18px; height: 18px; color: white; }

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

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

/* Stagger children */
.reveal.visible .hero-tag,
.reveal.visible .stat-item,
.reveal.visible .hero-cta .btn {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured .blog-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }

    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }

    .hero-name {
        font-size: clamp(36px, 10vw, 64px);
    }

    .hero-stats { gap: 16px; }

    .stat-divider { display: none; }

    .stat-item {
        min-width: 100px;
    }

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

    .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

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

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

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

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

    .chatbot-panel {
        width: calc(100vw - 32px);
        right: -8px;
    }

    .scroll-indicator { display: none; }
}

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

    .hero-tags { gap: 8px; }

    .hero-tag {
        font-size: 12px;
        padding: 6px 14px;
    }

    .cert-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Light Theme Specific
   ======================================== */
[data-theme="light"] .hero-grid-bg { opacity: 0.06; }

[data-theme="light"] .terminal-window {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

[data-theme="light"] .terminal-header {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] #neural-canvas { opacity: 0.4; }

[data-theme="light"] .hero-overlay {
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg-primary) 75%);
}

[data-theme="light"] .loader-terminal,
[data-theme="light"] #loader {
    background: var(--bg-primary);
}

[data-theme="light"] .award-card,
[data-theme="light"] .project-card {
    background: rgba(255,255,255,0.9);
}

[data-theme="light"] .mobile-menu {
    background: rgba(248, 250, 252, 0.95);
}

/* ========================================
   SVG Icon Sizing
   ======================================== */
.tag-icon svg,
.skill-cat-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.tag-icon {
    display: inline-flex;
    align-items: center;
}

.skill-cat-icon {
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

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

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

.award-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-cyan);
}

.award-card.gold .award-icon { color: var(--accent-amber); }
.award-card.silver .award-icon { color: var(--accent-cyan); }
.award-card.special .award-icon { color: var(--accent-purple); }
.award-card.competition .award-icon { color: var(--accent-pink); }
.award-card.cert .award-icon { color: var(--accent-green); }

.chatbot-avatar svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* ========================================
   Timeline Default Expanded
   ======================================== */
.timeline-detail {
    max-height: 200px;
}

.timeline-item.expanded .timeline-detail {
    max-height: 200px;
}

/* (Modal CSS removed - projects now use detail pages) */

/* ========================================
   Hero Aurora Layer
   ======================================== */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    will-change: transform;
}

.ab-1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, #00d4ff, transparent 70%);
    top: -180px; left: -140px;
    animation: aurora-float-1 16s ease-in-out infinite alternate;
}
.ab-2 {
    width: 620px; height: 620px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    bottom: -240px; right: -180px;
    animation: aurora-float-2 20s ease-in-out infinite alternate;
}
.ab-3 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #10b981, transparent 70%);
    top: 30%; left: 55%;
    opacity: 0.12;
    animation: aurora-float-3 24s ease-in-out infinite alternate;
}

@keyframes aurora-float-1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(120px, 80px) scale(1.2); }
}
@keyframes aurora-float-2 {
    from { transform: translate(0, 0) scale(1.1); }
    to { transform: translate(-140px, -90px) scale(0.95); }
}
@keyframes aurora-float-3 {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-100px, 60px) rotate(40deg); }
}

[data-theme="light"] .aurora-blob { opacity: 0.13; }
[data-theme="light"] .ab-3 { opacity: 0.08; }

/* ========================================
   Section Ambient Glows
   ======================================== */
#about::before, #services::before, #projects::before,
#blog::before, #awards::before, #resume::before, #contact::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    height: 420px;
    background: radial-gradient(ellipse at top, var(--sect-glow, rgba(0,212,255,0.05)), transparent 70%);
    pointer-events: none;
}
#about { --sect-glow: rgba(0,212,255,0.055); }
#services { --sect-glow: rgba(16,185,129,0.06); }
#projects { --sect-glow: rgba(124,58,237,0.06); }
#blog { --sect-glow: rgba(236,72,153,0.05); }
#awards { --sect-glow: rgba(245,158,11,0.055); }
#resume { --sect-glow: rgba(0,212,255,0.05); }
#contact { --sect-glow: rgba(124,58,237,0.06); }

/* ========================================
   Timeline Scroll Fill
   ======================================== */
.timeline { position: relative; }
.timeline-fill {
    position: absolute;
    left: 11px;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
    border-radius: 2px;
    z-index: 1;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
    transition: height 0.15s linear;
}
.timeline-item .timeline-dot { z-index: 2; }
.timeline-item.lit .timeline-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}

/* ========================================
   Project Card Cover
   ======================================== */
.card-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.project-card:hover .card-cover { transform: scale(1.06); opacity: 1; }
.card-cover-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,8,13,0.1) 0%, rgba(6,8,13,0.55) 100%);
}
[data-theme="light"] .card-cover-veil {
    background: linear-gradient(180deg, rgba(248,250,252,0.05) 0%, rgba(248,250,252,0.4) 100%);
}
.card-image { position: relative; overflow: hidden; }
.card-image-pattern { position: absolute; inset: 0; }

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 34px 28px 30px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--svc);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px color-mix(in srgb, var(--svc) 18%, transparent);
}
.service-num {
    position: absolute;
    top: 14px; right: 20px;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--svc) 40%, transparent);
    opacity: 0.6;
    transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-num { opacity: 1; transform: translateY(-3px); }
.service-icon {
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--svc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--svc) 30%, transparent);
    color: var(--svc);
    margin-bottom: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 24px color-mix(in srgb, var(--svc) 35%, transparent);
}
.service-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.service-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}
.service-points { list-style: none; }
.service-points li {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-top: 1px dashed var(--border);
}
.service-points li svg {
    width: 14px; height: 14px;
    color: var(--svc);
    flex-shrink: 0;
}
.service-glow {
    position: absolute;
    bottom: -60px; left: 50%;
    transform: translateX(-50%);
    width: 220px; height: 120px;
    background: radial-gradient(ellipse, var(--svc), transparent 70%);
    opacity: 0;
    filter: blur(30px);
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.service-card:hover .service-glow { opacity: 0.14; }
.services-cta {
    margin-top: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.services-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* ========================================
   Blog Filters & Glyph
   ======================================== */
.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}
.blog-image { overflow: hidden; }
.blog-image-glyph {
    position: absolute;
    right: 14px; top: 6px;
    font-family: var(--font-mono);
    font-size: 88px;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    pointer-events: none;
    transition: transform 0.5s ease, color 0.5s ease;
}
.blog-card:hover .blog-image-glyph { transform: translateY(-6px) rotate(-6deg); color: rgba(255,255,255,0.2); }
.blog-card.hidden { display: none; }

/* ========================================
   Charts Panel
   ======================================== */
.charts-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 56px;
}
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.chart-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}
.chart-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    color: var(--accent-cyan);
}
.chart-title svg { width: 19px; height: 19px; }
.chart-box { position: relative; height: 320px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.donut-box { display: flex; align-items: center; gap: 18px; }
.donut-box canvas { flex: 1; min-width: 0; height: 260px; }
.donut-legend { display: flex; flex-direction: column; gap: 12px; min-width: 118px; }
.donut-legend-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-secondary); }
.donut-legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.donut-legend-val { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }

/* ========================================
   Back To Top
   ======================================== */
.back-to-top {
    position: fixed;
    right: 26px; bottom: 96px;
    width: 48px; height: 48px;
    z-index: 900;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--accent-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-track { fill: none; stroke: var(--border); stroke-width: 2; }
.btt-progress {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 131.9;
    stroke-dashoffset: 131.9;
}
.btt-arrow { width: 18px; height: 18px; position: relative; }

/* ========================================
   Chatbot Input
   ======================================== */
.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--glass);
}
.chatbot-input input {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition);
}
.chatbot-input input:focus { border-color: var(--accent-cyan); }
.chatbot-input button {
    width: 38px; height: 38px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
}
.chatbot-input button:hover { transform: scale(1.08); box-shadow: var(--glow-cyan); }
.chatbot-input button svg { width: 16px; height: 16px; }

/* ========================================
   Site Lightbox (photos / certs)
   ======================================== */
#site-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#site-lightbox.active { opacity: 1; visibility: visible; }
#site-lightbox .lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
#site-lightbox .lightbox-content {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 85vh;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#site-lightbox .lightbox-img {
    max-width: 90vw; max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2,0.9,0.3,1.1), opacity 0.3s ease;
}
#site-lightbox.active .lightbox-img { transform: scale(1); opacity: 1; }
#site-lightbox .lightbox-img.switching { opacity: 0; transform: scale(0.96); }
.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px 18px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}
#site-lightbox .lightbox-close,
#site-lightbox .lightbox-prev,
#site-lightbox .lightbox-next {
    position: absolute; z-index: 2;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    transition: all var(--transition);
}
#site-lightbox .lightbox-close:hover,
#site-lightbox .lightbox-prev:hover,
#site-lightbox .lightbox-next:hover {
    background: rgba(0,212,255,0.2);
    border-color: var(--accent-cyan);
}
#site-lightbox .lightbox-close { top: 22px; right: 22px; }
#site-lightbox .lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
#site-lightbox .lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
#site-lightbox .lightbox-close svg,
#site-lightbox .lightbox-prev svg,
#site-lightbox .lightbox-next svg { width: 20px; height: 20px; }
#site-lightbox .lightbox-counter {
    position: absolute; z-index: 2;
    bottom: 24px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    background: rgba(0,0,0,0.4);
    padding: 4px 16px;
    border-radius: 100px;
}
.waterfall-item { cursor: zoom-in; }

/* ========================================
   Admin Gate (secret entry)
   ======================================== */
.footer-logo { cursor: pointer; position: relative; user-select: none; }
.footer-logo.gate-pulse { animation: gate-pulse 0.4s ease; }
@keyframes gate-pulse {
    0% { text-shadow: 0 0 0 rgba(0,212,255,0); }
    50% { text-shadow: 0 0 22px rgba(0,212,255,0.9); transform: scale(1.06); }
    100% { text-shadow: 0 0 0 rgba(0,212,255,0); }
}
.gate-dots {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 4px;
}
.gate-dots i {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
    animation: dot-pop 0.25s cubic-bezier(0.2,0.9,0.3,1.4) both;
}
@keyframes dot-pop { from { transform: scale(0); } }

.admin-gate {
    position: fixed; inset: 0;
    z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.admin-gate.open { opacity: 1; visibility: visible; }
.admin-gate-backdrop {
    position: absolute; inset: 0;
    background: rgba(3,5,9,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.admin-gate-card {
    position: relative;
    width: min(400px, 92vw);
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 50px rgba(0,212,255,0.08);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.3,1.15);
}
.admin-gate.open .admin-gate-card { transform: translateY(0) scale(1); }
.admin-gate-body { padding: 28px 28px 22px; text-align: center; }
.admin-gate-logo {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    text-shadow: 0 0 22px rgba(0,212,255,0.5);
}
.admin-gate-sub {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 2px;
    color: var(--text-muted);
    margin: 6px 0 22px;
}
.gate-field { margin-bottom: 14px; text-align: left; }
.gate-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.gate-field input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.gate-field input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.12); }
.gate-error { min-height: 20px; font-size: 12.5px; color: var(--accent-red); margin-bottom: 6px; }
.gate-error.shake { animation: gate-shake 0.4s ease; }
@keyframes gate-shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.gate-submit { width: 100%; justify-content: center; }
.gate-cancel {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.gate-cancel:hover { color: var(--text-primary); }

/* ========================================
   Extra Motion & Reveal Variants
   ======================================== */
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.9,0.3,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.service-card.reveal { transition-delay: calc(var(--delay, 0) * 0.12s); }

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-dec-1 { animation: float-slow 7s ease-in-out infinite; }
.hero-dec-2 { animation: float-slow 9s ease-in-out infinite reverse; }

/* ========================================
   New Components — Responsive
   ======================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .charts-panel { grid-template-columns: 1fr; }
    .nav-link { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
    .chart-box { height: 280px; }
    .donut-box { flex-direction: column; }
    .donut-box canvas { width: 100%; height: 220px; }
    .donut-legend { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; min-width: 0; }
    .back-to-top { right: 16px; bottom: 88px; width: 42px; height: 42px; }
    #site-lightbox .lightbox-prev { left: 8px; }
    #site-lightbox .lightbox-next { right: 8px; }
    #site-lightbox .lightbox-close { top: 12px; right: 12px; }
    .services-cta { flex-direction: column; gap: 14px; }
}

@media (max-width: 480px) {
    .service-card { padding: 26px 20px 24px; }
    .service-num { font-size: 40px; }
    .chart-card { padding: 18px; }
    .admin-gate-body { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob, .hero-dec-1, .hero-dec-2 { animation: none !important; }
    html { scroll-behavior: auto; }
}
