/* =========================================================
   Hikmatullah — Portfolio
   Modern dark theme · glassmorphism · gradient mesh
   ========================================================= */

:root {
    --bg: #07070b;
    --bg-2: #0c0c14;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #ececf1;
    --text-dim: #a8a8b3;
    --text-muted: #6b6b78;

    --primary: #6366f1;          /* indigo (was violet) */
    --primary-2: #7c5cff;
    --accent: #06b6d4;           /* electric cyan */
    --accent-2: #3b82f6;         /* electric blue (was pink) */

    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-text: linear-gradient(120deg, #93c5fd, #818cf8 50%, #06b6d4);

    --radius: 18px;
    --radius-lg: 28px;
    --shadow-lg: 0 30px 80px -20px rgba(124, 92, 255, 0.35);

    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent-2));
    border-radius: 8px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

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

/* Layout */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section { padding: 120px 0; }

.section-head {
    margin-bottom: 70px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--text);
}

/* =========================================================
   Background — gradient mesh + grid + orbs
   ========================================================= */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(124, 92, 255, 0.18), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.15), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.10), transparent 50%),
        var(--bg);
}

/* Background video */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}

/* Tinted overlay so text stays readable over the video */
.bg-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(7, 7, 11, 0.55), rgba(7, 7, 11, 0.85) 70%),
        linear-gradient(180deg, rgba(7, 7, 11, 0.4), rgba(7, 7, 11, 0.7));
}

/* On mobile, save battery — hide the video, keep gradient + orbs */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .bg-video { display: none; }
    .bg-video-overlay { display: none; }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 { width: 480px; height: 480px; background: #6366f1; top: -120px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #3b82f6; top: 40%; right: -100px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #06b6d4; bottom: -80px; left: 30%; animation-delay: -12s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.cursor-ring {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.2s, background 0.2s;
}
.cursor-ring.hover {
    width: 64px; height: 64px;
    background: rgba(124, 92, 255, 0.15);
    border-color: var(--primary);
}

@media (max-width: 900px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   Loader — Iron Man HUD / JARVIS boot sequence
   Total runtime ~7s, then fades out
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background: #000;
    color: #00e5ff;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
.loader.done {
    pointer-events: none;
    /* Drop the black bg the moment shards become visible so shatter
       gaps reveal the site beneath, not the loader's own background. */
    background: transparent;
    transition: background-color 0s linear 0.18s;
}

/* --- Scanlines (faint blue CRT effect) --- */
.hud-scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 2px,
            rgba(0, 229, 255, 0.04) 2px,
            rgba(0, 229, 255, 0.04) 3px
        );
    opacity: 0;
    animation: hudFadeIn 0.4s ease 0.1s forwards;
    pointer-events: none;
    z-index: 2;
}

/* Soft vignette darkening the corners */
.hud-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
    z-index: 3;
}

/* --- Floating particles drifting upward --- */
.hud-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}
.hud-particles span {
    position: absolute;
    bottom: -10px;
    width: 2px;
    height: 2px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e5ff;
    opacity: 0;
    animation: particleFloat 7s linear infinite;
}
.hud-particles span:nth-child(1)  { left:  4%; animation-delay: 0s;   animation-duration: 8s;  }
.hud-particles span:nth-child(2)  { left:  9%; animation-delay: 1.2s; animation-duration: 6s;  }
.hud-particles span:nth-child(3)  { left: 14%; animation-delay: 2.5s; animation-duration: 9s;  }
.hud-particles span:nth-child(4)  { left: 19%; animation-delay: 0.6s; animation-duration: 7s;  }
.hud-particles span:nth-child(5)  { left: 24%; animation-delay: 3.4s; animation-duration: 8s;  }
.hud-particles span:nth-child(6)  { left: 29%; animation-delay: 1.8s; animation-duration: 6.5s;}
.hud-particles span:nth-child(7)  { left: 34%; animation-delay: 4.2s; animation-duration: 7.5s;}
.hud-particles span:nth-child(8)  { left: 39%; animation-delay: 0.3s; animation-duration: 9s;  }
.hud-particles span:nth-child(9)  { left: 44%; animation-delay: 2.1s; animation-duration: 7s;  }
.hud-particles span:nth-child(10) { left: 49%; animation-delay: 5.0s; animation-duration: 8s;  }
.hud-particles span:nth-child(11) { left: 54%; animation-delay: 1.5s; animation-duration: 6s;  }
.hud-particles span:nth-child(12) { left: 59%; animation-delay: 3.7s; animation-duration: 9s;  }
.hud-particles span:nth-child(13) { left: 64%; animation-delay: 0.9s; animation-duration: 7s;  }
.hud-particles span:nth-child(14) { left: 69%; animation-delay: 4.5s; animation-duration: 8s;  }
.hud-particles span:nth-child(15) { left: 74%; animation-delay: 2.8s; animation-duration: 6.5s;}
.hud-particles span:nth-child(16) { left: 79%; animation-delay: 0.4s; animation-duration: 8.5s;}
.hud-particles span:nth-child(17) { left: 84%; animation-delay: 3.2s; animation-duration: 7s;  }
.hud-particles span:nth-child(18) { left: 89%; animation-delay: 1.1s; animation-duration: 9s;  }
.hud-particles span:nth-child(19) { left: 94%; animation-delay: 4.8s; animation-duration: 7.5s;}
.hud-particles span:nth-child(20) { left: 12%; animation-delay: 5.6s; animation-duration: 8s;  }
.hud-particles span:nth-child(21) { left: 33%; animation-delay: 6.0s; animation-duration: 7s;  }
.hud-particles span:nth-child(22) { left: 56%; animation-delay: 5.3s; animation-duration: 8.5s;}
.hud-particles span:nth-child(23) { left: 78%; animation-delay: 6.4s; animation-duration: 7s;  }
.hud-particles span:nth-child(24) { left: 23%; animation-delay: 4.0s; animation-duration: 6s;  }
.hud-particles span:nth-child(25) { left: 91%; animation-delay: 5.8s; animation-duration: 9s;  }

@keyframes particleFloat {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* --- Corner HUD brackets --- */
.hud-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    opacity: 0;
    animation: cornerIn 0.4s cubic-bezier(0.7, 0, 0.3, 1) 1.5s forwards;
    z-index: 5;
}
.hc-tl { top: 24px; left: 24px; border-right: none; border-bottom: none; transform: translate(-12px, -12px); }
.hc-tr { top: 24px; right: 24px; border-left: none; border-bottom: none; transform: translate(12px, -12px); }
.hc-bl { bottom: 24px; left: 24px; border-right: none; border-top: none; transform: translate(-12px, 12px); }
.hc-br { bottom: 24px; right: 24px; border-left: none; border-top: none; transform: translate(12px, 12px); }
.hc-tr { animation-delay: 1.55s; }
.hc-bl { animation-delay: 1.6s; }
.hc-br { animation-delay: 1.65s; }

@keyframes cornerIn {
    to { opacity: 1; transform: translate(0, 0); }
}

/* --- Arc reactor (Phase 1) — profile image as core --- */
.arc-reactor {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    z-index: 6;
    opacity: 0;
    animation: hudFadeIn 0.6s ease 0.4s forwards;
}
.arc-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.55), transparent 60%);
    border-radius: 50%;
    animation: arcPulse 2s ease-in-out infinite;
}
.arc-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3) inset, 0 0 8px rgba(0, 229, 255, 0.3);
}
.arc-r1 {
    inset: 0;
    border-style: dashed;
    border-color: rgba(0, 229, 255, 0.6);
    animation: spin 14s linear infinite;
}
.arc-r2 {
    inset: 12px;
    border-color: rgba(0, 229, 255, 0.4);
    border-top-color: #00e5ff;
    border-right-color: transparent;
    border-bottom-color: rgba(0, 229, 255, 0.7);
    border-left-color: transparent;
    border-width: 1.5px;
    animation: spin 7s linear infinite reverse;
}
.arc-r3 {
    inset: 26px;
    border-style: dashed;
    animation: spin 10s linear infinite;
}
.arc-r4 {
    inset: 40px;
    border-color: #00e5ff;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-width: 2px;
    animation: spin 5s linear infinite reverse;
}
/* Profile image as the arc-reactor core */
.arc-core {
    position: absolute;
    inset: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00e5ff;
    background: #000;
    box-shadow:
        0 0 18px #00e5ff,
        0 0 36px rgba(0, 229, 255, 0.7),
        0 0 60px rgba(0, 229, 255, 0.4),
        inset 0 0 20px rgba(0, 229, 255, 0.4);
    animation: corePulse 1.8s ease-in-out infinite;
}
.arc-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}
/* Cyan tint overlay on the image to match HUD aesthetic */
.arc-core-tint {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(0, 229, 255, 0.35), transparent 60%),
        linear-gradient(180deg, transparent 50%, rgba(0, 229, 255, 0.18) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes arcPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.08); }
}
@keyframes corePulse {
    0%, 100% {
        box-shadow:
            0 0 18px #00e5ff,
            0 0 36px rgba(0, 229, 255, 0.7),
            0 0 60px rgba(0, 229, 255, 0.4),
            inset 0 0 20px rgba(0, 229, 255, 0.4);
    }
    50% {
        box-shadow:
            0 0 26px #00e5ff,
            0 0 50px rgba(0, 229, 255, 0.85),
            0 0 90px rgba(0, 229, 255, 0.55),
            inset 0 0 28px rgba(0, 229, 255, 0.55);
    }
}

/* --- Phase 2: Identity --- */
.hud-identity {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 6;
    width: 100%;
}
.hud-name {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.5em;
    color: #ffffff;
    text-shadow:
        0 0 8px #00e5ff,
        0 0 20px rgba(0, 229, 255, 0.8),
        0 0 40px rgba(0, 229, 255, 0.5);
    margin: 0 0 14px;
    padding-left: 0.5em; /* offset for the trailing letter-spacing */
    display: inline-block;
}
.hud-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    animation: letterIn 0.18s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.hud-name span:nth-child(1)  { animation-delay: 1.9s; }
.hud-name span:nth-child(2)  { animation-delay: 2.0s; }
.hud-name span:nth-child(3)  { animation-delay: 2.1s; }
.hud-name span:nth-child(4)  { animation-delay: 2.2s; }
.hud-name span:nth-child(5)  { animation-delay: 2.3s; }
.hud-name span:nth-child(6)  { animation-delay: 2.4s; }
.hud-name span:nth-child(7)  { animation-delay: 2.5s; }
.hud-name span:nth-child(8)  { animation-delay: 2.6s; }
.hud-name span:nth-child(9)  { animation-delay: 2.7s; }
.hud-name span:nth-child(10) { animation-delay: 2.8s; }
.hud-name span:nth-child(11) { animation-delay: 2.9s; }
@keyframes letterIn { to { opacity: 1; transform: translateY(0); } }

.hud-role {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: #00e5ff;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
    margin: 0;
    opacity: 0;
    animation: hudFadeIn 0.6s ease 3.2s forwards;
    padding-left: 0.32em;
}

/* --- Phase 3: Boot bar + status --- */
.hud-boot {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 80%);
    z-index: 6;
}
.hud-progress {
    position: relative;
    height: 2px;
    background: rgba(0, 229, 255, 0.12);
    margin-bottom: 18px;
    opacity: 0;
    animation: hudFadeIn 0.4s ease 3.6s forwards;
}
.hud-progress-track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 229, 255, 0.2);
}
.hud-progress-fill {
    height: 100%;
    width: 0;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff, 0 0 14px rgba(0, 229, 255, 0.6);
    animation: progressFill 2.2s cubic-bezier(0.65, 0, 0.35, 1) 3.8s forwards;
}
.hud-progress-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
    opacity: 0;
    animation: dotMove 2.2s cubic-bezier(0.65, 0, 0.35, 1) 3.8s forwards;
}
@keyframes progressFill { to { width: 100%; } }
@keyframes dotMove {
    0%   { left: 0;    opacity: 1; }
    100% { left: 100%; opacity: 1; }
}

.hud-status {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}
.hud-status li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #cbd5e1;
    opacity: 0;
    animation: hudFadeIn 0.3s ease forwards;
}
.hud-status li:nth-child(1) { animation-delay: 4.0s; }
.hud-status li:nth-child(2) { animation-delay: 4.5s; }
.hud-status li:nth-child(3) { animation-delay: 5.0s; }
.hud-status li:nth-child(4) { animation-delay: 5.5s; }
.status-label { color: #cbd5e1; }
.status-ok {
    color: #00e5ff;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
    font-weight: 700;
}

/* --- Phase 4: cyan flash + SUIT UP --- */
.hud-flash {
    position: absolute;
    inset: 0;
    background: #00e5ff;
    opacity: 0;
    pointer-events: none;
    z-index: 9;
    animation: hudFlash 0.5s ease 5.7s forwards;
}
@keyframes hudFlash {
    0%   { opacity: 0; }
    20%  { opacity: 0.95; }
    100% { opacity: 0; }
}

.hud-suitup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    letter-spacing: 0.4em;
    color: #ffffff;
    text-shadow:
        0 0 10px #00e5ff,
        0 0 30px #00e5ff,
        0 0 60px rgba(0, 229, 255, 0.6);
    opacity: 0;
    z-index: 10;
    animation: suitUpReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 6.0s forwards;
    padding-left: 0.4em;
    white-space: nowrap;
}
@keyframes suitUpReveal {
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes hudFadeIn { to { opacity: 1; } }

/* =========================================================
   Glass shatter exit (replaces fade-out)
   ========================================================= */
.glass-shatter {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
}
/* The 8 wedge shards — together they tile the entire viewport */
.shard {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    will-change: transform, opacity;
    transition:
        transform 1.0s cubic-bezier(0.5, 0, 0.6, 1) 0.25s,
        opacity 1.0s ease 0.35s;
    /* Subtle gradient so adjacent shards differ slightly when in motion */
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.06);
}
/* Each shard gets a slightly different gradient so they read as
   discrete glass pieces when they fly apart */
.shard.s1 { background: linear-gradient(135deg, #050508, #000);    }
.shard.s2 { background: linear-gradient(225deg, #050508, #000);    }
.shard.s3 { background: linear-gradient(315deg, #07070c, #010104); }
.shard.s4 { background: linear-gradient(45deg,  #07070c, #010104); }
.shard.s5 { background: linear-gradient(225deg, #050508, #000);    }
.shard.s6 { background: linear-gradient(135deg, #050508, #000);    }
.shard.s7 { background: linear-gradient(45deg,  #07070c, #010104); }
.shard.s8 { background: linear-gradient(315deg, #07070c, #010104); }
/* 8 triangular wedges from corners and edges to the center (50% 50%) */
/* Use slightly off-center pivot points for irregular glass-like fragments */
.shard.s1 { clip-path: polygon(0% 0%,    50% 0%,   48% 52%); }
.shard.s2 { clip-path: polygon(50% 0%,   100% 0%,  52% 52%); }
.shard.s3 { clip-path: polygon(100% 0%,  100% 50%, 52% 48%); }
.shard.s4 { clip-path: polygon(100% 50%, 100% 100%,52% 52%); }
.shard.s5 { clip-path: polygon(100% 100%,50% 100%, 48% 52%); }
.shard.s6 { clip-path: polygon(50% 100%, 0% 100%,  48% 48%); }
.shard.s7 { clip-path: polygon(0% 100%,  0% 50%,   48% 52%); }
.shard.s8 { clip-path: polygon(0% 50%,   0% 0%,    48% 48%); }

/* On done: reveal the shards (which match loader bg, so seamless),
   then they explode outward */
.loader.done .glass-shatter { opacity: 1; transition: opacity 0s linear 0.2s; }

.loader.done .shard.s1 { transform: translate(-26vw, -34vh) rotate(-22deg); opacity: 0; }
.loader.done .shard.s2 { transform: translate( 26vw, -34vh) rotate( 22deg); opacity: 0; }
.loader.done .shard.s3 { transform: translate( 38vw, -10vh) rotate( 35deg); opacity: 0; }
.loader.done .shard.s4 { transform: translate( 38vw,  18vh) rotate( 18deg); opacity: 0; }
.loader.done .shard.s5 { transform: translate( 22vw,  40vh) rotate( 28deg); opacity: 0; }
.loader.done .shard.s6 { transform: translate(-22vw,  40vh) rotate(-28deg); opacity: 0; }
.loader.done .shard.s7 { transform: translate(-38vw,  18vh) rotate(-18deg); opacity: 0; }
.loader.done .shard.s8 { transform: translate(-38vw, -10vh) rotate(-35deg); opacity: 0; }

/* Crack lines flash white briefly before the shatter */
.glass-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 8px #00e5ff);
}
.loader.done .glass-cracks { animation: cracksFlash 0.4s ease 0.05s forwards; }
@keyframes cracksFlash {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0; }
}

/* HUD content fades a touch faster than the shatter so it's gone */
.loader.done .arc-reactor,
.loader.done .hud-identity,
.loader.done .hud-boot,
.loader.done .hud-suitup,
.loader.done .hud-corner,
.loader.done .hud-particles,
.loader.done .hud-scanlines {
    transition: opacity 0.25s ease;
    opacity: 0;
}

/* Loader stays dark regardless of site theme */
:root[data-theme="light"] .loader {
    background: #000;
    color: #00e5ff;
}

@media (max-width: 600px) {
    .hud-corner { width: 40px; height: 40px; }
    .hc-tl, .hc-tr { top: 16px; }
    .hc-tl, .hc-bl { left: 16px; }
    .hc-tr, .hc-br { right: 16px; }
    .hc-bl, .hc-br { bottom: 16px; }
    .arc-reactor { width: 130px; height: 130px; top: 36%; }
    .arc-r2 { inset: 14px; }
    .arc-r3 { inset: 28px; }
    .arc-r4 { inset: 42px; }
    .arc-core { inset: 52px; }
    .hud-name { letter-spacing: 0.3em; font-size: 1.4rem; padding-left: 0.3em; }
    .hud-role { font-size: 0.65rem; letter-spacing: 0.22em; }
    .hud-boot { bottom: 60px; }
    .hud-status { font-size: 0.62rem; }
    .hud-suitup { font-size: 1.1rem; letter-spacing: 0.3em; padding-left: 0.3em; }
}

/* Two panels covering screen — split apart on .done */
.book-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background:
        linear-gradient(180deg, #0a0a14 0%, #050508 100%);
    transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 10001;
}
.book-left {
    left: 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6);
}
.book-right {
    right: 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
}
.loader.done .book-left  { transform: translateX(-100%); }
.loader.done .book-right { transform: translateX(100%); }

/* Glowing seam where the panels meet (book spine) */
.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.5) 30%,
        rgba(6, 182, 212, 0.6) 50%,
        rgba(99, 102, 241, 0.5) 70%,
        transparent 100%);
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(6, 182, 212, 0.25);
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
    z-index: 10002;
    pointer-events: none;
}
.loader.done .book-spine { opacity: 0; transition-delay: 0.4s; }

/* Centered stage above the panels */
.loader-stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    z-index: 10003;
    transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.loader.done .loader-stage {
    opacity: 0;
    transform: scale(0.92);
    transition-delay: 0.2s;
}

/* Portrait — profile image with a drawing gradient ring */
.loader-portrait {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 8px;
    opacity: 0;
    transform: scale(0.8);
    animation: portraitIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
@keyframes portraitIn {
    to { opacity: 1; transform: scale(1); }
}

.portrait-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.ring-draw {
    stroke-dasharray: 578; /* 2π × 92 */
    stroke-dashoffset: 578;
    animation: drawRing 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}
@keyframes drawRing {
    to { stroke-dashoffset: 0; }
}

.portrait-img {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    background: #0a0a14;
}
.portrait-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portrait-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 65%);
    filter: blur(20px);
    z-index: 0;
    animation: portraitGlow 3s ease-in-out infinite;
}
@keyframes portraitGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

/* Brand name */
.loader-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    animation: ldFadeUp 0.6s var(--ease) 1.2s forwards;
}
.ln-text {
    background: linear-gradient(120deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ln-dot {
    color: #06b6d4;
    text-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}

.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #6b7184;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    animation: ldFadeUp 0.6s var(--ease) 1.4s forwards;
}

@keyframes ldFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Brand name */
.loader-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(8px);
    animation: ldFadeUp 0.6s var(--ease) 1.0s forwards;
    color: #fff;
}
.ln-text {
    background: linear-gradient(120deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ln-dot {
    color: #22d3ee;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}

.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #6b7184;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    animation: ldFadeUp 0.6s var(--ease) 1.15s forwards;
}

@keyframes ldFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Terminal status line */
.loader-terminal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: 'Space Grotesk', 'SF Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    min-width: 280px;
    opacity: 0;
    animation: ldFadeUp 0.6s var(--ease) 1.3s forwards;
}
.lt-prompt {
    color: #22d3ee;
    font-weight: 700;
}
.lt-text {
    flex: 1;
    color: #e5e7f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}
.lt-caret {
    color: #22d3ee;
    animation: blinkCaret 0.9s steps(1) infinite;
}
@keyframes blinkCaret { 50% { opacity: 0; } }

/* Progress bar */
.loader-bar {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border-radius: 2px;
    margin-top: 10px;
    opacity: 0;
    animation: ldFadeUp 0.4s ease 1.4s forwards;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7c5cff, #22d3ee);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    animation: loaderBar 2.4s cubic-bezier(0.7, 0, 0.3, 1) 1.4s forwards;
}
@keyframes loaderBar { to { width: 100%; } }

/* Loader is dark-themed regardless of site theme */
:root[data-theme="light"] .loader {
    background: radial-gradient(ellipse at center, #0c0c14 0%, #050508 80%);
}

@media (max-width: 480px) {
    .loader-mark { width: 90px; height: 90px; }
    .loader-terminal { min-width: 240px; font-size: 0.78rem; padding: 9px 14px; }
    .loader-bar { width: 240px; }
}

/* =========================================================
   Header / Nav
   ========================================================= */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s var(--ease);
    padding: 18px 0;
}
header.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 7, 11, 0.7);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}
.logo-dot { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
.nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.5);
}
.nav-cta i { transition: transform 0.3s var(--ease); }
.nav-cta:hover i { transform: translateX(3px); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        flex-direction: column;
        padding: 24px;
        border-radius: 20px;
        background: rgba(12, 12, 20, 0.95);
        backdrop-filter: blur(24px);
        border: 1px solid var(--border);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: all 0.3s var(--ease);
    }
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-link { padding: 12px 18px; text-align: center; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 92, 255, 0.55);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.status-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 28px;
    line-height: 1.05;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s var(--ease);
}
.reveal-line.visible > span {
    transform: translateY(0);
}
.line:nth-child(2) > span { transition-delay: 0.1s; }
.line:nth-child(3) > span { transition-delay: 0.2s; }

.typed { color: var(--accent); }
.caret {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
    margin-left: 2px;
    font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 40px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 14px;
}
.hero-socials a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}
.hero-socials a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--surface-2);
    transform: translateY(-3px);
}

/* Hero image — rich layered profile with conic ring, orbits, particles */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.image-wrap {
    position: relative;
    width: min(440px, 85%);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease);
}

/* The photo frame with animated gradient border */
.image-frame {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    padding: 4px;
    background:
        conic-gradient(from 0deg,
            #3b82f6, #6366f1, #06b6d4, #3b82f6);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
    box-shadow:
        0 30px 60px -10px rgba(59, 130, 246, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        #3b82f6, #6366f1, #06b6d4, #3b82f6);
    filter: blur(20px);
    opacity: 0.55;
    z-index: -1;
    animation: spinSlow 8s linear infinite;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-2);
    display: block;
}
/* Subtle moving shine over the photo */
.frame-shine {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.18) 48%,
        rgba(255, 255, 255, 0.06) 52%,
        transparent 65%);
    pointer-events: none;
    animation: shineSweep 6s ease-in-out infinite;
    z-index: 6;
    mix-blend-mode: overlay;
}

/* Outer conic-gradient ring (rotates) */
.conic-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg,
            transparent 0deg,
            rgba(99, 102, 241, 0.6) 40deg,
            transparent 110deg,
            transparent 180deg,
            rgba(6, 182, 212, 0.55) 220deg,
            transparent 290deg);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 64%, transparent 66%);
            mask: radial-gradient(circle, transparent 60%, #000 62%, #000 64%, transparent 66%);
    animation: spinSlow 14s linear infinite;
    z-index: 2;
}
/* Inner dashed ring (counter-rotates) */
.dashed-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    animation: spinSlow 26s linear infinite reverse;
    z-index: 1;
}

/* Multi-layer pulsing glowing aura */
.aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}
.aura-1 {
    inset: -30px;
    background: radial-gradient(circle at 30% 30%, #3b82f6, transparent 65%);
    opacity: 0.55;
    animation: pulseGlow 5s ease-in-out infinite;
}
.aura-2 {
    inset: -50px;
    background: radial-gradient(circle at 70% 60%, #6366f1, transparent 65%);
    opacity: 0.4;
    animation: pulseGlow 7s ease-in-out -1.5s infinite;
}
.aura-3 {
    inset: -20px;
    background: radial-gradient(circle at 50% 80%, #06b6d4, transparent 65%);
    opacity: 0.35;
    animation: pulseGlow 9s ease-in-out -3s infinite;
}

/* Orbital particles — three independent orbits */
.orbit {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    z-index: 3;
    animation: spinSlow 12s linear infinite;
    pointer-events: none;
}
.orbit-2 { inset: -22px; animation-duration: 18s; animation-direction: reverse; }
.orbit-3 { inset: 6px; animation-duration: 9s; }

.particle {
    position: absolute;
    top: 0; left: 50%;
    width: 12px; height: 12px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 16px #06b6d4, 0 0 32px rgba(6, 182, 212, 0.6);
    transform: translate(-50%, -50%);
}
.particle.p2 {
    width: 8px; height: 8px;
    background: #3b82f6;
    box-shadow: 0 0 12px #3b82f6, 0 0 24px rgba(59, 130, 246, 0.6);
}
.particle.p3 {
    width: 10px; height: 10px;
    background: #6366f1;
    box-shadow: 0 0 14px #6366f1, 0 0 28px rgba(99, 102, 241, 0.6);
}

/* Live status badge floating at bottom */
.image-status {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    z-index: 7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: floatChip 5s ease-in-out infinite;
}
.status-pulse {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}
.status-text { letter-spacing: 0.02em; }

/* Animations */
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes shineSweep {
    0%, 100% { transform: translateX(-15%) rotate(0); opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translateX(15%) rotate(0); opacity: 0; }
}

/* Mobile — keep it elegant but smaller */
@media (max-width: 768px) {
    .image-wrap { width: min(290px, 75%); }
    .image-frame { padding: 3px; inset: 12px; }
    .conic-ring { inset: -8px; }
    .orbit-2 { inset: -16px; }
    .image-status { font-size: 0.7rem; padding: 6px 12px; bottom: 2%; }
    .particle { width: 9px; height: 9px; }
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    z-index: 3;
    animation: floatChip 5s ease-in-out infinite;
}
.float-chip i { color: var(--accent); }
.chip-1 { top: 10%; left: -10%; animation-delay: 0s; }
.chip-2 { top: 50%; right: -15%; animation-delay: -1.5s; }
.chip-3 { bottom: 8%; left: -5%; animation-delay: -3s; }

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: grid;
    place-items: start center;
    padding-top: 6px;
}
.wheel {
    width: 3px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 3px;
    animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content { order: 2; }
    .hero-image { order: 1; }
    .hero-badge, .hero-btns, .hero-socials { justify-content: center; }
    .hero-btns { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .scroll-indicator { display: none; }
    .float-chip { font-size: 0.75rem; padding: 8px 12px; }
    .chip-1 { left: 0; }
    .chip-2 { right: 0; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
    overflow: hidden;
    padding: 30px 0;
    border-block: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}
.marquee-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}
.marquee-track span:nth-child(even) {
    color: var(--primary);
    font-size: 1rem;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* =========================================================
   About
   ========================================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 90px;
}

.about-image {
    position: relative;
}
.about-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}
.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.about-image:hover .about-image-frame img { transform: scale(1.05); }

.about-experience {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: rgba(12, 12, 20, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-lg);
}
.exp-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.about-experience > span:nth-child(2) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}
.exp-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: 12px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.about-text strong { color: var(--text); }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.skill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s var(--ease);
}
.skill i { color: var(--accent); }
.skill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: var(--surface-2);
}
.skill.primary {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(244, 114, 182, 0.12));
    border-color: rgba(124, 92, 255, 0.45);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.18);
}
.skill.primary i { color: #fff; }
.skill.primary:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(124, 92, 255, 0.32);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}
.stat {
    text-align: center;
    position: relative;
}
.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-block;
}
.stat > span:nth-child(2) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
}
.stat-label {
    display: block;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-experience { right: 10px; bottom: -20px; padding: 16px 20px; }
    .exp-num { font-size: 2.2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
    .stat:nth-child(2)::after { display: none; }
}

/* =========================================================
   Featured Portfolio
   ========================================================= */
.portfolio-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 36px;
    margin-bottom: 30px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.portfolio-featured > * {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.featured-info h3,
.featured-info > p,
.featured-info .tag,
.featured-points li,
.role-value,
.role-label {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.tech-pills { max-width: 100%; overflow: hidden; }
.portfolio-featured.reverse {
    grid-template-columns: 1fr 1.1fr;
}
.portfolio-featured.reverse > .featured-info { order: 1; }
.portfolio-featured.reverse > .featured-collage { order: 2; }
.portfolio-featured.reverse::before {
    top: auto; right: auto;
    bottom: -150px; left: -150px;
    background: var(--gradient-2);
}
.portfolio-featured + .portfolio-featured { margin-top: 0; }
.portfolio-grid { margin-top: 50px; }
.portfolio-featured::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 400px; height: 400px;
    background: var(--gradient-1);
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.featured-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    aspect-ratio: 4 / 3;
}
.collage-side { display: contents; }

.collage-main,
.collage-thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #0f3460 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.collage-main {
    grid-row: span 2;
}
.collage-main img,
.collage-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s var(--ease);
}
.collage-main:hover,
.collage-thumb:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 92, 255, 0.35);
    z-index: 3;
}
.collage-main:hover img,
.collage-thumb:hover img { transform: scale(1.06); }

.collage-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
}
.collage-tag i { color: var(--accent); font-size: 0.7rem; }

@media (max-width: 600px) {
    .featured-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }
    .collage-main { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
    .collage-thumb { aspect-ratio: 4/3; }
    .collage-side {
        display: contents;
    }
}

/* ---- Stacked collage variant (Call Agent) ---- */
.featured-collage.stack {
    display: block;
    aspect-ratio: 4 / 3;
    perspective: 1200px;
}
.collage-stack-item {
    position: absolute;
    width: 78%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #0f3460 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), z-index 0s 0.3s;
}
.collage-stack-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}
.collage-stack-item.s1 {
    top: 0; left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}
.collage-stack-item.s2 {
    top: 18%; left: 22%;
    transform: rotate(2deg);
    z-index: 2;
}
.collage-stack-item.s3 {
    bottom: 0; left: 8%;
    transform: rotate(-2deg);
    z-index: 3;
}

/* Two-image variant — balanced offset so it doesn't look lopsided */
.featured-collage.stack.two .collage-stack-item.s1 {
    top: 0; left: 4%;
    transform: rotate(-4deg);
}
.featured-collage.stack.two .collage-stack-item.s3 {
    bottom: 0; right: 4%; left: auto;
    transform: rotate(3deg);
}
.collage-stack-item:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    box-shadow: 0 24px 60px rgba(124, 92, 255, 0.5);
    z-index: 10;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), z-index 0s;
}

@media (max-width: 600px) {
    .featured-collage.stack {
        display: flex;
        flex-direction: column;
        gap: 14px;
        aspect-ratio: auto;
    }
    .collage-stack-item {
        position: relative;
        width: 100%;
        transform: none !important;
        top: auto; left: auto; bottom: auto;
    }
}

/* ---- Phone mockup (Chaman Bazar) ---- */
.featured-collage.phone-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    position: relative;
    perspective: 1400px;
}
.phone-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 65%);
    filter: blur(60px);
    z-index: 0;
}
.phone {
    position: relative;
    width: min(280px, 80%);
    aspect-ratio: 9 / 19;
    background: linear-gradient(145deg, #16161f, #0a0a12);
    border-radius: 38px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: rotate(-3deg);
    transition: transform 0.6s var(--ease);
    z-index: 1;
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone-notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 22px;
    background: #050507;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #0c0c14, #14142a);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px 14px 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    padding: 0 4px;
}
.phone-status i { margin-left: 4px; font-size: 0.6rem; }

.phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-app-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.phone-app-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.phone-app-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.phone-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-left: 2px solid var(--accent);
}
.phone-item.flag {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.pi-emoji { font-size: 1rem; }
.pi-body { flex: 1; min-width: 0; }
.pi-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
}
.pi-unit {
    font-size: 0.58rem;
    color: var(--text-muted);
}
.pi-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.phone-item.flag .pi-price { color: #ef4444; }
.phone-item.flag .pi-price i { font-size: 0.55rem; }

.phone-report {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

/* (mobile phone-mockup rules consolidated in the comprehensive mobile pass below) */

/* ---- Role split (Chaman Bazar — co-founder credit) ---- */
.role-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 22px;
}
.role {
    padding: 14px 16px;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.2);
    border-radius: 12px;
}
.role-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.role-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}
@media (max-width: 700px) {
    .role-split { grid-template-columns: 1fr; }
}

/* ---- Tech pills (Call Agent) ---- */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s var(--ease);
}
.tech-pill i { color: var(--accent); font-size: 0.75rem; }
.tech-pill:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .portfolio-featured.reverse > .featured-info { order: 2; }
    .portfolio-featured.reverse > .featured-collage { order: 1; }
}

.featured-badge {
    position: absolute;
    top: 16px; left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(7, 7, 11, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
    z-index: 2;
}
.featured-badge i { color: #fbbf24; }

.featured-info h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin: 12px 0 16px;
    color: var(--text);
}
.featured-info > p {
    color: var(--text-dim);
    margin-bottom: 22px;
    font-size: 1rem;
}

.featured-points {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.featured-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.featured-points i {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.18);
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.featured-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.featured-links .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .portfolio-featured,
    .portfolio-featured.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    /* Force collage above info on mobile for both layouts */
    .portfolio-featured > .featured-collage,
    .portfolio-featured.reverse > .featured-collage { order: 1 !important; }
    .portfolio-featured > .featured-info,
    .portfolio-featured.reverse > .featured-info { order: 2 !important; }

    /* Stack collage — give it real height on mobile */
    .featured-collage.stack {
        display: block;
        height: auto;
        min-height: 300px;
        aspect-ratio: auto;
        padding-bottom: 80px; /* room for the rotated cards */
    }
    .featured-collage.stack .collage-stack-item {
        width: 78%;
        position: absolute;
    }

    /* Phone mockup — perfectly centered, sized to fit the phone */
    .featured-collage.phone-mockup {
        aspect-ratio: auto;
        min-height: 460px;
        padding: 20px 0;
    }
    .featured-collage.phone-mockup .phone {
        width: 200px;
        max-width: 60%;
        transform: rotate(0);
    }
    .featured-collage.phone-mockup .phone-glow {
        inset: 15%;
    }

    /* Standard 3-image grid collage — keep as 2x2 grid */
    .featured-collage:not(.stack):not(.phone-mockup) {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }
    .featured-collage:not(.stack):not(.phone-mockup) .collage-main {
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 16/10;
    }

    /* Tags + headings sized down */
    .featured-info { min-width: 0; max-width: 100%; }
    .featured-info .tag {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.5;
    }
    .featured-info h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .featured-info > p {
        font-size: 0.95rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
    /* Keep tech pills on a single line each but wrap container */
    .tech-pills {
        max-width: 100%;
        overflow: visible;
    }
    .tech-pill {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    /* Buttons full width on mobile */
    .featured-links {
        flex-direction: column;
        gap: 10px;
    }
    .featured-links .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    /* Tech pills wrap freely */
    .tech-pills { gap: 6px; }
    .tech-pill { font-size: 0.7rem; padding: 5px 10px; white-space: nowrap; }

    /* Featured points */
    .featured-points li { font-size: 0.88rem; }

    /* Role split (Chaman Bazar) — single column on mobile */
    .role-split { grid-template-columns: 1fr; gap: 10px; }
}

/* Smaller phones — final tweaks */
@media (max-width: 480px) {
    .portfolio-featured,
    .portfolio-featured.reverse {
        padding: 18px;
        gap: 24px;
        border-radius: 18px;
    }
    .featured-info h3 { font-size: 1.1rem; }
    .featured-info > p { font-size: 0.9rem; }
    .featured-collage.stack { min-height: 260px; padding-bottom: 70px; }
    .featured-collage.stack .collage-stack-item { width: 82%; }
    .featured-collage.phone-mockup { min-height: 420px; padding: 12px 0; }
    .featured-collage.phone-mockup .phone { width: 180px; max-width: 70%; }
    .featured-collage.phone-mockup .phone-screen { padding: 28px 10px 10px; }
    .pi-name { font-size: 0.68rem; }
    .pi-price { font-size: 0.68rem; }
    .phone-app-title { font-size: 0.78rem; }
    .phone-report { font-size: 0.65rem; padding: 8px; }
    .featured-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 10px; left: 10px;
    }
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.portfolio-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.08); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 11, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.overlay-btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: var(--gradient-1);
    border-radius: 50%;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease);
}
.portfolio-item:hover .overlay-btn { transform: translateY(0); }

.portfolio-info {
    padding: 26px;
}
.tag {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}
.portfolio-info p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.portfolio-link:hover {
    color: var(--accent);
    gap: 14px;
}

/* =========================================================
   Services / Certificates
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-item {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
}
.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    background: var(--gradient-1);
    border-radius: 16px;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35);
    transition: transform 0.4s var(--ease);
}
.service-item:hover .service-icon { transform: rotate(-8deg) scale(1.05); }

.cert-issuer {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

a.service-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}
.service-item p {
    color: var(--text-dim);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================================
   CTA / Contact
   ========================================================= */
.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: var(--gradient-1);
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 18px 0 18px;
    color: var(--text);
}
.cta-card p {
    color: var(--text-dim);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}
.cta-socials a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}
.cta-socials a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--surface-2);
    transform: translateY(-3px);
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text);
}
.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.back-top {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    transition: transform 0.3s var(--ease);
}
.back-top:hover { transform: translateY(-4px); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Beauty pass — noise texture, refined gradients, glow
   ========================================================= */

/* Subtle film grain over the whole page for premium feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Animated shimmer border on featured cards */
.portfolio-featured {
    position: relative;
}
.portfolio-featured::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(124, 92, 255, 0.5), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}
.portfolio-featured:hover::after { opacity: 1; }

/* Section title — animated underline accent */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    opacity: 0.7;
}

/* Polished link hover */
.portfolio-link, .service-link {
    transition: all 0.3s var(--ease);
}

/* Better focus visibility for keyboard users */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* =========================================================
   Mobile responsive — comprehensive pass
   ========================================================= */

/* Tablet (≤ 1024px) — tighten spacing */
@media (max-width: 1024px) {
    .section { padding: 90px 0; }
    .section-head { margin-bottom: 50px; }
    .hero-container { gap: 50px; }
    .image-wrap { width: min(380px, 80%); }
    .float-chip { font-size: 0.78rem; padding: 8px 14px; }
}

/* Tablet portrait / large phone (≤ 768px) */
@media (max-width: 768px) {
    body { font-size: 0.95rem; }
    .container { width: 92%; padding: 0 16px; }
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }
    .eyebrow { font-size: 0.78rem; }

    /* Hero */
    .hero { padding: 110px 0 50px; min-height: auto; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 22px; }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    .hero-badge { font-size: 0.78rem; padding: 7px 14px; }
    .hero-btns { gap: 10px; margin-bottom: 30px; }
    .hero-btns .btn { padding: 12px 22px; font-size: 0.9rem; }
    .hero-socials a { width: 40px; height: 40px; }
    .image-wrap { width: min(280px, 75%); }
    .image-ring { inset: -14px; }
    .image-glow { inset: -28px; }
    .float-chip { font-size: 0.7rem; padding: 6px 12px; }
    .chip-1 { top: 5%; left: -2%; }
    .chip-2 { top: 45%; right: -5%; }
    .chip-3 { bottom: 5%; left: 5%; }

    /* Marquee — slower & smaller */
    .marquee { padding: 22px 0; }
    .marquee-track { animation-duration: 50s; gap: 36px; }
    .marquee-track span { font-size: 1.2rem; }
    .marquee-track span:nth-child(even) { font-size: 0.85rem; }

    /* Featured cards */
    .portfolio-featured {
        padding: 22px;
        gap: 28px !important;
        margin-bottom: 24px;
    }
    .portfolio-featured.reverse > .featured-info { order: 2; }
    .portfolio-featured.reverse > .featured-collage { order: 1; }
    .featured-info h3 { font-size: 1.35rem; line-height: 1.25; }
    .featured-info > p { font-size: 0.95rem; }
    .tech-pills { gap: 6px; margin-bottom: 18px; }
    .tech-pill { font-size: 0.72rem; padding: 5px 10px; }
    .featured-points li { font-size: 0.88rem; }
    .featured-links { gap: 10px; }
    .featured-links .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.85rem;
    }
    .featured-links .btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .featured-badge { font-size: 0.68rem; padding: 5px 11px; top: 12px; left: 12px; }

    /* Stack collage — tighter on mobile */
    .featured-collage.stack {
        aspect-ratio: 1.1 / 1;
        min-height: 280px;
    }
    .collage-stack-item { width: 82%; }

    /* Phone mockup — center, no rotation */
    .phone { transform: rotate(0); width: min(220px, 65%); }
    .phone:hover { transform: translateY(-4px); }
    .featured-collage.phone-mockup { aspect-ratio: 1; }

    /* Stats */
    .stats { padding: 22px; gap: 14px; }
    .stat-num { font-size: 2.2rem; }
    .stat-label { font-size: 0.78rem; }

    /* Skills */
    .skill { font-size: 0.82rem; padding: 8px 14px; }

    /* About */
    .about-content { gap: 32px; margin-bottom: 60px; }
    .about-experience { padding: 14px 18px; bottom: -16px; right: 8px; }
    .exp-num { font-size: 2rem; }
    .about-experience > span:nth-child(2) { font-size: 1.4rem; }
    .exp-label { font-size: 0.75rem; margin-left: 8px; }
    .about-text p { font-size: 0.98rem; }

    /* Services / certificates */
    .service-item { padding: 30px 22px; }
    .service-icon { width: 54px; height: 54px; font-size: 1.3rem; margin-bottom: 18px; }
    .service-item h3 { font-size: 1.1rem; }
    .service-item p { font-size: 0.88rem; }

    /* CTA */
    .cta-card { padding: 50px 24px; }
    .cta-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .cta-card p { font-size: 0.95rem; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .copyright { font-size: 0.82rem; }
}

/* Small phones (≤ 480px) — final polish */
@media (max-width: 480px) {
    .container { width: 94%; padding: 0 12px; }
    .section { padding: 60px 0; }

    .logo-text { display: none; }
    .logo-mark { width: 32px; height: 32px; font-size: 0.95rem; }

    .hero { padding: 100px 0 40px; }
    .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
    .hero-badge { font-size: 0.72rem; padding: 6px 12px; line-height: 1.4; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-socials { justify-content: center; }

    .image-wrap { width: min(240px, 80%); }
    .float-chip { display: none; }

    .portfolio-featured { padding: 18px; border-radius: 20px; }
    .featured-info h3 { font-size: 1.2rem; }
    .featured-links .btn { flex: 1 1 100%; }

    .role-split { gap: 10px; }
    .role { padding: 12px 14px; }

    .featured-collage.stack { min-height: 240px; }
    .collage-stack-item { width: 85%; }

    .stats { grid-template-columns: 1fr 1fr; padding: 18px; gap: 16px 8px; }
    .stat-num { font-size: 1.8rem; }
    .stat:not(:last-child)::after { display: none; }

    .skills { gap: 8px; }
    .skill { font-size: 0.78rem; padding: 7px 12px; }

    .cta-card { padding: 40px 20px; border-radius: 20px; }

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

/* Hide custom cursor entirely on touch — already handled but enforce */
@media (hover: none) {
    body { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
    /* Keep tap targets generous */
    .nav-link { padding: 14px 18px; }
    .btn { padding: 14px 22px; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    transform: scale(1.05);
}
.theme-toggle i {
    position: absolute;
    font-size: 0.95rem;
    transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
/* Default (dark mode) — show moon, hide sun */
.theme-toggle .sun-icon { transform: translateY(120%) rotate(60deg); opacity: 0; }
.theme-toggle .moon-icon { transform: translateY(0) rotate(0); opacity: 1; color: #c4b5fd; }
/* Light mode — show sun, hide moon */
:root[data-theme="light"] .theme-toggle .sun-icon {
    transform: translateY(0) rotate(0); opacity: 1; color: #f59e0b;
}
:root[data-theme="light"] .theme-toggle .moon-icon {
    transform: translateY(-120%) rotate(-60deg); opacity: 0;
}

@media (max-width: 900px) {
    .theme-toggle { width: 38px; height: 38px; }
}

/* =========================================================
   Light theme — premium engineering aesthetic (Linear / Vercel / Stripe)
   ========================================================= */
:root[data-theme="light"] {
    /* Cool, near-white surfaces — not creamy */
    --bg: #fafbfd;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f6fa;
    --border: rgba(15, 18, 32, 0.08);
    --border-strong: rgba(15, 18, 32, 0.14);
    /* Strong, cool slate text */
    --text: #0b0d17;
    --text-dim: #3a3f52;
    --text-muted: #6b7184;
    --shadow-lg: 0 24px 60px -18px rgba(15, 18, 32, 0.18);
    /* Tighter accents — drop the pink dominance */
    --gradient-1: linear-gradient(135deg, #5b4bff 0%, #7c5cff 50%, #22d3ee 100%);
    --gradient-text: linear-gradient(120deg, #5b4bff, #7c5cff 50%, #22d3ee);
}

/* Background — minimal grid + 2 cool blobs (no pink, no candy) */
:root[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(circle at 80% 0%, rgba(91, 75, 255, 0.07), transparent 45%),
        radial-gradient(circle at 0% 90%, rgba(34, 211, 238, 0.06), transparent 45%),
        var(--bg);
}
:root[data-theme="light"] .orb { display: none; }
:root[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(15, 18, 32, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 18, 32, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}
:root[data-theme="light"] .bg-video,
:root[data-theme="light"] .bg-video-overlay { display: none; }
:root[data-theme="light"] body::before { opacity: 0.02; }

/* Header — visibly themed indigo / cyan gradient (not white) */
:root[data-theme="light"] header {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(59, 130, 246, 0.10) 50%,
        rgba(6, 182, 212, 0.12) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 6px 24px -10px rgba(99, 102, 241, 0.18);
}
:root[data-theme="light"] header.scrolled {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(59, 130, 246, 0.14) 50%,
        rgba(6, 182, 212, 0.18) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 28px -10px rgba(99, 102, 241, 0.25);
}
/* Glowing accent line at the very bottom of the header */
:root[data-theme="light"] header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.6) 25%,
        rgba(6, 182, 212, 0.8) 50%,
        rgba(99, 102, 241, 0.6) 75%,
        transparent 100%);
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
:root[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow:
        0 1px 3px rgba(15, 18, 32, 0.04),
        0 0 0 1px rgba(99, 102, 241, 0.04) inset;
}
:root[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.06);
}
:root[data-theme="light"] .theme-toggle:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
}
/* Logo mark in light mode keeps its gradient — looks great */
:root[data-theme="light"] .logo {
    color: var(--text);
}
:root[data-theme="light"] .logo-dot {
    color: #06b6d4;
}
:root[data-theme="light"] .nav-link { color: var(--text-dim); }
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active {
    color: var(--text);
    background: rgba(124, 92, 255, 0.08);
}
:root[data-theme="light"] .menu-toggle span { background: var(--text); }

/* Mobile nav drawer */
:root[data-theme="light"] .nav-links.active {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--border-strong);
}

/* Hero */
:root[data-theme="light"] .hero-badge {
    background: var(--bg-2);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.05);
}
:root[data-theme="light"] .hero-desc strong { color: var(--text); }
:root[data-theme="light"] .hero-socials a {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text-dim);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.05);
}
:root[data-theme="light"] .hero-socials a:hover {
    background: #5b4bff;
    color: #fff;
    border-color: #5b4bff;
}
:root[data-theme="light"] .float-chip {
    background: var(--bg-2);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: 0 6px 18px -4px rgba(15, 18, 32, 0.12);
}
:root[data-theme="light"] .image-status {
    background: var(--bg-2);
    color: var(--text);
    border-color: var(--border-strong);
}
:root[data-theme="light"] .dashed-ring { border-color: rgba(15, 18, 32, 0.14); }

/* Marquee */
:root[data-theme="light"] .marquee {
    background: var(--surface-2);
    border-block-color: var(--border);
}
:root[data-theme="light"] .marquee-track span { color: var(--text-dim); }
:root[data-theme="light"] .marquee-track span:nth-child(even) { color: #5b4bff; }

/* Buttons */
:root[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    border-color: var(--border-strong);
}
:root[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
}

/* Cards — solid white, sharp borders, soft cool shadow */
:root[data-theme="light"] .portfolio-featured,
:root[data-theme="light"] .portfolio-item,
:root[data-theme="light"] .service-item,
:root[data-theme="light"] .stats,
:root[data-theme="light"] .cta-card {
    background: var(--bg-2);
    border-color: var(--border);
    box-shadow:
        0 1px 0 rgba(15, 18, 32, 0.04),
        0 12px 36px -12px rgba(15, 18, 32, 0.12);
    backdrop-filter: none;
}
:root[data-theme="light"] .portfolio-featured:hover,
:root[data-theme="light"] .portfolio-item:hover,
:root[data-theme="light"] .service-item:hover {
    border-color: rgba(91, 75, 255, 0.35);
    box-shadow:
        0 1px 0 rgba(15, 18, 32, 0.04),
        0 24px 48px -16px rgba(91, 75, 255, 0.18);
}
:root[data-theme="light"] .portfolio-featured::before {
    opacity: 0.12;
    filter: blur(80px);
}
:root[data-theme="light"] .skill {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 18, 32, 0.04);
}
:root[data-theme="light"] .skill:hover {
    background: var(--surface-2);
    border-color: rgba(91, 75, 255, 0.4);
}
:root[data-theme="light"] .skill.primary {
    background: linear-gradient(135deg, #5b4bff, #7c5cff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(91, 75, 255, 0.28);
}
:root[data-theme="light"] .skill.primary i { color: #fff; }
:root[data-theme="light"] .tech-pill {
    background: rgba(91, 75, 255, 0.06);
    border-color: rgba(91, 75, 255, 0.18);
    color: var(--text);
}
:root[data-theme="light"] .tech-pill i { color: #5b4bff; }
:root[data-theme="light"] .tech-pill:hover {
    background: rgba(91, 75, 255, 0.1);
    border-color: rgba(91, 75, 255, 0.35);
}

/* About */
:root[data-theme="light"] .about-experience {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-strong);
}

/* Tags / eyebrows / role-split */
:root[data-theme="light"] .role {
    background: rgba(124, 92, 255, 0.06);
    border-color: rgba(124, 92, 255, 0.18);
}

/* Featured badge + tag */
:root[data-theme="light"] .featured-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}
:root[data-theme="light"] .collage-tag {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

/* Phone mockup — keep dark since it represents a phone screen */
/* (no overrides needed) */

/* =========================================================
   Profile picture — minimalist clean for light mode
   No conic gradient, no spinning rings, no orbiting particles.
   Just a clean dark slate frame with a soft single-tone glow.
   ========================================================= */
:root[data-theme="light"] .image-frame {
    background: linear-gradient(145deg, #0b0d17 0%, #1a1f3a 100%);
    box-shadow:
        0 24px 60px -16px rgba(15, 18, 32, 0.28),
        0 0 0 1px rgba(15, 18, 32, 0.06);
    padding: 5px;
}
:root[data-theme="light"] .image-frame::before {
    display: none;
}
/* Single subtle glow under the image — no rainbow */
:root[data-theme="light"] .aura-1 {
    background: radial-gradient(circle at 50% 50%, #6366f1, transparent 65%);
    opacity: 0.12;
    inset: -40px;
}
:root[data-theme="light"] .aura-2,
:root[data-theme="light"] .aura-3 { display: none; }

/* Hide all the rotating decorations on light mode */
:root[data-theme="light"] .conic-ring,
:root[data-theme="light"] .dashed-ring,
:root[data-theme="light"] .orbit,
:root[data-theme="light"] .frame-shine {
    display: none;
}

/* Portfolio grid items */
:root[data-theme="light"] .portfolio-info {
    background: var(--bg-2);
    color: var(--text);
}
:root[data-theme="light"] .portfolio-info h3 { color: var(--text); }

/* Form / contact */
:root[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

/* Footer */
:root[data-theme="light"] footer { border-top-color: var(--border); }
:root[data-theme="light"] .footer-brand { color: var(--text); }

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

/* Scroll indicator */
:root[data-theme="light"] .mouse { border-color: var(--text-muted); }

/* Loader (only matters if user reloads in light mode) */
:root[data-theme="light"] .loader { background: var(--bg); }
:root[data-theme="light"] .loader-bar { background: rgba(15, 23, 42, 0.1); }

/* Cursor */
:root[data-theme="light"] .cursor-ring { border-color: rgba(15, 23, 42, 0.4); }

/* Smooth theme transition (fallback when View Transitions unavailable) */
html { transition: background-color 0.4s ease, color 0.4s ease; }
body, header, .portfolio-featured, .portfolio-item, .service-item,
.stats, .cta-card, .skill, .tech-pill, .nav-links, .hero-badge {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* =========================================================
   Theme switch — circular ripple via View Transitions API
   ========================================================= */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

@keyframes theme-ripple-in {
    from { clip-path: circle(0% at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
    to   { clip-path: circle(150% at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
}
