/* ============================================
   DARKSITE - Premium Portfolio
   Million-dollar dark theme
   ============================================ */

:root {
    --bg-primary: #050810;
    --bg-secondary: #080c1a;
    --bg-tertiary: #0c1225;
    --bg-card: rgba(12, 18, 37, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.015);
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(130, 170, 255, 0.18);

    --text-primary: #e4e8f1;
    --text-secondary: #7b8599;
    --text-muted: #4d5a72;
    --text-accent: #82aaff;

    --accent-blue: #82aaff;
    --accent-cyan: #7fdbca;
    --accent-purple: #c792ea;
    --accent-ice: #89ddff;
    --accent-coral: #f78c6c;
    --accent-red: #ff5370;

    --gradient-accent: linear-gradient(135deg, #82aaff, #7fdbca);
    --gradient-purple: linear-gradient(135deg, #82aaff, #c792ea);
    --gradient-cold: linear-gradient(135deg, #82aaff 0%, #89ddff 50%, #c792ea 100%);

    --shadow-glow: 0 0 60px rgba(130, 170, 255, 0.06);
    --shadow-glow-strong: 0 0 80px rgba(130, 170, 255, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 170, 255, 0.12) transparent;
    scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(130, 170, 255, 0.12); border-radius: 10px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   INTERACTIVE BACKGROUND LAYER
   ============================================ */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-layer__clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-layer__cloud {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    will-change: transform;
    transition: transform 0.8s var(--ease-smooth);
}

.bg-layer__cloud--1 {
    background-image: url('../img/background/clouds-hero.png');
    opacity: 0.12;
}

.bg-layer__cloud--2 {
    background-image: url('../img/background/clouds-depth.png');
    opacity: 0.08;
}

.bg-layer__canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.bg-layer__grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        linear-gradient(rgba(130, 170, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 170, 255, 0.018) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Ambient aurora gradients */
.bg-layer__grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(130, 170, 255, 0.045), transparent),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(199, 146, 234, 0.035), transparent),
        radial-gradient(ellipse 40% 35% at 15% 55%, rgba(127, 219, 202, 0.03), transparent),
        radial-gradient(ellipse 30% 20% at 60% 40%, rgba(137, 221, 255, 0.02), transparent);
}

/* Horizontal aurora band */
.bg-layer__aurora {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.bg-layer__aurora::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -20%;
    width: 140%;
    height: 200px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(130, 170, 255, 0.02) 15%,
        rgba(127, 219, 202, 0.03) 30%,
        rgba(199, 146, 234, 0.025) 50%,
        rgba(137, 221, 255, 0.02) 70%,
        rgba(130, 170, 255, 0.015) 85%,
        transparent 100%
    );
    filter: blur(40px);
    animation: auroraShift 20s ease-in-out infinite;
    transform-origin: center;
}

.bg-layer__aurora::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: -10%;
    width: 120%;
    height: 150px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(199, 146, 234, 0.015) 20%,
        rgba(130, 170, 255, 0.025) 45%,
        rgba(127, 219, 202, 0.02) 65%,
        rgba(137, 221, 255, 0.015) 80%,
        transparent 100%
    );
    filter: blur(50px);
    animation: auroraShift 25s ease-in-out infinite reverse;
}

@keyframes auroraShift {
    0%, 100% { transform: translateX(0) scaleY(1); opacity: 0.6; }
    25% { transform: translateX(3%) scaleY(1.2); opacity: 1; }
    50% { transform: translateX(-2%) scaleY(0.8); opacity: 0.7; }
    75% { transform: translateX(4%) scaleY(1.1); opacity: 0.9; }
}

/* Lightning flashes */
.bg-layer__lightning {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.bg-layer__lightning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(130, 170, 255, 0.06), transparent 70%);
    opacity: 0;
    animation: lightningFlash1 12s ease-in-out infinite;
}

.bg-layer__lightning::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 40%;
    width: 40%;
    height: 30%;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(199, 146, 234, 0.05), transparent 70%);
    opacity: 0;
    animation: lightningFlash2 12s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes lightningFlash1 {
    0%, 100% { opacity: 0; }
    18% { opacity: 0; }
    19% { opacity: 1; }
    20% { opacity: 0.1; }
    21% { opacity: 0.8; }
    23% { opacity: 0; }
    53% { opacity: 0; }
    54% { opacity: 0.6; }
    55% { opacity: 0.1; }
    56% { opacity: 0.7; }
    58% { opacity: 0; }
}

@keyframes lightningFlash2 {
    0%, 100% { opacity: 0; }
    30% { opacity: 0; }
    31% { opacity: 0.8; }
    32% { opacity: 0.1; }
    33% { opacity: 0.5; }
    35% { opacity: 0; }
    72% { opacity: 0; }
    73% { opacity: 0.6; }
    74% { opacity: 0; }
    75% { opacity: 0.9; }
    76% { opacity: 0.2; }
    78% { opacity: 0; }
}

.bg-layer__noise {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-layer__glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 170, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: opacity 0.8s;
    opacity: 0;
}

.bg-layer__glow--active { opacity: 1; }

/* ---- Floating Orbs ---- */
.bg-layer__orbs {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    will-change: transform;
    animation: orbFadeIn 3s ease-out forwards;
}

.bg-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(130, 170, 255, 0.12), transparent 70%);
    top: 5%;
    left: -8%;
    animation: orbDrift1 28s ease-in-out infinite, orbFadeIn 3s ease-out forwards;
}

.bg-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(199, 146, 234, 0.09), transparent 70%);
    top: 55%;
    right: -8%;
    animation: orbDrift2 32s ease-in-out infinite, orbFadeIn 3s ease-out 0.5s forwards;
}

.bg-orb--3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(127, 219, 202, 0.08), transparent 70%);
    top: 30%;
    left: 35%;
    animation: orbDrift3 35s ease-in-out infinite, orbFadeIn 3s ease-out 1s forwards;
}

.bg-orb--4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(137, 221, 255, 0.07), transparent 70%);
    bottom: 0;
    left: 10%;
    animation: orbDrift4 26s ease-in-out infinite, orbFadeIn 3s ease-out 1.5s forwards;
}

.bg-orb--5 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(130, 170, 255, 0.06), rgba(199, 146, 234, 0.04), transparent 70%);
    top: 70%;
    left: 60%;
    animation: orbDrift5 30s ease-in-out infinite, orbFadeIn 3s ease-out 2s forwards;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(50px, -40px) scale(1.08); }
    40% { transform: translate(-30px, 30px) scale(0.95); }
    60% { transform: translate(40px, 50px) scale(1.05); }
    80% { transform: translate(-20px, -30px) scale(0.98); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, 30px) scale(1.06); }
    50% { transform: translate(30px, -50px) scale(0.94); }
    75% { transform: translate(-50px, -20px) scale(1.04); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, 45px) scale(1.07); }
    66% { transform: translate(-45px, -25px) scale(0.96); }
}

@keyframes orbDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(60px, -30px) scale(1.05); }
    60% { transform: translate(-25px, 40px) scale(0.97); }
}

@keyframes orbDrift5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-35px, -45px) scale(1.04); }
    50% { transform: translate(45px, 20px) scale(0.96); }
    80% { transform: translate(-20px, 35px) scale(1.03); }
}

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

/* Legacy background (for admin) */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(130, 170, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 170, 255, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
}

.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(130, 170, 255, 0.035), transparent),
        radial-gradient(ellipse 50% 30% at 80% 100%, rgba(199, 146, 234, 0.025), transparent),
        radial-gradient(ellipse 40% 30% at 20% 60%, rgba(127, 219, 202, 0.02), transparent);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Custom Cursor (removed – using default) ----  */
.cursor, .cursor-dot { display: none !important; }

/* ---- Loading Screen ---- */
/* ---- Loading Screen ---- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #020408;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
    transition: opacity 1.4s ease-in-out, visibility 1.4s;
    overflow: hidden;
}

/* Subtle central glow */
.loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(130, 170, 255, 0.06), transparent 70%);
}

/* Vignette overlay for depth */
.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Floating gradient blobs */
.loader__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0;
    animation: loaderBlobIn 2s var(--ease-out-expo) forwards;
}

.loader__blob--1 {
    width: 300px; height: 300px;
    background: rgba(130, 170, 255, 0.06);
    top: 15%; left: 10%;
    animation-delay: 0s;
}

.loader__blob--2 {
    width: 250px; height: 250px;
    background: rgba(127, 219, 202, 0.05);
    bottom: 15%; right: 10%;
    animation-delay: 0.3s;
}

.loader__blob--3 {
    width: 200px; height: 200px;
    background: rgba(199, 146, 234, 0.04);
    top: 55%; left: 55%;
    animation-delay: 0.6s;
}

@keyframes loaderBlobIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* Loader lines hidden */
.loader__lines { display: none; }

/* Dot grid pattern */
.loader__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(130, 170, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, rgba(0,0,0,0.5), transparent);
    -webkit-mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
    opacity: 0;
    animation: loaderDotsIn 1.5s ease 0.3s forwards;
}

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

.loader--hiding .loader__ring,
.loader--hiding .loader__label,
.loader--hiding .loader__bar-track {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.loader--hiding .loader__blob {
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out;
}

.loader--hiding .loader__dots {
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out;
}

.loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ring + counter */
.loader__ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: loaderContentIn 1s var(--ease-out-expo) 0.1s forwards;
}

@keyframes loaderContentIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.loader__ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader__ring-track {
    fill: none;
    stroke: rgba(130, 170, 255, 0.06);
    stroke-width: 1;
}

.loader__ring-fill {
    fill: none;
    stroke: url(#loaderGradient);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.4s var(--ease-out-expo);
    filter: drop-shadow(0 0 8px rgba(130, 170, 255, 0.4));
}

.loader__counter {
    position: relative;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(130, 170, 255, 0.15);
}

.loader__counter::after {
    content: '%';
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
    vertical-align: super;
}

/* Label + bar */
.loader__label {
    overflow: hidden;
    opacity: 0;
    animation: loaderContentIn 1s var(--ease-out-expo) 0.3s forwards;
}

.loader__label-line {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.loader__bar-track {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: loaderContentIn 1s var(--ease-out-expo) 0.5s forwards;
}

.loader__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 2px;
    transition: width 0.5s var(--ease-out-expo);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 800px; }

/* ---- Section ---- */
.section {
    position: relative;
    z-index: 2;
    padding: 140px 0;
}

.section__header { margin-bottom: 72px; }

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.section__label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.6s var(--ease-out-expo);
}

.section__title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.15;
    transition: all 0.5s;
}

.section__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 520px;
    line-height: 1.8;
}

.section__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 0;
    border: none;
}

.section__header:hover .section__label::before {
    width: 48px;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    transition: all 0.6s var(--ease-out-expo);
}

.nav--scrolled {
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav__logo span { color: var(--accent-cyan); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav__link {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: color 0.4s;
    letter-spacing: 0.3px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.5s var(--ease-out-expo), left 0.5s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link--active {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 20px;
    left: calc(50% - 10px);
}

.nav__cta {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    background-size: 200% auto;
    padding: 9px 24px;
    border-radius: 100px;
    margin-left: 12px;
    transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
    animation: btnGradientFlow 6s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(130, 170, 255, 0.1);
}

.nav__cta::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(130,170,255,0.3), rgba(127,219,202,0.2));
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: -1;
    pointer-events: none;
}

.nav__cta:hover {
    box-shadow: 0 0 20px rgba(130, 170, 255, 0.25), 0 0 40px rgba(127, 219, 202, 0.08);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.nav__cta:hover::before {
    opacity: 1;
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.4s var(--ease-out-expo);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__content {
    max-width: 780px;
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(127, 219, 202, 0.04);
    border: 1px solid rgba(127, 219, 202, 0.1);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 36px;
}

.hero__badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(127, 219, 202, 0.4);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(127, 219, 202, 0.4); }
    50% { opacity: 0.3; box-shadow: 0 0 2px rgba(127, 219, 202, 0.1); }
}

.hero__title {
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero__title .line {
    display: block;
    overflow: hidden;
}

.hero__title .line-inner {
    display: block;
}

.hero__title .gradient-text,
.cta-section__title .gradient-text {
    background: var(--gradient-cold);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

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

.hero__description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 44px;
    line-height: 1.9;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 56px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
}

.hero__stat-value {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* Hero floating orbs */
.hero__visual {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 16s ease-in-out infinite;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(130, 170, 255, 0.06);
    top: -50px;
    right: -50px;
}

.hero__orb--2 {
    width: 350px;
    height: 350px;
    background: rgba(199, 146, 234, 0.045);
    bottom: -50px;
    left: 0;
    animation-delay: -6s;
}

.hero__orb--3 {
    width: 250px;
    height: 250px;
    background: rgba(127, 219, 202, 0.035);
    top: 40%;
    left: 25%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-8px, -35px); }
    75% { transform: translate(-20px, -10px); }
}

/* Hero stat hover */
.hero__stats > div {
    padding: 12px 16px;
    margin: -12px -16px;
    border-radius: var(--radius-md);
    transition: all 0.5s var(--ease-out-expo);
}

.hero__stats > div:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: box-shadow 0.5s ease-in-out, border-color 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.5s ease-in-out;
    font-family: var(--font-sans);
    letter-spacing: 0.2px;
    position: relative;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn__text { position: relative; z-index: 2; }
.btn svg { position: relative; z-index: 2; width: 16px; height: 16px; }

.btn--sm { padding: 9px 20px; font-size: 13px; }

/* ---- Primary Button ---- */
.btn--primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
    background-size: 200% auto;
    color: var(--bg-primary);
    border-color: transparent;
    animation: btnGradientFlow 6s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(130, 170, 255, 0.1);
    transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
}

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

/* Glow aura behind primary button - fades in on hover */
.btn--primary::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(130,170,255,0.2), rgba(127,219,202,0.15), rgba(130,170,255,0.2));
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: -1;
    pointer-events: none;
}

.btn--primary:hover {
    box-shadow: 0 0 20px rgba(130, 170, 255, 0.25), 0 0 40px rgba(127, 219, 202, 0.08);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.btn--primary:hover::before {
    opacity: 1;
}

/* ---- Ghost Button ---- */
.btn--ghost {
    background: rgba(130, 170, 255, 0.03);
    color: var(--text-secondary);
    border-color: rgba(130, 170, 255, 0.1);
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.5s ease-in-out, border-color 0.5s ease-in-out, color 0.5s ease-in-out, background 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Gradient border ring on ghost button - fades in */
.btn--ghost::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

.btn--ghost:hover {
    background: rgba(130, 170, 255, 0.08);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(130, 170, 255, 0.1), 0 0 40px rgba(130, 170, 255, 0.03);
    transform: translateY(-1px);
}

.btn--ghost:hover::after {
    opacity: 1;
}

/* ---- Marquee ---- */
.marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.marquee__track {
    display: flex;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.marquee__content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
    flex-shrink: 0;
}

.marquee__item {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    transition: color 0.5s, -webkit-text-stroke-color 0.5s, transform 0.5s;
    user-select: none;
}

.marquee__item:hover {
    color: rgba(130, 170, 255, 0.08);
    -webkit-text-stroke-color: rgba(130, 170, 255, 0.2);
}

.marquee__dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- Project Cards (Bento Grid) ---- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.project-card {
    background: rgba(12, 18, 37, 0.85);
    border: 1px solid rgba(130, 170, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: border-color 0.5s ease-in-out, background 0.5s ease-in-out;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Outer glow aura — uses opacity for reliable GPU-composited fade */
.project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px rgba(130, 170, 255, 0.1), 0 0 60px rgba(130, 170, 255, 0.05);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

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

.project-card:hover {
    border-color: rgba(130, 170, 255, 0.25);
    background: rgba(20, 30, 60, 0.95);
}

/* Bento layout */
.project-card--large { grid-column: span 7; }
.project-card--medium { grid-column: span 5; }
.project-card--small { grid-column: span 4; }

.project-card__inner {
    position: relative;
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    z-index: 2;
}

.project-card__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.project-card__image {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
    min-height: 200px;
}

.project-card__image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    overflow: hidden;
}

.project-card__image-placeholder::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(130,170,255,0.03) 25%, transparent 50%, rgba(127,219,202,0.03) 75%, transparent 100%);
    animation: placeholderRotate 25s linear infinite;
}

@keyframes placeholderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.project-card__image-placeholder .placeholder-text {
    position: relative;
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.025);
    letter-spacing: -2px;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.project-card:hover .project-card__image img {
    transform: scale(1.06);
}

.project-card__body {
    padding: 28px;
    transition: all 0.5s ease-in-out;
}

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

.project-card__number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-card__category {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 25px rgba(127, 219, 202, 0);
    transition: color 0.5s ease-in-out, text-shadow 0.5s ease-in-out;
}

.project-card:hover .project-card__category {
    color: #d4fff6;
    text-shadow: 0 0 20px rgba(127, 219, 202, 0.7), 0 0 40px rgba(127, 219, 202, 0.3);
}

.project-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 0.5s ease-in-out;
}

.project-card:hover .project-card__title {
    color: #fff;
}

.project-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.tag {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(130, 170, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(130, 170, 255, 0.06);
    letter-spacing: 0.3px;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.tag:hover {
    border-color: rgba(130, 170, 255, 0.2);
    color: var(--text-secondary);
    background: rgba(130, 170, 255, 0.08);
}

.tag--lg {
    padding: 6px 16px;
    font-size: 12px;
}

.project-card__link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.project-card__arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(130, 170, 255, 0.06);
    border: 1px solid rgba(130, 170, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: 0 0 15px rgba(130, 170, 255, 0);
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    z-index: 6;
}

.project-card:hover .project-card__arrow {
    background: rgba(130, 170, 255, 0.9);
    color: var(--bg-primary);
    border-color: rgba(130, 170, 255, 0.4);
    box-shadow: 0 0 15px rgba(130, 170, 255, 0.2);
}

.project-card__arrow svg {
    width: 16px;
    height: 16px;
}

/* ---- Skills Grid ---- */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(12, 18, 37, 0.85);
    border: 1px solid rgba(130, 170, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-card:hover {
    background: rgba(20, 30, 60, 0.95);
    border-color: rgba(130, 170, 255, 0.25);
    box-shadow: 0 0 25px rgba(130, 170, 255, 0.1);
    transform: translateY(-2px);
}

/* Circular ring */
.skill-card__ring {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card__ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.skill-card__ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 3;
}

.skill-card__ring-fill {
    fill: none;
    stroke: url(#skillGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 213.628;
    stroke-dashoffset: 213.628;
    transition: stroke-dashoffset 1.8s var(--ease-out-expo), opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
    filter: drop-shadow(0 0 4px rgba(130, 170, 255, 0.1));
    opacity: 0.45;
}

.skill-card:hover .skill-card__ring-fill {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(130, 170, 255, 0.5));
}

.skill-card__percent {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.5s ease-in-out;
}

.skill-card:hover .skill-card__percent {
    color: #fff;
}

.skill-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.skill-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.5s var(--ease-out-expo);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-card:hover .skill-card__name {
    color: #fff;
}

.skill-card__category {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    transition: opacity 0.5s var(--ease-out-expo);
}

.skill-card:hover .skill-card__category {
    opacity: 1;
}

/* ---- Experience / Timeline ---- */
.exp__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 700px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), rgba(199,146,234,0.1), transparent);
}

.timeline__item {
    position: relative;
    padding-bottom: 56px;
    transition: all 0.5s var(--ease-out-expo);
    padding-left: 0;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item:hover {
    color: var(--text-primary);
}

.timeline__dot {
    position: absolute;
    left: -44px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(130, 170, 255, 0.3);
}

.timeline__item--current .timeline__dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(127, 219, 202, 0.4);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(127, 219, 202, 0.4); }
    50% { box-shadow: 0 0 0 4px var(--bg-primary), 0 0 30px rgba(127, 219, 202, 0.6); }
}

.timeline__date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.timeline__company {
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 14px;
    font-weight: 500;
}

.timeline__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---- About Grid ---- */
.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about__text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric-card {
    background: rgba(12, 18, 37, 0.85);
    border: 1px solid rgba(130, 170, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.metric-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

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

.metric-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(130, 170, 255, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.metric-card:hover::after { opacity: 1; }

.metric-card:hover {
    background: rgba(20, 30, 60, 0.95);
    border-color: rgba(130, 170, 255, 0.25);
    box-shadow: 0 0 25px rgba(130, 170, 255, 0.1);
    transform: translateY(-3px);
}

.metric-card__value {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.metric-card__label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* ---- Contact ---- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 36px; }

.contact__info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px;
    margin: -16px;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out-expo);
}

.contact__info-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.contact__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(130, 170, 255, 0.05);
    border: 1px solid rgba(130, 170, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.contact__info-item:hover .contact__icon {
    background: rgba(130, 170, 255, 0.08);
    border-color: rgba(130, 170, 255, 0.15);
}

.contact__icon svg { width: 18px; height: 18px; }

.contact__info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact__info-value {
    font-size: 15px;
    color: var(--text-primary);
}

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.contact__form .btn { width: 100%; justify-content: center; }

.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

.form__input,
.form__textarea {
    background: rgba(130, 170, 255, 0.03);
    border: 1px solid rgba(130, 170, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.5s var(--ease-out-expo);
    outline: none;
    position: relative;
}

.form__input:hover,
.form__textarea:hover {
    border-color: rgba(130, 170, 255, 0.18);
    background: rgba(130, 170, 255, 0.05);
    box-shadow: 0 0 20px rgba(130, 170, 255, 0.04);
}

.form__input:focus,
.form__textarea:focus {
    border-color: rgba(130, 170, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(130, 170, 255, 0.06), 0 0 30px rgba(130, 170, 255, 0.06);
    background: rgba(130, 170, 255, 0.05);
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }

.form__textarea { min-height: 150px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form__message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
}

.form__message--success {
    background: rgba(127, 219, 202, 0.06);
    border: 1px solid rgba(127, 219, 202, 0.15);
    color: var(--accent-cyan);
    display: block;
}

.form__message--error {
    background: rgba(255, 83, 112, 0.06);
    border: 1px solid rgba(255, 83, 112, 0.15);
    color: var(--accent-red);
    display: block;
}

/* ---- Large CTA Section ---- */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 160px 0;
    text-align: center;
}

.cta-section__title {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    transition: all 0.5s;
}

.cta-section__subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    border-top: 1px solid var(--border-glass);
}

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

.footer__copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer__socials { display: flex; gap: 10px; }

.footer__social {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.footer__social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 50%;
}

.footer__social:hover::before {
    opacity: 0.08;
}

.footer__social:hover {
    color: var(--accent-blue);
    border-color: var(--border-hover);
    background: rgba(130, 170, 255, 0.06);
}

.footer__social svg { width: 16px; height: 16px; }

/* ---- Filter Tabs ---- */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 20px;
    background: rgba(130, 170, 255, 0.04);
    border: 1px solid rgba(130, 170, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    position: relative;
}

.filter-tab::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(130, 170, 255, 0.08);
    box-shadow: 0 0 12px rgba(130, 170, 255, 0.06);
}

.filter-tab:hover::before { opacity: 1; }

.filter-tab--active {
    color: #fff;
    font-weight: 600;
    background: rgba(130, 170, 255, 0.14);
    border-color: rgba(130, 170, 255, 0.3);
    box-shadow: 0 0 20px rgba(130, 170, 255, 0.12);
}

.filter-tab--active::before { opacity: 0.6; }

.filter-tab--active:hover {
    background: rgba(130, 170, 255, 0.18);
    box-shadow: 0 0 25px rgba(130, 170, 255, 0.18);
}

.filter-tab--active:hover::before { opacity: 0.8; }

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

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

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }
.reveal--delay-4 { transition-delay: 0.6s; }

/* ---- Parallax wrapper ---- */
[data-parallax] {
    will-change: transform;
    transition: transform 0.15s linear;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.empty-state__icon { font-size: 48px; margin-bottom: 16px; opacity: 0.2; }
.empty-state__text { font-size: 15px; }

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    display: flex;
}

.page-transition__bar {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.7s var(--ease-in-out);
}

.page-transition--entering .page-transition__bar {
    transform: scaleY(1);
    transform-origin: bottom;
}

.page-transition--leaving .page-transition__bar {
    transform: scaleY(0);
    transform-origin: top;
}

/* ============================================
   ANIMATION SYSTEM
   ============================================ */

/* anim-fade: gentle fade + slide up, used throughout */
.anim-fade {
    opacity: 0;
    transform: translateY(24px);
    animation: animFadeUp 1.2s var(--ease-out-expo) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* anim-line: line reveal for hero titles */
.anim-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: animLineReveal 1.4s var(--ease-out-expo) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* Legacy anim-up (kept for compatibility) */
.anim-up {
    opacity: 0;
    transform: translateY(35px);
    animation: animFadeUp 1.2s var(--ease-out-expo) forwards;
    animation-delay: var(--delay, 0s);
}

/* ============================================
   MAGNETIC ELEMENT BASE
   ============================================ */
/* magnetic effect disabled (initMagnetic is empty) */

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-hero {
    position: relative;
    z-index: 2;
    padding: 160px 0 80px;
}

.project-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(130, 170, 255, 0.06);
    background: rgba(130, 170, 255, 0.03);
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
}

.project-hero__back:hover {
    color: var(--text-primary);
    border-color: rgba(130, 170, 255, 0.2);
    background: rgba(130, 170, 255, 0.08);
    box-shadow: 0 0 15px rgba(130, 170, 255, 0.06);
}

.project-hero__back svg {
    transition: transform 0.5s var(--ease-out-expo);
}

.project-hero__back:hover svg {
    opacity: 1;
}

.project-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.project-hero__category {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.project-hero__divider {
    opacity: 0.3;
}

.project-hero__title {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 800px;
}

.project-hero__desc {
    font-size: 18px;
    color: var(--text-primary);
    opacity: 0.75;
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 36px;
}

.project-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.project-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Project Showcase Image */
.project-showcase {
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
}

.project-showcase__frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(130, 170, 255, 0.06);
    background: rgba(12, 18, 37, 0.65);
    aspect-ratio: 16 / 8;
    transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.project-showcase__frame:hover {
    border-color: rgba(130, 170, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 20px rgba(130, 170, 255, 0.06);
}

.project-showcase__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-showcase__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
}

.project-showcase__placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(130,170,255,0.02) 25%, transparent 50%, rgba(127,219,202,0.02) 75%, transparent 100%);
    animation: placeholderRotate 30s linear infinite;
}

.project-showcase__placeholder-inner {
    position: relative;
    font-family: var(--font-mono);
    font-size: clamp(24px, 4vw, 60px);
    font-weight: 800;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.025);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
}

/* Project Content Grid */
.project-content {
    position: relative;
    z-index: 2;
    padding: 0 0 120px;
}

.project-content__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

/* Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.project-sidebar__card {
    background: rgba(12, 18, 37, 0.65);
    border: 1px solid rgba(130, 170, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.project-sidebar__card:hover {
    background: rgba(20, 30, 60, 0.9);
    border-color: rgba(130, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(130, 170, 255, 0.06);
}

.project-sidebar__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
}

.project-sidebar__items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-sidebar__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-sidebar__label {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.project-sidebar__value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.project-sidebar__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-sidebar__stack-item {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.project-sidebar__stack-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-sidebar__stack-label {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 4px;
    font-weight: 600;
}

.project-sidebar__stack-value {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Body */
.project-body {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.project-section {
    position: relative;
}

.project-section__label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-section__number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(127, 219, 202, 0.06);
    border: 1px solid rgba(127, 219, 202, 0.12);
    flex-shrink: 0;
}

.project-section__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.project-section__text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.project-section__text--highlight {
    padding: 28px;
    background: rgba(130, 170, 255, 0.03);
    border: 1px solid rgba(130, 170, 255, 0.06);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

/* Project Features List */
.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-features__item {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.5s ease-in-out;
}

.project-features__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(130, 170, 255, 0.6);
    transition: box-shadow 0.5s ease-in-out, background 0.5s ease-in-out;
}

.project-features__item:hover {
    color: var(--text-primary);
}

.project-features__item:hover::before {
    background: rgba(130, 170, 255, 0.9);
    box-shadow: 0 0 12px rgba(130, 170, 255, 0.4);
}

/* Project Navigation (prev/next) */
.project-nav-section {
    position: relative;
    z-index: 2;
    padding: 0 0 80px;
}

.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--border-glass);
    padding-top: 48px;
}

.project-nav__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(130, 170, 255, 0.06);
    background: rgba(12, 18, 37, 0.65);
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
    color: var(--text-secondary);
    position: relative;
}

.project-nav__item::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.project-nav__item:hover {
    background: rgba(12, 18, 37, 0.35);
    border-color: rgba(130, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(130, 170, 255, 0.06);
    color: var(--text-primary);
}

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

.project-nav__item--next {
    text-align: right;
    align-items: flex-end;
}

.project-nav__direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.project-nav__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .project-card--large,
    .project-card--medium { grid-column: span 6; }
    .project-card--small { grid-column: span 3; }
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .exp__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .project-content__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .project-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none !important; }
    .bg-layer__glow { display: none !important; }

    .section { padding: 100px 0; }
    .container { padding: 0 20px; }

    .nav { padding: 0 20px; }
    .nav__links { display: none; }
    .nav__toggle { display: flex; }

    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 8, 16, 0.95);
        backdrop-filter: blur(24px);
        padding: 20px;
        border-bottom: 1px solid var(--border-glass);
    }

    .hero__stats { gap: 28px; flex-wrap: wrap; }

    .projects__grid { grid-template-columns: 1fr; }
    .project-card--large,
    .project-card--medium,
    .project-card--small { grid-column: span 1; }

    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .form__row { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .about__metrics { grid-template-columns: 1fr 1fr; }
    .marquee__item { font-size: 28px; }

    /* Project detail responsive */
    .project-hero { padding: 120px 0 60px; }
    .project-hero__title { font-size: 32px; }
    .project-content__grid { grid-template-columns: 1fr; }
    .project-sidebar { position: static; grid-template-columns: 1fr; }
    .project-nav { grid-template-columns: 1fr; }
    .project-showcase__frame { aspect-ratio: 16 / 10; }

    /* Experience layout */
    .exp__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero__title { font-size: 36px; }
    .hero__actions { flex-direction: column; }
    .btn { justify-content: center; }
    .about__metrics { grid-template-columns: 1fr; }
    .project-hero__actions { flex-direction: column; }
}
