:root {
    /* Original colors */
    --clr-bg-primary: #1C1C1C;
    --clr-accent-red: #EC4A47;
    --clr-text-primary: #FFFFFF;
    --clr-text-secondary: #A6A6A6;
    --clr-placeholder: #E0E0E0;
    --clr-button-on-red: #000000;
    --clr-grey-400: #A6A6A6;

    /* New theme tokens */
    --bg-0: #1a1a2e;
    --bg-1: #16161a;
    --bg-light: #f5efe6;
    --bg-cream: #f5efe6;
    --accent-orange: #FB5C51;
    --accent-orange-mid: #FC474B;
    --accent-orange-bright: #F6423D;
    --energy-strong: rgba(251, 92, 81, 0.25);
    --energy-mid: rgba(252, 71, 75, 0.15);
    --energy-light: rgba(246, 66, 61, 0.08);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

@media (min-width: 1024px) {
    :root {
        --space-xs: 1.25vh;
        --space-sm: 2vh;
        --space-md: 3.25vh;
        --space-lg: 4.5vh;
        --space-xl: 6vh;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Poppins Font Classes */
.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    background-attachment: fixed;
    color: var(--clr-text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Grainy noise texture mixin for sections */
.grain-texture {
    position: relative;
}

.grain-texture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Per-section grain opacity */
#hero.grain-texture::after {
    opacity: 0.1;
}

#work.grain-texture::after {
    opacity: 0.3;
}

#process.grain-texture::after {
    opacity: 0.1;
}

#cta.grain-texture::after {
    opacity: 0.3;
}


/* Section base class for consistent styling */
.section-base {
    position: relative;
    overflow: hidden;
}

.section-base::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Section transition overlays */
.section-transition::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-0) 100%);
    pointer-events: none;
    z-index: 1;
}

.section-transition-top::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    background: linear-gradient(to top, transparent 0%, var(--bg-0) 100%);
    pointer-events: none;
    z-index: 1;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

/* Header */
header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 100;
}

@media (min-width: 1024px) {
    header {
        height: 72px;
        padding-inline: var(--space-xl);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--clr-text-primary);
    letter-spacing: -0.02em;
    width: 20%;
    justify-content: flex-start;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 5vh;
    margin-right: 0.25rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    width: 80%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.nav-links {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--clr-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.05em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--clr-accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

@media (min-width: 640px) {
    .nav-links a {
        font-size: 0.875rem;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 74px var(--space-md) 64px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 70%, var(--energy-strong) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 80%, var(--energy-red-strong) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

#hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.8vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.025em;
    text-align: left;
}

.text-highlight {
    background: linear-gradient(120deg, var(--accent-orange) 0%, var(--accent-orange-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.06rem);
    color: var(--clr-grey-400);
    font-weight: 300;
    max-width: 480px;
    line-height: 1.6;
    margin: 20px 0 28px;
    text-align: left;
}

.hero-subtitle strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 54px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Hero Copy (left column) */
.hero-copy {
    position: relative;
    z-index: 10;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 6px 13px 6px 6px;
    font-size: 0.78rem;
    color: var(--clr-grey-400);
    margin-bottom: 22px;
}

.hero-pill-tag {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-bright));
    color: #fff;
    font-weight: 700;
    font-size: 0.69rem;
    padding: 3px 9px;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-mid) 66%, var(--accent-orange-bright) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    border: none;
    border-radius: 12px;
    padding: 15px 28px;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--energy-strong);
    transition: transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(251, 92, 81, 0.35);
}

.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--clr-text-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 15px 28px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.hero-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
}

/* Hero Trust Avatars Row */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.81rem;
    color: var(--clr-grey-400);
}

.hero-trust-row strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

.hero-trust-avatars {
    display: flex;
}

.hero-trust-avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--bg-0);
    margin-left: -9px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.hero-trust-avatars span:first-child {
    margin-left: 0;
}

/* Hero Stat Chips */
.hero-stat-chips {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stat-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px;
    padding: 14px 18px;
    flex: 1;
    min-width: 120px;
}

.hero-stat-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.hero-stat-unit {
    color: var(--accent-orange);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Hero Device Stage (right column) */
.hero-device-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.hero-device-stage::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--energy-strong), transparent 70%);
}

/* Hero Device (phone mockup) */
.hero-device {
    position: relative;
    width: 272px;
    height: 552px;
    border-radius: 40px;
    background: #000;
    border: 8px solid #1D222D;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #1D222D;
    border-radius: 0 0 13px 13px;
    z-index: 5;
}

.hero-device-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Hero Device Poster Overlay */
.hero-device-poster {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.35s;
    background: url('/assets/hero-poster.png') center / cover no-repeat, #16161a;
}

.hero-device-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(26,26,46,0.2), rgba(26,26,46,0.55));
}

.hero-device-poster.gone {
    opacity: 0;
    pointer-events: none;
}

.hero-poster-play {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-bright));
    display: grid;
    place-items: center;
    box-shadow: 0 8px 30px rgba(251,92,81,0.5);
}

.hero-poster-play::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.hero-poster-label {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.81rem;
    color: var(--clr-text-primary);
}

/* Floating Metric Chips */
.hero-metric-chip {
    position: absolute;
    z-index: 3;
    background: rgba(22,22,26,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 13px;
    padding: 11px 14px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    opacity: 0;
    will-change: transform, opacity;
}

.hero-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex: none;
}

.hero-metric-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
}

.hero-metric-label {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
}

/* Chips sit BESIDE the phone (272px wide, centered) — never over the screen */
.hmc-1 {
    top: 70px;
    right: calc(50% + 140px);
}

.hmc-2 {
    top: 250px;
    left: calc(50% + 140px);
}

.hmc-3 {
    bottom: 90px;
    right: calc(50% + 145px);
}

/* Hero responsive: tablet and below */
@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hero-device-stage {
        order: -1;
        min-height: auto;
    }

    #hero h1 {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-pill {
        display: flex;
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust-row {
        justify-content: center;
        text-align: center;
    }

    .hero-stat-chips {
        justify-content: center;
    }
}

/* Hero responsive: small mobile */
@media (max-width: 560px) {
    .hero-metric-chip {
        display: none;
    }

    .hero-device {
        width: 220px;
        height: 448px;
        border-radius: 32px;
        border-width: 6px;
    }

    .hero-device-notch {
        width: 90px;
        height: 18px;
    }
}

/* Trust Section */
.trust-section {
    margin-top: var(--space-xl);
    text-align: center;
    width: 100%;
}

.trust-label {
    color: var(--clr-grey-400);
    font-size: 0.8rem;
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 55px;
    }

    .brand-logos {
        gap: 16px var(--space-xl);
    }
}

/* Products Section */
#products {
    padding: var(--space-xl) var(--space-lg);
    background: var(--clr-bg-primary);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .product-grid {
        display: flex;
        flex-direction: row;
        gap: var(--space-md);
    }
}

.product-tile {
    flex: 1;
    aspect-ratio: 1;
    background: var(--clr-placeholder);
    border-radius: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    min-height: 300px;
}

@media (min-width: 640px) {
    .product-tile {
        width: 44vw;
        max-width: 480px;
    }
}

.product-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 74, 71, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-pill {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: var(--clr-button-on-red);
    color: var(--clr-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
}

/* Our Work Section - Light cream background */
#work {
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    background: var(--bg-cream);
}

#work .section-title {
    color: var(--bg-1);
}

#work .section-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-align: center;
    color: #666;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.work-marquee {
    display: flex;
    gap: var(--space-sm);
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-column {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: scrollUp 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.marquee-column[data-direction="down"] .marquee-track {
    animation: scrollDown 30s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -50%, 0);
    }
}

@keyframes scrollDown {
    0% {
        transform: translate3d(0, -50%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.work-item {
    background-color: var(--clr-placeholder);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .work-marquee {
        height: 400px;
    }
}

.see-more-btn {
    display: block;
    margin: var(--space-lg) auto 0;
    background: var(--clr-accent-red);
    color: var(--clr-button-on-red);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 74, 71, 0.4);
}

.works-explore-btn {
    display: block;
    text-align: center;
    margin: var(--space-lg) auto 0;
    background: var(--bg-1);
    color: var(--clr-text-primary);
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.works-explore-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Testimonials Section */
#process {
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 70%, var(--energy-strong) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 80%, var(--energy-red-strong) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

#process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, var(--bg-0) 0%, transparent 100%);
    z-index: 1;
}

#process::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, var(--bg-0) 0%, transparent 100%);
    z-index: 1;
}

#process .section-title {
    color: var(--clr-text-primary);
}

#process .section-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-align: center;
    color: var(--clr-grey-400);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    background: var(--clr-placeholder);
    border-radius: 8px;
    height: 120px;
    opacity: 0;
    transform: translateY(30px);
    animation: stepReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: all 0.3s ease;
}

.process-step:nth-child(1) {
    animation-delay: 0.1s;
}

.process-step:nth-child(2) {
    animation-delay: 0.22s;
}

.process-step:nth-child(3) {
    animation-delay: 0.34s;
}

.process-step:nth-child(4) {
    animation-delay: 0.46s;
}

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

/* CTA Footer - Cream/beige like Our Work */
#cta {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA floating card */
.cta-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

#cta h2 {
    font-size: 1.75rem;
    color: var(--bg-1);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

@media (min-width: 768px) {
    #cta h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    #cta h2 {
        font-size: 3rem;
    }
}

.cta-button {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-1);
    color: var(--clr-text-primary);
    border: none;
    min-width: 200px;
    height: 48px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Footer */
footer {
    padding: var(--space-lg);
    text-align: center;
    color: var(--clr-grey-400);
    font-size: 0.875rem;
    background: var(--clr-bg-primary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Hover States */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
}

.interactive-element:active {
    transform: translateY(0) scale(0.98);
}

/* Testimonials Carousel Styles */
.testimonials-track-container {
    overflow: hidden;
    margin: var(--space-lg) 0;
    padding: var(--space-sm);
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--space-md);
}

.testimonial-card {
    flex: 0 0 100%;
    background: white;
    border-radius: 20px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333;
    min-height: 350px;
    opacity: 0.8;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
    }
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    margin-bottom: var(--space-sm);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--clr-accent-red);
    border-color: var(--clr-accent-red);
    color: black;
    transform: scale(1.1);
}

/* CTA Section Specific Styles */
.cta-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .cta-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .cta-header {
        flex: 0 0 40%;
        padding-right: var(--space-xl);
        text-align: left;
        position: sticky;
        top: 100px;
    }

    .cta-logo {
        width: 64px;
        height: auto;
        margin-bottom: var(--space-md);
        display: block;
    }

    #cta h2 {
        text-align: left;
    }
}

/* Mobile CTA logo size */
.cta-logo {
    width: 48px;
    height: auto;
    margin: 0 auto var(--space-sm);
}

.cta-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: var(--space-sm);
    font-weight: 300;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: var(--space-lg);
    width: 100%;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
        gap: var(--space-md);
    }

    .half {
        flex: 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required {
    color: var(--clr-accent-red);
}

.optional {
    color: var(--clr-grey-400);
    text-transform: none;
    font-weight: 400;
    font-size: 0.75rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    color: var(--bg-1);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--bg-1);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.05);
}

/* Custom Select Arrow */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231a1a2e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
}

/* Checkbox Pills */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-pill {
    cursor: pointer;
    position: relative;
}

.checkbox-pill input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-pill span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--bg-1);
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-pill:hover span {
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.checkbox-pill input:checked~span {
    background: var(--bg-1);
    color: #fff;
    border-color: var(--bg-1);
    box-shadow: 0 4px 10px rgba(26, 26, 46, 0.2);
}

.form-submit {
    margin-top: var(--space-sm);
    width: 100%;
}

/* ===== LOADER OVERLAY ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: auto;
    height: 8vh;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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