/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */
:root {
    /* Colors */
    --c-primary: #2563EB;
    --c-primary-hover: #1D4ED8;
    --c-accent: #E5E7EB;
    --c-dark: #111827;
    --c-gray: #6B7280;
    --c-border: #E5E7EB;
    --c-light: #F8FAFC;
    --c-bg: #FFFFFF;
    --c-success: #16A34A;

    /* Typography */
    --f-heading: 'Manrope', sans-serif;
    --f-body: 'Inter', sans-serif;
    --f-number: 'Space Grotesk', sans-serif;

    /* Font Sizes */
    --fs-hero: clamp(3rem, 5vw + 1rem, 4.5rem);
    /* ~72px max */
    --fs-h2: clamp(2rem, 3vw + 1rem, 3.25rem);
    /* ~52px max */
    --fs-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    /* ~28px max */
    --fs-body: 1.125rem;
    /* 18px */
    --fs-small: 1rem;
    /* 16px */
    --fs-footer: 0.9375rem;
    /* 15px */
    --fs-btn: 1.0625rem;
    /* 17px */

    /* Spacing & Layout */
    --container-width: 1400px;
    --content-width: 1280px;
    --section-spacing: clamp(5rem, 10vw, 8rem);

    /* Borders & Shadows */
    --radius-card: 32px;
    --radius-pill: 100px;
    --shadow-subtle: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Removed scroll-behavior: smooth; as it conflicts with Lenis JS smooth scrolling causing glitches */
    scroll-padding-top: 90px;
}

body {
    font-family: var(--f-body);
    font-size: var(--fs-body);
    color: var(--c-gray);
    background-color: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-heading);
    color: var(--c-dark);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-weight: 800;
    font-size: var(--fs-hero);
    margin-bottom: 1.5rem;
}

h2 {
    font-weight: 800;
    font-size: var(--fs-h2);
    margin-bottom: 1.5rem;
}

h3 {
    font-weight: 700;
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.content-max {
    max-width: var(--content-width);
    margin: 0 auto;
}

section {
    padding: var(--section-spacing) 0;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-grid {
    display: grid;
    gap: 24px;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: var(--fs-btn);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-align: center;
    gap: 12px;
}

.btn-primary {
    background-color: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #fff;
    color: var(--c-primary);
    border: 1px solid var(--c-border);
}

.btn-secondary:hover {
    background-color: var(--c-light);
    transform: translateY(-2px);
}

/* Tags/Badges */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-dark);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.pill-sm {
    padding: 4px 16px;
    font-size: 0.85rem;
}

.pill-dark {
    background: var(--c-dark);
    color: #fff;
    border-color: var(--c-dark);
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 40px;
    transition: var(--transition-smooth);
}

.card-dark {
    background: var(--c-dark);
    color: #fff;
    border-color: var(--c-dark);
}

.card-dark h3,
.card-dark h2,
.card-dark p,
.card-dark h4 {
    color: #fff;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--c-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    margin-bottom: 24px;
}

.card-dark .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    z-index: 1000;
    pointer-events: auto;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.navbar.scrolled {
    top: 18px;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    border-radius: 0;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        gap 0.35s ease;
}

.navbar.scrolled .navbar-container {
    max-width: 580px;
    height: 58px;
    padding: 5px 8px 5px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(229, 231, 235, 0.65);
}

.navbar.scrolled .navbar-container:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(229, 231, 235, 0.8);
}

.logo {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 34px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-links {
    gap: 2px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--c-gray);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.navbar.scrolled .nav-links a {
    font-size: 0.85rem;
    padding: 6px 11px;
}

.nav-links a:hover {
    color: var(--c-primary);
    background-color: var(--c-light);
}

.navbar.scrolled .nav-links a:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-actions .btn {
    transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background-color var(--transition-smooth),
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth);
    white-space: nowrap;
}

.navbar.scrolled .nav-actions .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-title-area {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Hero Animated Headline Rotator (Gen-Z)
   ========================================================================== */
.hero-rotator-headline {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    color: var(--c-dark);
}

.hero-rotator-track {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.hero-slide {
    grid-area: 1 / 1;
    display: block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(38px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
    visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0px) scale(1);
    pointer-events: auto;
    user-select: auto;
    visibility: visible;
    z-index: 2;
}

.hero-slide.exit {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-38px) scale(0.98);
    pointer-events: none;
    visibility: visible;
    z-index: 1;
}

.hero-slide .text-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, #6366f1 50%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientShift 6s ease infinite;
    display: inline;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-stats-pill {
    position: absolute;
    top: -20px;
    left: 40px;
    background: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--c-dark);
    z-index: 10;
}

.stat-number {
    font-family: var(--f-number);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-dark);
    line-height: 1.2;
}

.stat-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.hero-avatars {
    display: flex;
}

.hero-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
}

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

.hero-content {
    grid-column: span 7;
    padding-right: 2rem;
}

.hero-visual {
    grid-column: 8 / -1;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-card);
    border-top-right-radius: 120px;
    overflow: hidden;
    height: 600px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bottom-pill {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ==========================================================================
   Hero Glass Circle Custom Cursor (Hero Section Only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {

    .hero,
    .hero * {
        cursor: none !important;
    }

    /* Guarantee that navbar retains normal pointer cursors regardless of position */
    .navbar,
    .navbar * {
        cursor: auto !important;
    }

    .navbar a,
    .navbar button,
    .navbar .btn,
    .navbar .logo {
        cursor: pointer !important;
    }
}

.hero-magnifier {
    position: fixed;
    top: -120px;
    left: -120px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 990;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;

    /* Sleek Glass Effect */
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 60%, rgba(37, 99, 235, 0.06) 100%);
    backdrop-filter: blur(2.5px) saturate(180%) contrast(108%) brightness(106%);
    -webkit-backdrop-filter: blur(2.5px) saturate(180%) contrast(108%) brightness(106%);
    border: 1.8px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(37, 99, 235, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.hero-magnifier.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Subtle glass specular reflection along upper curve */
.hero-magnifier::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    width: 48%;
    height: 24%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-30deg);
    pointer-events: none;
}

/* Hovering interactive items in hero (buttons, pills, avatars, links) */
.hero-magnifier.hover-interactive {
    transform: translate(-50%, -50%) scale(1.35);
    border-color: var(--c-primary);
    background: radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.08) 60%, rgba(255, 255, 255, 0.28) 100%);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.3),
        0 0 0 1.5px var(--c-primary),
        inset 0 0 14px rgba(37, 99, 235, 0.25);
}

/* Hide custom magnifier cursor on touch/mobile devices */
@media (hover: none),
(pointer: coarse),
(max-width: 1024px) {
    .hero-magnifier {
        display: none !important;
    }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    align-items: center;
}

.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    font-size: 1.5rem;
    color: var(--c-gray);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.01em;
    user-select: none;
    transition: color 0.25s ease;
    cursor: default;
}

.marquee-content span:hover {
    color: var(--c-black);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   About (Bento Layout)
   ========================================================================== */
.about-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}

.about-text {
    grid-column: span 6;
    grid-row: span 1;
    padding-right: 2rem;
}

.about-img-1 {
    grid-column: span 6;
    grid-row: span 1;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 300px;
}

.about-img-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stat-card {
    grid-column: span 7;
    background: var(--c-dark);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-stat-card h2 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.about-stat-card p {
    color: #a1a1aa;
    font-size: 1.25rem;
}

.stat-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-img-2 {
    grid-column: span 5;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Process (Sticky Notes)
   ========================================================================== */
.process {
    background: var(--c-light);
}

.process-notes {
    position: relative;
    margin-top: 4rem;
    height: 600px;
}

.note-card {
    position: absolute;
    width: 320px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-subtle);
    z-index: 2;
    cursor: pointer;
    transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When a card is hovered: blur all other cards */
.process-notes:has(.note-card:hover) .note-card,
.process-notes.has-card-hovered .note-card {
    filter: blur(5px) !important;
    opacity: 0.35 !important;
    transform: scale(0.97) !important;
}

/* The specifically hovered card stays crystal clear, sharp and elevated */
.process-notes:has(.note-card:hover) .note-card:hover,
.process-notes.has-card-hovered .note-card.is-hovered,
.note-card:hover {
    filter: blur(0px) !important;
    opacity: 1 !important;
    transform: translateY(-10px) scale(1.04) !important;
    z-index: 50 !important;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.15), 0 0 0 1.5px var(--c-primary) !important;
    border-color: var(--c-primary) !important;
}

/* Fade connecting line slightly when focusing on a card */
.process-notes:has(.note-card:hover) .process-line,
.process-notes.has-card-hovered .process-line {
    opacity: 0.25;
    transition: opacity 0.35s ease;
}

.note-pin {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.note-card:hover .note-pin,
.note-card.is-hovered .note-pin {
    background: var(--c-primary);
}

.note-number {
    font-family: var(--f-number);
    font-size: 1.25rem;
    color: var(--c-gray);
    margin-bottom: 8px;
    margin-top: 8px;
}

.note-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.note-card p {
    font-size: 0.95rem;
}

.note-1 {
    top: 0;
    left: 10%;
    transform: rotate(-3deg);
}

.note-2 {
    top: 120px;
    left: 35%;
    transform: rotate(2deg);
    z-index: 3;
}

.note-3 {
    top: 250px;
    left: 60%;
    transform: rotate(-1deg);
    z-index: 4;
}

.note-4 {
    top: 380px;
    left: 80%;
    transform: rotate(4deg);
    z-index: 5;
}

.process-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Services (Dark)
   ========================================================================== */
.services-dark {
    background: var(--c-dark);
    color: #fff;
}

.services-dark h2 {
    color: #fff;
}

.services-dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 4rem;
}

.service-dark-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.service-dark-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.service-dark-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.service-dark-card h3 {
    color: #fff;
    font-size: 1.25rem;
}

.service-dark-card p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 4rem;
}

.portfolio-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-hover);
}

.portfolio-img-wrap {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-card h3 {
    margin-bottom: 4px;
}

.portfolio-card p {
    color: var(--c-gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    background: var(--c-light);
}

.review-slider {
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.review-slide {
    display: none;
    animation: reviewFadeIn 0.5s ease;
}

.review-slide.active {
    display: block;
}

@keyframes reviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.review-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: 40px;
}

.review-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--c-dark);
    font-weight: 500;
    margin-bottom: 28px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 700;
    color: var(--c-dark);
    font-size: 0.95rem;
}

.review-role {
    color: var(--c-gray);
    font-size: 0.85rem;
    margin-top: 2px;
}

.review-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.review-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-arrow:hover {
    background: var(--c-dark);
    color: #fff;
    border-color: var(--c-dark);
}

.review-dots {
    display: flex;
    gap: 8px;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-dark);
    opacity: 0.2;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.review-dot.active {
    opacity: 1;
    background: var(--c-primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .review-card {
        padding: 28px 20px;
    }

    .review-text {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   Footer CTA Block
   ========================================================================== */
.cta-block-section {
    padding: 4rem 24px;
    background: #fff;
}

.cta-block {
    background: var(--c-dark);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cta-block h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-block p {
    color: #a1a1aa;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Minimal Gen-Z Footer
   ========================================================================== */
.footer {
    background: #ffffff;
    padding: 80px 0 32px;
    border-top: 1px solid var(--c-border);
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

/* Brand Side */
.footer-brand-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 44px;
    width: auto;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.footer-tagline {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--c-dark);
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bio {
    color: var(--c-gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
}

/* Contact Side */
.footer-contact-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-gray);
    margin-bottom: 4px;
}

.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    padding: 12px 18px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.footer-contact-pill:hover {
    background: #ffffff;
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.12);
}

.footer-contact-pill .pill-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-contact-pill .pill-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-contact-pill:hover .pill-icon {
    background: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
}

.footer-contact-pill .pill-info {
    display: flex;
    flex-direction: column;
}

.footer-contact-pill .pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-gray);
}

.footer-contact-pill .pill-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-dark);
}

.footer-contact-pill .pill-action {
    color: var(--c-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-contact-pill:hover .pill-action {
    color: var(--c-primary);
    transform: translate(2px, -2px);
}

/* Copy tooltip on email */
.copy-tooltip {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* Social pills */
.footer-social-section {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-gray);
}

.footer-social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--c-border);
    color: var(--c-dark);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-pill i {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.social-pill:hover {
    background: var(--c-dark);
    color: #ffffff;
    border-color: var(--c-dark);
    transform: translateY(-2px);
}

.social-pill:hover i {
    transform: scale(1.1);
}

/* Massive Gen-Z Typographic statement "Social Pediaz." */
.footer-massive-text {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: clamp(3.5rem, 13vw, 13rem);
    line-height: 0.95;
    text-align: center;
    letter-spacing: -0.05em;
    padding: 40px 0 24px 0;
    width: 100%;
    user-select: none;
    cursor: default;
    border-top: 1px solid rgba(229, 231, 235, 0.7);
}

.footer-massive-text span {
    color: var(--c-dark);
    transition: color 0.3s ease;
}

.footer-massive-text span.text-primary,
.footer-massive-text .text-primary {
    color: var(--c-primary) !important;
}

.footer-massive-text:hover span:not(.text-primary) {
    color: #000000;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--c-border);
    color: var(--c-gray);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-weight: 500;
}

.footer-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    font-family: var(--f-number);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-dark);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-link {
    color: var(--c-gray);
    transition: color 0.2s ease;
    font-weight: 500;
}

.legal-link:hover {
    color: var(--c-dark);
    text-decoration: underline;
}

.legal-dot {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    margin-left: 8px;
}

.back-to-top i {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.back-to-top:hover {
    background: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* ==========================================================================
   Animations & GSAP
   ========================================================================== */
.gsap-reveal-up {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--c-dark);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 1024px) {

    .grid-12,
    .about-bento {
        display: flex;
        flex-direction: column;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
        padding: 0;
    }

    .hero-stats-pill {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 24px;
    }

    .services-dark-grid,
    .portfolio-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-notes {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .note-card {
        position: relative;
        width: 100%;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navbar */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-actions .btn {
        display: none;
    }

    .navbar-container {
        height: 72px;
    }

    .navbar.scrolled {
        top: 12px;
    }

    .navbar.scrolled .navbar-container {
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
        height: 56px;
        padding: 0 16px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08),
            inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
            inset 0 0 0 1px rgba(229, 231, 235, 0.65);
    }

    .navbar.scrolled .logo img {
        height: 32px;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 24px;
        z-index: 999;
        pointer-events: auto;
    }

    .navbar.scrolled .nav-links {
        top: 72px;
        height: calc(100vh - 72px);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title-area h1,
    .hero-rotator-headline {
        font-size: clamp(2.3rem, 7.5vw, 3rem);
        line-height: 1.15;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-dark-grid,
    .portfolio-bento {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 40px;
    }

    .footer-massive-text {
        font-size: clamp(2.8rem, 13vw, 5rem);
        padding: 24px 0 16px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
        align-items: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .testimonial-large {
        padding: 40px 24px;
    }

    .cta-block {
        padding: 40px 24px;
    }
}

/* ==========================================================================
   Contact Modal
   ========================================================================== */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px;
}

.contact-modal-overlay.active .contact-modal {
    transform: translateY(0);
}

.contact-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--c-dark);
}

.contact-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-gray);
    display: flex;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.contact-modal-close:hover {
    background: #f3f4f6;
    color: var(--c-dark);
}

.contact-modal-body {
    padding: 24px;
}