/* ========== IMPORTS & RESET ========== */

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

/* ========== THEME VARIABLES ========== */
:root {
    /* Accent colors — rich but not neon */
    --neon-pink: #e07098;
    --neon-cyan: #58c4dc;
    --neon-green: #5eeba0;

    /* Backgrounds */
    --bg-dark: #0a0c14;
    --bg-card: rgba(12, 14, 24, 0.85);
    --bg-terminal: rgba(10, 12, 22, 0.95);
    --bg-terminal-header: rgba(20, 24, 40, 0.9);

    /* Text */
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --text-heading: #fff;
    --text-faint: rgba(255, 255, 255, 0.2);

    /* Borders & glows */
    --border-subtle: rgba(88, 196, 220, 0.1);
    --border-hover: rgba(88, 196, 220, 0.25);
    --cyan-glow-sm: rgba(88, 196, 220, 0.05);
    --cyan-glow-fill: rgba(88, 196, 220, 0.05);
    --cyan-glow-fill-hover: rgba(88, 196, 220, 0.1);
    --cyan-glow-md: rgba(88, 196, 220, 0.15);
    --cyan-glow-lg: rgba(88, 196, 220, 0.25);
    --cyan-text-glow: rgba(88, 196, 220, 0.4);
    --pink-glow-md: rgba(224, 112, 152, 0.1);
    --pink-glow-sm: rgba(224, 112, 152, 0.05);
    --pink-border: rgba(224, 112, 152, 0.2);
    --grid-line: rgba(88, 196, 220, 0.03);
    --nav-bg: rgba(10, 12, 20, 0.95);
    --nav-mobile-bg: rgba(10, 12, 20, 0.98);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --bar-bg: rgba(255, 255, 255, 0.05);

    /* Cursor glow */
    --cursor-blend: screen;

    /* Glass */
    --glass-bg: rgba(12, 14, 24, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-blur: 12px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);

    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Type scale */
    --text-xl: 3.5rem;    /* hero title */
    --text-lg: 1.8rem;    /* section titles, stat numbers */
    --text-md: 1.1rem;    /* subheadings, card titles */
    --text-sm: 0.875rem;  /* body, nav, terminal */
    --text-xs: 0.75rem;   /* labels, tags, captions */

    /* Spacing scale (8px-based) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 1rem;      /* 16px */
    --space-4: 1.5rem;    /* 24px */
    --space-5: 2rem;      /* 32px */
    --space-6: 3rem;      /* 48px */
    --space-7: 4rem;      /* 64px */
    --space-8: 6rem;      /* 96px */
    --space-9: 8rem;      /* 128px */

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Terminal dot colors */
    --dot-red: #ff5f57;
    --dot-yellow: #ffbd2e;
    --dot-green: #28c840;

    /* Theme transition */
    --theme-transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ========== LIGHT THEME ========== */
[data-theme="light"] {
    /* Accent colors — warm earth tones, no blue at all */
    --neon-pink: #c2785a;
    --neon-cyan: #8b6d5c;
    --neon-green: #7a8b5c;

    /* Warm parchment backgrounds */
    --bg-dark: #f5f0e8;
    --bg-card: rgba(245, 238, 225, 0.95);
    --bg-terminal: rgba(240, 234, 220, 0.98);
    --bg-terminal-header: rgba(228, 220, 205, 0.95);

    /* Rich dark text */
    --text-primary: #3d3328;
    --text-secondary: #7a6e60;
    --text-heading: #2a1f14;
    --text-faint: rgba(0, 0, 0, 0.08);

    /* Borders — warm, subtle */
    --border-subtle: rgba(139, 109, 92, 0.12);
    --border-hover: rgba(139, 109, 92, 0.25);
    --cyan-glow-sm: rgba(139, 109, 92, 0.04);
    --cyan-glow-fill: rgba(139, 109, 92, 0.04);
    --cyan-glow-fill-hover: rgba(139, 109, 92, 0.08);
    --cyan-glow-md: rgba(139, 109, 92, 0.10);
    --pink-glow-md: rgba(194, 120, 90, 0.08);
    --pink-glow-sm: rgba(194, 120, 90, 0.04);
    --pink-border: rgba(194, 120, 90, 0.15);
    --grid-line: rgba(0, 0, 0, 0.03);
    --nav-bg: rgba(245, 240, 232, 0.95);
    --nav-mobile-bg: rgba(245, 240, 232, 0.98);
    --shadow-dark: rgba(0, 0, 0, 0.04);
    --bar-bg: rgba(0, 0, 0, 0.04);

    --cursor-blend: multiply;

    /* Terminal dots — muted earth */
    --dot-red: #c27856;
    --dot-yellow: #b89a5a;
    --dot-green: #7a9464;

    /* Glass → Paper: opaque, no blur, shadow-based depth */
    --glass-bg: rgba(245, 238, 225, 0.85);
    --glass-border: rgba(0, 0, 0, 0.04);
    --glass-border-hover: rgba(0, 0, 0, 0.08);
    --glass-blur: 0px;
    --glass-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
    --glass-highlight: none;
}

/* ========== LIGHT THEME OVERRIDES — "ATELIER" PERSONALITY ========== */

/* ── LIGHT THEME: COMPLETE TYPOGRAPHY SYSTEM ──
   Pinyon Script  → signature (hero name)
   Cormorant Garamond → headings, nav, section titles
   Caveat         → handwritten accents (tagline, footer note)
   Lora           → body, journal, timeline, publications
*/

/* Typography: completely different font family — humanist, literary */
[data-theme="light"] .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 2rem;
}

/* Signature font — Herr Von Muellerhoff: wild artistic signature */
[data-theme="light"] .glitch {
    font-family: 'Herr Von Muellerhoff', cursive;
    font-weight: 400;
    font-size: 6.5rem;
    letter-spacing: 0.02em;
    color: var(--text-heading);
    text-shadow: none;
}

/* Reset ornament to simple */
[data-theme="light"] .hero-ornament {
    width: 60px;
    height: 2px;
    margin-top: var(--space-4);
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    opacity: 0.6;
    transform: none;
}

[data-theme="light"] .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

[data-theme="light"] .timeline-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Body text: warm literary serif */
[data-theme="light"] .journal-text,
[data-theme="light"] .journal-body,
[data-theme="light"] .contact-letter .journal-text,
[data-theme="light"] .timeline-details li,
[data-theme="light"] .pub-content h3 {
    font-family: 'Lora', serif;
}

[data-theme="light"] .hero-subtitle {
    font-family: 'Lora', serif;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: var(--text-secondary);
}

[data-theme="light"] .hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: normal;
}

/* Nav: elegant serif */
[data-theme="light"] .nav-link {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    text-transform: none;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Footer: handwritten closing note */
[data-theme="light"] .footer-links a {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    text-transform: none;
    font-weight: 600;
}

[data-theme="light"] .footer-text {
    font-family: 'Caveat', cursive;
    font-style: normal;
    font-size: 1.1rem;
}

/* Small labels: Lora light for dates, venues */
[data-theme="light"] .timeline-company {
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--neon-pink);
}

[data-theme="light"] .timeline-date {
    font-family: 'Lora', serif;
    font-style: italic;
}

[data-theme="light"] .pub-venue,
[data-theme="light"] .pub-authors {
    font-family: 'Lora', serif;
}

/* Section subtitles: handwritten accent */
[data-theme="light"] .section-subtitle,
[data-theme="light"] .research-focus {
    font-family: 'Caveat', cursive;
    font-style: normal;
    font-size: 1.2rem;
    letter-spacing: normal;
}

/* Hide code-style decorations — too technical for art mode */
[data-theme="light"] .title-decoration {
    display: none;
}

/* Cards: no glass, just paper with soft shadow */
[data-theme="light"] .neon-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
}

[data-theme="light"] .neon-card::before {
    display: none;
}

[data-theme="light"] .neon-card::after {
    display: none;
}

[data-theme="light"] .neon-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.05);
}

/* Terminal → Notebook feel */
[data-theme="light"] .terminal-window {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

[data-theme="light"] .terminal-header {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .terminal-body {
    background-image: none;
}

/* Stat cards: paper feel */
[data-theme="light"] .stat-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
}

[data-theme="light"] .stat-card:hover {
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.05);
}

/* Buttons: text links with understated underline — literary, not techy */
[data-theme="light"] .neon-btn {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    color: var(--text-heading);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.4rem 0;
}

[data-theme="light"] .neon-btn:hover {
    background: transparent;
    border-color: var(--text-heading);
    box-shadow: none;
}

[data-theme="light"] .neon-btn.alt {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

[data-theme="light"] .neon-btn.alt:hover {
    background: transparent;
    border-color: var(--neon-pink);
    box-shadow: none;
}

[data-theme="light"] .substack-submit {
    border: none !important;
    border-bottom: 1px solid var(--neon-pink) !important;
    color: var(--neon-pink) !important;
    border-radius: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.4rem 0;
}

[data-theme="light"] .substack-submit:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Hero: completely different atmosphere */
[data-theme="light"] .hero-content {
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: var(--space-8) var(--space-6);
    box-shadow: none;
}

/* Canvas stays visible in both themes — each draws differently */

/* Hero title: handled in typography section above */

[data-theme="light"] .apple-logo {
    opacity: 0.5;
}

/* Contact item: paper card */
[data-theme="light"] .contact-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* Footer: warm, no glass */
[data-theme="light"] footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(240, 234, 220, 0.9);
    border-top: 1px solid rgba(0,0,0,0.04);
    box-shadow: none;
}

[data-theme="light"] .footer-gradient {
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    opacity: 0.15;
}

/* Header: warm, no glass effect */
[data-theme="light"] header.scrolled {
    background: rgba(245, 240, 232, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Timeline: warm colors — handled in layout section */

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
}

/* Logo */
[data-theme="light"] .logo-mark {
    filter: none;
    color: var(--neon-pink);
}

/* Selection */
[data-theme="light"] ::selection {
    background: var(--neon-pink);
    color: #fff;
}

/* Light theme: typewriter → handwritten signature */
[data-theme="light"] .typewriter {
    font-family: 'Caveat', cursive;
    color: #5a7a4a;
    font-style: normal;
    font-weight: 500;
    font-size: 1.4rem;
}

[data-theme="light"] .cursor {
    display: none;
}

/* Handwriting reveal: text appears as if written by hand */
[data-theme="light"] #typewriter-text {
    display: inline-block;
    background: linear-gradient(90deg, #5a7a4a 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: handwrite-reveal 2.5s var(--ease-out) forwards;
}

@keyframes handwrite-reveal {
    to {
        background-position: 0 0;
    }
}

/* Light theme: tech tags hidden in layout section above */
[data-theme="light"] .tech-tags span {
    border-color: transparent;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

/* Light theme: scroll indicator — hide completely (too technical) */
[data-theme="light"] .scroll-indicator {
    display: none;
}

/* ── LIGHT THEME: LAYOUT TRANSFORMATION ──────────────────────────────────
   Dark = portfolio for peers. Light = personal world for curious minds.
   Hide resume artifacts, open up the layout, let content breathe. */

/* About: full-width journal, hide stats grid */
[data-theme="light"] .about-content {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

[data-theme="light"] .stats-grid {
    display: none;
}

/* Timeline: remove the mechanical timeline line and markers */
[data-theme="light"] .timeline::before {
    display: none;
}

[data-theme="light"] .timeline-marker {
    display: none;
}

[data-theme="light"] .timeline-item {
    padding-left: 0;
    margin-bottom: var(--space-5);
}

/* Timeline cards: simpler, no tech tags */
[data-theme="light"] .tech-tags {
    display: none;
}

[data-theme="light"] .timeline-content {
    border: none;
    border-left: 2px solid var(--neon-pink);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: var(--space-3) var(--space-5);
}

[data-theme="light"] .timeline-content::before,
[data-theme="light"] .timeline-content::after {
    display: none;
}

[data-theme="light"] .timeline-content:hover {
    transform: none;
    box-shadow: none;
}

/* Timeline details: more prose-like */
[data-theme="light"] .timeline-details li {
    font-family: var(--font-body);
    color: var(--text-primary);
    padding-left: 0;
}

[data-theme="light"] .timeline-details li::before {
    display: none;
}

/* Publications: hide the big colored year, simpler layout */
[data-theme="light"] .pub-card {
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

[data-theme="light"] .pub-card::before,
[data-theme="light"] .pub-card::after {
    display: none;
}

[data-theme="light"] .pub-card:hover {
    transform: none;
    box-shadow: none;
}

[data-theme="light"] .pub-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-pink);
    border-right: none;
    padding-right: var(--space-3);
    min-width: 60px;
}

/* Blog section: keep but simpler CTA */
[data-theme="light"] .view-all-btn {
    border-radius: 999px;
}

/* Light theme: warm gallery ambient light — via full-page CSS gradients, no hard edges */
[data-theme="light"] body {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(212, 165, 116, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(196, 154, 175, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 184, 156, 0.03) 0%, transparent 50%),
        var(--bg-dark);
}

/* Hide tech orbs entirely */
[data-theme="light"] .gradient-orbs {
    display: none;
}

/* Smooth transitions on theme switch */
body, header, .neon-card, .neon-btn, footer,
.terminal-window, .stat-card, .contact-item,
.filter-btn, .gradient-orbs, .orb {
    transition: var(--theme-transition);
}

/* Theme-specific content toggle */
.dark-only { display: block; }
.light-only { display: none; }
[data-theme="light"] .dark-only { display: none; }
[data-theme="light"] .light-only { display: block; }
span.dark-only { display: inline; }
span.light-only { display: none; }
[data-theme="light"] span.dark-only { display: none; }
[data-theme="light"] span.light-only { display: inline; }
div.dark-only { display: block; }
div.light-only { display: none; }
[data-theme="light"] div.dark-only { display: none; }
[data-theme="light"] div.light-only { display: block; }
p.dark-only { display: block; }
p.light-only { display: none; }
[data-theme="light"] p.dark-only { display: none; }
[data-theme="light"] p.light-only { display: block; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--neon-cyan);
    color: #0a0c14;
}

/* ========== BACKGROUND: DOT GRID (dark) / PAPER TEXTURE (light) ========== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.15) 70%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.15) 70%);
}

[data-theme="light"] .grid-bg {
    opacity: 0;
    background: none;
}

/* Paper texture overlay for light theme */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 512px 512px;
    mix-blend-mode: multiply;
}

[data-theme="light"] .paper-texture {
    opacity: 1;
}

.gen-art-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s var(--ease-out);
}

/* ========== HEADER & NAV ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s var(--ease-out);
    background: transparent;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    color: var(--neon-cyan);
    position: relative;
}

.logo-mark {
    width: 48px;
    height: 48px;
    color: var(--neon-cyan);
    transition: all 0.3s var(--ease-out);
}

.logo:hover .logo-mark {
    filter: drop-shadow(0 0 8px var(--cyan-text-glow));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border: 1px solid transparent;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 1px;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-cyan);
    border-color: var(--border-hover);
    background: var(--cyan-glow-fill);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    width: 52px;
    height: 28px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-hover);
    background: var(--bg-card);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-left: 0.5rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--neon-cyan);
}

.theme-toggle-slider {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-cyan);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(24px);
}

.theme-toggle-icon-dark,
.theme-toggle-icon-light {
    position: absolute;
    font-size: 12px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.theme-toggle-icon-dark {
    right: 7px;
    opacity: 0.4;
}

.theme-toggle-icon-light {
    left: 7px;
    opacity: 0.4;
}

[data-theme="light"] .theme-toggle-icon-dark {
    opacity: 0.4;
}

[data-theme="light"] .theme-toggle-icon-light {
    opacity: 0.4;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s var(--ease-out);
}

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

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

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

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--space-5);
    overflow: hidden;
}

.hero-content {
    width: min(800px, 90vw);
    animation: hero-enter 0.8s var(--ease-out) both;
}

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

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: var(--space-4);
}

.hero-ornament {
    width: 60px;
    height: 2px;
    margin: var(--space-4) auto 0;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 1px;
    opacity: 0.6;
}

.glitch {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--text-heading);
    position: relative;
    text-shadow: 0 0 30px rgba(88, 196, 220, 0.3), 0 0 60px rgba(88, 196, 220, 0.1);
    letter-spacing: 0.06em;
}

.glitch::before,
.glitch::after {
    display: none;
}

/* Typewriter */
.typewriter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-md);
    color: var(--neon-green);
    margin-bottom: var(--space-4);
    min-height: 2rem;
}

.cursor {
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: 2px;
}

.apple-logo {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.05em;
    fill: currentColor;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-7);
}

.neon-btn {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 2px;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    text-transform: uppercase;
}

.neon-btn:hover {
    background: var(--cyan-glow-fill-hover);
    border-color: var(--neon-cyan);
}

.neon-btn.alt {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.neon-btn.alt:hover {
    background: var(--pink-glow-md);
    border-color: var(--neon-pink);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-lg);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ========== SECTIONS COMMON ========== */
section {
    padding: var(--space-9) var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

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

/* Stagger children within visible sections */
.timeline-item,
.stat-card,
.pub-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

section.visible .timeline-item,
section.visible .stat-card,
section.visible .pub-card {
    opacity: 1;
    transform: translateY(0);
}

section.visible .timeline-item:nth-child(1),
section.visible .stat-card:nth-child(1),
section.visible .pub-card:nth-child(1) { transition-delay: 0.1s; }

section.visible .timeline-item:nth-child(2),
section.visible .stat-card:nth-child(2),
section.visible .pub-card:nth-child(2) { transition-delay: 0.2s; }

section.visible .timeline-item:nth-child(3),
section.visible .stat-card:nth-child(3),
section.visible .pub-card:nth-child(3) { transition-delay: 0.3s; }

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

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    text-align: center;
    margin-bottom: var(--space-7);
    color: var(--text-heading);
    letter-spacing: 3px;
}

.title-decoration {
    color: var(--neon-pink);
    opacity: 0.4;
    font-size: 0.7em;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: calc(-1 * var(--space-5));
    margin-bottom: var(--space-6);
}

/* ========== NEON CARD ========== */
.neon-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.neon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-highlight);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.neon-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(88, 196, 220, 0.08), 0 16px 48px rgba(0, 0, 0, 0.2);
}

.neon-card:hover::before {
    opacity: 0.6;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
    align-items: start;
}

/* Terminal */
.terminal-window {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--dot-red); }
.terminal-dot.yellow { background: var(--dot-yellow); }
.terminal-dot.green { background: var(--dot-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.8;
    position: relative;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1.8em,
        rgba(255, 255, 255, 0.03) 1.8em,
        rgba(255, 255, 255, 0.03) 3.6em
    );
}

.terminal-line {
    color: var(--text-heading);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.prompt {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-subtle);
}

.terminal-line--spaced {
    margin-top: var(--space-4);
}

.terminal-output--compact {
    margin-bottom: var(--space-2);
}

.cursor-blink {
    color: var(--neon-green);
    animation: blink 0.8s infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.stat-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(88, 196, 220, 0.08), 0 12px 36px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: var(--space-2);
}

.stat-icon {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    color: rgba(255, 255, 255, 0.06);
    font-size: 1.2rem;
}

/* Stat number color cycling */
.stat-card:nth-child(1) .stat-number { color: var(--neon-cyan); }
.stat-card:nth-child(2) .stat-number { color: var(--neon-pink); }
.stat-card:nth-child(3) .stat-number { color: var(--neon-green); }
.stat-card:nth-child(4) .stat-number { color: var(--neon-cyan); }

/* ========== EXPERIENCE SECTION ========== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-pink), transparent);
    box-shadow: 0 0 12px rgba(88, 196, 220, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--space-6);
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    box-shadow: inset 0 0 10px rgba(88, 196, 220, 0.2), 0 0 15px rgba(88, 196, 220, 0.15);
    z-index: 2;
}

.walmart-spark {
    width: 1.5em;
    height: 1.5em;
    fill: currentColor;
}

.timeline-content {
    padding: var(--space-5) var(--space-6);
}

.timeline-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-md);
    color: var(--text-heading);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--neon-pink);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-3);
}

.timeline-details {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.timeline-details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========== PUBLICATIONS SECTION ========== */
.research-focus {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-6);
    margin-top: calc(-1 * var(--space-5));
}

.pub-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.pub-card {
    display: flex;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
}

.pub-year {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-pink);
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid rgba(224, 112, 152, 0.5);
    padding-right: 1.5rem;
}

.pub-content {
    flex: 1;
}

.pub-content h3 {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.pub-content h3 a:hover {
    color: var(--neon-cyan);
}

.pub-authors {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.pub-venue {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pub-link {
    display: flex;
    align-items: center;
}

.pub-link a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s var(--ease-out);
    padding: 0.5rem;
}

.pub-link a:hover {
    color: var(--neon-cyan);
}

/* ========== CONTACT SECTION ========== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-terminal {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    text-align: left;
}

.contact-details {
    margin-top: var(--space-3);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s var(--ease-out);
    margin: 0.3rem;
}

.contact-item:hover {
    background: var(--cyan-glow-fill-hover);
    border-color: var(--neon-cyan);
}

.blog-fallback {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-5);
}

.blog-fallback a {
    color: var(--neon-cyan);
}

[data-theme="light"] .blog-fallback a {
    color: var(--neon-pink);
}

/* ========== JOURNAL (light theme alternative to terminal) ========== */
.journal-window {
    background: var(--glass-bg);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.journal-body {
    padding: var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.9;
    color: var(--text-primary);
}

.journal-text {
    margin-bottom: var(--space-4);
}

.journal-text:last-child {
    margin-bottom: 0;
}

/* Contact letter variant */
.contact-letter {
    padding: var(--space-5);
    text-align: left;
}

.contact-letter .journal-text {
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.8;
    color: var(--text-primary);
}

.contact-subscribe-intro {
    margin-top: var(--space-4);
}

/* ========== FOOTER ========== */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: var(--space-7) var(--space-5) var(--space-5);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease-out);
}

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

.footer-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--cyan-glow-md) 0%, transparent 70%);
    mix-blend-mode: var(--cursor-blend);
    opacity: 0.4;
}

/* ========== HERO BORDER ========== */
.hero-content {
    position: relative;
    padding: var(--space-6);
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* ========== DARK THEME: VIGNETTE FOR DEPTH ========== */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(6, 8, 14, 0.5) 100%);
}

/* ========== GRADIENT ORBS ========== */
.gradient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.25;
    mix-blend-mode: screen;
    will-change: transform;
}

.orb-cyan {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, transparent 5%, var(--neon-cyan) 25%, rgba(88, 196, 220, 0.2) 50%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: orb-drift-1 25s ease-in-out infinite;
}

.orb-pink {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, transparent 5%, var(--neon-pink) 25%, rgba(224, 112, 152, 0.2) 50%, transparent 70%);
    top: 40%;
    right: -8%;
    animation: orb-drift-2 30s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(120px, 80px) scale(1.1); }
    50% { transform: translate(50px, -60px) scale(0.9); }
    75% { transform: translate(-50px, 40px) scale(1.05); }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-100px, -70px) scale(1.08); }
    50% { transform: translate(-40px, 60px) scale(0.92); }
    75% { transform: translate(70px, -30px) scale(1.06); }
}

/* ========== FOCUS-VISIBLE (keyboard accessibility) ========== */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

.nav-link:focus-visible,
.theme-toggle:focus-visible,
.hamburger:focus-visible,
.neon-btn:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.neon-card:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
    border-radius: var(--radius-lg);
}

/* ========== CLICK RIPPLE ========== */
.ripple {
    position: absolute;
    border-radius: 50%;
    width: 0;
    height: 0;
    background: var(--neon-cyan);
    opacity: 0.4;
    transform: translate(-50%, -50%);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

.neon-btn.alt .ripple {
    background: var(--neon-pink);
}

@keyframes ripple-expand {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ========== LARGE SCREEN ========== */
@media (min-width: 969px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .edu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

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

    .hamburger {
        display: flex;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: var(--text-sm);
    }

    .hero-subtitle {
        font-size: var(--text-sm);
    }

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

    section {
        padding: var(--space-8) var(--space-4);
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 0;
        width: 30px;
        height: 30px;
    }

    .pub-card {
        flex-direction: column;
        gap: 0.8rem;
    }

    .pub-year {
        border-right: none;
        border-bottom: 2px solid var(--pink-border);
        padding-right: 0;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
    }

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

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* ========== SUBSCRIBE FORM (in contact) ========== */
.substack-input-row {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.substack-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-terminal);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.6rem var(--space-3);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.2s;
}

.substack-input:focus {
    border-color: var(--neon-cyan);
}

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

/* Light theme: input matches paper aesthetic */
[data-theme="light"] .substack-input {
    background: rgba(240, 234, 220, 0.6);
    border: 1px solid rgba(139, 109, 92, 0.2);
    border-radius: var(--radius-sm);
    font-family: 'Lora', serif;
}

[data-theme="light"] .substack-input:focus {
    border-color: var(--neon-pink);
}

.substack-submit {
    white-space: nowrap;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

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

    .gradient-orbs {
        display: none;
    }
}
