:root {
    --primary: #9d50bb;
    /* Electric Orchid */
    --primary-alt: #6e48aa;
    /* Deep Indigo */
    --secondary: #00d2ff;
    /* Azure */
    --accent: #ff0080;
    /* Hot Pink for highlights */
    --bg-dark: #070211; /* Deep cosmic purple instead of flat black */
    --text-white: #ffffff;
    --text-muted: #888888;
    --aurora: linear-gradient(135deg, #6e48aa 0%, #9d50bb 50%, #00d2ff 100%);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    line-height: 1.5;
    background: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    transform: translateZ(0);
}

/* Particle canvas — positioned as fixed background, out of document flow */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

/* ══ STUNNING AMBIENT BACKGROUND ══ */
.ambient-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.ambient-blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.45;
    
    animation: ambientFloat 20s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

.blob-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(157, 80, 187, 0.4), transparent 70%);
    top: -20%; left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.4), transparent 70%);
    bottom: -10%; right: -20%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.blob-3 {
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.25), transparent 70%);
    top: 30%; left: 40%;
    animation-duration: 28s;
    animation-delay: -12s;
}

.blob-4 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(110, 72, 170, 0.45), transparent 70%);
    top: -15%; right: 10%;
    animation-duration: 19s;
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(15%, 10%) scale(1.1) rotate(15deg); }
    66% { transform: translate(-10%, 20%) scale(0.9) rotate(-5deg); }
    100% { transform: translate(5%, -15%) scale(1.05) rotate(10deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

span {
    background: var(--aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 0, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Glass 2.0 Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 950px);
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

/* Poster-Style Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 8rem);
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

/* ── "Brands" — matches all other hero spans ─ */
.hero-brand {
    display: block;
    background: var(--aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-inline: auto;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(157, 80, 187, 0.15) 0%, transparent 50%);
}

.gradient-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: var(--aurora);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
    animation: aurora-float 20s infinite alternate;
}

@keyframes aurora-float {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-40%, -60%) scale(1.2) rotate(30deg);
    }
}

.gradient-sphere {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.45;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.45;
    }

    to {
        transform: scale(1.2);
        opacity: 0.3;
    }
}


/* ══ LOGOWALL (INFINITE SCROLL) ════════════════ */
.logowall {
    padding: 4rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logowall-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
    gap: 6rem;
    align-items: center;
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: var(--secondary);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 3rem)); }
}

/* ══ METHODOLOGY SECTION ═══════════════════════ */
.methodology {
    padding: 10rem 0;
    background: radial-gradient(circle at 100% 0%, rgba(157, 80, 187, 0.05), transparent 50%);
}

.method-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.services-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 2rem;
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(157, 80, 187, 0.15), rgba(0, 210, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.services-eyebrow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: eyebrow-sweep 4s infinite;
}

@keyframes eyebrow-sweep {
    100% { left: 200%; }
}

.services-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.method-card {
    background: linear-gradient(160deg, rgba(20, 20, 20, 0.6), rgba(5, 5, 5, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scaleX(0);
}

.method-num {
    font-family: 'Syne', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.method-card:hover .method-num {
    -webkit-text-stroke: 1px transparent;
    background: var(--aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05) translate-x(5px);
}

.method-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: white;
    letter-spacing: -0.02em;
}

.method-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.method-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.2), rgba(157, 80, 187, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    display: inline-block;
}

.method-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 80, 187, 0.15);
}

.method-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 1200px) {
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}

/* ══ PROBLEMS SECTION ══════════════════════════ */
.problems {
    padding: 10rem 0 5rem;
    position: relative;
    z-index: 2;
}

.problems-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.4), rgba(15, 15, 20, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.problem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.problem-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, -20%), rgba(0, 240, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -2;
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.1);
}

.problem-card:hover::after {
    opacity: 1;
}

/* Beautiful SVG Icon Styles */
.problem-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(25, 25, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.05);
}

.problem-icon-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, var(--secondary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(10px);
    transition: all 0.5s ease;
}

.problem-card:hover .problem-icon-glow {
    opacity: 0.35;
    transform: scale(1.2);
    background: radial-gradient(circle at center, var(--primary) 0%, var(--secondary) 100%);
}

.problem-icon {
    width: 32px;
    height: 32px;
    color: var(--secondary);
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.problem-card:hover .problem-icon {
    color: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(157, 80, 187, 0.6));
}

.problem-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
    .problems {
        padding: 6rem 0;
    }
}

/* =============================================
   SERVICES SECTION — CINEMATIC BENTO LAYOUT
   ============================================= */

.services {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.services-header {
    text-align: center;
    margin-bottom: 6rem;
}

.services-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.services-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.1);
    z-index: 10;
}

.bento-card--hero { grid-column: span 7; grid-row: span 2; }
.bento-card--tall { grid-column: span 5; grid-row: span 2; }
.bento-card--wide { grid-column: span 8; grid-row: span 1; }
.bento-card--medium { grid-column: span 4; grid-row: span 1; }
.bento-card--small { grid-column: span 4; grid-row: span 1; }
.bento-card--cta {
    grid-column: span 7;
    grid-row: span 2;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.bento-card--cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(0, 242, 255, 0.4), transparent 30%);
    animation: rotate-glow 6s linear infinite;
    z-index: 0;
    transform: translateZ(0);
    pointer-events: none;
}

.bento-card--cta::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.4), rgba(5, 5, 5, 0.6));
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
}

.bento-card--cta .bento-card__content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    pointer-events: auto;
}

.bento-card--cta h3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card--cta h3 span {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bento-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translateZ(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(-30px);
}

.bento-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(1.2) brightness(0.8);
}

.bento-card:hover .bento-card__bg {
    transform: scale(1.1);
}

.bento-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5, 0.95) 10%, transparent 60%);
    z-index: 1;
}

.bento-card__content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform-style: preserve-3d;
    pointer-events: none;
}

.bento-card--hero .bento-card__content { padding: 3.5rem; }

.bento-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    transform: translateZ(40px);
}

.bento-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transform: translateZ(60px);
}

.bento-card--hero h3 { font-size: 3.2rem; }

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.5;
    transform: translateZ(50px);
}

.bento-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    transform: translateZ(50px);
    transform-style: preserve-3d;
}

.metric-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-item span {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.bento-card__num {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.1;
    color: white;
    transform: translateZ(20px);
}

/* ── Reveal-up (for other elements) ─────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scroll anchors ─────────────────────────── */
.hero, .services, .stats, .portfolio, #contact, .blog-header, .insights {
    scroll-margin-top: 8rem;
}

/* ══ TECH MARQUEE ══════════════════════════════ */
.tech-marquee-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    perspective: 1200px;
}

.tech-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.tech-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll 30s linear infinite reverse;
    width: fit-content;
}

.tech-item {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ══ PERFORMANCE BOARD (STATS) ════════════════ */
.performance-board {
    padding: 8rem 0;
}

.board-frame {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.board-status {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}

.board-timestamp {
    font-family: monospace;
    color: var(--text-muted);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.board-item {
    text-align: center;
}

.board-val {
    font-size: 4.5rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: var(--aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: digital-flicker 4s linear infinite;
}

@keyframes digital-flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 0.9; }
    46% { opacity: 1; }
}

.board-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* ══ CASE GALLERY (PORTFOLIO) ═════════════════ */
.case-gallery {
    padding: 10rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    height: 500px;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.gallery-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.gallery-item:hover .gallery-item__img img {
    transform: scale(1.05);
    opacity: 0.7;
}

.gallery-item__content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.gallery-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.gallery-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.gallery-metric {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
}

.gallery-metric span {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.gallery-btn {
    align-self: flex-start;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 4px;
    transition: 0.3s;
}

.gallery-btn:hover {
    color: var(--secondary);
    letter-spacing: 1px;
}

/* ══ INSIGHTS (BLOG PREVIEW) ═════════════════ */
.insights {
    padding: 10rem 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.insight-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.insight-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-gradient);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.insight-content {
    padding: 2rem;
}

.insight-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.insight-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: margin-left 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.insight-card:hover img {
    transform: scale(1.1);
}

.insight-link:hover {
    margin-left: 5px;
}

/* =============================================
   REVIEWS SECTION
   ============================================= */

.reviews {
    padding: 10rem 0 0;
    position: relative;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.review-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translateZ(0);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.review-card:hover .review-glow {
    opacity: 0.15;
}

.review-glow--cyan {
    background: radial-gradient(circle at top right, var(--secondary) 0%, transparent 60%);
}

.review-glow--pink {
    background: radial-gradient(circle at top right, var(--accent) 0%, transparent 60%);
}

.review-glow--purple {
    background: radial-gradient(circle at top right, var(--primary) 0%, transparent 60%);
}

.review-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-stars {
    color: var(--secondary);
    font-size: 1.25rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.review-card:nth-child(2) .review-stars {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.review-card:nth-child(3) .review-stars {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(157, 80, 187, 0.5);
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
}

.review-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats 3-col ➜ 1-col at 600 px for mid-sized phones */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }
}

/* Footer & Form */
footer {
    padding: 10rem 0 4rem;
    background: var(--bg-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-info h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: 2rem;
    font-weight: 600;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--glass);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

input,
textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Media Queries - Consolidated */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
        width: 95%;
        top: 1rem;
    }

    /* Hero */
    .hero {
        padding-top: 9rem;
        padding-bottom: 5rem;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .hero p {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        padding: 0 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Section padding */
    .services {
        padding: 6rem 0;
    }

    .portfolio {
        padding: 6rem 0;
    }

    .reviews {
        padding: 6rem 0 0;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    /* Stats */
    .stats {
        padding: 4rem 0 5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-info h2 {
        font-size: 2.5rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        padding: 9rem 0 4rem;
    }

    /* Peak services grid — single column on mobile */
    .services-peak-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .spc--hero,
    .spc-stack,
    .spc--wide {
        grid-column: auto;
        grid-row: auto;
    }

    .spc-stack {
        display: contents;
    }

    .spc {
        min-height: 380px;
        border-radius: 22px;
    }

    .spc--hero {
        min-height: 480px;
    }

    /* Portfolio */
    .portfolio-item {
        height: 420px;
        border-radius: 2rem;
    }

    .portfolio-item:nth-child(even) {
        transform: translateY(0);
    }

    .portfolio-item h3 {
        font-size: 1.8rem;
    }

    .portfolio-item__overlay {
        padding: 2rem;
    }

    /* Navbar burger */
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: white;
        margin: 5px;
        transition: all 0.3s ease;
    }

    /* Burger Animation */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 5rem;
        height: auto;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 3rem;
        border-radius: 30px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        align-items: flex-start;
        gap: 1.5rem;
        z-index: 100;
        animation: navLinkFade 0.5s ease forwards;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Case study modals */
    .case-study-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .case-study-content {
        border-radius: 1.5rem;
        max-height: 92vh;
    }

    .case-study-header {
        padding: 2rem 1.5rem 1rem;
    }

    .case-study-header h2 {
        font-size: 1.8rem;
    }

    .case-study-body {
        padding: 0 1.5rem 2rem;
    }

    .case-study-body img {
        height: 220px;
    }

    .case-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .metric h4 {
        font-size: 2rem;
    }
}

/* ══ SMALL PHONE BREAKPOINT (480px) ═══════════ */
@media (max-width: 480px) {

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
    }

    /* Navbar very small */
    .navbar {
        top: 0.75rem;
        padding: 0.65rem 1.25rem;
        border-radius: 0;
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0 0 20px 20px;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero p {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Services */
    .services {
        padding: 5rem 0;
    }

    .spc__content {
        padding: 1.5rem;
    }

    .spc--hero {
        min-height: 380px;
    }

    .spc {
        min-height: 300px;
        border-radius: 18px;
    }

    /* Portfolio */
    .portfolio-item {
        height: 360px;
        border-radius: 1.5rem;
    }

    .portfolio-item h3 {
        font-size: 1.5rem;
    }

    .portfolio-item__overlay {
        padding: 1.5rem;
    }

    /* Stats */
    .stat-item {
        padding: 2rem 1.5rem;
    }

    /* Reviews */
    .review-card {
        padding: 2rem 1.5rem;
    }

    /* Blog */
    .blog-card {
        padding: 2rem;
        min-height: 280px;
    }

    /* Footer */
    .site-footer {
        padding: 4rem 0 0;
    }

    .footer-info h2 {
        font-size: 2rem;
    }

    /* Modals */
    .case-study-header h2 {
        font-size: 1.5rem;
    }

    .case-metrics {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .metric h4 {
        font-size: 2.5rem;
    }
}

/* Blog Styles */
.blog-header {
    padding: 12rem 0 6rem;
    text-align: center;
}

.blog-header h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 10rem;
}

.blog-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 350px;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.blog-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.blog-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   SITE FOOTER
   ============================================= */

.site-footer {
    position: relative;
    padding: 6rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Ambient aurora glow behind footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center top, rgba(110, 72, 170, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Top grid: brand + 3 columns */
.site-footer__top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

/* Brand column */
.sf-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sf-logo {
    font-size: 1.2rem !important;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.05em;
}

.sf-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 260px;
}

/* Social buttons */
.sf-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.sf-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    text-decoration: none;
}

.sf-social-btn svg {
    width: 16px;
    height: 16px;
}

.sf-social-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 128, 0.25);
}

/* Link columns */
.sf-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sf-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
}

.sf-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sf-col ul li a,
.sf-col ul li span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.4);
}

.sf-col ul li a:hover {
    color: white;
    -webkit-text-fill-color: white;
}

/* Contact info column */
.sf-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.sf-contact-icon {
    font-size: 0.85rem;
    opacity: 0.45;
    flex-shrink: 0;
    margin-top: 1px;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Divider */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sf-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}

/* Specialty badges */
.sf-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sf-badges span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.02);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.35);
}

/* Legal links */
.sf-legal {
    display: flex;
    gap: 1.5rem;
}

.sf-legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
}

.sf-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
}

/* ── Footer responsive ───────────────────────── */
@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .sf-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =============================================
   CHATBOT & MODAL STYLES
   ============================================= */

/* ── Chatbot Launcher ───────────────────────── */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.chatbot-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--aurora);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(157, 80, 187, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.chatbot-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(157, 80, 187, 0.6);
}

.chatbot-launcher .close-icon {
    display: none;
}

.chatbot-container.active .chat-icon {
    display: none;
}

.chatbot-container.active .close-icon {
    display: block;
}

/* ── Chatbot Window ─────────────────────────── */
.chatbot-window {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 350px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-container.active .chatbot-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.chatbot-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.chatbot-close:hover {
    color: white;
}

.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 85%;
    padding: 1rem;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-input {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.chatbot-input .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
}

/* ── Modal Styles ───────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: min(90%, 500px);
    padding: 3rem;
    position: relative;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.w-full {
    width: 100%;
}

.form-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--primary));
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 4rem);
    }

    .chatbot-messages {
        height: 200px;
    }
}

/* ══ CASE STUDY MODAL ══════════════════════════ */
.case-study-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-study-modal.active {
    display: flex;
    opacity: 1;
}

.case-study-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.case-study-modal.active .case-study-content {
    transform: scale(1);
}

.case-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.case-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

.case-study-header {
    padding: 3rem 3rem 1.5rem;
    text-align: center;
}

.case-study-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white, #a5a5b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-study-body {
    padding: 0 3rem 3rem;
}

.case-study-body img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-text h3 {
    color: var(--aurora);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.case-study-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric {
    text-align: center;
}

.metric h4 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Syne', sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.metric span {
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .case-study-header {
        padding: 2rem 1.5rem 1rem;
    }

    .case-study-body {
        padding: 0 1.5rem 2rem;
    }

    .case-study-body img {
        height: 250px;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   MOBILE OVERRIDES (Peak Services & Typography)
   ============================================= */
@media (max-width: 768px) {

    /* Reduce large hero titles in services grid to prevent overflow */
    .spc--hero .spc__content h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .spc-stack .spc__content h3 {
        font-size: 1.1rem;
    }

    .spc--wide .spc__content h3 {
        font-size: 1.25rem;
    }

    .chatbot-window {
        width: 300px;
    }

    .chatbot-messages {
        height: 250px;
    }
}
/* ══ ADDITIONAL RESPONSIVE OVERRIDES ═══════════ */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    
    .bento-card--hero, 
    .bento-card--tall, 
    .bento-card--wide, 
    .bento-card--medium, 
    .bento-card--small, 
    .bento-card--cta {
        grid-column: span 2 !important;
        grid-row: auto !important;
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card--hero, 
    .bento-card--tall, 
    .bento-card--wide, 
    .bento-card--medium, 
    .bento-card--small, 
    .bento-card--cta {
        grid-column: span 1 !important;
    }

    .bento-card--hero h3 {
        font-size: 2rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem) !important;
        right: 1rem !important;
        bottom: 5rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem !important;
    }
    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100% !important;
        text-align: center;
    }
}


/* ══════════════════════════════════════════════════════════
   3D INTERACTIVE LAYER  —  ScalingGenie Premium Effects
   ══════════════════════════════════════════════════════════ */

:root {
    --3d-depth: 1200px;
    --tilt-max: 12deg;
    --glare-opacity: 0.15;
}

/* ── Global 3D canvas behind everything ────────────────── */
#three-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ── 3D Tilt Wrappers — wraps each tiltable card ──────── */
.tilt-wrap {
    perspective: var(--3d-depth);
    transform-style: preserve-3d;
}

/* ── Glare overlay on tilt cards ──────────────────────── */
.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 99;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, var(--glare-opacity)) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show glare when parent has js-tilt class */
.tilt-active .tilt-glare { opacity: 1; }

/* ── Cards 3D base ────────────────────────────────────── */
.bento-card,
.method-card,
.problem-card,
.gallery-item,
.blog-card,
.review-card,
.board-frame {
    will-change: transform;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 0.08s linear, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

/* Hover state enhanced when JS tilt is active */
.bento-card.tilt-active,
.method-card.tilt-active,
.problem-card.tilt-active {
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(157, 80, 187, 0.25),
        0 0 0 1px rgba(0, 210, 255, 0.2);
}

/* ── Holographic border shimmer ───────────────────────── */
@property --holo-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.bento-card--hero,
.board-frame {
    --holo-angle: 0deg;
    animation: holo-border 6s linear infinite;
}

@keyframes holo-border {
    to { --holo-angle: 360deg; }
}

/* ── 3D Hero Scene — depth layers ─────────────────────── */
.hero {
    perspective: 800px;
}

.hero-content {
    transform-style: preserve-3d;
}

.hero h1 {
    transform: translateZ(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    transform: translateZ(15px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.hero-btns {
    transform: translateZ(25px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* ── 3D Floating Orbit Elements ────────────────────────── */
.orbit-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
    overflow: hidden;
}

.orbit-shape {
    position: absolute;
    border: 1px solid;
    border-radius: 4px;
    opacity: 0.07;
    animation: orbit-float linear infinite;
    transform-style: preserve-3d;
}

.orbit-shape:nth-child(1) {
    width: 80px; height: 80px;
    border-color: #9d50bb;
    top: 15%; left: 8%;
    animation-duration: 18s;
    animation-name: orbit-spin-a;
}

.orbit-shape:nth-child(2) {
    width: 55px; height: 55px;
    border-color: #00d2ff;
    top: 70%; right: 10%;
    animation-duration: 14s;
    animation-name: orbit-spin-b;
    border-radius: 50%;
}

.orbit-shape:nth-child(3) {
    width: 100px; height: 100px;
    border-color: #ff0080;
    bottom: 20%; left: 15%;
    animation-duration: 22s;
    animation-name: orbit-spin-a;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: rgba(255, 0, 128, 0.05);
}

.orbit-shape:nth-child(4) {
    width: 60px; height: 60px;
    border-color: #6e48aa;
    top: 40%; right: 5%;
    animation-duration: 16s;
    animation-name: orbit-spin-b;
    transform: rotate(45deg);
}

.orbit-shape:nth-child(5) {
    width: 120px; height: 120px;
    border-color: #00d2ff;
    top: 5%; right: 20%;
    animation-duration: 26s;
    animation-name: orbit-spin-a;
    border-radius: 50%;
    opacity: 0.04;
}

@keyframes orbit-spin-a {
    0%   { transform: rotate(0deg)   translateY(0px)      scale(1);   }
    25%  { transform: rotate(90deg)  translateY(-20px)    scale(1.05); }
    50%  { transform: rotate(180deg) translateY(0px)      scale(1);   }
    75%  { transform: rotate(270deg) translateY(20px)     scale(0.95); }
    100% { transform: rotate(360deg) translateY(0px)      scale(1);   }
}

@keyframes orbit-spin-b {
    0%   { transform: rotate(0deg)   translateX(0px)      scale(1);   }
    25%  { transform: rotate(-90deg) translateX(15px)     scale(1.08); }
    50%  { transform: rotate(-180deg) translateX(0px)     scale(1);   }
    75%  { transform: rotate(-270deg) translateX(-15px)   scale(0.92); }
    100% { transform: rotate(-360deg) translateX(0px)     scale(1);   }
}

/* ── 3D Interactive Count-up Board ─────────────────────── */
.board-frame {
    transform-style: preserve-3d;
    transition: transform 0.1s linear, box-shadow 0.4s ease !important;
}

/* ── 3D Gallery Item ────────────────────────────────────── */
.gallery-item {
    overflow: visible !important; /* allow shadow to show outside radius */
}

.gallery-item.tilt-active {
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(0, 210, 255, 0.2);
}

/* ── Depth highlight inner glow ────────────────────────── */
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card.tilt-active::before { opacity: 1; }

/* ── Spring-back transition (when mouse leaves) ───────── */
.spring-back {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ── 3D Navbar pill depth ───────────────────────────────── */
.navbar {
    transform-style: preserve-3d;
}

/* ── Performance: reduce motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .orbit-shape,
    .gradient-sphere,
    .bento-card,
    .method-card,
    .problem-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Floating Social Sidebar ───────────────────────────── */
.social-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.social-link:hover {
    background: var(--aurora);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(157, 80, 187, 0.3);
}

.social-link:hover svg {
    transform: scale(1.15);
}

.sidebar-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .social-sidebar {
        display: none; /* Hide on mobile/tablets where horizontal space is constrained */
    }
}

/* =============================================
   FIX: BLOG INSIGHTS LAYOUT
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
    padding-bottom: 5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-12px);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.blog-card__image {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.15);
}

.blog-card__category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.blog-card__content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-grow: 1;
}

.blog-card__content time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.blog-card__content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    color: white;
}

.blog-card__content p {
 color: rgba(255, 255, 255, 0.6);
 font-size: 1.05rem;
 line-height: 1.7;
 margin-bottom: 1.5rem;
}

.blog-card__link {
 margin-top: auto;
 text-decoration: none;
 color: var(--secondary);
 font-weight: 600;
 font-size: 0.95rem;
 display: flex;
 align-items: center;
 gap: 0.6rem;
 transition: all 0.3s ease;
}

.blog-card__link:hover {
 gap: 1rem;
 color: white;
}

@media (max-width: 768px) {
 .blog-grid {
 grid-template-columns: 1fr;
 gap: 2rem;
 }
 
 .blog-card__image {
 height: 200px;
 }
 
 .blog-card__content {
 padding: 2rem;
 }
}
