/* ==========================================================================
   Components Stylesheet — Atif Malik Theme
   Version: 3.0.0
   Description: All component-specific styles. Base variables and reset
                live in the root style.css.
   ========================================================================== */

/* ==========================================================================
   0. LOCAL VARIABLES (component-scoped tokens)
   ========================================================================== */

:root {
    --spacing-unit: 8px;
    --color-cyan: #60A5FA;
    --color-orange: #ff8c42;
    --color-blue: #2563EB;
    --color-amber: #f59e0b;
    --nav-height: 72px;
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
    --border-radius-lg: 20px;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    interpolate-size: allow-keywords;
}

/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: calc(var(--spacing-unit) * 2) 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                backdrop-filter 0.4s var(--ease-smooth),
                border-color 0.4s var(--ease-smooth);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo .logo-name {
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo .logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-weight: 500;
    transition: color 0.3s var(--ease-smooth);
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    border-radius: 1px;
    transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563EB;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Nav CTA */
.nav-cta {
    padding: 10px 24px;
    background: #2563EB;
    color: #fff !important;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
    transition: box-shadow 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    color: #fff !important;
    background: #3B82F6;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-unit);
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 20px;
        border-bottom: 1px solid rgba(37, 99, 235, 0.15);
        gap: 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 10px;
        text-align: center;
        display: block;
    }
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2563EB;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--border-radius-btn);
    font-weight: 700;
    z-index: 100000;
    transition: top 0.2s var(--ease-smooth);
    text-decoration: none;
}

.skip-to-content:focus {
    top: 10px;
    color: #fff;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

/* Ambient gradient mesh overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.06), transparent),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(96, 165, 250, 0.04), transparent),
        radial-gradient(ellipse 50% 50% at 60% 80%, rgba(37, 99, 235, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
    animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Particles canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-unit);
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 4);
    position: relative;
    overflow: clip;
}

.hero-badge svg {
    flex-shrink: 0;
    color: #2563EB;
}

/* Shine animation on badge */
.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.12),
        transparent
    );
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Hero Headline */
.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-headline__line {
    display: block;
}

/* Gradient text in headline */
.hero-headline__gradient {
    background: linear-gradient(
        135deg,
        #2563EB,
        #60A5FA,
        #2563EB
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    position: relative;
}

/* Blur shadow behind gradient text */
.hero-headline__gradient::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: linear-gradient(
        135deg,
        #2563EB,
        #60A5FA,
        #2563EB
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    filter: blur(30px);
    opacity: 0.5;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Typing cursor */
.hero-headline__typing {
    font-size: clamp(18px, 3vw, 36px);
    text-transform: none;
    color: var(--color-text-dim);
    letter-spacing: 0;
}

.typing-text {
    font-family: var(--font-body);
    font-weight: 400;
}

.typing-cursor {
    display: inline-block;
    font-weight: 100;
    color: #2563EB;
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Description */
.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text-dim);
    max-width: 580px;
    margin: 0 auto calc(var(--spacing-unit) * 4);
    line-height: 1.7;
}

/* Client Logos Strip */
.hero-clients {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 5);
    padding: calc(var(--spacing-unit) * 2) 0;
}

.client-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    filter: grayscale(100%);
    opacity: 0.4;
    transition: filter 0.3s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
    cursor: default;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo svg {
    flex-shrink: 0;
    color: var(--color-text-dim);
}

.client-logo__name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 5);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    font-family: 'Orbitron', var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    display: inline;
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat__suffix {
    font-family: 'Orbitron', var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: calc(var(--spacing-unit) * 0.5);
}

/* Hero CTA Buttons */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
}

/* Primary Button */
.btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #2563EB;
    color: #fff;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
    transition: box-shadow 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth);
    border: none;
    cursor: pointer;
}

.btn--primary:hover {
    background: #3B82F6;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn--primary svg {
    flex-shrink: 0;
}

/* Secondary Button (outline/ghost) */
.btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth);
    cursor: pointer;
}

.btn--secondary:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.btn--secondary svg {
    flex-shrink: 0;
}

/* Outline button variant */
.btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--color-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth);
    cursor: pointer;
}

.btn--outline:hover {
    border-color: rgba(96, 165, 250, 0.4);
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.04);
    transform: translateY(-2px);
}

.btn--outline svg {
    flex-shrink: 0;
}

/* Large button size */
.btn--large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* WhatsApp button variant — uses accent blue, NOT green */
.btn--whatsapp {
    background: #2563EB;
}

.btn--whatsapp:hover {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
}

/* Floating blobs / shapes */
.hero-blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    animation: morph-float 20s ease-in-out infinite;
}

.hero-blob--1 {
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.06);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-blob--2 {
    width: 400px;
    height: 400px;
    background: rgba(96, 165, 250, 0.04);
    top: 50%;
    right: -8%;
    animation-delay: -7s;
}

.hero-blob--3 {
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, 0.03);
    bottom: 5%;
    left: 25%;
    animation-delay: -14s;
}

@keyframes morph-float {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(-15px, 20px) rotate(-3deg);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 50% 70% 60%;
        transform: translate(25px, 15px) rotate(2deg);
    }
}

/* ==========================================================================
   3. SERVICES SECTION
   ========================================================================== */

.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Featured card spans 2 columns on desktop */
.featured-card {
    grid-column: span 2;
    border-color: rgba(37, 99, 235, 0.15);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    padding: calc(var(--spacing-unit) * 5);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: clip;
    display: flex;
    flex-direction: column;
}

/* Top gradient bar on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

/* Radial glow on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(37, 99, 235, 0.04),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

/* Featured card badge */
.service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
}

/* Service icon */
.service-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.05));
    border-radius: var(--border-radius-card);
    margin-bottom: calc(var(--spacing-unit) * 3);
    transition: box-shadow 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth);
    color: #2563EB;
}

.service-card:hover .service-card__icon {
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
    transform: rotate(5deg);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
}

/* Service title & description */
.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    letter-spacing: -0.02em;
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Feature list */
.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--spacing-unit) * 3);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    padding-left: calc(var(--spacing-unit) * 0.5);
    transition: transform 0.3s var(--ease-smooth);
}

.service-card__features li:hover {
    transform: translateX(4px);
}

.service-card__features li svg {
    flex-shrink: 0;
    color: #2563EB;
    width: 16px;
    height: 16px;
}

/* Price */
.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.service-card__price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.service-card__price strong {
    color: #2563EB;
    font-family: var(--font-mono);
    font-size: 1.05rem;
}

/* Learn More link */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth);
}

.service-card__link:hover {
    gap: 12px;
    color: #60A5FA;
}

.service-card__link svg {
    transition: transform 0.3s var(--ease-smooth);
}

.service-card__link:hover svg {
    transform: translateX(4px);
}

/* Card spotlight effect — mouse-tracking radial glow */
.card-spotlight {
    --spotlight-x: 50%;
    --spotlight-y: 50%;
    --spotlight-opacity: 0;
}

.card-spotlight::after {
    background: radial-gradient(
        600px circle at var(--spotlight-x) var(--spotlight-y),
        rgba(37, 99, 235, 0.06),
        transparent 40%
    ) !important;
    opacity: var(--spotlight-opacity) !important;
    transition: opacity 0.3s var(--ease-smooth) !important;
}

/* Staggered card entrance — services */
.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 80ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 160ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 240ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 320ms; }

/* Staggered card entrance — portfolio */
.portfolio-grid .portfolio-card:nth-child(1) { transition-delay: 0ms; }
.portfolio-grid .portfolio-card:nth-child(2) { transition-delay: 80ms; }
.portfolio-grid .portfolio-card:nth-child(3) { transition-delay: 160ms; }
.portfolio-grid .portfolio-card:nth-child(4) { transition-delay: 240ms; }
.portfolio-grid .portfolio-card:nth-child(5) { transition-delay: 320ms; }
.portfolio-grid .portfolio-card:nth-child(6) { transition-delay: 400ms; }

/* Staggered card entrance — process timeline */
.process-timeline .process-step:nth-child(1),
.process-timeline .process-step-card:nth-child(1) { transition-delay: 0ms; }
.process-timeline .process-step:nth-child(2),
.process-timeline .process-step-card:nth-child(2) { transition-delay: 120ms; }
.process-timeline .process-step:nth-child(3),
.process-timeline .process-step-card:nth-child(3) { transition-delay: 240ms; }
.process-timeline .process-step:nth-child(4),
.process-timeline .process-step-card:nth-child(4) { transition-delay: 360ms; }

/* ==========================================================================
   4. PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
    position: relative;
}

/* Filter Tabs */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 5);
}

.portfolio-filter-btn {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    background: transparent;
    color: var(--color-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.portfolio-filter-btn:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563EB;
}

.portfolio-filter-btn.active {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Portfolio Card */
.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    overflow: clip;
    position: relative;
    transition: transform 0.3s var(--ease-smooth),
                border-color 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth);
}

/* Animated gradient border on hover */
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius-card);
    padding: 1px;
    background: linear-gradient(
        135deg,
        #2563EB,
        #60A5FA,
        #2563EB
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    animation: gradient-shift 3s ease infinite;
    z-index: 1;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.08);
}

.portfolio-card:hover::before {
    opacity: 1;
}

/* Thumbnail area */
.portfolio-card__thumb {
    width: 100%;
    height: 200px;
    background: var(--color-surface-2);
    position: relative;
    overflow: hidden;
}

.portfolio-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-card__thumb img {
    transform: scale(1.05);
}

/* Category badge on thumbnail */
.portfolio-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
}

/* Card content */
.portfolio-card__content {
    padding: calc(var(--spacing-unit) * 3);
}

.portfolio-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em;
}

.portfolio-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Result metric */
.portfolio-card__metric {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Case study link */
.portfolio-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth);
}

.portfolio-card__link:hover {
    gap: 12px;
    color: #60A5FA;
}

/* ==========================================================================
   5. VEO 3 SECTION
   ========================================================================== */

.veo3-section {
    position: relative;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(37, 99, 235, 0.04) 20%,
        rgba(96, 165, 250, 0.02) 50%,
        rgba(37, 99, 235, 0.03) 80%,
        transparent 100%
    );
}

/* Ambient glow orbs behind VEO3 section */
.veo3-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.veo3-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.veo3-section > .container {
    position: relative;
    z-index: 1;
}

/* Feature cards grid — supports both .veo3-features-grid and .veo3-features (from PHP) */
.veo3-features-grid,
.veo3-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: calc(var(--spacing-unit) * 8);
    list-style: none;
    padding: 0;
}

.veo3-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    position: relative;
    overflow: clip;
    transition: transform 0.4s var(--ease-smooth),
                border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

/* Top accent line on hover */
.veo3-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.veo3-feature-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.08);
}

.veo3-feature-card:hover::before {
    opacity: 1;
}

.veo3-feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 2.5);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--border-radius-card);
    color: #2563EB;
    transition: transform 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.veo3-feature-card:hover .veo3-feature-card__icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.veo3-feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em;
}

.veo3-feature-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* VEO3 Hero / Headline */
.veo3-hero {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.veo3-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.2;
}

.veo3-description {
    font-size: 1.05rem;
    color: var(--color-text-dim);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* VEO3 Pricing heading */
.veo3-pricing {
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.veo3-pricing__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* 2-Tier Pricing Grid */
.veo3-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Price Card Base */
.veo3-price-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 5);
    text-align: center;
    position: relative;
    overflow: clip;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                border-color 0.4s var(--ease-smooth);
}

.veo3-price-card:hover {
    transform: translateY(-6px);
}

/* Tier-specific styles */
.veo3-price-card--basic {
    border-color: rgba(96, 165, 250, 0.15);
}

.veo3-price-card--basic:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 8px 40px rgba(96, 165, 250, 0.08);
}

/* Premium — elevated, gradient border glow */
.veo3-price-card--premium {
    border-color: rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.15),
                0 0 100px rgba(37, 99, 235, 0.05);
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.06) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(96, 165, 250, 0.03) 100%
    );
}

/* Gradient top line on premium */
.veo3-price-card--premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA, #2563EB);
    z-index: 3;
}

.veo3-price-card--premium:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 12px 60px rgba(37, 99, 235, 0.25),
                0 0 120px rgba(37, 99, 235, 0.08);
}


/* RECOMMENDED badge — pill style instead of ribbon */
.veo3-price-card__ribbon {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Card tier name */
.veo3-price-card__tier {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Price */
.veo3-price-card__price {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1;
}

.veo3-price-card__price .currency {
    font-size: 0.4em;
    vertical-align: super;
}

.veo3-price-card--basic .veo3-price-card__price .currency {
    color: #60A5FA;
}

.veo3-price-card--premium .veo3-price-card__price .currency {
    color: #2563EB;
}


.veo3-price-card__price .period {
    font-size: 0.3em;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Feature list with checkmarks */
.veo3-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--spacing-unit) * 4);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
    text-align: left;
    flex: 1;
}

.veo3-price-card__features li {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

.veo3-price-card__features li::before {
    content: '\2713';
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.veo3-price-card--basic .veo3-price-card__features li::before {
    color: #60A5FA;
}

.veo3-price-card--premium .veo3-price-card__features li::before {
    color: #2563EB;
}


/* Buy button */
.veo3-price-card__btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    transition: box-shadow 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth);
}

.veo3-price-card--basic .veo3-price-card__btn {
    background: transparent;
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.veo3-price-card--basic .veo3-price-card__btn:hover {
    background: rgba(96, 165, 250, 0.1);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
    transform: translateY(-2px);
}

.veo3-price-card--premium .veo3-price-card__btn {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.veo3-price-card--premium .veo3-price-card__btn:hover {
    background: #3B82F6;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}


/* Warranty notice */
.veo3-warranty {
    max-width: 600px;
    margin: calc(var(--spacing-unit) * 5) auto 0;
    padding: calc(var(--spacing-unit) * 2.5);
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-btn);
    text-align: center;
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.veo3-warranty svg {
    flex-shrink: 0;
    color: rgba(245, 158, 11, 0.8);
}

.veo3-warranty p {
    font-size: 0.85rem;
    color: rgba(245, 158, 11, 0.8);
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Trust items */
.veo3-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 5);
}

.veo3-trust__item {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
}

.veo3-trust__item svg {
    color: #2563EB;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.veo3-trust__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-unit);
}

.veo3-trust__desc {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.6;
}

/* VEO3 FAQ Accordion */
.veo3-faq {
    max-width: 700px;
    margin: calc(var(--spacing-unit) * 6) auto 0;
}

.veo3-faq__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.veo3-faq__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-btn);
    margin-bottom: var(--spacing-unit);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s var(--ease-smooth);
}

.veo3-faq__item[open] {
    border-color: rgba(37, 99, 235, 0.25);
}

.veo3-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    list-style: none;
}

.veo3-faq__question::-webkit-details-marker {
    display: none;
}

.veo3-faq__chevron {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.3s var(--ease-smooth);
}

.veo3-faq__item[open] .veo3-faq__chevron {
    transform: rotate(180deg);
}

.veo3-faq__answer {
    padding: 0 calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 2.5);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* VEO3 Final CTA */
.veo3-cta {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 6);
}

/* ==========================================================================
   6. PROCESS SECTION (Horizontal Timeline)
   ========================================================================== */

.process-section {
    position: relative;
}

/* Horizontal timeline container — supports BOTH old and new class names */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    position: relative;
    padding-top: calc(var(--spacing-unit) * 4);
}

/* Connecting line behind cards */
.process-timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--spacing-unit) * 4 + 40px);
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.3),
        rgba(96, 165, 250, 0.3),
        rgba(37, 99, 235, 0.3),
        transparent
    );
    z-index: 0;
}

/* Animated dots on the connecting line */
.process-timeline::after {
    content: '';
    position: absolute;
    top: calc(var(--spacing-unit) * 4 + 37px);
    left: 10%;
    width: 8px;
    height: 8px;
    background: #2563EB;
    border-radius: 50%;
    z-index: 1;
    animation: timeline-dot 4s linear infinite;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

@keyframes timeline-dot {
    0% { left: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 90%; opacity: 0; }
}

/* Process step card — matches BOTH .process-step-card AND .process-step */
.process-step-card,
.process-step {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    padding: calc(var(--spacing-unit) * 4);
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.4s var(--ease-smooth),
                border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.process-step-card:hover,
.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Top gradient line on hover */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
}

.process-step:hover::before {
    opacity: 1;
}

/* Step icon */
.process-step-card__icon,
.process-step__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 2.5);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--border-radius-card);
    color: #2563EB;
    transition: transform 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth);
}

.process-step-card:hover .process-step-card__icon,
.process-step:hover .process-step__icon {
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(96, 165, 250, 0.08));
}

/* Step number */
.process-step-card__number,
.process-step__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    opacity: 0.25;
}

/* Step dot on timeline */
.process-step__dot {
    width: 12px;
    height: 12px;
    background: #2563EB;
    border-radius: 50%;
    margin: calc(var(--spacing-unit) * 1) auto 0;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
    position: relative;
}

.process-step__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: dot-ping 2s var(--ease-smooth) infinite;
}

@keyframes dot-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Step title & description */
.process-step-card__title,
.process-step__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em;
}

.process-step-card__desc,
.process-step__desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* Timeline note / Process note */
.process-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 5);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.process-note svg {
    flex-shrink: 0;
    color: #2563EB;
}

.process-note p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin: 0;
}

/* Mobile: vertical timeline */
@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        padding-left: calc(var(--spacing-unit) * 5);
        padding-top: 0;
    }

    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: calc(var(--spacing-unit) * 2);
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(
            180deg,
            transparent,
            rgba(37, 99, 235, 0.3),
            rgba(96, 165, 250, 0.3),
            rgba(37, 99, 235, 0.3),
            transparent
        );
    }

    .process-timeline::after {
        top: 0;
        left: calc(var(--spacing-unit) * 2 - 3px);
        animation: timeline-dot-vertical 4s linear infinite;
    }

    @keyframes timeline-dot-vertical {
        0% { top: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    .process-step-card,
    .process-step {
        text-align: left;
    }

    .process-step-card__icon,
    .process-step__icon {
        margin: 0 0 calc(var(--spacing-unit) * 2);
    }

    .process-note {
        border-radius: var(--border-radius-btn);
    }
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    padding: calc(var(--spacing-unit) * 5);
    position: relative;
    transition: all 0.3s var(--ease-smooth);
    overflow: clip;
}

/* Quote mark watermark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 10rem;
    line-height: 1;
    color: rgba(37, 99, 235, 0.04);
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* Large quote mark */
.testimonial-card__quote-icon {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    line-height: 1;
    color: #2563EB;
    margin-bottom: calc(var(--spacing-unit) * 2);
    opacity: 0.5;
}

/* Quote text */
.testimonial-card__text {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Divider */
.testimonial-card__divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, transparent);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Client info */
.testimonial-card__client {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #2563EB;
    flex-shrink: 0;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.testimonial-card__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.testimonial-card__title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonial-card__company {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Star rating */
.testimonial-card__stars {
    display: flex;
    gap: 2px;
    margin-top: calc(var(--spacing-unit) * 0.5);
}

.testimonial-card__stars svg {
    width: 14px;
    height: 14px;
    fill: #2563EB;
}

/* Result metric badge */
.testimonial-card__metric {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: calc(var(--spacing-unit) * 2);
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Review platform badges */
.testimonial-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 5);
    filter: grayscale(100%);
    opacity: 0.4;
}

.testimonial-platforms img {
    height: 24px;
    width: auto;
}

/* ==========================================================================
   8. TECH STACK SECTION (Marquee)
   ========================================================================== */

.techstack-section {
    position: relative;
    overflow: hidden;
}

.techstack-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    overflow: hidden;
    padding: calc(var(--spacing-unit) * 2) 0;
}

/* Marquee row */
.techstack-marquee {
    display: flex;
    width: max-content;
    gap: calc(var(--spacing-unit) * 2);
}

/* Row 1 scrolls left */
.techstack-marquee--left {
    animation: marquee-left 40s linear infinite;
}

/* Row 2 scrolls right */
.techstack-marquee--right {
    animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause animation on hover */
.techstack-marquee-wrapper:hover .techstack-marquee {
    animation-play-state: paused;
}

/* Individual tech badge */
.techstack-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-unit);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-dim);
    white-space: nowrap;
    transition: border-color 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth);
    flex-shrink: 0;
}

.techstack-badge:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563EB;
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.1);
}

.techstack-badge svg,
.techstack-badge img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .techstack-marquee--left,
    .techstack-marquee--right {
        animation-play-state: paused;
    }
}

/* ==========================================================================
   9. WHY ME SECTION
   ========================================================================== */

.why-section {
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    padding: calc(var(--spacing-unit) * 5);
    position: relative;
    overflow: clip;
    transition: all 0.3s var(--ease-smooth);
}

/* Top gradient line on hover */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.why-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.08);
}

.why-card:hover::before {
    opacity: 1;
}

/* Large gradient number/stat */
.why-card__stat {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: calc(var(--spacing-unit) * 2);
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon */
.why-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #2563EB;
}

.why-card__icon svg {
    width: 28px;
    height: 28px;
}

/* Title & desc */
.why-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    letter-spacing: -0.02em;
}

.why-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* ==========================================================================
   10. FAQ SECTION (Accordion)
   ========================================================================== */

.faq-section {
    position: relative;
}

/* Container — supports both .faq-list and .faq-accordion */
.faq-list,
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

/* Accordion item — supports both .faq-item (div) and details.faq-item */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    transition: border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth);
}

.faq-item[open],
.faq-item.active {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.02);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

/* Question — supports .faq-question, .faq-item__question, and summary */
.faq-question,
.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: calc(var(--spacing-unit) * 2);
    transition: color 0.3s var(--ease-smooth);
    line-height: 1.4;
    list-style: none;
}

.faq-question:hover,
.faq-item__question:hover {
    color: #2563EB;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::marker {
    content: '';
}

/* Question text */
.faq-item__question-text {
    flex: 1;
}

/* Chevron — supports .faq-chevron and .faq-item__chevron */
.faq-chevron,
.faq-item__chevron {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: transform 0.4s var(--ease-smooth),
                color 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth);
}

.faq-chevron svg,
.faq-item__chevron svg {
    width: 16px;
    height: 16px;
}

.faq-item.active .faq-chevron,
.faq-item[open] .faq-item__chevron,
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
}

/* Answer — supports .faq-answer, .faq-item__answer, and .faq-answer__inner */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-smooth),
                opacity 0.4s var(--ease-smooth);
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* Smooth native details animation */
details.faq-item {
    transition: border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth);
}

details.faq-item .faq-item__answer {
    overflow: hidden;
    transition: height 0.4s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
}

.faq-answer__inner,
.faq-item__answer {
    padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    color: var(--color-text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item__answer p {
    margin: 0;
}

/* details/summary progressive enhancement */
.faq-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-card);
    transition: border-color 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.faq-details[open] {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

.faq-details summary {
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
    transition: color 0.3s var(--ease-smooth);
}

.faq-details summary::-webkit-details-marker {
    display: none;
}

.faq-details summary::marker {
    content: '';
}

.faq-details summary:hover {
    color: #2563EB;
}

.faq-details[open] summary .faq-chevron,
.faq-details[open] summary .faq-item__chevron {
    transform: rotate(180deg);
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
}

.faq-details .faq-answer__inner,
.faq-details .faq-item__answer {
    padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
}

/* ==========================================================================
   11. CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
    text-align: center;
    padding: calc(var(--spacing-unit) * 15) 0;
}

/* Content wrapper — supports both .cta-container and .cta-content */
.cta-container,
.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 8);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: clip;
}

/* Pulsing radial gradient background */
.cta-container::before,
.cta-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(37, 99, 235, 0.08) 0%,
        transparent 60%
    );
    animation: cta-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Diagonal pattern overlay */
.cta-container::after,
.cta-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(37, 99, 235, 0.015) 10px,
        rgba(37, 99, 235, 0.015) 20px
    );
    pointer-events: none;
    z-index: 0;
}

.cta-container > *,
.cta-content > * {
    position: relative;
    z-index: 1;
}

/* Heading — supports both .cta-section__heading and .cta-headline */
.cta-section__heading,
.cta-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: -0.03em;
}

/* Description — supports both .cta-section__desc and .cta-description */
.cta-section__desc,
.cta-description {
    font-size: 1.05rem;
    color: var(--color-text-dim);
    max-width: 550px;
    margin: 0 auto calc(var(--spacing-unit) * 5);
    line-height: 1.7;
}

/* Response time badge */
.cta-response {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2563EB;
    margin-top: calc(var(--spacing-unit) * 3);
}

.cta-response svg {
    flex-shrink: 0;
}

/* Availability note */
.cta-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.cta-availability svg {
    flex-shrink: 0;
}

/* CTA buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Tertiary button */
.btn--tertiary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.3s var(--ease-smooth),
                color 0.3s var(--ease-smooth),
                background 0.3s var(--ease-smooth);
    cursor: pointer;
}

.btn--tertiary:hover {
    border-color: #2563EB;
    color: var(--color-text);
    background: rgba(37, 99, 235, 0.05);
}

/* Response time badge */
.cta-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2563EB;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Scarcity note */
.cta-scarcity {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .cta-container {
        padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 3);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    background: #111111;
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4);
    overflow: clip;
}

/* Top gradient border */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.4),
        rgba(96, 165, 250, 0.3),
        transparent
    );
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

/* Brand */
.footer-brand__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand__tagline {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    max-width: 360px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.7;
}

/* Social links */
.footer-social {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
}

.footer-social__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.footer-social__link:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.footer-social__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Quick links */
.footer-links__heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    color: var(--color-text);
}

.footer-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.footer-links__list a {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth),
                padding-left 0.3s var(--ease-smooth);
}

.footer-links__list a:hover {
    color: #2563EB;
    padding-left: 4px;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: calc(var(--spacing-unit) * 3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-credits {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-credits a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-credits a:hover {
    color: #2563EB;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   13. WHATSAPP FLOATING BUTTON — Accent blue, NOT green
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 70px;
    height: 70px;
    background: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth);
    animation: whatsapp-bounce-in 0.6s var(--ease-smooth) 1s both;
}

/* Ping animation ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.4);
    animation: whatsapp-ping 2s var(--ease-smooth) infinite;
}

@keyframes whatsapp-ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes whatsapp-bounce-in {
    0% {
        transform: scale(0) translateY(40px);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 36px rgba(37, 99, 235, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Tooltip label on hover */
.whatsapp-float__label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth),
                transform 0.3s var(--ease-smooth);
    transform: translateY(-50%) translateX(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-float__label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #111111;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover .whatsapp-float__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   14. UTILITY CLASSES
   ========================================================================== */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth),
                transform 0.6s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* No-JS fallback — ensure content shows without JavaScript */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Staggered reveal */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 700ms; }
.reveal-stagger .reveal:nth-child(9) { transition-delay: 800ms; }
.reveal-stagger .reveal:nth-child(10) { transition-delay: 900ms; }

/* Shimmer effect for premium cards */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ambient float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.1); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.2), 0 0 80px rgba(37, 99, 235, 0.05); }
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(
        135deg,
        #2563EB,
        #60A5FA,
        #2563EB
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Section header utility */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 8);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-subtitle {
    color: var(--color-text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
}

/* Mid-section CTA banner */
.mid-cta {
    text-align: center;
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 4) auto;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(96, 165, 250, 0.03));
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: clip;
}

.mid-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(96, 165, 250, 0.3), transparent);
}

.mid-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(37, 99, 235, 0.04),
        transparent 60%
    );
    pointer-events: none;
}

.mid-cta__text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    letter-spacing: -0.02em;
}

.mid-cta__subtext {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Section divider line */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    margin: 0 auto calc(var(--spacing-unit) * 3);
    border-radius: 2px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-headline {
        font-size: clamp(36px, 7vw, 80px);
    }

    .hero-stats {
        gap: calc(var(--spacing-unit) * 4);
    }

    .featured-card {
        grid-column: span 1;
    }

    .veo3-pricing-grid {
        gap: 20px;
    }

    .veo3-price-card--premium {
        transform: scale(1);
    }

    .veo3-price-card--premium:hover {
        transform: translateY(-4px);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Single column grids */
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-column: span 1;
    }

    /* Font reductions */
    .hero-headline {
        font-size: clamp(32px, 10vw, 60px);
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Stats vertical */
    .hero-stats {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
    }

    .hero-stat {
        display: flex;
        align-items: center;
        gap: calc(var(--spacing-unit) * 2);
    }

    /* Hide floating shapes */
    .hero-blob {
        display: none;
    }

    /* VEO pricing */
    .veo3-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .veo3-price-card--premium {
        transform: scale(1);
        order: -1;
    }

    /* Portfolio filters scroll */
    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--spacing-unit);
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-filter-btn {
        flex-shrink: 0;
    }

    /* CTA */
    .cta-container,
    .cta-content {
        margin: 0 16px;
        padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 3);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* FAQ */
    .faq-question,
    .faq-item__question {
        font-size: 0.95rem;
        padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    }

    .faq-answer__inner,
    .faq-item__answer {
        padding: 0 calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 2.5);
    }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(28px, 12vw, 48px);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn--primary,
    .btn--secondary,
    .btn--tertiary {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-clients {
        gap: calc(var(--spacing-unit) * 2);
    }

    .client-logo__name {
        font-size: 0.65rem;
    }

    .service-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .testimonial-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .why-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .process-step-card,
    .process-step {
        padding: calc(var(--spacing-unit) * 3);
    }

    .veo3-features-grid {
        grid-template-columns: 1fr;
    }

    .veo3-price-card {
        padding: calc(var(--spacing-unit) * 4);
    }

    .section-header {
        margin-bottom: calc(var(--spacing-unit) * 5);
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-float__label {
        display: none;
    }
}

/* ==========================================================================
   16. ACCESSIBILITY
   ========================================================================== */

/* Focus styles: 2px solid white outline with 2px offset — :focus-visible only */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.portfolio-filter-btn:focus-visible,
.faq-question:focus-visible,
.whatsapp-float:focus-visible,
.service-card__link:focus-visible,
.portfolio-card__link:focus-visible,
.footer-social__link:focus-visible,
.nav-cta:focus-visible,
.btn--primary:focus-visible,
.btn--secondary:focus-visible,
.btn--tertiary:focus-visible,
.veo3-price-card__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip link visible on focus */
.skip-to-content:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* prefers-reduced-motion: disable ALL animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-blob {
        animation: none !important;
        display: none;
    }

    .hero-headline__gradient::after {
        animation: none !important;
    }

    .gradient-text {
        animation: none !important;
    }

    .techstack-marquee--left,
    .techstack-marquee--right {
        animation: none !important;
    }

    .whatsapp-float {
        animation: none !important;
    }

    .whatsapp-float::before {
        animation: none !important;
    }

    .typing-cursor {
        animation: none !important;
    }
}

/* prefers-contrast: high — stronger borders & text */
@media (prefers-contrast: high) {
    .service-card,
    .portfolio-card,
    .testimonial-card,
    .why-card,
    .process-step-card,
    .process-step,
    .faq-item,
    .veo3-price-card,
    .veo3-feature-card,
    .techstack-badge,
    .cta-container,
    .cta-content {
        border-width: 2px;
    }

    .service-card__desc,
    .portfolio-card__desc,
    .testimonial-card__text,
    .why-card__desc,
    .process-step-card__desc,
    .process-step__desc,
    .faq-answer__inner,
    .faq-item__answer,
    .cta-section__desc,
    .cta-description,
    .hero-description,
    .section-subtitle,
    .footer-brand__tagline {
        color: #ffffff;
    }

    .hero-stat__label,
    .client-logo__name,
    .footer-copyright,
    .footer-credits,
    .testimonial-card__title,
    .testimonial-card__company,
    .service-card__price {
        color: #d0d0d0;
    }
}

/* ==========================================================================
   17. PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .site-header,
    .whatsapp-float,
    .chatbot-container,
    .chatbot-toggle,
    .hero-blob,
    #particles-canvas,
    .grid-bg,
    .orb,
    .skip-to-content,
    .menu-toggle {
        display: none !important;
    }

    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .gradient-text,
    .hero-headline__gradient {
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
        background: none !important;
    }

    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card,
    .why-card,
    .process-step-card,
    .veo3-price-card,
    .veo3-feature-card,
    .cta-container {
        background: #fff !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
    }

    .service-card__title,
    .portfolio-card__title,
    .testimonial-card__name,
    .why-card__title,
    .process-step-card__title,
    .section-title,
    .cta-section__heading,
    .hero-headline {
        color: #000 !important;
    }

    .service-card__desc,
    .portfolio-card__desc,
    .testimonial-card__text,
    .why-card__desc,
    .process-step-card__desc,
    .faq-answer__inner,
    .cta-section__desc,
    .hero-description,
    .section-subtitle {
        color: #333 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .site-footer {
        background: #fff !important;
        border-top: 1px solid #ccc !important;
    }

    .footer-social {
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
