/* ============================================================
   ANSHIK KEWAT — PORTFOLIO STYLESHEET (MERGED & OPTIMIZED)
   Consolidated from style.css + extra.css — no duplicates
   ============================================================ */

/* ===== CSS VARIABLES & RESET ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c2a;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00e5;
    --neon-purple: #8b5cf6;
    --neon-pink: #f472b6;
    --neon-blue: #3b82f6;
    --neon-green: #10b981;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient-1: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-2: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    --gradient-3: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-neon-strong: 0 0 40px rgba(0, 240, 255, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CURSOR & CANVAS ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: opacity 0.3s;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,240,255,0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 40px;
    background: rgba(10,10,15,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan); /* fallback */
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--neon-cyan); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.nav-resume-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    color: var(--neon-cyan);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-resume-btn:hover {
    background: rgba(0,240,255,0.1);
    box-shadow: var(--shadow-neon);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile navigation overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-layers { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-layer {
    position: absolute;
    inset: -5% -10%;
    will-change: transform;
    contain: layout style;
}

/* ===== Drift keyframes ===== */
@keyframes drift-slow   { from { background-position-x: 0;      } to { background-position-x: -3000px; } }
@keyframes drift-medium { from { background-position-x: 0;      } to { background-position-x: -4000px; } }
@keyframes drift-fast   { from { background-position-x: 0;      } to { background-position-x: -5000px; } }
@keyframes drift-hyper  { from { background-position-x: 0;      } to { background-position-x: -6000px; } }

.hero-layer[data-drift="slow"]   { animation: drift-slow   200s linear infinite; }
.hero-layer[data-drift="medium"] { animation: drift-medium 100s linear infinite; }
.hero-layer[data-drift="fast"]   { animation: drift-fast   50s  linear infinite; }
.hero-layer[data-drift="hyper"]  { animation: drift-hyper  25s  linear infinite; }

/* Layer 0 — deep space backdrop (static) */
.layer-deep {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(16, 10, 32, 1) 0%, rgba(6, 6, 14, 1) 70%, #030308 100%);
}

/* Layer 1 — slow large nebulae (barely moving, very visible) */
.layer-nebula {
    background-repeat: repeat-x;
    background-size: 3000px 100%;
    background-image:
        radial-gradient(ellipse 600px 400px at 400px 45%, rgba(139, 92, 246, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 1500px 30%, rgba(0, 240, 255, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 700px 450px at 2500px 60%, rgba(255, 0, 229, 0.2) 0%, transparent 70%);
}

/* Layer 2 — star cluster + glowing planets */
.layer-stars {
    background-repeat: repeat-x;
    background-size: 4000px 100%;
    background-image:
        /* Planets — big, bright, with glow rings */
        radial-gradient(circle 28px at 300px 200px,  rgba(139, 92, 246, 0.9) 0%, rgba(139, 92, 246, 0.3) 50%, transparent 70%),
        radial-gradient(circle 20px at 1200px 400px, rgba(0, 240, 255, 0.85) 0%, rgba(0, 240, 255, 0.25) 50%, transparent 70%),
        radial-gradient(circle 15px at 2200px 150px, rgba(255, 0, 229, 0.8)  0%, rgba(255, 0, 229, 0.2)  50%, transparent 70%),
        radial-gradient(circle 35px at 3200px 350px, rgba(0, 240, 255, 0.7)  0%, rgba(0, 240, 255, 0.15) 50%, transparent 70%),
        /* Planet glow halos */
        radial-gradient(circle 60px at 300px 200px,  rgba(139, 92, 246, 0.15) 0%, transparent 70%),
        radial-gradient(circle 45px at 1200px 400px, rgba(0, 240, 255, 0.12) 0%, transparent 70%),
        radial-gradient(circle 40px at 2200px 150px, rgba(255, 0, 229, 0.1)  0%, transparent 70%),
        radial-gradient(circle 70px at 3200px 350px, rgba(0, 240, 255, 0.08) 0%, transparent 70%),
        /* Stars — scattered bright dots */
        radial-gradient(2px 2px at 100px 100px,  rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 500px 300px,  rgba(0,240,255,0.9),   transparent),
        radial-gradient(1px 1px at 800px 80px,   rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 1000px 450px, rgba(139,92,246,0.8),  transparent),
        radial-gradient(1px 1px at 1400px 200px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 1700px 380px, rgba(0,240,255,0.85),  transparent),
        radial-gradient(1px 1px at 2000px 120px, rgba(255,0,229,0.7),   transparent),
        radial-gradient(2px 2px at 2400px 480px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 2800px 250px, rgba(0,240,255,0.8),   transparent),
        radial-gradient(2px 2px at 3500px 180px, rgba(139,92,246,0.85), transparent),
        radial-gradient(1px 1px at 3800px 420px, rgba(255,255,255,0.7), transparent);
    animation: drift-medium 100s linear infinite, twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle { 0% { opacity: 0.7; } 100% { opacity: 1; } }

/* Layer 3 — fast asteroids & debris (bright, chunky) */
.layer-asteroids {
    background-repeat: repeat-x;
    background-size: 5000px 100%;
    background-image:
        /* Asteroids — visible glowing rocks */
        radial-gradient(circle 8px at 200px 180px,  rgba(0, 240, 255, 0.9)  0%, rgba(0, 240, 255, 0.2)  60%, transparent 80%),
        radial-gradient(circle 6px at 800px 350px,   rgba(255, 0, 229, 0.85) 0%, rgba(255, 0, 229, 0.15) 60%, transparent 80%),
        radial-gradient(circle 10px at 1500px 120px, rgba(139, 92, 246, 0.9) 0%, rgba(139, 92, 246, 0.2) 60%, transparent 80%),
        radial-gradient(circle 5px at 2100px 420px,  rgba(0, 240, 255, 0.85) 0%, transparent 70%),
        radial-gradient(circle 7px at 2800px 250px,  rgba(244, 114, 182, 0.8) 0%, rgba(244, 114, 182, 0.15) 60%, transparent 80%),
        radial-gradient(circle 9px at 3500px 380px,  rgba(0, 240, 255, 0.9)  0%, rgba(0, 240, 255, 0.2)  60%, transparent 80%),
        radial-gradient(circle 6px at 4200px 150px,  rgba(139, 92, 246, 0.85) 0%, transparent 70%),
        radial-gradient(circle 8px at 4700px 300px,  rgba(255, 0, 229, 0.8)  0%, rgba(255, 0, 229, 0.15) 60%, transparent 80%),
        /* Asteroid glow trails */
        radial-gradient(ellipse 30px 6px at 200px 180px,  rgba(0, 240, 255, 0.2) 0%, transparent 80%),
        radial-gradient(ellipse 25px 5px at 1500px 120px, rgba(139, 92, 246, 0.15) 0%, transparent 80%),
        radial-gradient(ellipse 28px 5px at 3500px 380px, rgba(0, 240, 255, 0.15) 0%, transparent 80%);
}

/* Layer 4 — shooting stars (thin bright streaks at slight angles) */
.layer-streaks {
    background: transparent;
    overflow: hidden;
}

.layer-streaks::before,
.layer-streaks::after {
    content: '';
    position: absolute;
    border-radius: 50px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Shooting star 1 — cyan */
.layer-streaks::before {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.9), transparent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
    top: 18%;
    left: -150px;
    animation: shoot1 6s 2s infinite;
}

/* Shooting star 2 — pink */
.layer-streaks::after {
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 229, 0.85), transparent);
    box-shadow: 0 0 8px rgba(255, 0, 229, 0.5), 0 0 20px rgba(255, 0, 229, 0.25);
    top: 55%;
    left: -120px;
    animation: shoot2 8s 5s infinite;
}

@keyframes shoot1 {
    0%   { left: -150px; top: 18%; opacity: 0; transform: rotate(-8deg); }
    5%   { opacity: 1; }
    40%  { opacity: 1; }
    60%  { left: 110%; top: 35%; opacity: 0; transform: rotate(-8deg); }
    100% { left: 110%; top: 35%; opacity: 0; }
}

@keyframes shoot2 {
    0%   { left: -120px; top: 55%; opacity: 0; transform: rotate(-5deg); }
    5%   { opacity: 1; }
    35%  { opacity: 1; }
    55%  { left: 110%; top: 42%; opacity: 0; transform: rotate(-5deg); }
    100% { left: 110%; top: 42%; opacity: 0; }
}

/* Layer 5 — ambient bottom glow */
.layer-glow {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0, 240, 255, 0.12)  0%, transparent 60%),
        radial-gradient(ellipse at 30% 100%, rgba(255, 0, 229, 0.08)  0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== Occasional spaceship crossing ===== */
.hero-ship {
    position: absolute;
    top: 22%;
    left: -120px;
    font-size: 32px;
    color: var(--neon-cyan);
    text-shadow: 0 0 18px var(--neon-cyan), 0 0 40px rgba(0,240,255,0.6);
    transform: rotate(-18deg);
    opacity: 0;
    animation: ship-fly 20s ease-in-out infinite;
    animation-delay: 4s;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 5;
}

.hero-ship::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 120px;
    height: 3px;
    background: linear-gradient(to left, rgba(0,240,255,0.9), rgba(139,92,246,0.4), transparent);
    transform: translateY(-50%);
    filter: blur(1.5px);
}

@keyframes ship-fly {
    0%   { left: -80px;  top: 22%;  opacity: 0; transform: rotate(-18deg) scale(0.9); }
    5%   { opacity: 1; }
    45%  { left: 55%;    top: 38%;  opacity: 1; transform: rotate(-12deg) scale(1); }
    85%  { left: 110%;   top: 20%;  opacity: 0.9; transform: rotate(-20deg) scale(0.85); }
    100% { left: 120%;   top: 20%;  opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 50px;
    background: rgba(16,185,129,0.08);
    font-size: 0.85rem;
    color: var(--neon-green);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.hero-greeting {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan); /* fallback */
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.glitch { position: relative; }

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear;
    -webkit-text-fill-color: var(--neon-cyan);
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear;
    -webkit-text-fill-color: var(--neon-magenta);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    20%  { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
    40%  { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
    60%  { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); }
    80%  { clip-path: inset(50% 0 20% 0); transform: translate(-1px, 2px); }
    100% { clip-path: inset(30% 0 40% 0); transform: translate(0); }
}

@keyframes glitch-2 {
    0%   { clip-path: inset(60% 0 20% 0); transform: translate(3px, -2px); }
    20%  { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 2px); }
    40%  { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); }
    60%  { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 1px); }
    80%  { clip-path: inset(20% 0 50% 0); transform: translate(1px, -2px); }
    100% { clip-path: inset(40% 0 30% 0); transform: translate(0); }
}

.hero-typewriter {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.typewriter-prefix { color: var(--text-secondary); }
.typewriter-text { color: var(--neon-magenta); font-weight: 600; }
.typewriter-cursor { color: var(--neon-cyan); animation: blink 0.8s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary { background: var(--gradient-1); color: var(--bg-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,240,255,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--neon-purple); color: var(--neon-purple); }
.btn-outline:hover { background: rgba(139,92,246,0.1); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(139,92,246,0.2); }

.hero-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,240,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0,240,255,0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(0,240,255,0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS COMMON ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    /* Subtle starfield that continues the space theme across all sections */
    background-image:
        radial-gradient(1px 1px at 15% 25%, rgba(0, 240, 255, 0.3), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(139, 92, 246, 0.25), transparent),
        radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 75% 80%, rgba(255, 0, 229, 0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(0, 240, 255, 0.25), transparent),
        radial-gradient(1px 1px at 5% 90%, rgba(244, 114, 182, 0.2), transparent),
        radial-gradient(1px 1px at 45% 50%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 65% 35%, rgba(0, 240, 255, 0.2), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(1px 1px at 85% 10%, rgba(255, 255, 255, 0.25), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.title-number { color: var(--neon-cyan); font-size: 0.9em; margin-right: 8px; }

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    margin: 16px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0,240,255,0.4);
}

.highlight { color: var(--neon-cyan); font-weight: 600; }

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-align: center;
    margin: 60px 0 30px;
    color: var(--text-primary);
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }

.image-wrapper { position: relative; border-radius: var(--border-radius); overflow: hidden; }

.image-wrapper img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: grayscale(20%) contrast(1.05);
    transition: var(--transition);
}

.image-wrapper:hover img { filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }

.image-border {
    position: absolute;
    inset: -4px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    background: var(--gradient-1) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.image-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 60px rgba(0,240,255,0.1);
    pointer-events: none;
}

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }

.stat-item {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,240,255,0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan); /* fallback */
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.about-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 16px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tag i { color: var(--neon-cyan); font-size: 0.75rem; }

.about-fun h4 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-primary); margin-bottom: 12px; }
.fun-items { display: flex; flex-wrap: wrap; gap: 10px; }

.fun-item {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(139,92,246,0.15);
    transition: var(--transition);
}

.fun-item:hover { border-color: var(--neon-purple); background: rgba(139,92,246,0.1); transform: translateY(-2px); }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(0,240,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.skill-category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.skill-category-header i { font-size: 1.4rem; color: var(--neon-cyan); }
.skill-category-header h3 { font-family: var(--font-heading); font-size: 1.2rem; }

.skill-items { display: flex; flex-direction: column; gap: 18px; }

.skill-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; }

.skill-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0,240,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--neon-cyan);
}

.skill-item span { font-size: 0.9rem; color: var(--text-secondary); }

.skill-bar {
    grid-column: 2 / -1;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px rgba(0,240,255,0.3);
}

.skill-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-badge.learning {
    background: rgba(244,114,182,0.15);
    color: var(--neon-pink);
    border: 1px solid rgba(244,114,182,0.3);
}

.soft-skills { display: flex; flex-wrap: wrap; gap: 10px; flex-direction: row; }

.soft-skill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.soft-skill-item i { color: var(--neon-purple); font-size: 0.8rem; }
.soft-skill-item:hover { border-color: var(--neon-purple); background: rgba(139,92,246,0.15); transform: translateY(-2px); }

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
    opacity: 0.3;
}

.timeline-item { position: relative; margin-bottom: 40px; }

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.5);
    border: 2px solid var(--bg-primary);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.timeline-content:hover { border-color: rgba(0,240,255,0.2); transform: translateX(5px); }
.timeline-header h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-primary); }
.timeline-company { display: block; color: var(--neon-cyan); font-size: 0.9rem; font-weight: 500; margin: 4px 0; }

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 2px 10px;
    background: rgba(0,240,255,0.05);
    border-radius: 50px;
    margin-bottom: 12px;
}

.timeline-details { list-style: none; padding: 0; }

.timeline-details li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before { content: '\25B9'; position: absolute; left: 0; color: var(--neon-cyan); }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.timeline-tags span {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 50px;
    color: var(--neon-purple);
}

.experience-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(139,92,246,0.05));
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: var(--border-radius);
}

.highlight-icon { font-size: 1.5rem; color: #fbbf24; }
.experience-highlight p { font-size: 1rem; color: var(--text-secondary); }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,240,255,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,240,255,0.1);
}

.project-image { position: relative; height: 220px; overflow: hidden; background: var(--bg-secondary); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.08); }

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(10,10,15,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 16px; }

.project-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    transition: var(--transition);
    transform: translateY(20px);
}

.project-card:hover .project-links a { transform: translateY(0); }
.project-links a:hover { background: var(--neon-cyan); color: var(--bg-primary); }

.project-info { padding: 24px; }
.project-info h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }
.project-info p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }

.project-tech span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(0,240,255,0.08);
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: 50px;
    color: var(--neon-cyan);
}

.placeholder-project {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(0,240,255,0.05));
}

.coming-soon-content { text-align: center; color: var(--text-muted); }
.coming-soon-content i { font-size: 2.5rem; margin-bottom: 8px; display: block; color: var(--neon-purple); }
.coming-soon-content span { font-family: var(--font-heading); font-size: 1rem; }

/* Icon-based project visuals (used when no screenshot available) */
.project-vis {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(0,240,255,0.06));
}

.project-vis::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,240,255,0.18), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255,0,229,0.14), transparent 45%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-vis-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.project-vis-content i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(0,240,255,0.35));
}

.project-vis-content span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Per-project accent tints */
.resume-vis   { background: linear-gradient(135deg, rgba(0,240,255,0.12),  rgba(139,92,246,0.06)); }
.digital-vis  { background: linear-gradient(135deg, rgba(255,0,229,0.12),  rgba(0,240,255,0.06)); }
.cleaning-vis { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(255,0,229,0.06)); }

.project-card:hover .project-vis::after { opacity: 0.5; }

/* ===== EDUCATION ===== */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.edu-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.edu-card:hover { border-color: rgba(0,240,255,0.2); transform: translateY(-5px); }
.edu-icon { font-size: 2rem; color: var(--neon-cyan); margin-bottom: 16px; }
.edu-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 8px; }
.edu-place { display: block; color: var(--neon-purple); font-size: 0.9rem; margin-bottom: 4px; }
.edu-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.edu-card p { font-size: 0.85rem; color: var(--text-secondary); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.cert-card {
    background: var(--bg-card);
    border: 1px solid rgba(139,92,246,0.1);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-3px); }
.cert-icon { font-size: 1.5rem; color: var(--neon-purple); margin-bottom: 12px; }
.cert-card h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 6px; color: var(--text-primary); }
.cert-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    border-color: rgba(0,240,255,0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan); /* fallback */
}

.service-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-slider { max-width: 700px; margin: 0 auto; position: relative; }

.testimonial-card {
    display: none;
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.testimonial-card.active { display: block; }
.testimonial-quote { font-size: 2rem; color: var(--neon-cyan); opacity: 0.3; margin-bottom: 16px; }

.testimonial-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.author-avatar { font-size: 2.5rem; color: var(--neon-purple); }
.testimonial-author h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,240,255,0.2);
    background: transparent;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover { background: rgba(0,240,255,0.1); border-color: var(--neon-cyan); }

.testimonial-dots { display: flex; gap: 8px; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,240,255,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.5); }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover { transform: translateY(-5px); border-color: rgba(0,240,255,0.2); }

.blog-image { height: 180px; position: relative; overflow: hidden; }

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(0,240,255,0.1));
    font-size: 3rem;
    color: var(--neon-purple);
    opacity: 0.5;
}

.blog-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(0,240,255,0.15);
    border: 1px solid rgba(0,240,255,0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content { padding: 24px; }

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: -40px;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

/* Contact info cards */
.contact-card-wrapper { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,240,255,0.04), rgba(139,92,246,0.04));
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover::before { opacity: 1; }
.contact-card:hover { border-color: rgba(0,240,255,0.25); transform: translateX(6px); }

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(0,240,255,0.08);
    border: 1px solid rgba(0,240,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon { background: rgba(0,240,255,0.15); box-shadow: 0 0 20px rgba(0,240,255,0.2); }

.contact-card-icon.purple { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.15); color: var(--neon-purple); }
.contact-card:hover .contact-card-icon.purple { background: rgba(139,92,246,0.15); box-shadow: 0 0 20px rgba(139,92,246,0.2); }

.contact-card-icon.pink { background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.15); color: var(--neon-pink); }
.contact-card:hover .contact-card-icon.pink { background: rgba(244,114,182,0.15); box-shadow: 0 0 20px rgba(244,114,182,0.2); }

.contact-card-body h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); margin-bottom: 2px; }
.contact-card-body span { font-size: 0.85rem; color: var(--text-muted); }

.contact-card-arrow { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; transition: var(--transition); }
.contact-card:hover .contact-card-arrow { color: var(--neon-cyan); transform: translateX(4px); }

/* Social bar */
.contact-social-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: var(--bg-card);
    border: 1px solid rgba(0,240,255,0.08);
    border-radius: var(--border-radius);
}

.social-bar-label { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-heading); white-space: nowrap; }
.contact-social-links { display: flex; gap: 10px; }

.contact-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,240,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    background: rgba(0,240,255,0.03);
}

.contact-social-links a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0,240,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,240,255,0.15);
}

/* Form wrapper with animated glow border */
.contact-form-wrapper {
    position: relative;
    padding: 40px;
    border-radius: 16px;
    background: rgba(22, 22, 31, 0.9);
    border: 1px solid rgba(0,240,255,0.12);
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,240,255,0.4), rgba(139,92,246,0.2), rgba(255,0,229,0.15), rgba(0,240,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0,240,255,0.05) 25%, transparent 50%, rgba(139,92,246,0.04) 75%, transparent 100%);
    animation: formGlow 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes formGlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.contact-form { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Neon input fields */
.form-group { position: relative; display: flex; align-items: stretch; }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,240,255,0.4);
    font-size: 0.9rem;
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-icon.textarea-icon { top: 22px; transform: none; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 18px 18px 48px;
    background: rgba(10, 10, 20, 0.6);
    border: 1.5px solid rgba(0,240,255,0.12);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group textarea { resize: vertical; min-height: 140px; padding-top: 20px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(161, 161, 170, 0.5); font-size: 0.9rem; }

/* Focus state — neon glow */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(0,240,255,0.08), 0 0 30px rgba(0,240,255,0.08), inset 0 0 20px rgba(0,240,255,0.03);
}

.form-group:focus-within .input-icon { color: var(--neon-cyan); filter: drop-shadow(0 0 6px rgba(0,240,255,0.5)); }

/* Hover state */
.form-group input:hover,
.form-group textarea:hover { border-color: rgba(0,240,255,0.25); background: rgba(10, 10, 20, 0.8); }

/* Filled state */
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) { border-color: rgba(139,92,246,0.3); }

.form-group:has(input:not(:placeholder-shown)) .input-icon,
.form-group:has(textarea:not(:placeholder-shown)) .input-icon { color: var(--neon-purple); }

/* Submit button */
.btn-submit {
    align-self: flex-end;
    background: var(--gradient-1);
    color: var(--bg-primary);
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,240,255,0.3), 0 0 20px rgba(0,240,255,0.15);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0,240,255,0.08);
    text-align: center;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan); /* fallback */
}

.footer p { font-size: 0.9rem; color: var(--text-secondary); }
.footer-tagline { font-family: var(--font-heading); font-style: italic; color: var(--text-muted); }

.footer-socials { display: flex; gap: 12px; margin: 8px 0; }

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,240,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { opacity: 1; transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { opacity: 1; transform: translateX(0); }

/* ===== ACCESSIBILITY ===== */

/* Focus states for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-link:focus,
.btn:focus,
.contact-social-links a:focus,
.hero-socials a:focus,
.footer-socials a:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Reduced motion for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-glow,
    #particleCanvas {
        display: none !important;
    }

    .hero-layer {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #d4d4d8;
        --text-muted: #a1a1aa;
        --bg-card: #1a1a24;
    }
}

/* Skip to main content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--neon-cyan);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus { top: 0; }

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .cursor-glow,
    #particleCanvas,
    .scroll-indicator,
    .hero-socials,
    .hamburger,
    .nav-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ===== GITHUB STATS SECTION ===== */
.github-stats-section {
    position: relative;
    overflow: hidden;
}

.github-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.4fr;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .github-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.github-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.github-card:hover::before {
    left: 100%;
}

.github-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

.github-card a {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
}

.github-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* .github-streak: no special desktop styles — shares the row with the other two cards.
   On tablet (<=992px) it spans both columns; see media query below. */

@media (max-width: 992px) {
    .github-streak {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* GitHub Activities */
.github-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.activity-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.activity-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.activity-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(0,240,255,0.1);
    }

    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.1rem; padding: 12px 16px; }
    .nav-resume-btn { display: none; }
    .hamburger { display: flex; }
    .hero-name { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-typewriter { font-size: 1.1rem; }

    .skills-grid,
    .projects-grid,
    .blog-grid,
    .education-grid,
    .services-grid,
    .github-stats-grid,
    .github-activities { grid-template-columns: 1fr; }

    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { padding-left: 30px; }
    .timeline::before { left: 10px; }
    .timeline-marker { left: -28px; width: 10px; height: 10px; }
    .section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-number { font-size: 1.4rem; }
    .cert-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .testimonial-card { padding: 24px; }
    .btn-submit { align-self: stretch; }
}


/* ============================================================
   INTRO / BOOT SEQUENCE — VR HUD visor reveal
   ============================================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
.intro-overlay.is-done {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.1s;
}
.intro-overlay.is-hidden { display: none; }

body.intro-active { overflow: hidden; }

.intro-skip {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: introFade 0.4s ease 1.2s forwards;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.intro-skip:hover { background: rgba(0, 240, 255, 0.15); border-color: var(--neon-cyan); }
.intro-skip i { font-size: 0.7rem; }

.intro-stage {
    position: relative;
    width: min(900px, 92vw);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    will-change: transform, filter;
}

/* Phase 1 — arc draws in */
.intro-arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}
.intro-arc-path {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: introArcDraw 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.intro-overlay.phase-2 .intro-arc-path { animation: introArcFade 0.4s ease forwards; }

@keyframes introArcDraw {
    0%   { stroke-dashoffset: 1600; opacity: 0; }
    10%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes introArcFade {
    to { opacity: 0; }
}

/* Phase 2 — visor materializes */
.intro-visor {
    position: relative;
    width: 92%;
    height: 78%;
    border-radius: 50% / 46%;
    border: 2px solid transparent;
    background:
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, rgba(0, 240, 255, 0.04) 40%, transparent 70%),
        linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(22, 22, 31, 0.9));
    box-shadow:
        inset 0 0 80px rgba(0, 240, 255, 0.08),
        inset 0 0 30px rgba(139, 92, 246, 0.1),
        0 0 40px rgba(0, 240, 255, 0.15);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.85);
    animation: introVisorIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.75s forwards;
    padding: 40px 80px;
}
.intro-visor::before,
.intro-visor::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-magenta)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    animation: introVisorPulse 2.4s ease-in-out infinite;
}
.intro-visor::after { filter: blur(8px); opacity: 0.55; }

@keyframes introVisorIn {
    0%   { opacity: 0; transform: scale(0.8); filter: blur(6px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes introVisorPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* Corner brackets */
.visor-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--neon-cyan);
    opacity: 0;
    animation: introFade 0.4s ease 1.1s forwards;
}
.visor-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.visor-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.visor-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.visor-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* Status text */
.visor-status {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    white-space: nowrap;
    opacity: 0;
    animation: introFade 0.4s ease 1.3s forwards;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
    animation: introDotBlink 0.8s ease-in-out infinite;
}
@keyframes introDotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Loading bar */
.visor-bar {
    position: relative;
    width: 70%;
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: introFade 0.4s ease 1.4s forwards;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.visor-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-pink));
    background-size: 200% 100%;
    box-shadow: 0 0 14px var(--neon-cyan), 0 0 30px rgba(255, 0, 229, 0.4);
    transition: width 0.12s linear;
    animation: introBarShimmer 1.2s linear infinite;
}
@keyframes introBarShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.visor-bar-ticks {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 9.9%,
        rgba(0, 0, 0, 0.4) 9.9% 10%
    );
    pointer-events: none;
}

/* Percentage readout */
.visor-readout {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-family: var(--font-display);
    opacity: 0;
    animation: introFade 0.4s ease 1.5s forwards;
}
.visor-percent {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}
.visor-percent small {
    font-size: 1rem;
    margin-left: 4px;
    opacity: 0.7;
}
.visor-hex {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--neon-purple);
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Brand in visor */
.visor-brand {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    opacity: 0;
    animation: introFade 0.4s ease 1.1s forwards;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

@keyframes introFade {
    to { opacity: 1; }
}

/* Phase 3 — zoom in (visor engulfs) */
.intro-overlay.phase-zoom .intro-stage {
    animation: introZoom 0.85s cubic-bezier(0.7, 0, 0.9, 0.3) forwards;
}
.intro-overlay.phase-zoom .intro-visor {
    animation: introVisorBlowout 0.85s cubic-bezier(0.7, 0, 0.9, 0.3) forwards;
}

@keyframes introZoom {
    0%   { transform: scale(1); filter: blur(0); }
    60%  { transform: scale(4); filter: blur(4px); }
    100% { transform: scale(18); filter: blur(14px); opacity: 0; }
}
@keyframes introVisorBlowout {
    0%   { box-shadow: inset 0 0 80px rgba(0, 240, 255, 0.08), inset 0 0 30px rgba(139, 92, 246, 0.1), 0 0 40px rgba(0, 240, 255, 0.15); }
    50%  { box-shadow: inset 0 0 200px rgba(0, 240, 255, 0.8), inset 0 0 120px rgba(255, 0, 229, 0.5), 0 0 120px rgba(0, 240, 255, 0.6); }
    100% { box-shadow: inset 0 0 400px rgba(255, 255, 255, 0.9), 0 0 200px #fff; background: #fff; }
}

/* Scanline / flicker overlay inside visor */
.intro-zoom-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0 3px,
        rgba(0, 240, 255, 0.03) 3px 4px
    );
    mix-blend-mode: overlay;
    animation: introScan 6s linear infinite;
    opacity: 0.6;
}
@keyframes introScan {
    0%   { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .intro-stage { aspect-ratio: 4 / 3; }
    .visor-status { font-size: 0.6rem; letter-spacing: 2px; top: 20%; }
    .visor-bar { width: 78%; height: 10px; }
    .visor-percent { font-size: 1.4rem; }
    .visor-hex { font-size: 0.7rem; }
    .visor-brand { font-size: 0.75rem; }
    .visor-corner { width: 18px; height: 18px; }
}

/* Reduced motion — collapse intro to a soft fade */
@media (prefers-reduced-motion: reduce) {
    .intro-overlay { animation: introFade 0.3s ease forwards; }
    .intro-arc-path,
    .intro-visor,
    .visor-corner,
    .visor-status,
    .visor-bar,
    .visor-readout,
    .visor-brand { animation: none !important; opacity: 1 !important; transform: none !important; }
    .intro-overlay.phase-zoom .intro-stage,
    .intro-overlay.phase-zoom .intro-visor { animation: none !important; }
}


/* ===================================================================
   HUD CHROME — Techfest-inspired framed rails (desktop only)
   =================================================================== */

.hud-chrome {
    position: fixed;
    inset: 0;
    pointer-events: none;       /* children re-enable pointer-events individually */
    z-index: 1100;              /* sit above the hero canvas + cursor glow */
}

.hud-chrome > * { pointer-events: auto; }

/* Shared neon frame treatment */
.hud-logo,
.hud-pill,
.hud-avatar,
.hud-rail {
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 14px;
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.08),
        inset 0 0 20px rgba(0, 240, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* ---------- Corner logo (top-left) ---------- */
.hud-logo {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hud-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--neon-cyan);
}

.hud-logo:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
}

/* ---------- Top-center pill nav ---------- */
.hud-pill {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 26px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.hud-pill a {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    position: relative;
}

.hud-pill a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.hud-pill a + a::before {
    /* subtle separator dot */
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.4);
    transform: translateY(-50%);
}

/* ---------- Top-right avatar tile ---------- */
.hud-avatar {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 68px;
    height: 68px;
    overflow: hidden;
    display: block;
}

.hud-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.hud-avatar:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 28px rgba(255, 0, 229, 0.35);
    transform: translateY(-2px);
}

/* ---------- Vertical rails (left + right) ---------- */
.hud-rail {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.hud-rail-left  { left: 18px; }
.hud-rail-right { right: 18px; padding: 14px 12px; gap: 14px; }

/* Left rail links (icon + label) */
.rail-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 58px;
    padding: 10px 4px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.rail-link i {
    font-size: 1.05rem;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.rail-link span {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rail-link:hover,
.rail-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
}

.rail-link:hover i,
.rail-link.active i {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    transform: translateY(-2px);
}

/* Right rail (social icons only) */
.hud-rail-right a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.hud-rail-right a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

/* ===== Hide the old top navbar on desktop (HUD replaces it) ===== */
@media (min-width: 901px) {
    .navbar { display: none !important; }
    /* Social links are in the right rail on desktop */
    .hero-socials { display: none; }
}

/* ===== Mobile & tablet: fall back to the original top navbar ===== */
@media (max-width: 900px) {
    .hud-chrome { display: none; }
}

/* Shrink HUD slightly on mid-size screens so rails don't crowd content */
@media (max-width: 1200px) and (min-width: 901px) {
    .hud-logo,
    .hud-avatar { width: 56px; height: 56px; }
    .hud-pill { gap: 22px; padding: 8px 18px; }
    .hud-pill a { font-size: 0.72rem; letter-spacing: 2px; }
    .hud-pill a + a::before { left: -12px; }
    .rail-link { width: 52px; padding: 8px 4px; }
    .rail-link span { font-size: 0.55rem; }
    .hud-rail-right a { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* Reduced motion — disable drift animations, keep static cosmic layers */
@media (prefers-reduced-motion: reduce) {
    .hero-layer,
    .hero-layer[data-drift],
    .hero-ship { animation: none !important; }
}
