/* ── RESET & TOKENS ──────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --bg: #05050d;
    --c-white: #ffffff;
    --c-muted: rgba(255, 255, 255, 0.55);

    --p1: #a855f7;   /* vivid purple  */
    --p2: #7c3aed;   /* deep purple   */
    --b1: #3b82f6;   /* bright blue   */
    --b2: #06b6d4;   /* cyan          */

    --glass-bg: rgba(15, 10, 30, 0.35);
    --glass-border: rgba(168, 85, 247, 0.18);
    --glow-sm: 0 0 18px rgba(168, 85, 247, 0.35);
    --glow-lg: 0 0 60px rgba(168, 85, 247, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--c-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* ── PRELOADER ───────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--p1);
    border-radius: 50%;
    animation: spinner 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: var(--glow-sm);
}
@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ── TEXT SELECTION ──────────────────────────────── */
::selection {
    background: var(--p1);
    color: var(--c-white);
}
::-moz-selection {
    background: var(--p1);
    color: var(--c-white);
}

/* ── CUSTOM SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.4) var(--bg);
}

/* ── SNAP WRAPPER ────────────────────────────────── */
.snap-wrapper {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-wrapper::-webkit-scrollbar {
    display: none;
}

/* ── SECTIONS ────────────────────────────────────── */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ══════════════════════════════════════════════════
   SECTION 1 — HERO (complete redesign)
══════════════════════════════════════════════════ */
#hero {
    background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(124,58,237,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 10% 80%, rgba(59,130,246,0.10) 0%, transparent 60%),
                var(--bg);
}

/* WebGL Canvas fills hero */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Grain overlay for premium texture */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    padding: 0.8rem 3rem; /* Slimmer initial padding */
    background: rgba(5, 3, 18, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s ease;
}

/* ── FLEX SPACERS FOR BUTTERY CENTERING ───────────── */
/* We use ::before and ::after as invisible expanding 
   springs. Flex-grow interpolates fully at 60fps unlike margins */
.hero-nav::before,
.hero-nav::after {
    content: '';
    transition: flex-grow 0.9s cubic-bezier(0.25, 0, 0.1, 1);
}
.hero-nav::before { order: 2; flex-grow: 1;      /* Pushes links to the right */ }
.hero-nav::after  { order: 4; flex-grow: 0.0001; /* Tiny float prevents snap  */ }

/* ── Brand: takes up the left slot ──────────────── */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    opacity: 0;                    /* GSAP animates this in */
    transform: translateX(-20px);  /* GSAP animates this in */
    overflow: hidden;
    max-width: 280px;
    flex-shrink: 0;
    order: 1;                      /* Leftmost item */
    transition: max-width 0.9s cubic-bezier(0.25, 0, 0.1, 1),
                gap       0.8s cubic-bezier(0.25, 0, 0.1, 1);
}

/* ── Links: pushed right by default ─────────────── */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    opacity: 0;                   /* GSAP animates this in */
    transform: translateX(20px);  /* GSAP animates this in */
    margin: 0;                    /* Let flex align it */
    order: 3;
}

/* ── Scrolled: brand shrinks, links slide to center ─ */
.hero-nav.nav-scrolled {
    padding: 0.4rem 3rem; /* Extremely slim scrolled padding */
    background: rgba(5, 3, 18, 0.88);
    transition: padding 0.9s cubic-bezier(0.25, 0, 0.1, 1),
                background 0.9s ease;
}
.hero-nav.nav-scrolled .nav-brand {
    max-width: 40px;  /* match the new slim avatar ring */
    gap: 0;
}
.hero-nav.nav-scrolled .nav-brand .nav-name-group {
    opacity: 0;
    pointer-events: none;
}
.hero-nav.nav-scrolled::after {
    flex-grow: 1; /* Match the before-spacer, perfectly centering the links */
}

.nav-logo-ring {
    position: relative;
    width: 40px; /* Reduced to allow a slimmer nav */
    height: 40px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--p1), var(--b1));
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--bg);
}

.nav-name-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--p1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.nav-role {
    font-size: 0.68rem;
    color: var(--c-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}


.nav-links a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(168, 85, 247, 0.12);
}

.nav-links .nav-cta {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(59,130,246,0.15));
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.nav-links .nav-cta:hover {
    background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(59,130,246,0.25));
    color: #fff;
}

/* Book / Consult pill */
.nav-links .nav-consult {
    background: linear-gradient(135deg, #f5c518, #f59e0b);
    color: #05050d !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(245,197,24,0.3);
}
.nav-links .nav-consult:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245,197,24,0.5);
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #05050d !important;
}

/* ── HERO CONTENT (two-column) ───────────────────── */
.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 7rem 3rem 3rem;
    height: 100vh;
}

/* LEFT: text block */
.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--p1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    width: fit-content;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    color: #ffffff;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--p1) 0%, var(--b2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--c-muted);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--p1), var(--p2));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    letter-spacing: 0.3px;
}

.btn-primary i {
    transition: transform 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.6), 0 0 0 1px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.08);
}

/* RIGHT: 3D wrap */
.hero-3d-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
}

/* Badge floating over 3D object */
.hero-badge {
    position: absolute;
    bottom: 20%;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: rgba(5, 5, 13, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.35);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 1.8s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── SCROLL HINT ─────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.scroll-line-wrap {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    border-radius: 1px;
}

.scroll-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--p1) 0%, transparent 100%);
    animation: scrollDrop 1.8s ease-in-out infinite;
    transform: translateY(-100%);
}

@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ── CINEMATIC WIPE OVERLAY ──────────────────────── */
.hero-wipe {
    position: absolute;
    inset: 0;
    background: #05050d;
    z-index: 30;
    transform: scaleY(0);
    transform-origin: bottom center;
    pointer-events: none;
}


/* ══════════════════════════════════════════════════
   SECTION 2 — STATS ORBS
══════════════════════════════════════════════════ */
#stats {
    background: linear-gradient(180deg, var(--bg) 0%, #0a0518 100%);
    padding: 6rem 2rem;
    gap: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(90deg, var(--b1), var(--p1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--c-muted);
    text-align: center;
    letter-spacing: 1.5px;
    opacity: 0;
    margin-top: -2rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Orb card */
.stat-orb {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(60px) scale(0.7);
    cursor: default;
}

.orb-inner {
    position: relative;
    z-index: 3;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.25), rgba(5, 5, 13, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25), inset 0 0 30px rgba(168, 85, 247, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(6px);
}

.stat-orb:hover .orb-inner {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5), inset 0 0 40px rgba(168, 85, 247, 0.2);
}

.orb-icon { font-size: 1.8rem; margin-bottom: 4px; }

.orb-month {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--b2);
    font-weight: 500;
}

.orb-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--p1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orb-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-muted);
}

.orb-win {
    font-size: 0.75rem;
    color: var(--b2);
    font-weight: 500;
    margin-top: 4px;
}

/* Rotating rings */
.orb-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--p1);
    border-right-color: rgba(168, 85, 247, 0.3);
    animation: spinRing 4s linear infinite;
}

.orb-ring--2 {
    inset: -20px;
    border-top-color: var(--b1);
    border-right-color: rgba(59, 130, 246, 0.3);
    animation-duration: 7s;
    animation-direction: reverse;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════════
   SECTION 3 — HIRE ME
══════════════════════════════════════════════════ */
#hire {
    background: radial-gradient(ellipse at 50% -10%, rgba(168,85,247,0.12) 0%, #05050d 60%);
    padding: 6rem 2rem;
    align-items: center;
}

.hire-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.hire-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-yellow {
    color: #f5c518;
    position: relative;
    display: inline-block;
}

.text-yellow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f5c518, #f59e0b);
    border-radius: 2px;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.hire-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    --mouse-x: -1000px;
    --mouse-y: -1000px;
}

.hire-card > * {
    position: relative;
    z-index: 10;
}

.hire-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 1;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(168,85,247,0.7),
        transparent 40%
    );
}

.hire-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: #09090e;
    z-index: 2;
}

.hire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.hire-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(59,130,246,0.15));
    border: 1px solid rgba(168,85,247,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #a855f7;
    flex-shrink: 0;
}

.hire-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.hire-card-body {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

.hire-card-body em {
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.hire-cta {
    display: flex;
    justify-content: center;
}

.hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 2.2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f5c518, #f59e0b);
    color: #05050d;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 24px rgba(245,197,24,0.35);
}

.hire-btn i { transition: transform 0.25s ease; }

.hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(245,197,24,0.5);
}

.hire-btn:hover i { transform: translateX(4px); }

@media (max-width: 900px) {
    .hire-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .hire-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════
   SECTION 4 — MEMBER SUCCESS STORIES HEADER
══════════════════════════════════════════════════ */
.success-header {
    width: 100%;
    max-width: 860px;
    text-align: center;
    padding: 5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.success-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #f97316;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    width: fit-content;
}

.success-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.success-sub {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    max-width: 600px;
}

/* ══════════════════════════════════════════════════
   SECTION 4 — PREMIUM MARQUEE GALLERY
══════════════════════════════════════════════════ */
#gallery {
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.08) 0%, var(--bg) 60%);
    padding: 4rem 0 5rem;
    gap: 1.5rem;
    /* Override .section min-height — gallery content drives the height */
    min-height: unset;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    /* Still snap */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-header {
    padding: 0 3rem;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.gallery-sub {
    margin-top: 0.5rem !important;
    opacity: 1 !important;
}

/* Marquee rows */
.marquee-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: marqueeLeft 28s linear infinite;
}

.marquee-track.marquee-reverse {
    animation: marqueeRight 32s linear infinite;
}

.marquee-track.marquee-fast {
    animation: marqueeLeft 20s linear infinite;
}

/* Pause on hover */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Gallery items */
.marquee-item {
    position: relative;
    width: 380px;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item.marquee-item-sm {
    width: 300px;
    height: 190px;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Overlay label */
.marquee-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,13,0.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marquee-item-overlay span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    display: none !important;
}

.marquee-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 16px 50px rgba(168, 85, 247, 0.2), 0 8px 30px rgba(0,0,0,0.5);
}

.marquee-item:hover img {
    transform: scale(1.05);
}

.marquee-item:hover .marquee-item-overlay {
    opacity: 1;
}




/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, #0b0617 0%, #050210 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* ── Top: brand + columns side-by-side */
.footer-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--p1), var(--b1));
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.footer-logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #05050d;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 20%, var(--p1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.footer-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    max-width: 220px;
}

/* ── Columns */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-col-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--p1);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    margin-bottom: 0.2rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.footer-col a i {
    font-size: 0.82rem;
    color: var(--p1);
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

/* ── CTA bar */
.footer-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 2rem;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 18px;
    flex-wrap: wrap;
}

.footer-cta-bar p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.7rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--p1), var(--p2));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(168, 85, 247, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.footer-cta-btn i { transition: transform 0.22s ease; }

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 34px rgba(168, 85, 247, 0.58);
}

.footer-cta-btn:hover i { transform: translateX(4px); }

/* ── Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
}

.footer-made { font-size: 0.74rem; }
.footer-heart { color: #a855f7; }

/* ── BACK TO TOP BUTTON ──────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--p1);
    color: var(--c-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: var(--glow-sm);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-lg);
    background: var(--p2);
}

/* ── PAGE TRANSITIONS ────────────────────────────── */
html.page-transitioning {
    opacity: 0 !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── Responsive */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-brand { flex-direction: row; align-items: center; }
    .footer-brand-desc { display: none; }
}

@media (max-width: 640px) {
    .footer-inner { padding: 3.5rem 1.5rem 2rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cta-bar { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 420px) {
    .footer-cols { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}




/* ══════════════════════════════════════════════════
   HERO — RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 2rem;
        gap: 0;
    }

    .hero-3d-wrap {
        display: none;
    }

    .hero-nav {
        padding: 1.2rem 1.5rem;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

/* ── UTILITY ─────────────────────────────────────── */
@media (max-width: 640px) {
    .stats-container { gap: 2rem; }
    .stat-orb { width: 170px; height: 170px; }
    .orb-inner { width: 140px; height: 140px; }
    .orb-value { font-size: 1.7rem; }
}

/* ══════════════════════════════════════════════════
   ADVANCED MOBILE RESPONSIVENESS
══════════════════════════════════════════════════ */

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 201;
    order: 4;
    padding: 0;
}

.menu-toggle span {
    width: 2rem;
    height: 0.2rem;
    background: var(--c-white);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Burger Animation State */
.menu-toggle.open span:first-child { transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 768px) {
    /* ── NAV ── */
    .hero-nav { padding: 0.8rem 1.5rem !important; }
    .hero-nav.nav-scrolled { padding: 0.6rem 1.5rem !important; }
    
    .menu-toggle { display: flex; }
    
    .hero-nav::before, .hero-nav::after { display: none !important; }
    
    .nav-brand {
        flex-grow: 1; /* Push hamburger to right */
        opacity: 1 !important; transform: none !important; /* Force visible */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
        padding: 0;
    }

    .nav-links.nav-open { right: 0; }
    .nav-links li { opacity: 0; transform: translateY(20px); animation: fadeUpItem 0.4s forwards; }
    .nav-links.nav-open li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.nav-open li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.nav-open li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.nav-open li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.nav-open li:nth-child(5) { animation-delay: 0.5s; }

    .nav-links a { font-size: 1.5rem; display: block !important; }
    .nav-consult { font-size: 1.5rem; padding: 0.8rem 2rem; }

    /* ── HERO ── */
    #hero-canvas { display: none !important; }

    .hero-content {
        justify-content: center;
        align-items: center;
        padding: 5rem 0 2rem 0;
        text-align: center;
    }
    
    /* Center the text block fully now since 3D is hidden */
    .hero-text-block { 
        width: 100%; 
        padding: 2rem;
        z-index: 10; 
        margin-top: 2rem;
    }
    
    .hero-title { font-size: 3.2rem; }
    .hero-desc { font-size: 1rem; margin: 1.5rem auto; max-width: 300px; }
    
    .hero-actions { justify-content: center; gap: 1rem; flex-wrap: wrap; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { padding: 0.8rem 1.5rem; width: 100%; text-align: center; justify-content: center; }

    /* ── HIRE / SERVICES ── */
    .services-grid { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
    .hire-cards { flex-direction: column; align-items: center; gap: 1.5rem; }
    .hire-card { width: 95%; max-width: 400px; margin: 0 auto; }

    /* ── STATS ── */
    .stats-layout { flex-direction: column; gap: 2rem; padding: 4rem 1.5rem; }
    .stats-left { padding: 0; text-align: center; width: 100%; align-items: center; }
    .stats-left h2 { font-size: 2.5rem; }
    .stats-right { 
        width: 100%;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 1rem;
        perspective: none; 
    }
    .stat-orb-wrapper { transform: none !important; width: 100%; }
    .stat-orb { width: 100%; transform: none !important; border-radius: 16px; padding: 1.5rem;}
    
    /* ── GALLERY ── */
    .gallery-title { font-size: 2rem; }

    /* ── FOOTER ── */
    .footer-content { flex-direction: column; gap: 3rem; padding: 3rem 1.5rem; text-align: center; }
    .footer-col { width: 100%; }
    .footer-socials { justify-content: center; gap: 1rem; flex-wrap: wrap; }
    .footer-connect form { flex-direction: column; gap: 1rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; padding: 1.5rem; }
}

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