/* ======= THEME ======= */
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg2: #111;
    --text: #f0f0f0;
    --text2: #888;
    --text3: #555;
    --accent: #c8ff00;
    --accent2: #00f0ff;
    --border: rgba(255,255,255,0.08);
    --glass: rgba(10,10,10,0.75);
    --glass2: rgba(255,255,255,0.04);
    --video-overlay: rgba(0,0,0,0.35);
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #f8f7f5;
    --bg2: #f0ede8;
    --text: #1a1a1a;
    --text2: #555;
    --text3: #888;
    --accent: #6b00ff;
    --accent2: #0066ff;
    --border: rgba(0,0,0,0.12);
    --glass: rgba(248,247,245,0.85);
    --glass2: rgba(0,0,0,0.04);
    --video-overlay: rgba(248,247,245,0.45);
    color-scheme: light;
}

:root {
    --font: 'Inter', sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ======= RESET ======= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; border: none; background: none; color: inherit; font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 0; }

/* Skip Link (Accessibility) */
.skip-link {
    position: fixed; top: -100%; left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    background: var(--accent); color: var(--bg);
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 100000;
    transition: top 0.3s;
    cursor: pointer;
}
.skip-link:focus {
    top: 0;
    outline: none;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }

/* ======= PRELOADER ======= */
.preloader {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: clip-path 1s var(--ease);
    clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader-counter {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

/* ======= GRAIN ======= */
.grain::after {
    content: '';
    position: fixed; top: -50%; right: -50%; bottom: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 10000;
    animation: grain 0.4s steps(8) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-5%, -8%); }
    40% { transform: translate(7%, 3%); }
    60% { transform: translate(-3%, 6%); }
    80% { transform: translate(4%, -4%); }
}

/* ======= VIDEO BG ======= */
.video-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; overflow: hidden; }
.video-bg video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%) scale(1.15);
    object-fit: cover;
    filter: saturate(1.3) contrast(1.15) brightness(0.95);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] .video-bg video {
    filter: saturate(1.5) contrast(1.1) brightness(1.25) hue-rotate(-5deg);
}

.video-gradient-mesh {
    position: absolute; top: -20%; right: -20%; bottom: -20%; left: -20%; width: 140%; height: 140%; z-index: 1;
    background:
        radial-gradient(ellipse 70% 55% at 15% 85%, rgba(0,255,120,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(130,0,255,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,220,255,0.1) 0%, transparent 45%),
        radial-gradient(ellipse 45% 35% at 75% 70%, rgba(255,0,128,0.09) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 25% 30%, rgba(255,200,0,0.07) 0%, transparent 50%),
        radial-gradient(ellipse 35% 30% at 60% 20%, rgba(0,255,200,0.08) 0%, transparent 45%);
    animation: meshShift 18s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}
[data-theme="light"] .video-gradient-mesh {
    background:
        radial-gradient(ellipse 70% 55% at 15% 85%, rgba(0,130,255,0.15) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(150,0,255,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,60,180,0.1) 0%, transparent 45%),
        radial-gradient(ellipse 45% 35% at 75% 70%, rgba(255,120,0,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 25% 30%, rgba(0,200,150,0.08) 0%, transparent 50%);
    mix-blend-mode: multiply;
}
@keyframes meshShift {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 0.85; }
    33% { transform: scale(1.08) translate(3%, -2%) rotate(1deg); opacity: 1; }
    66% { transform: scale(1.04) translate(-2%, 3%) rotate(-0.5deg); opacity: 0.95; }
    100% { transform: scale(1.1) translate(-1%, -1%) rotate(0.5deg); opacity: 0.9; }
}

/* Floating orbs */
.video-bg::before,
.video-bg::after {
    content: '';
    position: absolute; z-index: 2; border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.video-bg::before {
    width: 500px; height: 500px;
    top: -10%; left: -5%;
    background: radial-gradient(circle, rgba(200,255,0,0.12), transparent 70%);
    animation: orbFloat1 25s ease-in-out infinite alternate;
}
.video-bg::after {
    width: 400px; height: 400px;
    bottom: -10%; right: -5%;
    background: radial-gradient(circle, rgba(0,200,255,0.1), transparent 70%);
    animation: orbFloat2 20s ease-in-out infinite alternate;
}
[data-theme="light"] .video-bg::before {
    background: radial-gradient(circle, rgba(107,0,255,0.1), transparent 70%);
}
[data-theme="light"] .video-bg::after {
    background: radial-gradient(circle, rgba(0,102,255,0.08), transparent 70%);
}
@keyframes orbFloat1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(15vw, 20vh); }
    100% { transform: translate(5vw, -10vh); }
}
@keyframes orbFloat2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-12vw, -15vh); }
    100% { transform: translate(-5vw, 8vh); }
}

.video-overlay {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
}
[data-theme="dark"] .video-overlay {
    background:
        radial-gradient(ellipse 120% 80% at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 40%, rgba(10,10,10,0.7) 100%);
}
[data-theme="light"] .video-overlay {
    background:
        radial-gradient(ellipse 120% 80% at 50% 40%, rgba(255,255,255,0) 0%, rgba(242,240,237,0.35) 40%, rgba(242,240,237,0.65) 100%);
}

.video-vignette {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3;
    pointer-events: none;
}
[data-theme="dark"] .video-vignette {
    box-shadow: inset 0 0 200px 60px rgba(0,0,0,0.5);
}
[data-theme="light"] .video-vignette {
    box-shadow: inset 0 0 200px 60px rgba(242,240,237,0.4);
}

/* ======= CURSOR ======= */
.cursor-dot {
    position: fixed; pointer-events: none; z-index: 10002;
    width: 8px; height: 8px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, var(--accent2) 100%);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                background 0.3s, border 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px var(--accent), 0 0 25px rgba(200,255,0,0.25),
                0 0 50px rgba(0,240,255,0.1);
}
[data-theme="light"] .cursor-dot {
    box-shadow: 0 0 10px var(--accent), 0 0 25px rgba(68,0,255,0.25),
                0 0 50px rgba(0,102,255,0.1);
}

.cursor-circle {
    position: fixed; pointer-events: none; z-index: 10001;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--accent);
    transform: translate(-50%, -50%);
    opacity: 0.3;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
                opacity 0.3s, border-color 0.3s, border-width 0.3s;
    background: radial-gradient(circle, rgba(200,255,0,0.03) 0%, transparent 70%);
}
[data-theme="light"] .cursor-circle {
    background: radial-gradient(circle, rgba(68,0,255,0.03) 0%, transparent 70%);
}

.cursor-label {
    position: fixed; pointer-events: none; z-index: 10003;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--bg); background: var(--accent);
    padding: 0.3rem 0.7rem; border-radius: 50px;
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
    white-space: nowrap;
}
.cursor-label.visible { opacity: 1; transform: scale(1); }

.cursor-spotlight {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 1;
    opacity: 0;
    transition: opacity 0.6s;
}
.cursor-spotlight.active { opacity: 1; }

.cursor-trail-canvas {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none; z-index: 10000;
}

body.cursor-active .cursor-dot {
    width: 55px; height: 55px;
    background: radial-gradient(circle, rgba(200,255,0,0.1) 0%, rgba(0,240,255,0.05) 100%);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 30px rgba(200,255,0,0.2), inset 0 0 20px rgba(200,255,0,0.06);
}
[data-theme="light"] body.cursor-active .cursor-dot {
    background: radial-gradient(circle, rgba(68,0,255,0.1) 0%, rgba(0,102,255,0.05) 100%);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(68,0,255,0.2), inset 0 0 20px rgba(68,0,255,0.06);
}
body.cursor-active .cursor-circle {
    width: 75px; height: 75px; opacity: 0.15; border-width: 1.5px;
}

/* Animated outer ring */
.cursor-circle::after {
    content: '';
    position: absolute;
    top: -4px; right: -4px; bottom: -4px; left: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.1;
    animation: cursorRingPulse 3s ease-in-out infinite;
}
@keyframes cursorRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.05; }
}

.click-burst {
    position: fixed; pointer-events: none; z-index: 10004;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent), 0 0 15px var(--accent);
    animation: burstFly 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes burstFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0.2); }
}

/* ======= THEME BTN ======= */
.theme-btn {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1001;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); background: var(--glass);
    display: flex; align-items: center; justify-content: center;
}
.theme-btn-inner { display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ======= NAV ======= */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.8rem clamp(1.5rem, 4vw, 4rem);
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center;
    background: rgba(10,10,10,0.4);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
    color: #fff;
}
[data-theme="light"] .nav {
    background: rgba(248,247,245,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #1a1a1a;
}
.nav.scrolled {
    background: rgba(10,10,10,0.75);
    border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="light"] .nav.scrolled {
    background: rgba(248,247,245,0.85);
    border-bottom-color: rgba(0,0,0,0.1);
}
.nav.hidden { transform: translateY(-100%); }
.nav-logo {
    position: relative;
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 800;
    letter-spacing: 1px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200,255,0,0.06), rgba(0,240,255,0.06));
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
[data-theme="light"] .nav-logo {
    border-color: rgba(0,0,0,0.12);
    background: linear-gradient(135deg, rgba(107,0,255,0.06), rgba(0,102,255,0.06));
}
.nav-logo-text { position: relative; z-index: 1; }
.nav-logo-glow {
    position: absolute; top: -2px; right: -2px; bottom: -2px; left: -2px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent2), var(--accent));
    opacity: 0; border-radius: 12px;
    transition: opacity 0.4s;
    filter: blur(6px);
}
.nav-logo:hover .nav-logo-glow { opacity: 0.4; }
.nav-logo:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(200,255,0,0.15);
    transform: scale(1.08);
}
[data-theme="light"] .nav-logo:hover {
    box-shadow: 0 0 25px rgba(107,0,255,0.15);
}
.nav-links { display: flex; gap: 2rem; justify-self: center; }
.nav-link {
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px;
    position: relative; opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0;
}
.nav-link-num {
    font-family: var(--font-mono); font-size: 0.55rem;
    opacity: 0; transform: translateY(-2px);
    transition: opacity 0.3s, transform 0.3s;
    color: var(--accent);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover .nav-link-num { opacity: 0.7; transform: translateY(0); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; border-radius: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.4s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-status {
    display: flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    opacity: 0.5;
}
.nav-status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: statusPulse 2.5s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.6); }
    50% { box-shadow: 0 0 16px rgba(34,197,94,0.9), 0 0 30px rgba(34,197,94,0.3); }
}
.nav-burger { display: none; padding: 8px; flex-direction: column; gap: 5px; }
.nav-burger span { width: 22px; height: 1.5px; background: currentColor; display: block; transition: 0.3s; }
.nav-burger.active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-burger.active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Mobile Menu */
.menu-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease);
}
.menu-overlay.open { clip-path: inset(0 0 0 0); }
.menu-links { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.menu-link {
    font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800; color: var(--text); letter-spacing: -2px;
    transition: color 0.3s;
}
.menu-link:hover { color: var(--accent); }

/* ======= HERO ======= */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    position: relative; padding: 2rem;
    text-align: center;
}
.hero-content { position: relative; z-index: 2; }

/* Social icons row (below name) */
.hero-socials-row {
    display: flex; justify-content: center; gap: 0.8rem;
    margin-top: 2rem;
}
.hero-social-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--text2);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease);
    position: relative;
}
[data-theme="light"] .hero-social-icon { background: rgba(0,0,0,0.04); }
.hero-social-icon::before {
    content: '';
    position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent));
    opacity: 0; transition: opacity 0.4s;
    z-index: -1; filter: blur(4px);
}
.hero-social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(200,255,0,0.2);
}
[data-theme="light"] .hero-social-icon:hover {
    box-shadow: 0 8px 25px rgba(107,0,255,0.2);
}
.hero-social-icon:hover::before { opacity: 0.5; }

.hero-greeting {
    font-family: var(--font-mono); font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: var(--accent); letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 1.8rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-greeting::before,
.hero-greeting::after {
    content: '';
    width: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}
.hero-greeting::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 11rem);
    font-weight: 800; line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    position: relative;
}
.hero-name-line {
    display: block;
    text-shadow: 0 0 60px rgba(200,255,0,0.08), 0 0 120px rgba(0,240,255,0.04);
}
[data-theme="light"] .hero-name-line {
    text-shadow: 0 0 60px rgba(107,0,255,0.06), 0 0 120px rgba(0,102,255,0.03);
}
/* Reflection */
.hero-name::after {
    content: '';
    position: absolute;
    bottom: -0.5em; left: 0; right: 0;
    height: 0.6em;
    background: linear-gradient(to bottom, var(--text), transparent);
    opacity: 0.04;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    transform: scaleY(-1);
    pointer-events: none;
    filter: blur(2px);
}
.stroke-text {
    -webkit-text-stroke: 2px var(--text);
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(200,255,0,0.06));
}
[data-theme="light"] .stroke-text {
    -webkit-text-stroke-width: 2.5px;
    filter: drop-shadow(0 0 40px rgba(107,0,255,0.06));
}

.hero-role {
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    color: var(--text2); letter-spacing: 3px; text-transform: uppercase;
    font-weight: 500;
}
.hero-role-line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.hero-info {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin-top: 2rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text2); letter-spacing: 1.5px;
}
.hero-location-pill {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.04);
    transition: all 0.35s var(--ease);
}
[data-theme="light"] .hero-location-pill { background: rgba(0,0,0,0.04); }
.hero-location-pill svg { color: var(--accent); flex-shrink: 0; }
.hero-location-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(200,255,0,0.1);
    transform: translateY(-2px);
}
[data-theme="light"] .hero-location-pill:hover {
    box-shadow: 0 4px 20px rgba(107,0,255,0.1);
}
.hero-status-pill {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    color: #22c55e;
    position: relative;
    overflow: hidden;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    transition: all 0.35s var(--ease);
}
.hero-status-pill:hover {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34,197,94,0.15);
}
.status-glow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.8);
    animation: statusPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    margin-top: 1.8rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-tags span {
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text3);
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.04);
    transition: all 0.35s var(--ease);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
[data-theme="light"] .hero-tags span {
    background: rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(200,255,0,0.1);
    transform: translateY(-2px);
}
[data-theme="light"] .hero-tags span:hover {
    box-shadow: 0 4px 20px rgba(107,0,255,0.1);
}

.hero-footer {
    position: absolute; bottom: 2.5rem; left: 0; right: 0;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    display: flex; justify-content: center; align-items: flex-end;
    z-index: 2;
}
.hero-scroll {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.hero-scroll span {
    font-size: 0.7rem; font-family: var(--font-mono);
    color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
    writing-mode: vertical-rl;
}
.hero-scroll-line {
    width: 1px; height: 60px; background: var(--border);
    position: relative; overflow: hidden;
}
.hero-scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 100%; background: var(--accent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { top: -100%; } 100% { top: 100%; } }

.dot {
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px transparent; }
}

/* ======= MARQUEE ======= */
.marquee-wrap {
    padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; background: var(--glass);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.marquee-track { display: flex; width: max-content; }
.marquee-content {
    display: flex; align-items: center; gap: 2rem;
    padding-right: 2rem; white-space: nowrap;
    font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700; color: var(--text3);
    letter-spacing: 2px; text-transform: uppercase;
}
.sep { color: var(--accent); font-weight: 400; }

/* ======= SECTIONS ======= */
.section { padding: clamp(6rem, 12vh, 10rem) 0; position: relative; }
.section-label {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text3); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 4rem; display: flex; align-items: center; gap: 1rem;
}
.section-label span { color: var(--accent); }
.section-intro {
    font-size: 1.05rem; line-height: 1.7; color: var(--text2);
    max-width: 600px; margin-bottom: 3rem;
}

/* ======= ABOUT ======= */
.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 8rem); }
.about-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
}
.about-heading .char { display: inline-block; }
.about-text {
    font-size: 1rem; line-height: 1.8; color: var(--text2);
    margin-bottom: 1.5rem;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
    display: flex; gap: 3rem; margin-top: 3rem;
    padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-display); font-size: 3rem;
    font-weight: 800; color: var(--accent); display: inline; line-height: 1;
}
.stat-plus {
    font-family: var(--font-display); font-size: 2rem;
    font-weight: 800; color: var(--accent); display: inline;
}
.stat-label { font-size: 0.8rem; color: var(--text3); margin-top: 0.5rem; letter-spacing: 1px; text-transform: uppercase; }

/* ======= PROJECTS GRID ======= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.project-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
[data-theme="light"] .project-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 30px rgba(200,255,0,0.04);
}
[data-theme="light"] .project-card:hover {
    box-shadow: 0 24px 60px rgba(0,0,0,0.1), 0 0 30px rgba(107,0,255,0.04);
}
.project-card-visual {
    min-height: 200px; /* fallback for browsers without aspect-ratio */
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card-visual {
    transform: scale(1.03);
}
.project-card-visual::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    pointer-events: none;
}
.project-card-icon {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
    width: 80px;
    height: 80px;
    color: rgba(255,255,255,0.12);
    z-index: 1;
    transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.project-card:hover .project-card-icon {
    opacity: 0.25;
    transform: scale(1.1);
}
.project-card-num {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
    user-select: none;
}
.project-card-body {
    padding: 1.5rem 1.8rem 1.8rem;
}
.project-card-cat {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}
.project-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}
.project-card-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text2);
    margin-bottom: 1.2rem;
}
.project-card-features {
    list-style: none;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.project-card-features li {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text2);
    padding-left: 1.1rem;
    position: relative;
}
.project-card-features li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.72rem;
    line-height: 1.5;
}
.project-card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
}
.project-card-stack span {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.65rem;
    color: var(--text3);
    transition: border-color 0.3s, color 0.3s;
}
.project-card:hover .project-card-stack span {
    border-color: rgba(200,255,0,0.15);
}
[data-theme="light"] .project-card:hover .project-card-stack span {
    border-color: rgba(107,0,255,0.15);
}
.project-card-links {
    display: flex;
    gap: 0.8rem;
}
.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.55rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: 0.4s var(--ease);
}
.project-card-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.project-card-link svg {
    transition: transform 0.3s;
}
.project-card-link:hover svg {
    transform: translate(2px, -2px);
}
.projects-footer {
    margin-top: 3rem;
    text-align: center;
}
.link-arrow {
    display: inline-flex; align-items: center; gap: 0.8rem;
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--text); transition: color 0.3s;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { transition: transform 0.3s; }
.link-arrow:hover svg { transform: translate(4px, -4px); }

/* ======= EXPERIENCE ======= */
.experience-timeline { display: flex; flex-direction: column; gap: 3rem; }
.experience-item {
    padding: 2rem; border-left: 2px solid var(--border); padding-left: 2.5rem;
    position: relative; transition: all 0.3s;
}
.experience-item::before {
    content: ''; position: absolute; left: -9px; top: 0; width: 16px; height: 16px;
    background: var(--accent); border-radius: 50%; border: 2px solid var(--bg);
    transition: box-shadow 0.3s;
}
.experience-item:hover { border-left-color: var(--accent); padding-left: 3rem; }
.experience-item:hover::before {
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(200,255,0,0.2);
}
[data-theme="light"] .experience-item:hover::before {
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(107,0,255,0.2);
}
.experience-date {
    font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
.experience-role {
    font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem;
}
.experience-company {
    color: var(--text2); font-size: 0.95rem; margin-bottom: 0.2rem;
}
.experience-location {
    color: var(--text3); font-size: 0.85rem;
}

/* ======= EDUCATION ======= */
.education-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.education-item {
    padding: 2rem; background: var(--glass2); border: 1px solid var(--border);
    border-radius: 12px; transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.education-item:hover {
    background: var(--glass); border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.education-degree {
    font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem;
}
.education-school {
    font-size: 0.95rem; color: var(--accent); margin-bottom: 0.3rem;
}
.education-period {
    font-size: 0.85rem; color: var(--text3);
}

/* ======= SKILLS ======= */
.skills {
    background: var(--glass); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.skills-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.skill-heading {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.skill-list { display: flex; flex-direction: column; gap: 0.6rem; }
.skill-pill {
    padding: 0.6rem 0; font-size: 0.95rem; color: var(--text2);
    border-bottom: 1px solid var(--border); transition: 0.3s;
    display: block;
}
.skill-pill:hover { color: var(--accent); padding-left: 1rem; }

/* ======= CONTACT ======= */
.contact-layout { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
    margin-bottom: 1.5rem;
}
.contact-sub { font-size: 1.1rem; color: var(--text2); margin-bottom: 3rem; }
.contact-links-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.8rem; border: 1px solid var(--border);
    border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    transition: 0.4s var(--ease);
}
.contact-pill:hover { border-color: var(--accent); color: var(--accent); }
.contact-pill svg { transition: transform 0.3s; }
.contact-pill:hover svg { transform: translate(2px, -2px); }

/* ======= FOOTER ======= */
.footer {
    padding: 2rem 0; border-top: 1px solid var(--border);
    background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text3);
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    color: var(--text3); transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* ======= ANIMATIONS ======= */
.fade-up { opacity: 0; transform: translateY(50px); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); transition: 0.8s var(--ease-out); }

[data-splitting] .char {
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    transition: opacity 0.5s, transform 0.6s var(--ease-out);
    transition-delay: calc(0.02s * var(--char-index));
}
[data-splitting].is-visible .char { opacity: 1; transform: translateY(0) rotateX(0); }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .about-layout { grid-template-columns: 1fr; }
    .skills-layout { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .nav-status { display: none; }
    .nav-burger { display: flex; }
    .hero { padding: 1.5rem; }
    .hero-greeting { letter-spacing: 3px; margin-bottom: 1.2rem; }
    .hero-greeting::before, .hero-greeting::after { width: 20px; }
    .hero-name { margin-bottom: 1.5rem; }
    .hero-role { gap: 1rem; }
    .hero-role-line { width: 35px; }
    .hero-footer { flex-direction: column; align-items: center; gap: 2rem; }
    .hero-info { flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
    .hero-tags { max-width: 90vw; margin-top: 1.2rem; }
    .hero-socials-row { gap: 0.6rem; margin-top: 1.5rem; }
    .hero-social-icon { width: 42px; height: 42px; }
    .section { padding: clamp(4rem, 10vh, 8rem) 0; }
    .section-label { margin-bottom: 2.5rem; }
    .about-stats { gap: 2rem; }
    .education-list { grid-template-columns: 1fr; }
    .project-card-body { padding: 1.2rem 1.4rem 1.5rem; }
    .project-card-visual { min-height: 160px; }
    .skills-layout { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-links-row { gap: 0.7rem; }
    .contact-pill { padding: 0.65rem 1.3rem; font-size: 0.85rem; }
    .back-to-top { right: 1.5rem; bottom: 1.5rem; width: 42px; height: 42px; }
    .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .experience-scroll-outer .experience-item { min-width: 230px; max-width: 230px; }
}
@media (max-width: 480px) {
    .hero { padding: 1rem; }
    .hero-name { font-size: clamp(2.8rem, 14vw, 4.5rem); margin-bottom: 1rem; line-height: 0.95; }
    .stroke-text { -webkit-text-stroke-width: 1.5px; }
    [data-theme="light"] .stroke-text { -webkit-text-stroke-width: 2px; }
    .hero-greeting { letter-spacing: 2px; margin-bottom: 1rem; font-size: 0.72rem; }
    .hero-greeting::before, .hero-greeting::after { width: 15px; }
    .hero-role { gap: 0.6rem; font-size: 0.7rem; letter-spacing: 2px; }
    .hero-role-line { width: 22px; }
    .hero-socials-row { gap: 0.5rem; margin-top: 1.2rem; }
    .hero-social-icon { width: 38px; height: 38px; }
    .hero-social-icon svg { width: 16px; height: 16px; }
    .hero-info { margin-top: 1.2rem; }
    .hero-location-pill, .hero-status-pill { padding: 0.4rem 0.9rem; font-size: 0.65rem; }
    .hero-tags { margin-top: 1rem; gap: 0.35rem; }
    .hero-tags span { padding: 0.3rem 0.8rem; font-size: 0.62rem; }
    .section { padding: clamp(3rem, 8vh, 6rem) 0; }
    .section-label { margin-bottom: 2rem; font-size: 0.7rem; }
    .about-heading { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .about-text { font-size: 0.92rem; }
    .about-stats { flex-direction: column; gap: 1.5rem; }
    .stat-num { font-size: 2.5rem; }
    .project-card-body { padding: 1rem 1.2rem 1.3rem; }
    .project-card-title { font-size: 1.2rem; }
    .project-card-desc { font-size: 0.82rem; }
    .project-card-visual { min-height: 140px; }
    .project-card-links { flex-wrap: wrap; }
    .contact-heading { font-size: clamp(2rem, 8vw, 3rem); }
    .contact-sub { font-size: 0.95rem; margin-bottom: 2rem; }
    .contact-pill { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
    .experience-scroll-outer .experience-item { min-width: 210px; max-width: 210px; padding: 2rem 2.5rem 1.5rem 0.5rem; }
    .education-item { padding: 1.5rem; }
    .education-degree { font-size: 0.92rem; }
    .back-to-top { right: 1rem; bottom: 1rem; width: 38px; height: 38px; }
}

/* Touch devices — disable custom cursor & heavy effects regardless of screen size */
@media (pointer: coarse) {
    .cursor-dot, .cursor-circle, .cursor-trail-canvas, .cursor-label, .cursor-spotlight { display: none !important; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
    /* Disable grain overlay on touch — heavy on mobile GPU */
    .grain::after { display: none; }
    /* Reduce video BG opacity for battery life */
    .video-bg video { opacity: 0.5; }
    /* Disable floating orbs & gradient mesh animation */
    .video-bg::before, .video-bg::after { display: none; }
    .video-gradient-mesh { animation: none; }
}

/* Small screens (non-touch) still hide cursor elements */
@media (max-width: 768px) and (pointer: fine) {
    .cursor-dot, .cursor-circle, .cursor-trail-canvas, .cursor-label { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
}

/* ======= PROGRESS BAR ======= */
.progress-bar {
    position: fixed; top: 0; left: 0; z-index: 99998;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(200,255,0,0.3);
    pointer-events: none;
    transition: width 0.08s linear;
}
[data-theme="light"] .progress-bar {
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(107,0,255,0.3);
}
@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ======= TYPEWRITER CURSOR ======= */
.hero-role-text { display: inline; }
.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    margin-left: 1px;
    animation: twBlink 1.1s step-end infinite;
}
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ======= GITHUB STRIP ======= */
.github-strip {
    padding: 0.6rem clamp(1.5rem, 4vw, 4rem);
    border-bottom: 1px solid var(--border);
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    overflow: hidden;
}
.github-strip-inner {
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--text3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}
.github-strip-label {
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 2px; flex-shrink: 0;
}
.github-strip-label::after { content: ' //'; opacity: 0.4; }
.gh-repo { color: var(--text2); font-weight: 600; }
.gh-sep { color: var(--text3); margin: 0 0.4rem; opacity: 0.4; }
.gh-time { color: var(--text3); margin-left: auto; flex-shrink: 0; padding-left: 1rem; }

/* ======= EXPERIENCE HORIZONTAL SCROLL ======= */
.experience-drag-hint {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1.5rem; opacity: 0.5;
}
.experience-scroll-outer {
    overflow-x: auto; overflow-y: visible;
    scrollbar-width: none; -ms-overflow-style: none;
    user-select: none;
    position: relative;
    /* fade out right edge */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}
.experience-scroll-outer::-webkit-scrollbar { display: none; }
.experience-scroll-outer .experience-timeline {
    flex-direction: row;
    gap: 0;
    width: max-content;
    padding-bottom: 1rem;
    align-items: flex-start;
}
.experience-scroll-outer .experience-item {
    min-width: 265px; max-width: 265px;
    padding: 2.5rem 3.5rem 2rem 0.5rem;
    border-left: none;
    border-top: 2px solid var(--border);
    flex-shrink: 0;
}
.experience-scroll-outer .experience-item::before {
    left: 0;
    top: -9px;
}
.experience-scroll-outer .experience-item:hover {
    border-top-color: var(--accent);
    padding-left: 0.5rem;
    padding-top: 3rem;
}

/* ======= SKILLS RADAR ======= */
.skills-section-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}
.skills-radar-wrap {
    display: flex; justify-content: center; align-items: center;
    padding-top: 0.5rem;
    position: sticky; top: 6rem;
}
.radar-svg { overflow: visible; }
.radar-polygon {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.8s var(--ease-out), fill-opacity 1.8s ease;
}
.radar-polygon.revealed { stroke-dashoffset: 0; }
.radar-dot {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.radar-dot.revealed { opacity: 1; transform: scale(1); }
@media (max-width: 1200px) {
    .skills-section-inner { grid-template-columns: 1fr; }
    .skills-radar-wrap { position: static; }
}
@media (max-width: 1024px) {
    .skills-section-inner { grid-template-columns: 1fr; }
    .skills-radar-wrap { position: static; }
    .skills-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .skills-layout { grid-template-columns: 1fr; }
    .experience-drag-hint { display: none; }
}

/* ======= BACK TO TOP ======= */
.back-to-top {
    position: fixed; bottom: 2rem; right: 5.5rem; z-index: 1000;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2);
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out),
                border-color 0.3s, color 0.3s, box-shadow 0.3s;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    border-color: var(--accent); color: var(--accent);
    box-shadow: 0 0 20px rgba(200,255,0,0.2);
}
[data-theme="light"] .back-to-top:hover {
    box-shadow: 0 0 20px rgba(107,0,255,0.2);
}

/* ======= FOCUS VISIBLE (Accessibility) ======= */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
a:focus-visible, button:focus-visible, .skill-pill:focus-visible, .contact-pill:focus-visible,
.experience-scroll-outer:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.nav-link:focus-visible::after { width: 100%; }
.project-card-link:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ======= PREFERS REDUCED MOTION ======= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .preloader { transition: none; clip-path: inset(0 0 0 0); }
    .preloader.done { display: none; }
    .grain::after { animation: none; }
    .cursor-dot, .cursor-circle, .cursor-trail-canvas, .cursor-label, .cursor-spotlight { display: none !important; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
    .fade-up { opacity: 1; transform: none; }
    [data-splitting] .char { opacity: 1; transform: none; transition: none; }
    .hero-scroll-line::after { animation: none; }
    .dot { animation: none; }
    .video-bg video { display: none; }
    .marquee-track { animation: none; }
    .progress-bar { animation: none; }
    .project-card:hover { transform: none; }
    .project-card:hover .project-card-visual { transform: none; }
    .education-item:hover { transform: none; }
    .experience-item:hover { padding-left: 2.5rem; }
}
