/* Modern Portfolio CSS with Creative Effects */

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

:root {
    /* Dark theme (default) */
    --primary-bg: #08080c;
    --secondary-bg: #0f0f17;
    --accent-pink: #ff2d87;
    --accent-purple: #b46bff;
    --accent-cyan: #2dd4ff;
    --accent-yellow: #fbbf24;
    --text-primary: #f4f3f8;
    --text-secondary: #a0a0b2;
    --card-bg: rgba(255, 255, 255, 0.035);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.09);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --glow-pink: rgba(255, 45, 135, 0.55);
    --glow-purple: rgba(180, 107, 255, 0.5);
    --glow-cyan: rgba(45, 212, 255, 0.45);

    /* Design tokens */
    --grad-brand: linear-gradient(120deg, var(--accent-pink), var(--accent-purple) 55%, var(--accent-cyan));
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.5);
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Light theme - Clean Sega Magazine inspired (no pink, cool blues only) */
[data-theme="light"] {
    --primary-bg: #f8f9fa;
    --secondary-bg: #ffffff;
    --accent-pink: #0066CC;
    --accent-purple: #0052A3;
    --accent-cyan: #0088CC;
    --accent-yellow: #1E88E5;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 82, 163, 0.12);
    --glow-pink: transparent;
    --glow-purple: transparent;
    --glow-cyan: transparent;
    --grad-brand: linear-gradient(120deg, #0066CC, #0088CC 55%, #0052A3);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
}

/* Custom Cursor - Removed (was distracting) */
.cursor-glow,
.cursor-dot {
    display: none;
}

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

body {
    font-family: var(--font-body);
    background:
        radial-gradient(900px 600px at 12% -5%, rgba(255, 45, 135, 0.10), transparent 60%),
        radial-gradient(1000px 700px at 95% 8%, rgba(180, 107, 255, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(45, 212, 255, 0.06), transparent 55%),
        linear-gradient(160deg, #08080f 0%, #110f1d 45%, #0a0c14 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: 0.1px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transition: background 0.5s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background:
        radial-gradient(900px 600px at 10% -5%, rgba(0, 102, 204, 0.06), transparent 60%),
        radial-gradient(900px 600px at 95% 5%, rgba(0, 136, 204, 0.05), transparent 60%),
        linear-gradient(160deg, #eef3f9 0%, #ffffff 50%, #f6f9fc 100%);
    background-attachment: fixed;
}

/* Display font for all headings + tighter optical tracking */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .stat-number {
    font-family: var(--font-display);
    font-feature-settings: "ss01" 1, "cv01" 1;
}

::selection {
    background: var(--accent-pink);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Bolder typography for light theme readability */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .section-title {
    font-weight: 700;
}

[data-theme="light"] p,
[data-theme="light"] a,
[data-theme="light"] .nav-links a {
    font-weight: 500;
}

/* Dark blue/gray grid for light theme (Sega magazine style) */
[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Floating film strips */
.film-strip {
    position: fixed;
    width: 60px;
    height: 200px;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 110, 0.03) 0px,
        rgba(255, 0, 110, 0.03) 15px,
        transparent 15px,
        transparent 20px
    );
    border-left: 8px solid rgba(255, 0, 110, 0.05);
    border-right: 8px solid rgba(255, 0, 110, 0.05);
    opacity: 0.5;
    animation: floatFilm 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.film-strip:nth-child(2) { left: 5%; top: 10%; animation-delay: 0s; }
.film-strip:nth-child(3) { right: 8%; top: 60%; animation-delay: -5s; }
.film-strip:nth-child(4) { left: 85%; top: 20%; animation-delay: -10s; }

@keyframes floatFilm {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 14, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    letter-spacing: -0.5px;
}

.clickable-name {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
    display: inline-block;
}

.clickable-name:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
    transform: scale(1.05);
}

.clickable-name:active {
    transform: scale(0.95);
}

.clickable-name::after {
    content: '✨';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.clickable-name:hover::after {
    opacity: 1;
    right: -30px;
}

.tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transition: width 0.3s var(--ease-out);
}

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

.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-pink);
}

/* ---- 8-bit hover speech bubble ---- */
.social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* Fixed row height so tips line up even though the icons differ in size */
    height: 30px;
}

.pixel-tip {
    --tip-bg: #16161f;
    --tip-edge: var(--accent-pink);
    --tip-fg: #ffffff;

    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    z-index: 20;

    padding: 9px 11px;
    background: var(--tip-bg);
    color: var(--tip-fg);

    font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);

    /* Stepped "pixel" frame: inner 4px bg ring, outer 4px accent ring.
       Earlier shadows paint on top, so bg (4px) sits over edge (8px). */
    box-shadow:
        0 -4px 0 var(--tip-bg),   0 4px 0 var(--tip-bg),
        -4px 0 0 var(--tip-bg),   4px 0 0 var(--tip-bg),
        0 -8px 0 var(--tip-edge), 0 8px 0 var(--tip-edge),
        -8px 0 0 var(--tip-edge), 8px 0 0 var(--tip-edge),
        -4px -4px 0 var(--tip-edge), 4px -4px 0 var(--tip-edge),
        -4px 4px 0 var(--tip-edge), 4px 4px 0 var(--tip-edge),
        0 0 20px var(--glow-pink);
}

/* Two-step pixel tail pointing up at the icon */
.pixel-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    margin-left: -8px;
    bottom: calc(100% + 8px);
    width: 16px;
    height: 8px;
    background: var(--tip-edge);
    clip-path: polygon(25% 0, 75% 0, 75% 50%, 100% 50%, 100% 100%, 0 100%, 0 50%, 25% 50%);
}

.social-icons a:hover .pixel-tip,
.social-icons a:focus-visible .pixel-tip {
    opacity: 1;
    visibility: visible;
    animation:
        tipPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        tipBob 1.9s ease-in-out 0.42s infinite;
}

@keyframes tipPop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.55); }
    60%  { opacity: 1; transform: translateX(-50%) translateY(3px)  scale(1.07); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

@keyframes tipBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

[data-theme="light"] .pixel-tip {
    --tip-bg: #ffffff;
    --tip-fg: #14213d;
    box-shadow:
        0 -4px 0 var(--tip-bg),   0 4px 0 var(--tip-bg),
        -4px 0 0 var(--tip-bg),   4px 0 0 var(--tip-bg),
        0 -8px 0 var(--tip-edge), 0 8px 0 var(--tip-edge),
        -8px 0 0 var(--tip-edge), 8px 0 0 var(--tip-edge),
        -4px -4px 0 var(--tip-edge), 4px -4px 0 var(--tip-edge),
        -4px 4px 0 var(--tip-edge), 4px 4px 0 var(--tip-edge),
        0 6px 18px rgba(15, 23, 42, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .social-icons a:hover .pixel-tip,
    .social-icons a:focus-visible .pixel-tip {
        animation: none;
        transform: translateX(-50%);
    }
}

/* Touch devices have no hover — don't leave a bubble stuck on screen */
@media (hover: none) {
    .pixel-tip { display: none; }
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

[data-theme="light"] .theme-toggle {
    border: 1px solid rgba(0, 102, 204, 0.2);
    background: rgba(0, 102, 204, 0.05);
}

.theme-toggle:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: rotate(15deg) scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.theme-icon svg {
    transition: all 0.3s ease;
}

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

.theme-toggle:active .theme-icon {
    transform: rotate(180deg);
}

/* Mini Music Player - Retro Winamp Style */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 30, 0.95));
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 0, 110, 0.4);
    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 110, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mini-player:hover {
    border-color: rgba(255, 0, 110, 0.6);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 0, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Radio Station Name */
.player-radio-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.1rem;
    background: rgba(255, 0, 110, 0.1);
    border-radius: 3px;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* LCD Display Screen */
/* Display + seek bar stacked as one column */
.player-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.player-seek {
    display: flex;
    align-items: center;
    gap: 5px;
}

.seek-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: #4ade80;
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
    min-width: 24px;
    letter-spacing: -0.3px;
}

.seek-time:last-child { text-align: right; }

.seek-bar {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    width: 100%;
    height: 12px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.seek-bar:disabled { cursor: default; opacity: 0.5; }

/* WebKit track + thumb */
.seek-bar::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 2px;
    border: 1px solid #1a3a2a;
    background:
        linear-gradient(to right,
            var(--accent-pink) 0%,
            var(--accent-pink) var(--seek-pct, 0%),
            #0a2a1a var(--seek-pct, 0%),
            #0a2a1a 100%);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 14px;
    margin-top: -5px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.95), rgba(168, 85, 247, 0.95));
    border: 1px solid rgba(255, 0, 110, 0.6);
    box-shadow: 0 0 6px rgba(255, 0, 110, 0.6);
    transition: transform 0.15s ease;
}

.seek-bar:hover::-webkit-slider-thumb { transform: scale(1.15); }
.seek-bar:disabled::-webkit-slider-thumb { background: #2a3a34; box-shadow: none; }

/* Firefox track + thumb */
.seek-bar::-moz-range-track {
    height: 6px;
    border-radius: 2px;
    border: 1px solid #1a3a2a;
    background: #0a2a1a;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
}

.seek-bar::-moz-range-progress {
    height: 6px;
    border-radius: 2px;
    background: var(--accent-pink);
}

.seek-bar::-moz-range-thumb {
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.95), rgba(168, 85, 247, 0.95));
    border: 1px solid rgba(255, 0, 110, 0.6);
    box-shadow: 0 0 6px rgba(255, 0, 110, 0.6);
}

.seek-bar:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 3px;
}

.player-display {
    background: #0a2a1a;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    border: 1.5px solid #1a3a2a;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    min-width: 140px;
    max-width: 140px;
    overflow: hidden;
    position: relative;
}

.player-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 255, 100, 0.03) 1px,
        rgba(0, 255, 100, 0.03) 2px
    );
    pointer-events: none;
}

/* Scrolling Marquee */
.track-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    color: #00ff66;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.8);
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Player Buttons */
.player-buttons {
    display: flex;
    gap: 0.25rem;
}

.retro-btn {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(135deg,
        rgba(255, 0, 110, 0.8),
        rgba(168, 85, 247, 0.8));
    border: 1px solid rgba(255, 0, 110, 0.5);
    color: white;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(255, 0, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.retro-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(255, 0, 110, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 0, 110, 1),
        rgba(168, 85, 247, 1));
}

.retro-btn:active {
    transform: translateY(0);
    box-shadow:
        0 1px 4px rgba(255, 0, 110, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.retro-play {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

/* Light Theme Radio Player - Clean Modern Style */
[data-theme="light"] .mini-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1.5px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mini-player:hover {
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

[data-theme="light"] .player-radio-name {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.08);
    text-shadow: none;
}

[data-theme="light"] .player-display {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

[data-theme="light"] .marquee-text {
    color: #1e293b;
}

[data-theme="light"] .retro-btn {
    background: linear-gradient(135deg, #0066CC, #0052A3);
    border: 1px solid rgba(0, 102, 204, 0.3);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .retro-btn:hover {
    background: linear-gradient(135deg, #0052A3, #003d7a);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .retro-btn:active {
    box-shadow: 0 1px 2px rgba(0, 102, 204, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Radio toggle - hidden on desktop */
.radio-toggle {
    display: none;
}

/* Radio player - always visible but collapsible on mobile */
@media (max-width: 1200px) {
    .mini-player {
        display: flex; /* Keep it visible */
    }

    .radio-toggle {
        display: flex; /* Show toggle on mobile */
    }
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem 4rem;
    margin-top: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

/* Hero aurora — slow-drifting colored light blobs */
.hero-aurora {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 130%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(closest-side, rgba(255, 45, 135, 0.30), transparent),
        radial-gradient(closest-side, rgba(180, 107, 255, 0.28), transparent),
        radial-gradient(closest-side, rgba(45, 212, 255, 0.22), transparent);
    background-size: 55% 55%, 50% 50%, 45% 45%;
    background-position: 12% 18%, 82% 28%, 50% 80%;
    background-repeat: no-repeat;
    filter: blur(60px);
    opacity: 0.85;
    animation: auroraDrift 18s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0%   { background-position: 12% 18%, 82% 28%, 50% 80%; }
    50%  { background-position: 25% 30%, 68% 14%, 42% 66%; }
    100% { background-position: 8% 10%, 90% 36%, 58% 88%; }
}

[data-theme="light"] .hero-aurora {
    opacity: 0.5;
    background:
        radial-gradient(closest-side, rgba(0, 102, 204, 0.18), transparent),
        radial-gradient(closest-side, rgba(0, 136, 204, 0.16), transparent),
        radial-gradient(closest-side, rgba(96, 165, 250, 0.14), transparent);
    background-size: 55% 55%, 50% 50%, 45% 45%;
    background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora { animation: none; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1120px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

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

@keyframes breathe-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                    0 0 25px rgba(255, 0, 110, 0.5),
                    0 0 50px rgba(255, 0, 110, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                    0 0 35px rgba(255, 0, 110, 0.6),
                    0 0 70px rgba(255, 0, 110, 0.5);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.hero-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--accent-pink) 25%,
        var(--accent-purple) 50%,
        var(--accent-cyan) 75%,
        #ffffff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    filter: drop-shadow(0 0 30px var(--glow-pink));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-subtitle .highlight {
    color: var(--accent-pink);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-subtitle .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

.video-container {
    margin: 1.75rem auto 2.25rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 0, 110, 0.2),
        0 0 100px rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(255, 0, 110, 0.3);
    width: 100%;
    max-width: 1120px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: breathe-glow 4s ease-in-out infinite;
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 0, 110, 0.5),
        0 0 120px rgba(168, 85, 247, 0.4),
        0 0 160px rgba(6, 182, 212, 0.2);
    border-color: rgba(255, 0, 110, 0.8);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.video-container img {
    position: absolute;
    top: 0;
    left: 0;
}

.play-overlay-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 0, 110, 0.4);
    z-index: 10;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px var(--glow-pink);
}

.video-container:hover .play-overlay-large {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border-color: transparent;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow:
        0 15px 60px rgba(0, 0, 0, 0.6),
        0 0 60px var(--glow-pink),
        0 0 100px var(--glow-purple);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.video-placeholder h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.video-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1.4rem 4rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 15px 50px rgba(255, 0, 110, 0.5),
        0 0 40px rgba(255, 0, 110, 0.4);
    cursor: pointer;
    animation: buttonPulse 3s ease-in-out infinite;
    z-index: 10;
    margin-top: 2rem;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow:
            0 15px 50px rgba(255, 0, 110, 0.5),
            0 0 40px rgba(255, 0, 110, 0.4);
    }
    50% {
        box-shadow:
            0 20px 60px rgba(255, 0, 110, 0.6),
            0 0 60px rgba(255, 0, 110, 0.5);
    }
}

.cta-button .button-text {
    position: relative;
    z-index: 2;
}

.cta-button .button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 70px rgba(255, 0, 110, 0.7),
        0 0 80px rgba(255, 0, 110, 0.6);
}

.cta-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-item {
    padding: 1.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.4s ease, transform 0.4s var(--ease-out);
}

.stat-item:hover {
    background: var(--card-bg);
    transform: translateY(-4px);
}

.stat-number::after {
    content: '+';
    font-size: 0.7em;
}

.stat-item[data-target="6000"] .stat-number::after {
    content: '';
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

/* Light Theme About Section - Subtle Dark Break */
[data-theme="light"] .about {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

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

/* Light Theme - FIX SHOWREEL VIDEO CONTAINER PINK GLOW */
[data-theme="light"] .video-container {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(0, 102, 204, 0.2);
    animation: none;
}

[data-theme="light"] .video-container:hover {
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
    border-color: rgba(0, 102, 204, 0.4);
}

[data-theme="light"] .hero-subtitle .highlight::after {
    background: linear-gradient(90deg, #0066CC, #0088CC);
}

/* Light Theme - Remove ALL glows and use clean blue styling */
[data-theme="light"] .play-overlay-large {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 3px solid rgba(0, 102, 204, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #0066CC;
}

[data-theme="light"] .video-container:hover .play-overlay-large {
    background: linear-gradient(135deg, #0066CC, #0052A3);
    border-color: #0066CC;
    color: white;
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
}

[data-theme="light"] .play-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 3px solid rgba(0, 102, 204, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #0066CC;
}

[data-theme="light"] .project-card:hover .play-overlay {
    background: linear-gradient(135deg, #0066CC, #0052A3);
    border-color: #0066CC;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.2);
}

[data-theme="light"] .cta-button {
    background: linear-gradient(135deg, #0066CC, #0052A3);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
    color: white;
}

[data-theme="light"] .cta-button:hover {
    background: linear-gradient(135deg, #0052A3, #003d7a);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.35);
    color: white;
}

[data-theme="light"] .category-overlay {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95), rgba(0, 82, 163, 0.95));
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Light Theme - Simplify Projects Section (remove confusing grid layers) */
[data-theme="light"] .projects::before {
    display: none;
}

[data-theme="light"] .projects::after {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 49px,
        rgba(30, 58, 138, 0.05) 49px,
        rgba(30, 58, 138, 0.05) 50px
    ),
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 49px,
        rgba(30, 58, 138, 0.05) 49px,
        rgba(30, 58, 138, 0.05) 50px
    );
}

/* Light Theme - Mobile Radio Toggle Button */
[data-theme="light"] .radio-toggle {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95), rgba(0, 82, 163, 0.95));
    box-shadow: -3px 0 15px rgba(0, 102, 204, 0.3);
}

[data-theme="light"] .radio-toggle:hover {
    box-shadow: -5px 0 25px rgba(0, 102, 204, 0.5);
}

/* Light Theme - Email Link Brighter + Light Sweep Effect */
[data-theme="light"] .email-link {
    color: #ffffff;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

[data-theme="light"] .email-link:hover::before {
    left: 100%;
}

[data-theme="light"] .email-link:hover {
    color: #93c5fd;
}

/* Light Theme - Brighter Footer Social Icons */
[data-theme="light"] .social-links a {
    color: #cbd5e1;
}

[data-theme="light"] .social-links a:hover {
    color: #60a5fa;
}

/* ========================================
   NUCLEAR OPTION: Override ALL Pink in Light Mode
   ======================================== */

/* Hero Section - Gradient Text */
[data-theme="light"] .gradient-text {
    background: linear-gradient(90deg, #0066CC 25%, #0088CC 50%, #0052A3 75%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: none;
}

[data-theme="light"] .hero-title {
    filter: none;
}

/* Film Strips */
[data-theme="light"] .film-strip {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 102, 204, 0.03) 0px,
        rgba(0, 102, 204, 0.03) 15px,
        transparent 15px,
        transparent 20px
    );
    border-left: 8px solid rgba(0, 102, 204, 0.05);
    border-right: 8px solid rgba(0, 102, 204, 0.05);
}

/* Project Cards - All Pink Borders/Glows */
[data-theme="light"] .project-card {
    border: 2px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover {
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

[data-theme="light"] .project-card h3 {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

[data-theme="light"] .project-card:hover h3 {
    color: #0066CC;
    background: rgba(0, 102, 204, 0.05);
    border-top-color: #0066CC;
}

/* Section Titles */
[data-theme="light"] .section-title::after {
    background: linear-gradient(180deg, #0066CC, #0052A3);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

/* Magnetic Button / CTA - Remove ALL pink glows */
[data-theme="light"] .magnetic-button,
[data-theme="light"] .button-glow {
    box-shadow: none;
}

[data-theme="light"] .cta-button,
[data-theme="light"] .magnetic-button {
    animation: none;
}

/* About Section Scanlines */
[data-theme="light"] .about::before,
[data-theme="light"] .about::after {
    display: none;
}

/* Hover Accents */
[data-theme="light"] .clickable-name:hover {
    color: #0066CC;
    text-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
}

[data-theme="light"] .nav-links a::after {
    background: #0066CC;
}

[data-theme="light"] .social-icons a:hover {
    color: #0066CC;
}

/* Light Theme - Video Modal Popup */
[data-theme="light"] .modal {
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .modal-video-container {
    border: 1px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .video-info-panel {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 136, 204, 0.05));
    border: 1px solid rgba(0, 102, 204, 0.15);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .info-title {
    color: #1a1a1a;
}

[data-theme="light"] .info-text {
    color: #4a5568;
}

[data-theme="light"] .close-modal {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .close-modal:hover {
    color: #0066CC;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Scanline pattern for About section */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(255, 0, 110, 0.03) 4px,
        rgba(255, 0, 110, 0.03) 5px
    );
    pointer-events: none;
    opacity: 0.7;
}

/* Diagonal stripes pattern */
.about::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(255, 0, 110, 0.02) 100px,
        rgba(255, 0, 110, 0.02) 102px
    );
    pointer-events: none;
    animation: rotate-pattern 60s linear infinite;
}

@keyframes rotate-pattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-purple));
    border-radius: 10px;
    box-shadow: 0 0 20px var(--glow-pink);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cv-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.cv-link:hover {
    color: var(--accent-pink);
    border-bottom-color: var(--accent-pink);
}

.avatar-placeholder {
    aspect-ratio: 1;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    backdrop-filter: none;
    padding: 2rem;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(255, 0, 110, 0.3));
    transition: all 0.3s ease;
}

.avatar-placeholder img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 50px rgba(255, 0, 110, 0.5));
}

/* Music Player Section - Removed, using mini player in header now */

/* Projects Section */
.projects {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Parallax Layer 1 - Deep background orbs (slowest) */
.projects::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 60% 20%, rgba(255, 0, 110, 0.08) 0%, transparent 30%);
    pointer-events: none;
    will-change: transform;
    transform: translate(var(--before-x, 0), var(--before-y, 0));
}

/* Parallax Layer 2 - Grid (medium speed) */
.projects::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 0, 110, 0.08) 80px,
            rgba(255, 0, 110, 0.08) 82px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255, 0, 110, 0.08) 80px,
            rgba(255, 0, 110, 0.08) 82px
        );
    pointer-events: none;
    opacity: 0.6;
    will-change: transform;
    transform: translate(var(--after-x, 0), var(--after-y, 0));
}

/* Parallax Layer 3 - Floating shapes */
.parallax-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.parallax-shape {
    position: absolute;
    opacity: 0.4;
    transition: all 0.3s ease;
    will-change: transform;
}

.parallax-shape.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(255, 0, 110, 0.2);
    animation: wiggle-triangle 8s ease-in-out infinite;
}

.parallax-shape.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 110, 0.3);
    animation: wiggle-circle 6s ease-in-out infinite;
}

.parallax-shape.square {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 0, 110, 0.3);
    transform: rotate(45deg);
    animation: wiggle-square 7s ease-in-out infinite;
}

.parallax-shape.hexagon {
    width: 40px;
    height: 23px;
    background: rgba(255, 0, 110, 0.2);
    position: relative;
    animation: wiggle-hexagon 9s ease-in-out infinite;
}

.parallax-shape.hexagon:before,
.parallax-shape.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.parallax-shape.hexagon:before {
    bottom: 100%;
    border-bottom: 11.5px solid rgba(255, 0, 110, 0.2);
}

.parallax-shape.hexagon:after {
    top: 100%;
    width: 0;
    border-top: 11.5px solid rgba(255, 0, 110, 0.2);
}

/* Floating emoji elements */
.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
    animation: wiggle-emoji 10s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.3));
}

/* Smooth wiggling animations */
@keyframes wiggle-triangle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(-15px, -10px) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(10px, -20px) rotate(-3deg);
        opacity: 0.35;
    }
    75% {
        transform: translate(-5px, -15px) rotate(4deg);
        opacity: 0.45;
    }
}

@keyframes wiggle-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(12px, -15px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-10px, -25px) scale(0.95);
        opacity: 0.35;
    }
}

@keyframes wiggle-square {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 0.4;
    }
    30% {
        transform: translate(-20px, -12px) rotate(50deg);
        opacity: 0.5;
    }
    60% {
        transform: translate(15px, -18px) rotate(40deg);
        opacity: 0.35;
    }
}

@keyframes wiggle-hexagon {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    20% {
        transform: translate(8px, -10px) rotate(10deg);
        opacity: 0.5;
    }
    40% {
        transform: translate(-12px, -20px) rotate(-8deg);
        opacity: 0.35;
    }
    60% {
        transform: translate(15px, -15px) rotate(12deg);
        opacity: 0.45;
    }
    80% {
        transform: translate(-8px, -25px) rotate(-5deg);
        opacity: 0.4;
    }
}

@keyframes wiggle-emoji {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(-18px, -20px) rotate(-8deg) scale(1.05);
        opacity: 0.4;
    }
    50% {
        transform: translate(15px, -35px) rotate(5deg) scale(0.95);
        opacity: 0.25;
    }
    75% {
        transform: translate(-10px, -25px) rotate(-5deg) scale(1.02);
        opacity: 0.35;
    }
}

/* Easter egg - hidden elements */
.easter-egg {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 100;
}

.easter-egg.active {
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

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

.projects .section-title {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 0, 110, 0.1) 0%,
        rgba(168, 85, 247, 0.1) 50%,
        rgba(6, 182, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 16px;
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 45, 135, 0.5);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 45, 135, 0.15),
        0 12px 40px rgba(255, 45, 135, 0.18);
}

/* Glassmorphism effect on hover */
.project-card:hover {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

/* Gradient ring that fades in on hover */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--grad-brand);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::after { opacity: 0.9; }

.project-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 110, 0.1), transparent 70%);
    opacity: 0.5;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.project-image img.hidden {
    display: none !important;
}

/* Category Overlay */
.category-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.95), rgba(168, 85, 247, 0.95));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    backdrop-filter: blur(10px);
}

.project-card:hover .category-overlay {
    opacity: 1;
    transform: translateY(0);
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 110, 0.3);
}

.project-card:hover .play-overlay {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border-color: transparent;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px var(--glow-pink),
        0 0 60px var(--glow-purple);
}

@media (max-width: 768px) {
    .play-overlay {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 1);
        border: 3px solid rgba(0, 0, 0, 0.2);
    }
}

.project-card h3 {
    padding: 1.1rem 1.3rem;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.project-card:hover h3 {
    color: var(--accent-pink);
    background: rgba(0, 0, 0, 0.5);
    border-top-color: var(--accent-pink);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 26, 1) 0%,
        rgba(40, 10, 50, 1) 25%,
        rgba(60, 10, 60, 1) 50%,
        rgba(40, 10, 50, 1) 75%,
        rgba(10, 10, 26, 1) 100%
    );
    background-size: 400% 400%;
    animation: subtleGradientMove 10s ease infinite;
    text-align: center;
    position: relative;
}

@keyframes subtleGradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Light Theme Contact Section - Cool Blue Dark Background */
[data-theme="light"] .contact {
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e3a8a 25%,
        #1e40af 50%,
        #1e3a8a 75%,
        #0f172a 100%
    );
}

[data-theme="light"] .contact h2 {
    color: #ffffff;
}

[data-theme="light"] .contact-text {
    color: #cbd5e1;
}

[data-theme="light"] .contact .cta-button {
    border: 2px solid #60a5fa;
}

[data-theme="light"] .contact .cta-button:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #93c5fd;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.email-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.email-link:hover {
    color: var(--accent-pink);
    transform: scale(1.03);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-pink);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo h1 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    .tagline {
        font-size: 0.6rem;
    }

    .logo img {
        height: 28px !important;
    }

    .logo > div {
        gap: 8px !important;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 6rem 1rem 3rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-top: 1rem;
        white-space: normal;
    }

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

    .modal-content {
        width: 95%;
        padding: 0 1rem;
    }

    .close-modal {
        top: -50px;
        font-size: 35px;
    }

    /* Ensure video thumbnails display on mobile */
    .project-image {
        min-height: 200px;
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .project-image img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .project-card {
        min-height: 280px;
    }

    /* Radio player - collapsible side panel on mobile */
    .mini-player {
        position: fixed;
        right: -240px;
        top: 50%;
        transform: translateY(-50%);
        width: 220px;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        padding: 1rem;
        border-radius: 16px 0 0 16px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .mini-player.open {
        right: 0;
    }

    /* Radio toggle tab - vertical stack (icon on top, text below) */
    .radio-toggle {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 80px;
        background: linear-gradient(135deg, rgba(255, 0, 110, 0.9), rgba(168, 85, 247, 0.9));
        backdrop-filter: blur(10px);
        border-radius: 10px 0 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        box-shadow: -3px 0 15px rgba(255, 0, 110, 0.4);
        padding: 0.6rem 0.2rem;
    }

    .radio-toggle:hover {
        width: 32px;
        box-shadow: -5px 0 25px rgba(255, 0, 110, 0.6);
    }

    .radio-toggle .icon {
        font-size: 1.2rem;
        animation: pulse 2s ease-in-out infinite;
    }

    .radio-toggle span:not(.icon) {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 0.55rem;
        font-weight: 700;
        color: white;
        letter-spacing: 1px;
    }

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

    .player-radio-name {
        font-size: 0.55rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        padding: 0.1rem;
    }

    .player-display {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .player-buttons {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 50px;
    animation: slideUp 0.4s ease;
}

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

.close-modal {
    position: absolute;
    top: -50px;
    right: 10px;
    color: var(--text-primary);
    font-size: 45px;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 60px rgba(255, 0, 110, 0.3);
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal Layout with Info Panel */
.modal-layout {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.modal-layout .modal-video-container {
    flex: 1;
}

.video-info-panel {
    width: 280px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(168, 85, 247, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.video-info-panel::-webkit-scrollbar {
    width: 6px;
}

.video-info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.video-info-panel::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 10px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.info-text:empty {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .modal.active {
        padding-top: 120px;
    }

    .modal-layout {
        flex-direction: column;
    }

    .video-info-panel {
        width: 100%;
        max-height: 300px;
        padding: 1.5rem;
    }

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

    .close-modal {
        top: -60px;
        right: 5px;
        font-size: 38px;
    }

    .modal-content {
        margin-top: 10px;
    }
}

/* Mobile Responsive - Admin Panel */
@media (max-width: 768px) {
    .admin-content {
        width: 95%;
        max-width: 100%;
    }

    .admin-buttons {
        flex-direction: column;
    }

    .admin-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .video-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .video-item-actions {
        width: 100%;
        justify-content: stretch;
    }

    .video-item button {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .admin-form label {
        font-size: 0.95rem;
    }

    .admin-form input,
    .admin-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle effects */
.particle {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 10000;
    user-select: none;
    will-change: transform, opacity;
}

#shake-wrapper.shaking {
    animation: shake 0.5s;
}

/* Notification toast - OPTIMIZED for instant response */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, var(--accent-pink), #ff4d94);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.4), 0 0 60px rgba(255, 0, 110, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    max-width: 90vw;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

[data-theme="light"] .notification {
    background: linear-gradient(135deg, #0066CC, #0052A3);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3), 0 0 40px rgba(0, 102, 204, 0.2);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 0, 110, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Admin Panel */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.3;
}

.admin-toggle:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.5);
    opacity: 1;
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.admin-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    background: var(--secondary-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-admin {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-admin:hover {
    color: var(--accent-pink);
    transform: scale(1.2);
}

.admin-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-form label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-form input {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.admin-form input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.admin-form textarea {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.admin-buttons {
    display: flex;
    gap: 0.5rem;
}

.admin-btn {
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.5);
}

.cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.export-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    margin-top: 0.5rem;
}

.admin-list h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
}

.video-item:active {
    cursor: grabbing;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-pink);
    transform: translateX(5px);
}

.video-item-info {
    flex: 1;
}

.video-item-info strong {
    color: var(--accent-pink);
    display: block;
    margin-bottom: 0.3rem;
}

.video-item-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2rem;
}

.video-item-actions {
    display: flex;
    gap: 0.5rem;
}

.video-item button {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--accent-pink);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.video-item button:hover {
    background: var(--accent-pink);
    transform: translateY(-2px);
}

.video-item .edit-btn {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--accent-cyan);
}

.video-item .edit-btn:hover {
    background: var(--accent-cyan);
    color: #0a0a0a;
}

.video-item .remove-btn {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--accent-pink);
}

.video-item .remove-btn:hover {
    background: var(--accent-pink);
}

.admin-toolbar {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.admin-toolbar h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.bulk-actions {
    display: flex;
    gap: 0.5rem;
}

.bulk-actions select {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.bulk-actions select:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.admin-btn-small {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.video-list.sortable .video-item {
    cursor: grab;
    user-select: none;
}

.video-list.sortable .video-item:active {
    cursor: grabbing;
    opacity: 0.7;
}

.video-list.sortable .video-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.video-item-title {
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.2rem;
}

.video-item-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.drag-handle {
    color: var(--text-secondary);
    margin-right: 0.5rem;
    cursor: grab;
}

/* ============================================================
   V2 POLISH LAYER  —  refinements layered on top (loaded last)
   ============================================================ */

/* Custom scrollbar */
html { scrollbar-color: var(--accent-purple) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-pink), var(--accent-purple));
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-purple), var(--accent-cyan));
    background-clip: padding-box;
}

/* Brand name uses the display font */
.logo h1, .clickable-name {
    font-family: var(--font-display);
    letter-spacing: -0.3px;
}
.tagline { font-family: var(--font-mono); letter-spacing: 0.4px; }

/* Section titles: refined accent bar + balanced wrapping */
.section-title { text-wrap: balance; }
.section-title::before {
    background: var(--grad-brand);
    width: 6px;
    border-radius: 6px;
}

/* Hero title: tighter, balanced, display features */
.hero-title { text-wrap: balance; }
.hero-subtitle { max-width: 38ch; margin-left: auto; margin-right: auto; }

/* CTA — keep the energy, refine the surface */
.cta-button { letter-spacing: 0.2px; }
.cta-button:focus-visible { outline-offset: 5px; }

/* Category chip: cleaner type */
.category-overlay {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    padding: 6px 13px;
}

/* About avatar: calmer, more premium drop shadow */
.avatar-placeholder img {
    filter: drop-shadow(0 18px 45px rgba(180, 107, 255, 0.28));
}
.avatar-placeholder img:hover {
    filter: drop-shadow(0 22px 60px rgba(255, 45, 135, 0.4));
}

/* Light theme: keep cards bright & legible against the new card-bg token */
[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
}
[data-theme="light"] .project-card:hover {
    background: #ffffff;
}
[data-theme="light"] .project-card h3 {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .stat-item:hover { background: rgba(0, 102, 204, 0.05); }

/* Slightly roomier reading column on big screens */
@media (min-width: 1500px) {
    .container { max-width: 1320px; }
}

/* Respect reduced-motion globally for the heaviest loops */
@media (prefers-reduced-motion: reduce) {
    .gradient-text, .stat-number, .contact, .cta-button,
    .film-strip, .parallax-shape, .floating-emoji, .about::after,
    .video-container, .hero-subtitle .highlight::after {
        animation: none !important;
    }
    html { scroll-behavior: auto; }
}


/* ============ AeScripts Section ============ */
.aescripts {
    padding: 7rem 0;
    position: relative;
}

.aescripts-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

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

.aescripts-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.aescripts-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-brand);
    opacity: 0.55;
}

.aescripts-card:hover {
    border-color: rgba(255, 45, 135, 0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), 0 0 35px rgba(255, 45, 135, 0.12);
}

.aescripts-card .ae-emoji {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 14px var(--glow-pink));
}

.aescripts-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

.aescripts-card .ae-host {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 0.7rem;
}

.aescripts-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.aescripts-more {
    text-align: center;
    margin-top: 2.5rem;
}

.aescripts-cta {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    border: 1px solid rgba(255, 45, 135, 0.45);
    border-radius: 50px;
    color: var(--accent-pink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* "Show more work" toggle under Selected Work — reuses the AeScripts CTA look */
.works-more-wrap {
    text-align: center;
    margin-top: 3rem;
}

.works-cta {
    background: none;
    font-size: 1rem;
    cursor: pointer;
}

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

.aescripts-cta:hover,
.works-cta:hover {
    background: rgba(255, 45, 135, 0.1);
    box-shadow: 0 0 30px rgba(255, 45, 135, 0.25);
    transform: translateY(-2px);
}

[data-theme="light"] .aescripts-card .ae-emoji { filter: none; }
