/* ==========================================================================
   NEARX // PORTFOLIO DESIGN SYSTEM & CSS TOKENS
   Dark Tech-Noir / AGI Architecture / Premium Agency Style
   ========================================================================== */

:root {
    /* Color Palette - Warm Dark Tones */
    --bg-black: #08080f;
    --bg-graphite: #0e0e18;
    --bg-panel: rgba(14, 14, 24, 0.65);

    --text-white: #f5f6f7;
    --text-silver: #a9b2c3;
    --text-muted: #7a8299;

    /* Elegant Accent Gradients - Vocaloid (Miku, Teto, Rin themes) */
    --accent-indigo: hsl(275, 90%, 60%);
    --accent-indigo-glow: rgba(138, 43, 226, 0.15);

    --accent-mint: hsl(175, 60%, 50%);
    /* Miku Teal #39C5BB HSL! */
    --accent-mint-glow: rgba(57, 197, 187, 0.15);

    --accent-magenta: hsl(325, 95%, 65%);
    /* Sakura Pink HSL! */
    --accent-magenta-glow: rgba(255, 102, 204, 0.15);

    --accent-teto: hsl(350, 95%, 55%);
    /* Teto Crimson HSL! */
    --accent-teto-glow: rgba(255, 0, 85, 0.15);

    --accent-rin: hsl(42, 100%, 55%);
    /* Rin Gold HSL! */
    --accent-rin-glow: rgba(255, 179, 0, 0.15);

    /* Layout Tokens */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-grotesk: 'Space Grotesk', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --hdr-height: 80px;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

*:active,
*:focus,
*:hover {
    cursor: none !important;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

html {
    scroll-behavior: auto;
    /* Handled smoothly by Lenis */
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

body.loading-state {
    overflow: hidden;
    /* Stop scroll during boot diagnostic sequence */
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-mint);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 0 10px rgba(57, 197, 187, 0.6), 0 0 20px rgba(57, 197, 187, 0.3);
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(57, 197, 187, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                opacity 0.3s ease;
    will-change: transform;
    opacity: 0;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(57, 197, 187, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Cursor visible after preloader */
.cursor-ready .cursor-dot,
.cursor-ready .cursor-ring,
.cursor-ready .cursor-glow {
    opacity: 1;
}

/* Hover state — links, buttons */
.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--text-white);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(57, 197, 187, 0.5);
    background: rgba(57, 197, 187, 0.04);
}

/* Hover state — cards, panels */
.cursor-card .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-indigo);
    box-shadow: 0 0 12px rgba(110, 68, 255, 0.5);
}

.cursor-card .cursor-ring {
    width: 70px;
    height: 70px;
    border-color: rgba(110, 68, 255, 0.3);
    background: rgba(110, 68, 255, 0.03);
}

/* Click state */
.cursor-click .cursor-ring {
    width: 30px;
    height: 30px;
    border-color: rgba(255, 102, 204, 0.6);
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring,
    .cursor-glow {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

/* ==========================================================================
   SOUND TOGGLE
   ========================================================================== */
.sound-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 24, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
}

.sound-toggle:hover {
    border-color: rgba(57, 197, 187, 0.3);
    color: var(--accent-mint);
    background: rgba(57, 197, 187, 0.06);
    box-shadow: 0 0 20px rgba(57, 197, 187, 0.1);
}

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

.sound-icon-off {
    display: none;
}

body.sound-on .sound-icon-on {
    display: block;
}
body.sound-on .sound-icon-off {
    display: none;
}
body:not(.sound-on) .sound-icon-on {
    display: none;
}
body:not(.sound-on) .sound-icon-off {
    display: block;
}

.sound-toggle.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

/* Focus-visible accessibility styles */
:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 4px;
    border-radius: 4px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .preloader {
        display: none;
    }

    .custom-cursor {
        display: none;
    }

    * {
        cursor: auto !important;
    }
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-panel);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Scanline Aesthetic Upgrade */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.02),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.12;
}

/* ==========================================================================
   VOLUMETRIC AMBIENT SCENE
   ========================================================================== */

.ambient-fog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.ambient-glow {
    position: fixed;
    width: 80vmax;
    height: 80vmax;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, var(--accent-indigo) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, var(--accent-mint) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-3 {
    top: 40%;
    left: 30%;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, var(--accent-magenta) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.15;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(circle, black 30%, transparent 80%);
}

/* ==========================================================================
   DYNAMIC CUSTOM CURSOR (ELASTIC SPRING MIMO STYLE)
   ========================================================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 10px var(--accent-mint);
}

.cursor-ring {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(57, 197, 187, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s ease;
    box-shadow: 0 0 15px rgba(57, 197, 187, 0.05);
}

/* Glitch effect for Avatar Alias */
.avatar-alias {
    font-family: var(--font-grotesk);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 0 var(--accent-teto), -2px 0 var(--accent-mint);
    animation: glitch-vibe 3s infinite;
}

.cursor-label {
    position: absolute;
    transform: translate(-50%, -140%);
    padding: 6px 12px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-white);
    opacity: 0;
    scale: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease, scale 0.3s ease;
    white-space: nowrap;
}

/* Hover-states triggered in JS (spring/elastic morphing) */
.custom-cursor.hovering .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-magenta);
    box-shadow: 0 0 10px var(--accent-magenta);
}

.custom-cursor.hovering .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: var(--accent-magenta);
    border-width: 2px;
    box-shadow: 0 0 20px var(--accent-magenta-glow);
}

.custom-cursor.hovering .cursor-label {
    opacity: 1;
    scale: 1;
}

.custom-cursor.indigo-mode .cursor-dot {
    background-color: var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo);
}

.custom-cursor.indigo-mode .cursor-ring {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 20px var(--accent-indigo-glow);
}

/* ==========================================================================
   PREMIUM VOCALOID HOLOGRAPHIC LOADER
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

/* Pause all hero/page animations during boot */
.loading-state .hero-section,
.loading-state .ambient-glow,
.loading-state .glow-orb,
.loading-state .ambient-particle,
.loading-state .hero-content,
.loading-state .hero-badge,
.loading-state .hero-subtitle,
.loading-state .hero-title,
.loading-state .hero-divider,
.loading-state main,
.loading-state footer {
    animation-play-state: paused !important;
}
.loading-state .hero-section *,
.loading-state main * {
    animation-play-state: paused !important;
}

/* ==========================================================
   BLACK HOLE BOOT PRELOADER — Canvas-rendered Interstellar
   ========================================================== */

.bh-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.bh-overlay {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    pointer-events: none;
}

.boot-center {
    display: none;
}

/* --- Percentage --- */
.boot-percent {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-indigo), var(--accent-teto));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(57, 197, 187, 0.3);
    animation: percent-glow 3s ease-in-out infinite;
}

@keyframes percent-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(57, 197, 187, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(110, 68, 255, 0.6)); }
}

/* --- Status text with cursor --- */
.boot-status-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.boot-status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-silver);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: boot-text-pulse 2.5s ease-in-out infinite;
}

.boot-cursor {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-mint);
    animation: cursor-blink 0.8s step-end infinite;
}

@keyframes boot-text-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

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

/* --- Bloom effect at 100% (canvas black hole) --- */
.preloader-bloom .bh-canvas {
    animation: bh-canvas-bloom 2.5s ease-out forwards;
}
@keyframes bh-canvas-bloom {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); filter: blur(4px) brightness(1.5); }
    100% { opacity: 0; transform: scale(2); filter: blur(20px) brightness(2); }
}

.preloader-bloom .bh-overlay,
.preloader-bloom .boot-status-wrapper,
.preloader-bloom .boot-phase-indicator {
    animation: bh-ui-fade 1.5s ease-out forwards;
}
@keyframes bh-ui-fade {
    to { opacity: 0; transform: translateY(-20px); }
}

.vocaloid-core {
    display: none;
}

.vocaloid-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.vocaloid-loader .ring {
    transform-origin: center;
}

.vocaloid-loader .ring-outer {
    animation: spin-clockwise 8s linear infinite;
}

.vocaloid-loader .ring-middle {
    animation: spin-counter 6s linear infinite;
}

.vocaloid-loader .ring-inner {
    animation: spin-clockwise 3s linear infinite;
}

.vocaloid-loader .core-dot {
    animation: core-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes core-pulse {
    0% {
        r: 5px;
        fill: var(--accent-mint);
        filter: drop-shadow(0 0 4px var(--accent-mint));
    }

    50% {
        r: 7px;
        fill: var(--accent-rin);
        filter: drop-shadow(0 0 8px var(--accent-rin));
    }

    100% {
        r: 9px;
        fill: var(--accent-teto);
        filter: drop-shadow(0 0 12px var(--accent-teto));
    }
}

.equalizer-container {
    display: flex;
    gap: 4px;
    height: 18px;
    position: absolute;
    bottom: 22px;
}

.eq-bar {
    width: 2px;
    height: 100%;
    transform-origin: bottom;
    animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(2) {
    animation-delay: 0.15s;
}

.eq-bar:nth-child(3) {
    animation-delay: 0.3s;
}

.eq-bar:nth-child(4) {
    animation-delay: 0.45s;
}

.eq-bar:nth-child(5) {
    animation-delay: 0.1s;
}

.loader-status {
    display: none;
}

.progress-bar-container {
    display: none;
}

.progress-bar {
    display: none;
}

.progress-percentage {
    display: none;
}

.preloader-waveform-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.stave-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
    opacity: 0.15;
}

.stave-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-silver), transparent);
}

.piano-keys-indicator {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    opacity: 0.25;
}

.piano-key {
    width: 8px;
    height: 32px;
    background: var(--text-white);
    border-radius: 0 0 2px 2px;
    animation: key-press 1.2s infinite alternate;
}

.piano-key:nth-child(2) {
    animation-delay: 0.2s;
    height: 26px;
    background: var(--text-silver);
}

.piano-key:nth-child(3) {
    animation-delay: 0.4s;
    height: 32px;
}

.piano-key:nth-child(4) {
    animation-delay: 0.6s;
    height: 26px;
    background: var(--text-silver);
}

.piano-key:nth-child(5) {
    animation-delay: 0.8s;
    height: 32px;
}

.piano-key:nth-child(6) {
    animation-delay: 0.1s;
    height: 32px;
}

.piano-key:nth-child(7) {
    animation-delay: 0.3s;
    height: 26px;
    background: var(--text-silver);
}

@keyframes term-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   GLASSMORPHISM & PREMIUM UTILITIES
   ========================================================================== */

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Specular highlight overlay — follows mouse */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.glass-panel.specular-active::after {
    opacity: 1;
}

.glow-border:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.glow-mint {
    box-shadow: 0 0 40px rgba(0, 255, 127, 0.03), inset 0 0 20px rgba(0, 255, 127, 0.02);
}

.glow-mint:hover {
    border-color: rgba(0, 255, 127, 0.15);
    box-shadow: 0 0 60px rgba(0, 255, 127, 0.05), inset 0 0 30px rgba(0, 255, 127, 0.03);
}

.glow-indigo {
    box-shadow: 0 0 40px rgba(110, 68, 255, 0.03), inset 0 0 20px rgba(110, 68, 255, 0.02);
}

.glow-indigo:hover {
    border-color: rgba(110, 68, 255, 0.15);
    box-shadow: 0 0 60px rgba(110, 68, 255, 0.06), inset 0 0 30px rgba(110, 68, 255, 0.03);
}

.glow-magenta {
    box-shadow: 0 0 40px rgba(255, 50, 150, 0.03), inset 0 0 20px rgba(255, 50, 150, 0.02);
}

.glow-magenta:hover {
    border-color: rgba(255, 50, 150, 0.15);
    box-shadow: 0 0 60px rgba(255, 50, 150, 0.06), inset 0 0 30px rgba(255, 50, 150, 0.03);
}

/* ==========================================================================
   GLASS HEADER (NAVIGATION)
   ========================================================================== */

.glass-header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    height: 64px;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 32px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Hamburger menu button (mobile) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-silver);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
}

.mobile-nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-silver);
    font-family: var(--font-grotesk);
    transition: var(--transition-fast);
    padding: 12px 24px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: var(--accent-mint);
    text-shadow: 0 0 20px var(--accent-mint-glow);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
}

.brand-sub {
    color: var(--text-muted);
}

.brand-divider {
    color: var(--accent-indigo);
    margin: 0 8px;
}

.brand-main {
    color: var(--text-white);
}

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

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-silver);
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: 16px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.header-status {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-mint);
    background: rgba(0, 255, 127, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: var(--accent-mint);
    box-shadow: 0 0 10px var(--accent-mint);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   LANDING / HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-starfield {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Animated gradient mesh background for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(57, 197, 187, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(110, 68, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 102, 204, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 179, 0, 0.03) 0%, transparent 40%);
    animation: hero-mesh-drift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hero-mesh-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(-30px, 20px) rotate(1deg); }
    50%      { transform: translate(20px, -30px) rotate(-1deg); }
    75%      { transform: translate(-15px, -15px) rotate(0.5deg); }
}

/* Pulsing vignette overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 8, 15, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
    animation: hero-vignette-pulse 8s ease-in-out infinite;
}

@keyframes hero-vignette-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 0.8; }
}

/* --- AMBIENT FLOATING PARTICLES --- */
.hero-ambient-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.ambient-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: ambient-float linear infinite;
}

.ambient-particle.p1  { width:4px;  height:4px;  background:rgba(57,197,187,0.6);  left:10%; top:20%; animation-duration:12s; animation-delay:0s; }
.ambient-particle.p2  { width:3px;  height:3px;  background:rgba(255,0,85,0.5);    left:80%; top:15%; animation-duration:15s; animation-delay:1s; }
.ambient-particle.p3  { width:5px;  height:5px;  background:rgba(110,68,255,0.5);   left:25%; top:70%; animation-duration:18s; animation-delay:2s; }
.ambient-particle.p4  { width:3px;  height:3px;  background:rgba(255,179,0,0.6);    left:70%; top:60%; animation-duration:14s; animation-delay:0.5s; }
.ambient-particle.p5  { width:4px;  height:4px;  background:rgba(80,200,255,0.5);   left:45%; top:30%; animation-duration:16s; animation-delay:3s; }
.ambient-particle.p6  { width:2px;  height:2px;  background:rgba(255,102,204,0.6);  left:15%; top:50%; animation-duration:13s; animation-delay:1.5s; }
.ambient-particle.p7  { width:3px;  height:3px;  background:rgba(57,197,187,0.4);   left:60%; top:80%; animation-duration:17s; animation-delay:4s; }
.ambient-particle.p8  { width:4px;  height:4px;  background:rgba(255,0,85,0.4);     left:35%; top:10%; animation-duration:11s; animation-delay:2.5s; }
.ambient-particle.p9  { width:2px;  height:2px;  background:rgba(110,68,255,0.6);   left:90%; top:45%; animation-duration:19s; animation-delay:0.8s; }
.ambient-particle.p10 { width:3px;  height:3px;  background:rgba(255,179,0,0.5);    left:50%; top:55%; animation-duration:14s; animation-delay:3.5s; }
.ambient-particle.p11 { width:5px;  height:5px;  background:rgba(80,200,255,0.4);   left:5%;  top:85%; animation-duration:20s; animation-delay:1.2s; }
.ambient-particle.p12 { width:3px;  height:3px;  background:rgba(255,102,204,0.5);  left:75%; top:35%; animation-duration:16s; animation-delay:2.8s; }
.ambient-particle.p13 { width:2px;  height:2px;  background:rgba(57,197,187,0.5);   left:55%; top:15%; animation-duration:22s; animation-delay:0.3s; }
.ambient-particle.p14 { width:4px;  height:4px;  background:rgba(255,179,0,0.4);    left:30%; top:45%; animation-duration:17s; animation-delay:1.8s; }
.ambient-particle.p15 { width:3px;  height:3px;  background:rgba(110,68,255,0.5);   left:85%; top:70%; animation-duration:19s; animation-delay:3.2s; }
.ambient-particle.p16 { width:2px;  height:2px;  background:rgba(255,0,85,0.5);     left:40%; top:85%; animation-duration:14s; animation-delay:0.7s; }
.ambient-particle.p17 { width:5px;  height:5px;  background:rgba(80,200,255,0.3);   left:20%; top:60%; animation-duration:21s; animation-delay:4.5s; }
.ambient-particle.p18 { width:3px;  height:3px;  background:rgba(255,102,204,0.4);  left:65%; top:25%; animation-duration:15s; animation-delay:2.2s; }
.ambient-particle.p19 { width:2px;  height:2px;  background:rgba(57,197,187,0.6);   left:95%; top:50%; animation-duration:18s; animation-delay:1.4s; }
.ambient-particle.p20 { width:4px;  height:4px;  background:rgba(255,179,0,0.5);    left:12%; top:90%; animation-duration:16s; animation-delay:3.8s; }
.ambient-particle.p21 { width:3px;  height:3px;  background:rgba(110,68,255,0.4);   left:48%; top:5%;  animation-duration:20s; animation-delay:0.5s; }
.ambient-particle.p22 { width:2px;  height:2px;  background:rgba(255,0,85,0.6);     left:72%; top:75%; animation-duration:13s; animation-delay:2.5s; }
.ambient-particle.p23 { width:4px;  height:4px;  background:rgba(80,200,255,0.5);   left:8%;  top:40%; animation-duration:17s; animation-delay:4.1s; }
.ambient-particle.p24 { width:3px;  height:3px;  background:rgba(255,102,204,0.5);  left:88%; top:10%; animation-duration:15s; animation-delay:1.6s; }

@keyframes ambient-float {
    0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.5); }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-120vh) translateX(30px) scale(1.2); }
}

/* --- AMBIENT GLOW ORBS --- */
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: blur(80px);
    animation: glow-drift ease-in-out infinite;
}

.hero-glow-orb.glow-teal {
    width: 600px;
    height: 600px;
    background: rgba(57, 197, 187, 0.18);
    left: 5%;
    top: 15%;
    animation-duration: 12s;
}

.hero-glow-orb.glow-indigo {
    width: 450px;
    height: 450px;
    background: rgba(110, 68, 255, 0.12);
    right: 10%;
    top: 25%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.hero-glow-orb.glow-magenta {
    width: 400px;
    height: 400px;
    background: rgba(255, 102, 204, 0.1);
    left: 35%;
    bottom: 10%;
    animation-duration: 18s;
    animation-delay: 6s;
}

.hero-glow-orb.glow-gold {
    width: 350px;
    height: 350px;
    background: rgba(255, 179, 0, 0.08);
    right: 25%;
    bottom: 20%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.hero-glow-orb.glow-crimson {
    width: 300px;
    height: 300px;
    background: rgba(255, 0, 85, 0.07);
    left: 60%;
    top: 10%;
    animation-duration: 16s;
    animation-delay: 8s;
}

@keyframes glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(50px, -35px) scale(1.15); }
    50%      { transform: translate(-35px, 50px) scale(0.9); }
    75%      { transform: translate(25px, 25px) scale(1.1); }
}

/* Hero reveal energy burst */
.hero-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 197, 187, 0.15) 0%, rgba(110, 68, 255, 0.08) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    animation: hero-burst 2s ease-out forwards;
}

@keyframes hero-burst {
    0%   { width: 0; height: 0; opacity: 0.8; }
    50%  { width: 150vw; height: 150vw; opacity: 0.3; }
    100% { width: 200vw; height: 200vw; opacity: 0; }
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;
    /* Enable Three.js pointer hover reactions */
}

.hero-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    animation: hero-content-float 8s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
}

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

.hero-content a,
.hero-content button {
    pointer-events: auto;
    /* Re-enable pointer events on visual links/buttons */
}

.hero-badge-container {
    margin-bottom: 24px;
}

.hero-badge {
    padding: 8px 18px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    color: var(--text-silver);
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent-mint);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--accent-mint), 0 0 16px rgba(57, 197, 187, 0.3);
    animation: status-pulse 1.8s infinite;
}

.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(57, 197, 187, 0.06) 45%,
        rgba(110, 68, 255, 0.06) 50%,
        rgba(255, 102, 204, 0.06) 55%,
        transparent 60%
    );
    animation: badge-shimmer 4s linear infinite;
}

@keyframes badge-shimmer {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--text-white);
    font-family: var(--font-grotesk);
}

.title-light {
    font-weight: 900;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(57, 197, 187, 0.08),
        0 0 120px rgba(110, 68, 255, 0.05);
    animation: title-glow 4s ease-in-out infinite alternate;
}

@keyframes title-glow {
    0%   { text-shadow: 0 0 40px rgba(255,255,255,0.1), 0 0 80px rgba(57,197,187,0.08); }
    100% { text-shadow: 0 0 50px rgba(255,255,255,0.15), 0 0 100px rgba(110,68,255,0.1), 0 0 150px rgba(57,197,187,0.06); }
}

.hero-subtitle-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-silver);
    font-family: var(--font-grotesk);
    text-transform: none;
    line-height: 1.4;
}

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

/* --- HERO GLOWING DIVIDER --- */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto;
    max-width: 300px;
}

.hero-divider .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 197, 187, 0.3), rgba(110, 68, 255, 0.2), transparent);
    animation: divider-pulse 3s ease-in-out infinite;
}

.hero-divider .divider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-mint);
    box-shadow: 0 0 8px var(--accent-mint), 0 0 20px rgba(57, 197, 187, 0.3);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px var(--accent-mint); }
    50%      { transform: scale(1.3); box-shadow: 0 0 12px var(--accent-mint), 0 0 30px rgba(57,197,187,0.4); }
}

.hero-desc {
    max-width: 650px;
    margin: 24px auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-silver);
    font-weight: 300;
}

/* ==========================================================================
   HERO SKILLS BADGES
   ========================================================================== */

.hero-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 32px auto 40px;
    max-width: 740px;
    pointer-events: auto;
    opacity: 1;
}

.hero-skill-card {
    padding: 12px 18px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-silver);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: var(--transition-fast);
    letter-spacing: 0.02em;
    cursor: default;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-skill-card:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-skill-card.highlight {
    background: rgba(57, 197, 187, 0.04);
    border-color: rgba(57, 197, 187, 0.15);
    color: var(--accent-mint);
}

.hero-skill-card.highlight:hover {
    background: rgba(57, 197, 187, 0.08);
    border-color: rgba(57, 197, 187, 0.3);
    box-shadow: 0 8px 24px rgba(57, 197, 187, 0.1);
}

.hero-skill-card.accent-indigo {
    background: rgba(110, 68, 255, 0.04);
    border-color: rgba(110, 68, 255, 0.12);
}

.hero-skill-card.accent-indigo:hover {
    background: rgba(110, 68, 255, 0.08);
    border-color: rgba(110, 68, 255, 0.25);
    box-shadow: 0 8px 24px rgba(110, 68, 255, 0.1);
}

.hero-skill-card.accent-teto {
    background: rgba(255, 0, 85, 0.04);
    border-color: rgba(255, 0, 85, 0.12);
}

.hero-skill-card.accent-teto:hover {
    background: rgba(255, 0, 85, 0.08);
    border-color: rgba(255, 0, 85, 0.25);
    box-shadow: 0 8px 24px rgba(255, 0, 85, 0.1);
}

.hero-skill-card.accent-rin {
    background: rgba(255, 179, 0, 0.04);
    border-color: rgba(255, 179, 0, 0.12);
}

.hero-skill-card.accent-rin:hover {
    background: rgba(255, 179, 0, 0.08);
    border-color: rgba(255, 179, 0, 0.25);
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.1);
}

.hero-skill-card.accent-magenta {
    background: rgba(255, 102, 204, 0.04);
    border-color: rgba(255, 102, 204, 0.12);
}

.hero-skill-card.accent-magenta:hover {
    background: rgba(255, 102, 204, 0.08);
    border-color: rgba(255, 102, 204, 0.25);
    box-shadow: 0 8px 24px rgba(255, 102, 204, 0.1);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS (MAGNETIC & VOLUMETRIC GLOWS)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 28px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-white);
    color: var(--bg-black);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-github {
    background-color: rgba(10, 10, 15, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
}

.btn-github:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(20, 20, 25, 0.8);
}

/* Theme-aware button accents */
[data-theme="classical"] .btn-primary {
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.08);
}

[data-theme="classical"] .btn-secondary:hover {
    border-color: rgba(255, 179, 0, 0.2);
    background: rgba(255, 179, 0, 0.03);
}

[data-theme="rumi"] .btn-secondary:hover {
    border-color: rgba(0, 255, 127, 0.2);
    background: rgba(0, 255, 127, 0.03);
}

[data-theme="friday"] .btn-secondary:hover {
    border-color: rgba(110, 68, 255, 0.2);
    background: rgba(110, 68, 255, 0.03);
}

[data-theme="teto"] .btn-secondary:hover {
    border-color: rgba(255, 0, 85, 0.2);
    background: rgba(255, 0, 85, 0.03);
}

[data-theme="contact"] .btn-secondary:hover {
    border-color: rgba(255, 102, 204, 0.2);
    background: rgba(255, 102, 204, 0.03);
}

.scroll-indicator-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    pointer-events: none;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-mint);
    border-radius: 20%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.5s infinite;
}

.scroll-text {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

@keyframes scroll-wheel-anim {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

/* ==========================================================================
   STORYTELLING ROADMAP SECTION (STICKY PIN)
   ========================================================================== */

.intro-section {
    padding: 100px 0;
    min-height: 100vh;
    position: relative;
    z-index: 5;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.sticky-roadmap-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

.roadmap-left {
    position: sticky;
    top: 150px;
    height: auto;
}

.section-title-md {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.glow-mint {
    color: var(--accent-mint);
}

.timeline-visual {
    padding: 40px 30px;
    position: relative;
    background: rgba(10, 10, 15, 0.4);
}

.timeline-progress-line {
    position: absolute;
    left: 45px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--scroll-percent, 0%);
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-mint));
    transition: height 0.1s linear;
}

.timeline-node {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

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

/* ==========================================================================
   PARALLAX INSTRUMENTS (Classical Piano & Violin)
   ========================================================================== */

.parallax-instrument {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
    filter: drop-shadow(0 0 30px rgba(255, 179, 0, 0.05));
}

.parallax-instrument.visible {
    opacity: 1;
}

.piano-parallax {
    bottom: -40px;
    left: -120px;
    width: 500px;
    transform: translateX(-200px);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
}

.piano-parallax.visible {
    transform: translateX(0);
}

.violin-parallax {
    top: 10%;
    right: -100px;
    width: 160px;
    transform: translateY(-150px) rotate(-8deg);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
}

.violin-parallax.visible {
    transform: translateY(0) rotate(-8deg);
}

.classical-notes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.music-note {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 179, 0, 0.08);
    animation: note-float 8s ease-in-out infinite;
}

.note-1 { top: 15%; left: 10%; animation-delay: 0s; }
.note-2 { top: 25%; right: 15%; animation-delay: 1.5s; }
.note-3 { top: 50%; left: 20%; animation-delay: 3s; }
.note-4 { top: 65%; right: 25%; animation-delay: 4.5s; }
.note-5 { top: 80%; left: 40%; animation-delay: 6s; }

@keyframes note-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    50% { transform: translateY(-30px) rotate(15deg); opacity: 0.15; }
}

.node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-black);
    border: 2px solid var(--text-muted);
    transition: var(--transition-fast);
}

.node-label {
    font-family: var(--font-grotesk);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.timeline-node.active .node-dot {
    border-color: var(--accent-mint);
    background-color: var(--accent-mint);
    box-shadow: 0 0 12px var(--accent-mint);
}

.timeline-node.active .node-label {
    color: var(--text-white);
    font-weight: 600;
}

.roadmap-subtitle {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin-top: -20px;
    margin-bottom: 28px;
    font-family: var(--font-grotesk);
    line-height: 1.5;
    opacity: 0.7;
}

.node-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-node:hover .node-desc,
.timeline-node.active .node-desc {
    opacity: 0.8;
    transform: translateY(0);
}

.roadmap-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.roadmap-stat {
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(57, 197, 187, 0.1);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: var(--font-mono);
}

.roadmap-right {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 100px;
}

.roadmap-step {
    padding: 50px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.roadmap-step:hover {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.04);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.8rem;
    font-family: var(--font-grotesk);
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-white);
}

.step-desc {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-silver);
    font-weight: 300;
    margin-bottom: 24px;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-silver);
}

/* ==========================================================================
   ABOUT / INTELLIGENCE PROFILE SECTION
   ========================================================================== */

.about-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
}

.section-pre {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-family: var(--font-grotesk);
    color: var(--text-white);
}

/* Text scramble decode character */
.scramble-char {
    color: var(--accent-mint);
    opacity: 0.7;
    text-shadow: 0 0 8px var(--accent-mint-glow);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.profile-card {
    padding: 40px;
    background: rgba(10, 10, 15, 0.45);
}

.profile-glitch-container {
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.profile-diagram-mesh {
    width: 200px;
    height: 200px;
}

.profile-avatar-overlay {
    position: absolute;
    bottom: 20px;
    text-align: center;
}

.avatar-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-indigo);
    letter-spacing: 0.1em;
}

.avatar-alias {
    font-family: var(--font-grotesk);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 4px;
}

.profile-bio {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-silver);
    font-weight: 300;
}

/* Dynamic Workspace Synchronizer */
.synchronizer-card {
    padding: 32px;
    background: rgba(255, 50, 150, 0.01);
}

.sync-header {
    margin-bottom: 18px;
}

.sync-tag-active {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-magenta);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.sync-title {
    font-family: var(--font-grotesk);
    font-size: 1.25rem;
    font-weight: 600;
}

.sync-body p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-silver);
    line-height: 1.5;
    margin-bottom: 20px;
}

.sync-input-container {
    display: flex;
    gap: 12px;
}

.sync-input {
    flex-grow: 1;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    padding: 0 20px;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.sync-input:focus {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 10px rgba(255, 50, 150, 0.1);
}

.btn-sync {
    background: var(--accent-magenta);
    color: var(--text-white);
    border-radius: 22px;
    height: 44px;
    padding: 0 20px;
    font-size: 0.7rem;
    border: none;
    font-weight: 700;
}

.btn-sync:hover {
    box-shadow: 0 0 15px rgba(255, 50, 150, 0.3);
    transform: translateY(-1px);
}

.sync-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.sync-status.active {
    color: var(--accent-mint);
    animation: status-pulse 1s infinite;
}

.skills-card {
    padding: 40px;
    background: rgba(10, 10, 15, 0.45);
}

/* ==========================================================================
   IDENTITY MATRIX CARD — Match about-section glassmorphism
   ========================================================================== */
.identity-roles-card {
    padding: 40px;
    background: rgba(10, 10, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.identity-roles-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-mint), var(--accent-teto), var(--accent-rin));
    opacity: 0.6;
}

.identity-roles-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(110, 68, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.identity-roles-card .card-title {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
}

.identity-roles-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.identity-role {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.identity-role::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.identity-role:hover::before {
    opacity: 1;
}

.identity-role:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.role-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--role-color, var(--accent-mint));
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.identity-role:hover .role-icon-box {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.role-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-title {
    font-family: var(--font-grotesk);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.role-desc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.card-title {
    font-family: var(--font-grotesk);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-silver);
    font-weight: 450;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    background-color: var(--bar-color);
    box-shadow: 0 0 8px var(--bar-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-box {
    padding: 24px;
    background: rgba(10, 10, 15, 0.3);
}

.metric-val {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-grotesk);
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-val.text-indigo {
    color: var(--accent-indigo);
    text-shadow: 0 0 15px var(--accent-indigo-glow);
}

.metric-val.text-mint {
    color: var(--accent-mint);
    text-shadow: 0 0 15px var(--accent-mint-glow);
}

.metric-val.text-magenta {
    color: var(--accent-magenta);
    text-shadow: 0 0 15px var(--accent-magenta-glow);
}

.metric-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-6 {
    margin-top: 24px;
}

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

/* ==========================================================================
   PROJECT REVEAL LAYOUTS (RUMI & FRIDAY)
   ========================================================================== */

.project-showcase-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.rumi-theme {
    background: linear-gradient(180deg, var(--bg-black) 0%, rgba(0, 255, 127, 0.005) 50%, var(--bg-black) 100%);
}

.friday-theme {
    background: linear-gradient(180deg, var(--bg-black) 0%, rgba(110, 68, 255, 0.005) 50%, var(--bg-black) 100%);
}

.project-reveal-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.project-reveal-layout.rev-layout {
    grid-template-columns: 1.2fr 1fr;
}

.project-specs-panel {
    display: flex;
    flex-direction: column;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.mint-glow-text {
    color: var(--accent-mint);
    text-shadow: 0 0 10px var(--accent-mint-glow);
}

.indigo-glow-text {
    color: var(--accent-indigo);
    text-shadow: 0 0 10px var(--accent-indigo-glow);
}

.project-title-large {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-family: var(--font-grotesk);
    margin-bottom: 8px;
}

.project-tagline {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-silver);
    margin-bottom: 24px;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-silver);
    font-weight: 300;
    margin-bottom: 36px;
}

.architecture-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.arch-node-item {
    position: relative;
    padding-left: 20px;
}

.arch-node-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.project-specs-panel .arch-node-item:nth-child(1)::before {
    background-color: var(--accent-mint);
}

.project-specs-panel .arch-node-item:nth-child(2)::before {
    background-color: var(--accent-indigo);
}

.arch-node-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.arch-node-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-cta-row {
    display: flex;
    gap: 16px;
}

.rumi-btn {
    border-color: rgba(0, 255, 127, 0.2);
    background-color: rgba(0, 255, 127, 0.02);
    color: var(--accent-mint);
}

.rumi-btn:hover {
    border-color: var(--accent-mint);
    background-color: var(--accent-mint);
    color: var(--bg-black);
    box-shadow: 0 0 25px rgba(0, 255, 127, 0.2);
}

.friday-btn {
    border-color: rgba(110, 68, 255, 0.2);
    background-color: rgba(110, 68, 255, 0.02);
    color: var(--accent-indigo);
}

.friday-btn:hover {
    border-color: var(--accent-indigo);
    background-color: var(--accent-indigo);
    color: var(--text-white);
    box-shadow: 0 0 25px rgba(110, 68, 255, 0.2);
}

/* Interactive Workbench Dashboard Panels */
.workbench-card {
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workbench-header {
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workbench-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.workbench-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-silver);
}

.workbench-status.running {
    color: var(--accent-mint);
    animation: status-pulse 1.2s infinite;
}

.workbench-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    overflow: hidden;
}

.console-box {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-output {
    flex-grow: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-silver);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.console-line {
    word-break: break-all;
    line-height: 1.5;
}

.console-line.cmd {
    color: var(--accent-mint);
}

.console-line.result {
    color: var(--text-white);
}

.console-line.alert {
    color: var(--accent-magenta);
}

.console-footer {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
}

.btn-console {
    flex-grow: 1;
    height: 38px;
    background: transparent;
    border: 1px solid var(--accent-mint);
    color: var(--accent-mint);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-console:hover {
    background-color: rgba(0, 255, 127, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.1);
}

.graph-visualizer-container {
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.graph-legend {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.legend-dot.green {
    background-color: var(--accent-mint);
}

.legend-dot.purple {
    background-color: var(--accent-indigo);
}

.legend-dot.blue {
    background-color: var(--accent-magenta);
}

.graph-space {
    width: 100%;
    height: 100%;
    position: relative;
}

.graph-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-fast);
    z-index: 10;
}

.graph-node::after {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    white-space: nowrap;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.graph-node:hover::after {
    color: var(--text-white);
    font-size: 0.65rem;
}

.graph-node.gene {
    background-color: var(--accent-mint);
    box-shadow: 0 0 10px var(--accent-mint);
}

.graph-node.drug {
    background-color: var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo);
}

.graph-node.pathway {
    background-color: var(--accent-magenta);
    box-shadow: 0 0 10px var(--accent-magenta);
}

.graph-link-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Friday OS tab systems */
.os-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
    padding-bottom: 12px;
}

.os-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.os-tab-btn:hover {
    color: var(--text-silver);
    background: rgba(255, 255, 255, 0.02);
}

.os-tab-btn.active {
    color: var(--accent-indigo);
    background: rgba(110, 68, 255, 0.04);
    border-color: rgba(110, 68, 255, 0.15);
}

.os-tab-content {
    display: none;
    flex-grow: 1;
    overflow: hidden;
}

.os-tab-content.active {
    display: flex;
    flex-direction: column;
}

.os-terminal-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.os-terminal-output {
    flex-grow: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-silver);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sys-out {
    color: var(--text-muted);
}

.friday-reply {
    color: var(--accent-indigo);
}

.os-terminal-input-container {
    height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.os-prompt {
    font-family: var(--font-mono);
    color: var(--accent-indigo);
    font-size: 0.85rem;
    margin-right: 8px;
}

.os-term-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.memory-stream-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.memory-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 0 10px;
}

.memory-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-row {
    padding: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mem-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mem-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.mem-type.neural {
    color: var(--accent-indigo);
    background: rgba(110, 68, 255, 0.05);
}

.mem-type.episodic {
    color: var(--accent-magenta);
    background: rgba(255, 50, 150, 0.05);
}

.mem-type.procedural {
    color: var(--accent-mint);
    background: rgba(0, 255, 127, 0.05);
}

.mem-val {
    font-size: 0.8rem;
    color: var(--text-white);
    font-weight: 300;
}

.mem-strength {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-indigo);
}

.brain-status-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.brain-grid-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.brain-module-box {
    padding: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.b-icon {
    font-size: 1.1rem;
}

.b-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-silver);
}

.b-state {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 255, 127, 0.05);
    color: var(--accent-mint);
    border: 1px solid rgba(0, 255, 127, 0.1);
}

.terminal-dots {
    display: flex;
}

.dot-win {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-win.red {
    background-color: rgba(255, 95, 86, 0.3);
}

.dot-win.yellow {
    background-color: rgba(255, 189, 46, 0.3);
}

.dot-win.green {
    background-color: rgba(39, 201, 63, 0.3);
}

/* ==========================================================================
   RESEARCH & COGNITIVE ARCHITECTURE SECTION
   ========================================================================= */

.research-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

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

.arch-card {
    padding: 40px;
    background: rgba(10, 10, 15, 0.35);
    border-radius: 12px;
}

.arch-card-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.arch-card-title {
    font-size: 1.4rem;
    font-family: var(--font-grotesk);
    font-weight: 600;
    margin-bottom: 16px;
}

.arch-card-desc {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
}

.arch-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arch-card-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}

.arch-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.arch-card-list li strong {
    color: var(--text-white);
}

.system-map-container {
    padding: 40px;
    background: rgba(10, 10, 15, 0.4);
    overflow: hidden;
}

.map-title {
    font-family: var(--font-grotesk);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #39c5bb, #6e44ff, #ff0055);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.map-stat-num {
    color: rgba(57, 197, 187, 0.7);
    font-weight: 600;
    margin-right: 4px;
}

.system-map-graphic {
    width: 100%;
    height: 420px;
}

.sys-map-svg {
    width: 100%;
    height: 100%;
}

.sys-map-node {
    cursor: pointer;
}

.sys-map-node circle,
.sys-map-node path {
    transition: all 0.3s ease;
}

.sys-map-node:hover circle {
    r: 12px;
}

.sys-map-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    fill: var(--text-silver);
    transition: fill 0.3s ease;
}

.sys-map-desc {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    fill: var(--text-muted);
    transition: opacity 0.3s ease;
}

.sys-map-node:hover .sys-map-text {
    fill: var(--text-white);
}

.sys-map-node-rumi circle { transition: all 0.3s ease; }
.sys-map-node-friday circle { transition: all 0.3s ease; }
.sys-map-node-output circle { transition: all 0.3s ease; }

/* ==========================================================================
   GITHUB REPOS CONTAINER
   ========================================================================== */

.github-section-layout {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.repos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.repo-card {
    padding: 32px;
    background: rgba(10, 10, 15, 0.45);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    height: 220px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.repo-card:hover {
    border-color: rgba(110, 68, 255, 0.2);
    background: rgba(110, 68, 255, 0.01);
}

.repo-card.rumi-glow-hover:hover {
    border-color: rgba(0, 255, 127, 0.2);
    background: rgba(0, 255, 127, 0.01);
}

.repo-card.friday-glow-hover:hover {
    border-color: rgba(110, 68, 255, 0.2);
    background: rgba(110, 68, 255, 0.01);
}

.repo-card.friday-glow-hover .repo-url-symbol {
    color: var(--accent-indigo);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.repo-title {
    font-family: var(--font-grotesk);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}

.repo-url-symbol {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-indigo);
}

.repo-card.rumi-glow-hover .repo-url-symbol {
    color: var(--accent-mint);
}

.repo-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-silver);
    font-weight: 300;
    flex-grow: 1;
    margin-bottom: 24px;
}

.repo-footer {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.lang-color.python {
    background-color: #3572A5;
}

.lang-color.js {
    background-color: #f1e05a;
}

.repo-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.contribution-heatmap-card {
    padding: 32px;
    background: rgba(10, 10, 15, 0.4);
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    height: 70px;
}

.heatmap-cell {
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.015);
    transition: var(--transition-fast);
}

.heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 10;
}

.heatmap-cell.level-1 {
    background: rgba(110, 68, 255, 0.15);
}

.heatmap-cell.level-2 {
    background: rgba(110, 68, 255, 0.35);
}

.heatmap-cell.level-3 {
    background: rgba(0, 255, 127, 0.4);
}

.heatmap-cell.level-4 {
    background: rgba(0, 255, 127, 0.75);
}

/* ==========================================================================
   CONTACT TERMINAL PORTAL SECTION
   ========================================================================== */

.contact-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--accent-magenta);
    margin-bottom: 12px;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--font-grotesk);
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-silver);
    font-weight: 300;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    padding: 12px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.contact-link-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent-magenta);
}

.contact-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-silver);
}

.terminal-contact-card {
    height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-contact-body {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
}

.contact-terminal-output {
    flex-grow: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-silver);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}

.term-log {
    margin-bottom: 2px;
}

.term-log.input {
    color: var(--accent-magenta);
}

.term-log.output {
    color: var(--text-white);
}

.term-log.help {
    color: var(--text-muted);
}

.contact-terminal-input-row {
    height: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    padding-top: 12px;
}

.term-prompt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-magenta);
    margin-right: 10px;
}

.contact-term-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.footer-layout {
    padding: 60px 0 40px;
    position: relative;
    z-index: 5;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE LAYOUT RESPONSIVENESS
   ========================================================================== */

@media (max-width: 1024px) {
    .sticky-roadmap-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .roadmap-left {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

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

    .project-reveal-layout,
    .project-reveal-layout.rev-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .hamburger-btn {
        display: flex;
        /* Show hamburger on mobile */
    }

    .header-status {
        display: none;
        /* Hide status on mobile to save space */
    }

    .glass-header {
        padding: 0 16px;
        height: 56px;
        top: 12px;
    }

    .logo {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

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

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .repos-container {
        grid-template-columns: 1fr;
    }

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

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

    .project-title-large {
        font-size: 2.5rem;
    }

    .profile-card {
        padding: 24px;
    }

    .arch-card {
        padding: 28px;
    }

    .workbench-card {
        height: 420px;
    }

    .sync-input-container {
        flex-direction: column;
    }

    .btn-sync {
        width: 100%;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-link-item {
        width: 100%;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .roadmap-step {
        padding: 30px 20px;
    }

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

    .custom-cursor {
        display: none;
        /* Disable cursor tracking on mobile screen sizes */
    }

    * {
        cursor: auto !important;
    }

    .heatmap-grid {
        grid-template-columns: repeat(26, 1fr);
        gap: 2px;
    }
}

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

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

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

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

    .project-title-large {
        font-size: 2rem;
    }

    .glass-header {
        width: 95%;
        height: 50px;
        top: 8px;
        padding: 0 12px;
    }

    .brand-divider {
        margin: 0 4px;
    }

    .logo {
        font-size: 0.65rem;
    }

    .contact-terminal-input-row {
        flex-direction: column;
        gap: 8px;
    }

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

    .os-tabs {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   METACOGNITIVE BACKGROUND ALERTS (GIMMICK FLOATERS)
   ========================================================================== */

.gimmick-float {
    position: fixed;
    z-index: 2;
    /* behind text content, in front of background overlay */
    padding: 10px 16px;
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(57, 197, 187, 0.15);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-mint);
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(57, 197, 187, 0.05);
    transition: opacity 0.5s ease;
}

.gimmick-float .bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-magenta);
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-magenta);
    animation: status-pulse 1.5s infinite;
}

.gimmick-float.active {
    opacity: 0.55;
    /* Faint in the background, not highlighting too much */
}

/* Crawling dash animation for SVG lines */
@keyframes graph-dash {
    to {
        stroke-dashoffset: -40;
    }
}

/* ==========================================================================
   PROJECT CASE FILES SECTION
   ========================================================================== */

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

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 12px;
    text-align: center;
}

.project-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.project-case-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 30px rgba(57, 197, 187, 0.05);
}

.case-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.case-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.case-status {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 255, 127, 0.08);
    color: var(--accent-mint);
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.status-wip {
    background: rgba(255, 0, 85, 0.08);
    color: var(--accent-teto);
    border: 1px solid rgba(255, 0, 85, 0.2);
}

.case-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.case-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 16px;
}

.case-name {
    font-family: var(--font-grotesk);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.case-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-silver);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-label-icon {
    font-size: 0.85rem;
}

.case-text {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-silver);
}

.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-list li {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-silver);
    padding-left: 16px;
    position: relative;
}

.case-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-mint);
    font-weight: 700;
}

.case-list li strong {
    color: var(--text-white);
    font-weight: 600;
}

.case-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-silver);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.project-case-card:hover .tech-tag {
    background: rgba(57, 197, 187, 0.06);
    border-color: rgba(57, 197, 187, 0.15);
    color: var(--accent-mint);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-silver);
    text-decoration: none;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.3s ease;
}

.case-link:hover {
    color: var(--accent-mint);
}

.case-link-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-link:hover .case-link-arrow {
    transform: translateX(6px);
}

@keyframes key-press {
    0% {
        transform: scaleY(1);
        opacity: 0.25;
    }

    100% {
        transform: scaleY(0.7);
        opacity: 0.5;
    }
}

@keyframes spin-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-counter {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes eq-bounce {
    0% {
        transform: scaleY(0.2);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Mobile: stack case cards */
@media (max-width: 768px) {
    .project-cases-grid {
        grid-template-columns: 1fr;
    }

    .case-name {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   PREMIUM $50K EFFECTS — NOISE, BORDERS, RIPLES, TRANSITIONS
   ========================================================================== */

/* --- PROCEDURAL NOISE OVERLAY (Film Grain) --- */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    mix-blend-mode: overlay;
    animation: noise-shift 0.2s steps(3) infinite;
}

@keyframes noise-shift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-2px, 1px); }
    66% { transform: translate(1px, -1px); }
    100% { transform: translate(-1px, 2px); }
}

/* --- ANIMATED CONIC GRADIENT BORDERS (Cross-Browser) --- */
.animated-border {
    position: relative;
    border: none !important;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0%,
        var(--accent-mint) 10%,
        transparent 20%,
        transparent 45%,
        var(--accent-teto) 55%,
        transparent 65%,
        transparent 80%,
        var(--accent-rin) 90%,
        transparent 100%
    );
    border-radius: inherit;
    z-index: -1;
    animation: border-spin 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

.animated-border::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-panel);
    border-radius: inherit;
    z-index: -1;
    backdrop-filter: blur(16px);
}

@keyframes border-spin {
    to { transform: rotate(360deg); }
}

/* --- ENERGY RIPPLE ON CLICK --- */
.energy-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50%;
    border: 2px solid var(--accent-mint);
    animation: ripple-expand 0.8s ease-out forwards;
}

.energy-ripple.teto {
    border-color: var(--accent-teto);
}

.energy-ripple.rin {
    border-color: var(--accent-rin);
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- CINEMATIC SECTION REVEAL TRANSITIONS --- */
.section-reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    filter: blur(8px);
    transition: none;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.section-reveal-left {
    opacity: 0;
    transform: translateX(-120px) scale(0.96);
    filter: blur(8px);
}

.section-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.section-reveal-right {
    opacity: 0;
    transform: translateX(120px) scale(0.96);
    filter: blur(8px);
}

.section-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.section-reveal-zoom {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(12px);
}

.section-reveal-zoom.revealed {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Clip-path reveals — now handled by GSAP (same as other sections) */
.section-reveal-clip,
.section-reveal-diamond,
.section-reveal-wipe {
    /* GSAP handles opacity/transform initial state */
}

/* --- PARALLAX DEPTH LAYERS --- */
.parallax-layer {
    will-change: transform;
    transform: translateZ(0);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-mid {
    position: relative;
    z-index: 2;
}

.parallax-fg {
    position: relative;
    z-index: 4;
}

/* --- SECTION COLOR OVERLAYS (Vocaloid gradient shifts) --- */
.section-color-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.wash-miku {
    background: radial-gradient(ellipse at 30% 50%, var(--accent-mint), transparent 70%);
}

.wash-teto {
    background: radial-gradient(ellipse at 70% 50%, var(--accent-teto), transparent 70%);
}

.wash-rin {
    background: radial-gradient(ellipse at 50% 30%, var(--accent-rin), transparent 70%);
}

.wash-indigo {
    background: radial-gradient(ellipse at 50% 70%, var(--accent-indigo), transparent 70%);
}

.wash-classical {
    background: radial-gradient(ellipse at 30% 60%, var(--accent-rin), transparent 70%);
}

/* ==========================================================================
   DYNAMIC SECTION THEMES (Scroll-driven accent switching)
   ========================================================================== */

[data-theme="cosmic"] { --current-accent: var(--accent-mint); --current-glow: var(--accent-mint-glow); }
[data-theme="classical"] { --current-accent: var(--accent-rin); --current-glow: var(--accent-rin-glow); }
[data-theme="vocaloid"] { --current-accent: var(--accent-mint); --current-glow: var(--accent-mint-glow); }
[data-theme="rumi"] { --current-accent: var(--accent-mint); --current-glow: var(--accent-mint-glow); }
[data-theme="friday"] { --current-accent: var(--accent-indigo); --current-glow: var(--accent-indigo-glow); }
[data-theme="teto"] { --current-accent: var(--accent-teto); --current-glow: var(--accent-teto-glow); }
[data-theme="research"] { --current-accent: var(--accent-rin); --current-glow: var(--accent-rin-glow); }
[data-theme="contact"] { --current-accent: var(--accent-magenta); --current-glow: var(--accent-magenta-glow); }

[data-theme] .glass-header {
    transition: background 0.8s ease, border-color 0.8s ease;
}

[data-theme="classical"] .glass-header {
    background: rgba(10, 10, 15, 0.55);
    border-color: rgba(255, 179, 0, 0.06);
}

[data-theme="vocaloid"] .glass-header {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(57, 197, 187, 0.06);
}

[data-theme="rumi"] .glass-header {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(0, 255, 127, 0.06);
}

[data-theme="friday"] .glass-header {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(110, 68, 255, 0.06);
}

[data-theme="teto"] .glass-header {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(255, 0, 85, 0.06);
}

[data-theme="research"] .glass-header {
    background: rgba(10, 10, 15, 0.55);
    border-color: rgba(255, 179, 0, 0.06);
}

[data-theme="contact"] .glass-header {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(255, 102, 204, 0.06);
}

.theme-transition {
    transition: background-color 1.2s ease, color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

/* --- GRADIENT TEXT SHIMMER --- */
.text-gradient-shimmer {
    background: linear-gradient(
        90deg,
        var(--accent-mint),
        var(--accent-indigo),
        var(--accent-teto),
        var(--accent-rin),
        var(--accent-mint)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease-in-out infinite;
}

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

/* --- ENHANCED GLASSMORPHISM WITH NOISE --- */
.glass-panel-premium {
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.glass-panel-premium:hover::before {
    left: 100%;
}

/* --- GLOW DIFFUSION ON HOVER --- */
.glow-diffusion {
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-diffusion:hover {
    box-shadow:
        0 0 40px rgba(57, 197, 187, 0.08),
        0 0 80px rgba(57, 197, 187, 0.04),
        0 30px 60px rgba(0, 0, 0, 0.4);
}

/* --- SOFT PULSE RESPONSE --- */
@keyframes soft-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(57, 197, 187, 0);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(57, 197, 187, 0.15);
    }
}

.pulse-on-interact:active {
    animation: soft-pulse 0.4s ease-out;
}

/* --- MAGNETIC BUTTON ENHANCED --- */
.btn-mega {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-mega::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.btn-mega:hover::before {
    width: 300px;
    height: 300px;
}

.btn-mega > * {
    position: relative;
    z-index: 1;
}

/* --- DYNAMIC REFLECTION SPOT --- */
.dynamic-reflection {
    position: relative;
    overflow: hidden;
}

.dynamic-reflection::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.dynamic-reflection:hover::after {
    opacity: 1;
}

/* --- CINEMATIC SECTION DIVIDERS --- */
.section-divider-cinematic {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-mint) 20%,
        var(--accent-indigo) 50%,
        var(--accent-teto) 80%,
        transparent
    );
    opacity: 0.3;
    margin: 0;
}

/* --- FLOATING PARTICLE CANVAS LAYER --- */
.particle-canvas-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
}

/* --- TEXT REVEAL ANIMATIONS --- */
.text-split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-40deg);
    transform-origin: bottom center;
}

.text-split-char.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SCROLL PROGRESS INDICATOR --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-indigo), var(--accent-teto), var(--accent-rin));
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
}

/* --- VOLUMETRIC LIGHT BEAMS --- */
.light-beam {
    position: fixed;
    width: 2px;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(57, 197, 187, 0.03) 30%,
        rgba(57, 197, 187, 0.06) 50%,
        rgba(57, 197, 187, 0.03) 70%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: beam-sweep 12s ease-in-out infinite;
}

.light-beam-2 {
    animation-delay: -4s;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 0, 85, 0.03) 30%,
        rgba(255, 0, 85, 0.06) 50%,
        rgba(255, 0, 85, 0.03) 70%,
        transparent
    );
}

.light-beam-3 {
    animation-delay: -8s;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 179, 0, 0.02) 30%,
        rgba(255, 179, 0, 0.04) 50%,
        rgba(255, 179, 0, 0.02) 70%,
        transparent
    );
}

@keyframes beam-sweep {
    0%, 100% {
        left: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        left: 110%;
    }
}

/* --- ENHANCED PRELOADER STYLES --- */
.preloader-vocaloid-text {
    position: absolute;
    font-family: var(--font-grotesk);
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    text-shadow: 0 0 20px currentColor;
}

.preloader-vocaloid-text.miku-text {
    color: var(--accent-mint);
    top: 45%;
    left: 15%;
}

.preloader-vocaloid-text.teto-text {
    color: var(--accent-teto);
    top: 55%;
    right: 15%;
}

.preloader-vocaloid-text.rin-text {
    color: var(--accent-rin);
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.preloader-orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.preloader-orbital-ring:nth-child(1) {
    width: 300px;
    height: 300px;
    border-color: rgba(57, 197, 187, 0.1);
    animation: spin-clockwise 12s linear infinite;
}

.preloader-orbital-ring:nth-child(2) {
    width: 450px;
    height: 450px;
    border-color: rgba(255, 0, 85, 0.08);
    animation: spin-counter 18s linear infinite;
    border-style: dashed;
}

.preloader-orbital-ring:nth-child(3) {
    width: 600px;
    height: 600px;
    border-color: rgba(255, 179, 0, 0.05);
    animation: spin-clockwise 25s linear infinite;
    border-style: dotted;
}

/* --- GRAVITATIONAL LENSING RING --- */
.lensing-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(
        from 0deg,
        rgba(57, 197, 187, 0.4),
        rgba(110, 68, 255, 0.3),
        rgba(255, 0, 85, 0.4),
        rgba(255, 179, 0, 0.3),
        rgba(57, 197, 187, 0.4)
    );
    -webkit-mask: radial-gradient(circle, transparent 45%, black 46%, black 54%, transparent 55%);
    mask: radial-gradient(circle, transparent 45%, black 46%, black 54%, transparent 55%);
    z-index: 5;
    animation: spin-clockwise 3s linear infinite;
    filter: blur(1px);
    opacity: 0;
}

/* --- VOCALOID BOOT PHASE INDICATORS --- */
.boot-phase-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    z-index: 10;
    pointer-events: none;
}

.boot-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.boot-phase.active {
    opacity: 1;
}

.boot-phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.boot-phase.active .boot-phase-dot {
    box-shadow: 0 0 12px currentColor;
}

.boot-phase-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.boot-phase.active .boot-phase-label {
    color: var(--text-white);
}

/* --- BOOT TERMINAL --- */
.boot-terminal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 88vw);
    background: rgba(5, 5, 12, 0.82);
    border: 1px solid rgba(57, 197, 187, 0.18);
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(57, 197, 187, 0.08), inset 0 0 50px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

.boot-terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(10, 10, 20, 0.6);
    border-bottom: 1px solid rgba(57, 197, 187, 0.1);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-title {
    margin-left: 10px;
    font-size: 0.65rem;
    color: rgba(57, 197, 187, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.boot-terminal-body {
    padding: 12px 16px;
    max-height: 180px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.boot-terminal-line {
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(57, 197, 187, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(8px);
    animation: terminal-line-in 0.3s ease forwards;
    flex-shrink: 0;
}

.boot-terminal-line .terminal-prompt {
    color: rgba(110, 68, 255, 0.8);
}

.boot-terminal-line .terminal-cmd {
    color: rgba(57, 197, 187, 0.9);
}

.boot-terminal-line .terminal-result {
    color: rgba(255, 255, 255, 0.35);
    padding-left: 16px;
}

.boot-terminal-line .terminal-ok {
    color: rgba(39, 201, 63, 0.8);
}

.boot-terminal-line .terminal-warn {
    color: rgba(255, 189, 46, 0.7);
}

.boot-terminal-line .terminal-err {
    color: rgba(255, 95, 86, 0.7);
}

.boot-terminal-line .terminal-dim {
    color: rgba(255, 255, 255, 0.2);
}

@keyframes terminal-line-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boot-terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: rgba(57, 197, 187, 0.8);
    margin-left: 2px;
    animation: terminal-blink 0.8s step-end infinite;
    vertical-align: middle;
}

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

.preloader-bloom .boot-terminal {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- SCROLL-LINKED DEPTH INDICATOR --- */
.depth-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.depth-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.depth-line-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-mint);
    border-radius: 1px;
    transition: height 0.3s ease;
    box-shadow: 0 0 8px var(--accent-mint);
}

/* --- ANIMATED GRID BACKGROUND (Procedural) --- */
.animated-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(57, 197, 187, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(57, 197, 187, 0.3) 1px, transparent 1px);
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* --- HOLOGRAPHIC SHIMMER --- */
.holographic {
    background: linear-gradient(
        135deg,
        rgba(57, 197, 187, 0.1) 0%,
        rgba(110, 68, 255, 0.1) 25%,
        rgba(255, 0, 85, 0.1) 50%,
        rgba(255, 179, 0, 0.1) 75%,
        rgba(57, 197, 187, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: holographic-shift 8s ease-in-out infinite;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* --- RESPONSIVE: Disable heavy effects on mobile --- */
@media (max-width: 768px) {
    .noise-overlay,
    .light-beam,
    .animated-grid,
    .particle-canvas-layer,
    .depth-indicator {
        display: none;
    }

    .section-reveal,
    .section-reveal-left,
    .section-reveal-right,
    .section-reveal-zoom,
    .section-reveal-clip,
    .section-reveal-diamond,
    .section-reveal-wipe {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }

    .animated-border::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .noise-overlay,
    .light-beam,
    .animated-grid,
    .particle-canvas-layer {
        display: none;
    }

    .section-reveal,
    .section-reveal-left,
    .section-reveal-right,
    .section-reveal-zoom,
    .section-reveal-clip,
    .section-reveal-diamond,
    .section-reveal-wipe {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }

    .animated-border::before {
        animation: none;
    }

    .energy-ripple {
        display: none;
    }
}
/* ==========================================================================
   NEW ANIMATIONS — DESIGN UPGRADE
   ========================================================================== */

/* Animated gradient border rotation */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 40%,
        var(--accent-mint) 50%,
        var(--accent-indigo) 60%,
        var(--accent-magenta) 70%,
        transparent 80%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-rotate 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes border-rotate {
    to { --border-angle: 360deg; }
}

/* Staggered word reveal on scroll */
.word-reveal {
    display: inline-block;
    overflow: hidden;
}

.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 0.25em;
}

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

/* Typewriter cursor blink for terminals */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-mint);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: typewriter-blink 0.8s step-end infinite;
}

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

/* Floating skill tags */
.skill-tag-bubble {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tag-bubble:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Glowing pulse for active elements */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(57, 197, 187, 0.1), 0 0 15px rgba(57, 197, 187, 0.05);
    }
    50% {
        box-shadow: 0 0 15px rgba(57, 197, 187, 0.2), 0 0 30px rgba(57, 197, 187, 0.1);
    }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Section divider animation */
.section-animated-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 197, 187, 0.3), rgba(110, 68, 255, 0.3), transparent);
    position: relative;
    overflow: hidden;
}

.section-animated-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: divider-sweep 3s ease-in-out infinite;
}

@keyframes divider-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Smooth scale on card hover */
.glass-panel {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Staggered fade-in for grid children */
.stagger-fade-in > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-fade-in.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-fade-in.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-fade-in.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-fade-in.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-fade-in.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-fade-in.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-fade-in.revealed > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-fade-in.revealed > *:nth-child(8) { transition-delay: 0.56s; }

.stagger-fade-in.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Metric counter pop animation */
.metric-val {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.metric-val.counting {
    transform: scale(1.1);
}

/* Smooth header shrink on scroll */
.glass-header.scrolled {
    height: 56px;
    background: rgba(10, 10, 15, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Link underline animation */
.contact-link-item {
    position: relative;
}

.contact-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-indigo));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Project case card hover lift */
.project-case-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.project-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Arch card glow on hover */
.arch-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.arch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Identity role hover glow */
.identity-role:hover .role-icon-box {
    box-shadow: 0 0 20px var(--role-color, var(--accent-mint));
}

/* Footer reveal animation */
.footer-layout {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-layout.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Improved focus states */
.btn:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(57, 197, 187, 0.15);
}

/* Smooth scroll indicator fade */
.scroll-indicator-container {
    animation: scroll-indicator-breathe 3s ease-in-out infinite;
}

@keyframes scroll-indicator-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Hero title subtle letter spacing animation */
.hero-title {
    animation: title-breathe 6s ease-in-out infinite;
}

@keyframes title-breathe {
    0%, 100% { letter-spacing: -0.03em; }
    50% { letter-spacing: -0.02em; }
}

/* Noise overlay reduced */
.noise-overlay {
    opacity: 0.025;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animated-border::before,
    .section-animated-divider::after,
    .word-reveal .word,
    .typewriter-cursor {
        animation: none !important;
        transition: none !important;
    }
    .word-reveal .word {
        opacity: 1;
        transform: none;
    }
}
