/* =============================================
   ZBJ AGENCY — DESIGN SYSTEM & STYLES
   =============================================
   Background: Red theme (replacing blue)
   Typography: Space Grotesk
   Accent colors: Original palette preserved
   ============================================= */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
    /* Primary Reds (replaces blue) */
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    --red-950: #450a0a;

    /* Background & Surface */
    --bg-primary: #0c0404;
    --bg-secondary: #1a0808;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Accent (kept original purple/indigo accent) */
    --accent: #818cf8;
    --accent-light: #a5b4fc;

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- UTILITY ---- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary .btn-arrow {
    transition: transform var(--transition-base);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 0.95rem;
}

/* ---- NAVIGATION ---- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all var(--transition-base);
}

#site-header.scrolled {
    background: rgba(12, 4, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

#main-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--fw-bold);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--red-400);
    filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.5));
}

.logo-accent {
    font-weight: var(--fw-regular);
    color: var(--text-secondary);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-400);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ---- HERO SECTION ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem var(--space-xl) var(--space-3xl);

    /* Red gradient background */
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(185, 28, 28, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(220, 38, 38, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(239, 68, 68, 0.15) 0%, transparent 60%),
        var(--bg-primary);
}

/* Animated background glows */
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(185, 28, 28, 0.25);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(239, 68, 68, 0.2);
    bottom: 10%;
    left: -50px;
    animation-delay: -3s;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(248, 113, 113, 0.15);
    top: 50%;
    right: 30%;
    animation-delay: -5s;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    position: relative;
    z-index: 2;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hero-heading {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: var(--fw-bold);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.heading-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.heading-line[data-delay="1"] {
    animation-delay: 0.15s;
}

.heading-line[data-delay="2"] {
    animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

#hero-cta {
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
    align-self: flex-start;
}

/* ---- HERO VISUAL / SPLINE CONTAINER ---- */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.spline-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.spline-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Hidden by default until Spline is loaded */
    display: none;
}

/* When Spline is active, show canvas and hide placeholder */
.spline-container.spline-active .spline-canvas {
    display: block;
}

.spline-container.spline-active .placeholder-visual {
    display: none;
}

/* Placeholder 3D-style visual (CSS shapes) */
.placeholder-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--red-600), var(--red-400));
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.4);
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 40%;
    left: 5%;
    animation-delay: -1.5s;
    border-radius: 50%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--accent);
    bottom: 25%;
    right: 25%;
    animation-delay: -3s;
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 10px 40px rgba(129, 140, 248, 0.4);
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--red-300), transparent);
    top: 60%;
    right: 5%;
    animation-delay: -2s;
    transform: rotate(45deg);
    border-radius: var(--radius-sm);
}

.shape-5 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    top: 20%;
    left: 20%;
    animation-delay: -4s;
    border-radius: 50%;
}

.shape-6 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.6), rgba(248, 113, 113, 0.2));
    bottom: 10%;
    left: 15%;
    animation-delay: -1s;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    box-shadow: 0 15px 50px rgba(185, 28, 28, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.scroll-line {
    width: 3px;
    height: 8px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

/* ---- SERVICES SECTION ---- */
.services-section {
    padding: var(--space-4xl) 0;
    position: relative;
    background:
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(185, 28, 28, 0.12) 0%, transparent 70%),
        var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.15em;
    color: var(--red-400);
    margin-bottom: var(--space-lg);
}

.section-heading {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.section-heading em {
    font-style: italic;
    color: var(--red-400);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-500), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-700), var(--red-500));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: white;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.service-title {
    font-size: 1.15rem;
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.spline-services {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    min-height: auto;
    opacity: 0.3;
    pointer-events: none;
}

/* ---- ABOUT / STATS ---- */
.about-section {
    padding: var(--space-4xl) 0;
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(185, 28, 28, 0.1) 0%, transparent 70%),
        var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-text .section-description {
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--red-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(185, 28, 28, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--red-400);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--red-400);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    letter-spacing: 0.02em;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials-section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(185, 28, 28, 0.12) 0%, transparent 70%),
        var(--bg-secondary);
}

.testimonials-stack {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    min-height: 360px;
    padding-bottom: 3rem;
    /* room for pagination */
    user-select: none;
    -webkit-user-select: none;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    cursor: grab;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.testimonial-card.is-dragging {
    cursor: grabbing;
    transition: none;
}

.testimonial-card-inner {
    padding: var(--space-xl) var(--space-2xl);
}

/* Header: avatar + author info */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: var(--fw-semibold);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Quote */
.testimonial-quote {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: normal;
    border: none;
    padding: 0;
}

/* Footer: tags + stats */
.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.testimonial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.testimonial-tag {
    font-size: 0.7rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-primary);
}

.tag-featured {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red-400);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.tag-default {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.testimonial-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.testimonial-stat svg {
    flex-shrink: 0;
}

/* Pagination */
.testimonial-pagination {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.testimonial-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.testimonial-dot.active {
    background: var(--red-400);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.5);
    transform: scale(1.2);
}

/* Active card glow */
.testimonial-card[data-active="true"] {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(185, 28, 28, 0.08);
    border-color: var(--border-light);
}

/* ---- TRUSTED SECTION ---- */
.trusted-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    overflow: hidden;
}

.trusted-text {
    text-align: center;
    font-size: 0.85rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-2xl);
}

.trusted-logos-track {
    display: flex;
    gap: var(--space-4xl);
    animation: scrollLogos 80s linear infinite;
    width: max-content;
    align-items: center;
}

.logo-slot {
    flex-shrink: 0;
    width: 160px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7) invert(0);
    opacity: 0.45;
    transition: all var(--transition-base);
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 0.9;
}

.logo-placeholder {
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.15em;
    color: var(--text-muted);
    border: 1px dashed var(--border-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---- CONTACT / CTA ---- */
.contact-section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(185, 28, 28, 0.2) 0%, transparent 70%),
        var(--bg-primary);
}

.contact-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-heading {
    margin-bottom: var(--space-lg);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.contact-email {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.contact-email:hover {
    color: var(--red-400);
    border-bottom-color: var(--red-400);
}

.spline-contact {
    position: absolute;
    inset: 0;
    min-height: auto;
    opacity: 0.15;
    pointer-events: none;
}

/* ---- FOOTER ---- */
.site-footer {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer-logo-item:hover {
    color: var(--red-400);
    border-color: var(--red-400);
    background: rgba(248, 113, 113, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-visual {
        min-height: 350px;
    }

    .spline-container {
        min-height: 350px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(12, 4, 4, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2xl);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
    }

    #nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-heading {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .testimonial-card-inner {
        padding: var(--space-lg);
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .testimonials-stack {
        min-height: 420px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }
}