﻿/* ==========================================
   FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-green-600: #16a34a;

    --color-pink-200: #fbcfe8;
    --color-blue-200: #bfdbfe;
    --color-purple-300: #d8b4fe;
    --color-cyan-400: #22d3ee;
    --color-blue-500: #3b82f6;
    --color-purple-400: #c084fc;
    --color-pink-400: #f472b6;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-title: 'Urbanist', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray {
    color: var(--color-gray-600);
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Force Calendly Overlay on top of everything */
.calendly-overlay {
    z-index: 2147483647 !important;
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    /* Ensure header is fully above mobile menu */
    transition: var(--transition);
}

body.no-scroll {
    overflow: hidden;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-book {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-white);
    border-radius: 9999px;
    padding: 0.5rem;
    padding-right: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.header-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.book-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background-color: #000000;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.book-icon-circle svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.5px;
}

.book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.book-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.125rem;
}

.status-badge {
    color: var(--color-gray-500);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.status-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease, transform 0.3s ease;
}

/* Slightly reduce logo size when header is scrolled for a cleaner look */
.header.scrolled .logo-img {
    height: 85px;
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.menu-button {
    position: relative;
    /* Ensure it stacks above absolute/fixed children if needed */
    z-index: 998;
    /* Highest priority, above the black overlay */
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 20px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 0.6rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.menu-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 25px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important;
    background-color: #000000 !important;
    z-index: 996;
    /* Strict Override */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    text-align: center;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-link {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    color: var(--color-blue-600);
    transform: translateX(10px);
}

.hidden-mobile {
    display: flex;
}

@media (max-width: 1024px) {
    .hidden-mobile {
        display: none;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

/* Hero Shapes - Light Theme */
.pagtitle-shap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    width: 100vw;
    max-width: none;
    opacity: 1;
    transform: translate(-30%, -20%);
}

.pagtitle-shap-2 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    width: 100vw;
    max-width: none;
    opacity: 1;
    transform: translate(30%, -20%);
}


.hero-container {
    position: relative;
    padding: 8rem 0 11rem;
}

/* ==========================================
   INFINITE MARQUEE - Services Pills
   ========================================== */
/* ==========================================
   INFINITE MARQUEE (New Implementation)
   ========================================== */
.hero-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    margin-bottom: 3rem;
    z-index: 10;
    /* Edge fading mask */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-marquee-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    /* We will set animation via JS or here, but let's be explicit */
}

/* 
   Animation: Right to Left (Standard Marquee)
   Moves from 0% to -50% (showing 2nd half).
   This creates the illusion of moving Left.
*/
@keyframes scrollLeft {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-marquee-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.4rem;
    margin: 0 1rem;
    /* Spacing around items */

    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 9999px;

    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.hero-marquee-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #f9fafb;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 80rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    text-align: center;
}

.hero-title-line1 {
    display: block;
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-serif);
    animation: slideInLeft 0.8s ease 0.3s backwards;
}

.hero-title-line2 {
    display: block;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: slideInRight 0.8s ease 0.5s backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-button {
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 9999px;
    padding: 1.2rem 5rem;
    min-width: 380px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.7s backwards;
    /* Ensure it doesn't overflow on small screens */
    max-width: 100%;
}

@media (max-width: 640px) {
    .cta-button {
        min-width: auto;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Tagline text under CTA button */
.hero-tagline {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.03em;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.9s backwards;
}

/* Scoped icon size for CTA button only */
.cta-button .icon-sm {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.5px;
    transition: transform 0.3s;
}

.cta-button:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-2px);
}

.cta-button:hover .icon-sm {
    transform: rotate(45deg);
}

.partners-section {
    margin-top: 2rem;
    animation: fadeIn 1s ease 0.9s backwards;
}

/* ==========================================
   FIX HEADER/HERO OVERLAP (Mobile/Tablet)
   ========================================== */
@media (max-width: 1024px) {
    .hero-section {
        padding-top: 8rem;
        /* Increase padding to push content down below fixed header */
    }

    .category-tags {
        margin-top: 1rem;
        /* Add some space above the tags if needed */
        margin-bottom: 2rem;
    }

    /* Ensure title lines don't break awkwardly on tablet */
    .hero-title {
        font-size: 3rem;
        padding: 0 1rem;
    }

    /* Increase vertical space for marquee on mobile/tablet */
    .hero-marquee-container {
        margin-top: 2.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.partners-scroll {
    margin-top: 2rem;
    overflow: hidden;
}

.partners-scroll-content {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 2rem;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

/* ==========================================
   ICONS
   ========================================== */
.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 3rem;
    height: 3rem;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    text-align: center;
    margin-bottom: 3rem;
}

/* ==========================================
   WHO WE HELP SECTION
   ========================================== */
/* ==========================================
/* ==========================================
   WHO WE HELP SECTION (SCROLL TRIGGER)
   ========================================== */
.who-we-help-section {
    position: relative;
    padding: 4rem 0;
    /* Reduced from 8rem */
    background-color: #fafafa;
    overflow: hidden;
}

.who-sticky-wrapper {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header */
.who-header-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    /* Reduced from 5rem */
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

/* Supporting text under WHO WE HELP heading */
.who-supporting-text {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.who-pill {
    display: inline-block;
    background-color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    color: #111827;
}

.who-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-gray-900);
}

.who-title em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

/* Deck Container */
.help-deck {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 480px;
    /* Reduced from 600px to tighten up space */
}

/* Cards */
.help-card {
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 420px;
    flex-shrink: 0;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transform-origin: center bottom;
    transition: box-shadow 0.3s ease;

    /* Absolute centering for stack */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -210px;
    margin-left: -150px;
}

/* Specific stacking order */
.help-card:nth-child(1) {
    z-index: 10;
    background-color: #ffffff;
}

.help-card:nth-child(2) {
    z-index: 20;
    background-color: #f5f3ff;
}

.help-card:nth-child(3) {
    z-index: 30;
    background-color: #eff6ff;
}

.help-card:nth-child(4) {
    z-index: 40;
    background-color: #ffffff;
}

.help-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    color: #111827;
}

.help-icon-wrapper svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5px;
}

.help-card-content {
    margin-top: auto;
}

.help-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.help-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 1024px) {
    .who-we-help-section {
        height: auto;
        padding: 4rem 0;
    }

    .who-sticky-wrapper {
        position: relative;
        height: auto;
        top: 0;
        display: block;
    }

    .help-deck {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
        max-width: 100%;
    }

    .help-card {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        top: 0;
        left: 0;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================== */
/* Card fade-in animation with stagger support */
.fade-in-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section fade-in animation (for other sections) */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-gray-50);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-number {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--color-gray-600);
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-grid {
    display: grid;
    gap: 3rem;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.portfolio-item:nth-child(even) {
    direction: rtl;
}

.portfolio-item:nth-child(even)>* {
    direction: ltr;
}

@media (max-width: 768px) {
    .portfolio-item {
        grid-template-columns: 1fr;
    }

    .portfolio-item:nth-child(even) {
        direction: ltr;
    }
}

.portfolio-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.portfolio-image:hover {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-number {
    font-size: 1rem;
    color: var(--color-gray-400);
    margin-bottom: 0.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    background-color: var(--color-gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-subtitle {
    font-size: 1.5rem;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */
.why-choose-section {
    background-color: var(--color-gray-50);
}

.why-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-blue-600);
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-description {
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Added shadow per user request */
}

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #FFC107;
    font-size: 1.125rem;
}

.testimonial-review {
    color: var(--color-gray-700);
    line-height: 1.6;
}

.video-badge {
    display: inline-block;
    background-color: var(--color-blue-600);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-purple-400));
}

.cta-card {
    text-align: center;
    color: var(--color-white);
    padding: 4rem 2rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    background-color: var(--color-white);
    color: var(--color-blue-600);
    border: none;
    border-radius: 9999px;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button-large:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--color-blue-600);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.pricing-trial {
    display: inline-block;
    background-color: var(--color-blue-100);
    color: var(--color-blue-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-green-600);
    font-weight: 700;
}

.pricing-button {
    width: 100%;
    background-color: var(--color-blue-600);
    color: var(--color-white);
    border: none;
    border-radius: 9999px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-button:hover {
    background-color: var(--color-blue-700);
    transform: translateY(-2px);
}

/* ==========================================
   BLOG SECTION
   ========================================== */
.blog-section {
    padding-top: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-gray-900);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-2 {
    grid-column: span 1;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.footer-description {
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact {
    color: var(--color-gray-400);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-2xl);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: var(--color-gray-900);
    transform: translateY(-4px);
}

/* ==========================================
   UTILITIES
   ========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-container {
        padding: 3rem 0;
    }

    .partners-section {
        margin-top: 4rem;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Disable animations on first load for hero */
/* Animations removed for hero section cleanup */


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .fade-in-section,
    .fade-in-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   NEW SERVICES SECTION (LIST LAYOUT)
   ========================================== */
.services-section {
    background-color: var(--color-gray-50);
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.service-pill {
    display: inline-block;
    background-color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.service-header-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 600;
}

.service-header-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Services List Container */
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-gray-200);
}

/* Individual Row */
.service-row {
    position: relative;
    display: grid;
    grid-template-columns: 80px 250px 1fr 60px;
    align-items: center;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

/* Hover State */
.service-row:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: var(--color-white);
    border-color: transparent;
}

/* Remove hover scale from previous specific cards if conflicting */
.service-row:hover .service-num {
    color: rgba(255, 255, 255, 0.8);
}

.service-num {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-500);
    transition: color 0.3s;
}

.service-name {
    font-size: 2.5rem;
    font-weight: 500;
    font-family: var(--font-title);
    margin: 0;
    transition: transform 0.3s;
}

.service-row:hover .service-name {
    transform: translateX(10px);
}

.service-desc {
    font-size: 1rem;
    color: var(--color-gray-600);
    max-width: 400px;
    justify-self: end;
    text-align: left;
    margin-right: 2rem;
    transition: color 0.3s;
}

.service-row:hover .service-desc {
    color: rgba(255, 255, 255, 0.9);
}

.service-arrow {
    justify-self: end;
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s, color 0.3s;
    color: var(--color-gray-400);
}

.service-row:hover .service-arrow {
    color: var(--color-white);
    transform: rotate(-45deg);
}

/* Floating Hover Image */
.service-hover-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
    width: 300px;
    height: 300px;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.service-row:hover .service-hover-image {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .service-row {
        grid-template-columns: 50px 1fr 50px;
        gap: 1rem;
    }

    .service-desc {
        display: none;
    }

    .service-hover-image {
        width: 200px;
        height: 200px;
        left: 70%;
    }
}


/* ==========================================
   FIXES FOR SERVICES HOVER EFFECT
   ========================================== */

/* 1. Allow image to overlap other rows */
.service-row {
    overflow: visible !important;
    z-index: 1;
    /* Default stacking */
}

/* 2. Bring hovered row to front so image overlaps adjacent rows */
.service-row:hover {
    z-index: 100;
}

/* 3. Adjust image size, shape and positioning */
.service-hover-image {
    width: 350px !important;
    /* Larger square size (approx 3 rows height) */
    height: 350px !important;
    border-radius: 24px;
    /* Soft rounded corners */
    object-fit: cover !important;
    /* Ensure image covers the square area */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    /* Stronger shadow for pop */

    /* Ensure it centers perfectly */
    left: 50%;
    top: 50%;

    /* Start slightly scaled down */
    transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
}

/* 4. Hover state for image */
.service-row:hover .service-hover-image {
    opacity: 1;
    /* Scale up to full size on hover */
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* 5. Ensure text stays completely legible on top of the image if they overlap */
.service-num,
.service-name,
.service-desc,
.service-arrow {
    position: relative;
    z-index: 101;
    /* Text above image */
}


/* ==========================================
   FIX IMAGE PLACEMENT (PREVENT TEXT OVERLAP)
   ========================================== */

.service-hover-image {
    /* 1. Anchored Left Placement */
    /* 80px (Num) + 250px (Name) + 40px (Gap) = ~370px */
    left: 370px !important;

    /* 2. Reset Center Positioning */
    /* Remove the '-50%' from X axis since we are using fixed left */
    transform: translateY(-50%) scale(0.8) rotate(-5deg) !important;

    /* 3. Keep vertical centering */
    top: 50% !important;
    right: auto !important;
}

/* 4. Hover State Update */
.service-row:hover .service-hover-image {
    /* Only animate Scale and Rotate, keep Y centering */
    transform: translateY(-50%) scale(1) rotate(0deg) !important;
}

/* 5. Ensure Description is pushed far right to be safe */
.service-desc {
    justify-self: end !important;
    /* Force to right side */
    text-align: right !important;
    margin-right: 0 !important;
    /* Remove excessive margin if any */
    padding-left: 2rem;
    /* Buffer from image */
    max-width: 450px !important;
}

/* 6. Responsive adjustment */
@media (max-width: 1200px) {

    /* Between Desktop and Tablet, shrink image slightly to fit */
    .service-hover-image {
        width: 280px !important;
        height: 280px !important;
        left: 340px !important;
    }
}


/* ==========================================
   PORTFOLIO SECTION (STICKY REDESIGN)
   ========================================== */
.portfolio-section {
    position: relative;
    padding: 6rem 0 10rem 0;
    overflow: visible;
}

.portfolio-header-center {
    text-align: left;
    max-width: 800px;
    margin: 0 0 4rem 0;
    /* Removed margin: 0 auto and bottom margin adjusted */
}

/* Header Styling */
.portfolio-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #f3f4f6;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 2rem;
}

.portfolio-main-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    font-weight: 600;
    color: var(--color-gray-900);
}

.portfolio-main-title em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

/* Layout */
.portfolio-sticky-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 2rem;
}

/* Left Column - Scroll Content */
.portfolio-scroll-list {
    width: 45%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20vh;
}

.portfolio-scroll-item {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 100px 1fr;
    /* Side by side layout */
    gap: 2rem;
    align-content: center;
    position: relative;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    padding: 2rem 0;
}

.portfolio-scroll-item.active {
    opacity: 1;
}

/* Item Typography */
.item-number {
    font-family: var(--font-title);
    font-size: 6rem;
    /* Slightly smaller to fit side-by-side */
    line-height: 0.8;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px #d1d5db;
    grid-row: span 4;
    /* Spans down alongside text */
    padding-top: 0.5rem;
    /* Align with tags */
}

/* Wrap text content for grid placement if needed, or rely on auto-flow */
.item-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-self: start;
}

.item-tag {
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}

/* Ensure all text elements span the second column (beside the number) */
.item-tags,
.item-title,
.item-subtitle,
.item-desc {
    grid-column: 2;
    margin-bottom: 0;
    /* Reset bottom margins as grid gap handles spacing */
}

.item-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-gray-900);
    margin-top: 0.5rem;
}

.item-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-gray-900);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.item-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-600);
    max-width: 100%;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .portfolio-scroll-item {
        grid-template-columns: 1fr;
        /* Stack everything */
        gap: 1rem;
    }

    .item-number {
        grid-row: auto;
        /* Reset span */
        font-size: 5rem;
    }

    .item-tags,
    .item-title,
    .item-subtitle,
    .item-desc {
        grid-column: auto;
    }
}

/* Right Column - Sticky Image */
.portfolio-sticky-visual {
    width: 50%;
    height: 600px;
    position: sticky;
    top: calc(50% - 300px);
    /* Remove border-radius and overflow to avoid boxing */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Removed visual-card-bg and portfolio-glow as per user request to remove "big image box" */
.visual-card-bg,
.portfolio-glow {
    display: none;
}

.visual-image {
    position: relative;
    z-index: 10;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed heavy drop shadow if it contributes to "box" feel, keeping subtle */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: absolute;
    /* Padding removed to allow full size */
    padding: 0;
}

.visual-image.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Mobile Services Layout - Hidden on desktop */
.mobile-services-layout {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Hide desktop sticky layout on mobile */
    .desktop-services-layout {
        display: none !important;
    }

    /* Show mobile interleaved layout */
    .mobile-services-layout {
        display: flex;
        flex-direction: column;
        gap: 5rem;
        padding-top: 2rem;
    }

    .mobile-service-card {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 4rem;
        border-bottom: 1px solid #e5e7eb;
        align-items: center;
        text-align: center;
    }

    .mobile-service-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-service-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        gap: 0.75rem;
        /* Added gap for better spacing */
    }

    .mobile-service-text .item-number {
        font-size: 5rem;
        -webkit-text-stroke: 1.5px #e5e7eb;
        color: transparent;
        font-family: var(--font-title);
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.5rem;
        /* Reduced margin since we have gap */
        opacity: 0.8;
    }

    .mobile-service-text .item-tags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        /* Reduced margin since we have gap */
    }

    .mobile-service-text .item-tag {
        background-color: #f3f4f6;
        padding: 0.4rem 1rem;
        border-radius: 99px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #4b5563;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .mobile-service-text .item-title {
        font-size: 2.25rem;
        font-weight: 800;
        margin-top: 0;
        margin-bottom: 0;
        /* Reset margin */
        line-height: 1.1;
        color: var(--color-gray-900);
        letter-spacing: -0.02em;
    }

    .mobile-service-text .item-subtitle {
        font-family: var(--font-serif);
        font-style: italic;
        font-size: 1.75rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
        /* Reduced margin */
        color: var(--color-gray-700);
        line-height: 1.25;
    }

    .mobile-service-text .item-desc {
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--color-gray-600);
        max-width: 90%;
        margin: 0 auto;
    }

    .mobile-service-img {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        /* Increased top margin */
        padding: 0 1rem;
    }

    .mobile-service-img img {
        width: 100%;
        max-width: 450px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    }

    .portfolio-main-title {
        font-size: 3rem !important;
        /* Increased from 2.25rem */
        text-align: center;
        margin-bottom: 3rem;
        padding: 0 1rem;
        line-height: 1.1;
    }
}

/* ==========================================
   WHY CHOOSE US (3D FLIP CARDS)
   ========================================== */

/* Container Setup */
.why-choose-section .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1000px;
    /* Essential for 3D effect */
}

/* The Flip Card Container */
.why-flip-card {
    background-color: transparent;
    height: 350px;
    /* Fixed height for consistent flip */
    cursor: pointer;
}

/* The Inner Container (moves the card) */
.why-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smooth springy flip */
    transform-style: preserve-3d;
}

/* Flip on hover */
.why-flip-card:hover .why-flip-inner {
    transform: rotateY(180deg);
}

/* Common Styles for Front and Back */
.why-flip-front,
.why-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Front Face */
.why-flip-front {
    background-color: #fff;
    justify-content: space-between;
    /* Icon top, Title bottom */
}

/* Back Face */
.why-flip-back {
    background-color: #f8fafc;
    /* Slightly different for contrast */
    transform: rotateY(180deg);
    justify-content: center;
}

/* Content Styling */
.why-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #4b5563;
    /* Dark gray circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    align-self: flex-end;
    /* Top Right */
    margin-bottom: auto;
    /* Push everything else down */
}

.why-icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.why-card-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #111827;
}

.why-card-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    font-style: italic;
    /* Matches screenshot style somewhat */
    font-family: var(--font-serif);
}

/* Responsive */
@media (max-width: 1024px) {
    .why-choose-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-choose-section .grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   WHY CHOOSE US - TYPOGRAPHY & LIFT FIXES
   ========================================== */

/* Lift Animation on Hover */
.why-flip-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.why-flip-card:hover {
    transform: translateY(-12px);
    /* Lift up effect */
}

/* Front Face Title Sizing */
.why-card-title {
    font-size: 2.25rem !important;
    /* Much larger */
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin-top: auto !important;
    /* Push to bottom */
}

/* Back Face Description Sizing */
.why-card-desc {
    font-size: 1.35rem !important;
    /* Larger readable text */
    line-height: 1.5 !important;
    color: #374151 !important;
    /* Darker for contrast */
    padding: 0 1rem;
    font-weight: 500;
}

/* Icon Resizing */
.why-icon-circle {
    width: 4rem !important;
    height: 4rem !important;
    margin-bottom: 1.5rem !important;
}

.why-icon-circle i {
    width: 2rem !important;
    height: 2rem !important;
}

/* Add Shadow Depth */
.why-flip-front,
.why-flip-back {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}





/* ==========================================
   PORTFOLIO - STATIC FAN LAYOUT (Matched to Testimonials)
   ========================================== */

.portfolio-fan-container {
    height: 600px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    width: 100%;
}

.portfolio-card {
    /* Reset base styles - Same as testimonial-card */
    position: absolute;
    width: 340px;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transform-origin: center bottom;
    transition: none !important;
    /* Locked static */

    opacity: 1 !important;
    left: 50%;
    top: 50%;
    margin-left: -170px;
    /* Center horizontally */
    margin-top: -200px;
    /* Adjust vertical center */
}

/* Card 1: Left Wing */
.portfolio-card:nth-child(1) {
    transform: translate(-240px, 40px) rotate(-6deg) scale(0.9);
    z-index: 5;
    filter: blur(0px);
}

/* Card 2: CENTER STAGE */
.portfolio-card:nth-child(2) {
    transform: translate(0px, -40px) rotate(0deg) scale(1.1);
    z-index: 20;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    background: #1f2937;
    /* Dark theme for center */
    color: white;
}

.portfolio-card:nth-child(2) .portfolio-title,
.portfolio-card:nth-child(2) .portfolio-desc,
.portfolio-card:nth-child(2) .portfolio-subtitle {
    color: white !important;
}

/* Card 3: Right Wing */
.portfolio-card:nth-child(3) {
    transform: translate(240px, 40px) rotate(6deg) scale(0.9);
    z-index: 5;
}

/* Hover Lock (Static) */
.portfolio-card:hover {
    z-index: auto !important;
    transform: none !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1) !important;
}

.portfolio-card:nth-child(2):hover {
    z-index: 20 !important;
    transform: translate(0px, -40px) rotate(0deg) scale(1.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
}

/* Image styling for Portfolio context */
.portfolio-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.portfolio-meta {
    margin-top: auto;
}


/* ==========================================
   TESTIMONIALS - WIDE SPREAD LAYOUT (Redesign)
   ========================================== */

.testimonials-fan-container {
    height: 480px;
    /* Reduced from 650px to eliminate gap */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: visible;
    /* Allow cards to spill if needed */
}

/* Reset Card Styles for Spread */
.testimonial-card {
    position: absolute;
    width: 280px;
    padding: 1.75rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transform-origin: center bottom;
    transition: none !important;
    opacity: 1 !important;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -200px;
}

/* 
   SPREAD POSITIONS 
   We distribute them widely across the container
*/

/* 
   HAND OF CARDS LAYOUT (Overlapping Zig-Zag)
   Matches the uploaded reference image
*/

/* Card 1: Far Left */
.testimonial-card:nth-child(1) {
    transform: translate(-440px, 20px) rotate(-4deg);
    z-index: 1;
}

/* Card 2: Center Left - Dark Card */
.testimonial-card:nth-child(2) {
    transform: translate(-150px, -20px) rotate(3deg);
    z-index: 4;
    background: #1f2937;
    color: white;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.4);
}

.testimonial-card:nth-child(2) .testimonial-name,
.testimonial-card:nth-child(2) .testimonial-position,
.testimonial-card:nth-child(2) .testimonial-review {
    color: white !important;
}

/* Card 3: Center Right */
.testimonial-card:nth-child(3) {
    transform: translate(150px, 20px) rotate(-3deg);
    z-index: 3;
}

/* Card 4: Far Right */
.testimonial-card:nth-child(4) {
    transform: translate(440px, -20px) rotate(4deg);
    z-index: 2;
}

/* Remove hover interactions to keep it static as requested before */
/* Hover effects removed */
/* ==========================================
   shared UI ELEMENTS
   ========================================== */

.service-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    /* Fully rounded pill */
    background-color: #e5e7eb;
    /* Slightly greying color */
    border: 1px solid #d1d5db;
    /* Border */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 1rem;
}


/* ==========================================
   CTA READY SECTION (New Design)
   ========================================== */

.cta-ready-section {
    padding-top: 2rem;
    margin-top: 0;
    padding-bottom: 3rem;
    /* Reduced from 8rem */
    position: relative;
    overflow: hidden;
    background-color: var(--color-gray-100);
    z-index: 10;
}




.cta-ready-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.cta-ready-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-button-dark {
    display: inline-flex;
    align-items: center;
    background-color: #111827;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button-dark:hover {
    transform: translateY(-2px);
    background-color: black;
}

.cta-subtext {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    font-weight: 500;
}

/* VISUAL FAN */
.cta-visuals-container {
    position: absolute;
    bottom: -10px;
    /* Slight peek from bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 350px;
    display: flex;
    /* Not strictly used for positioning but good container */
    pointer-events: none;
}

.cta-visual-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.cta-left {
    width: 260px;
    height: 300px;
    background: #374151;
    /* Dark grey */
    /* Rotate Left, Move Left */
    transform: translate(calc(-50% - 160px), 40px) rotate(-8deg);
    z-index: 1;
}

.cta-right {
    width: 260px;
    height: 300px;
    background: #e5e7eb;
    /* Light grey */
    /* Rotate Right, Move Right */
    transform: translate(calc(-50% + 160px), 40px) rotate(8deg);
    z-index: 1;
}

.cta-center {
    width: 320px;
    height: 340px;
    background: white;
    z-index: 10;
    /* Center, Up front */
    transform: translate(-50%, 0px);
    overflow: hidden;
    border: 4px solid white;
    /* Optional border */
}

.cta-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-ready-section {
        padding-bottom: 200px;
    }

    .cta-visual-card {
        width: 200px;
        height: 240px;
    }

    .cta-center {
        width: 220px;
        height: 260px;
    }

    .cta-left {
        transform: translate(calc(-50% - 100px), 40px) rotate(-6deg);
    }

    .cta-right {
        transform: translate(calc(-50% + 100px), 40px) rotate(6deg);
    }
}

/* ==========================================
   INSIGHTS / BLOG GRID (Redesign)
   ========================================== */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    /* Enable 3D context */
}

.insight-card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Springy transition */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border for definition */
}

.insight-card:hover {
    transform: translateY(-12px) scale(1.02);
    /* Lift and slight scale */
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25) !important;
    /* Deep shadow on hover */
    z-index: 10;
}

.insight-card-white {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    /* Stronger base shadow */
    justify-content: space-between;
}

.insight-card-dark {
    background: #111827;
    position: relative;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    /* Stronger dark shadow */
}

/* Polaroid Styles */
.polaroid {
    position: absolute;
    width: 140px;
    height: 160px;
    background: white;
    padding: 10px 10px 35px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Pop the polaroids */
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Hover effect on Polaroids */
.insight-card:hover .polaroid {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.polaroid-inner {
    width: 100%;
    height: 100%;
    background: #eee;
    overflow: hidden;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
.insight-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
    margin-top: 1rem;
}

.insight-title-light {
    font-family: var(--font-title);
    line-height: 1.25;
}

/* Responsive */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        min-height: 400px;
    }
}

/* ==========================================
   CONTACT FORM SECTION
   ========================================== */
.contact-form-section {
    position: relative;
    background-color: var(--color-white);
    padding: 6rem 0;
    overflow: hidden;
}

.contact-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-left {
    position: relative;
    padding-right: 2rem;
}

/* Gradient Blob */
.contact-gradient-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.contact-heading {
    position: relative;
    z-index: 1;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-gray-900);
    margin-bottom: 3rem;
    font-family: var(--font-serif);
}

.contact-info-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-600);
    font-size: 1.125rem;
}

.contact-info-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-gray-400);
}

.contact-right {
    position: relative;
    padding-left: 4rem;
    border-left: 1px solid var(--color-gray-200);
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.clean-input {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--color-gray-200);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-gray-900);
    transition: border-color 0.3s;
    border-radius: 0;
}

.clean-input:focus {
    outline: none;
    border-bottom-color: var(--color-black);
}

.clean-input::placeholder {
    color: var(--color-gray-300);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-split-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--color-gray-200);
        padding-top: 4rem;
    }

    .contact-left {
        padding-right: 0;
        text-align: center;
    }

    .contact-info-list {
        align-items: center;
    }
}

/* ==========================================
   UTILITY & GLOBAL RESPONSIVE
   ========================================== */

/* Mobile Visibility Utility */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Global Responsive Fixes */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* Adjust container padding for small screens */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .section {
        padding: 3rem 0;
        /* consistent scaling */
    }

    /* Typography Scaling */
    h1,
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    h2,
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem) !important;
    }

    /* Header Adjustments */
    .header-content {
        padding: 0.75rem 0;
    }

    /* Hero Padding */
    .hero-section {
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 4rem;
    }

    /* Partners Scroll */
    .partners-section {
        margin-top: 4rem;
    }

    /* Ensure grids stack */
    .grid,
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-book {
        transform: scale(0.9);
        transform-origin: left center;
    }

    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* ==========================================
   RESPONSIVE TESTIMONIALS (Vertical Stack)
   ========================================== */
@media (max-width: 1024px) {
    .testimonials-fan-container {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .testimonial-card,
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3),
    .testimonial-card:nth-child(4) {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        transform: none !important;
        width: 100%;
        max-width: 400px;
    }

    .testimonials-stats-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center !important;
        text-align: center !important;
    }

    .stat-block,
    .members-block {
        max-width: 100% !important;
        text-align: center;
    }
}

/* ==========================================
   CASE STUDIES SECTION
   ========================================== */
.case-studies-section {
    background-color: var(--color-white);
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Header */
.case-studies-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem;
}

.case-studies-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #f3f4f6;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #374151;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.case-studies-headline {
    font-family: var(--font-title);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.case-studies-subtext {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Individual Card */
.case-study-card {
    position: relative;
    border-radius: 1.5rem;
    background: #ffffff;
    /* border: 1px solid var(--color-gray-200);  <-- Removed border to match Why Choose style */
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    /* 3D Shadow Effect from Why Choose Section */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.case-study-card:hover {
    transform: translateY(-8px);
    /* border-color: var(--color-gray-300); <-- Removed */
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

.case-study-card-inner {
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Number */
.case-study-number {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-gray-200);
    line-height: 1;
    margin-bottom: 1.25rem;
    transition: -webkit-text-stroke 0.3s ease;
}

.case-study-card:hover .case-study-number {
    -webkit-text-stroke: 1.5px var(--color-gray-400);
}

/* Card Title */
.case-study-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.25;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

/* Card Description */
.case-study-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Industry Tag */
.case-study-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #f3f4f6;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

/* Key Outcome */
.case-study-outcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.outcome-icon {
    font-weight: 800;
    font-size: 1.1rem;
    color: #10b981;
    flex-shrink: 0;
}

/* Buttons */
.case-study-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.cs-btn .icon-sm,
.cs-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.cs-btn-primary {
    background-color: #111827;
    color: #fff;
    border: none;
}

.cs-btn-primary:hover {
    transform: translateY(-2px);
    background-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cs-btn-secondary {
    background: transparent;
    color: var(--color-gray-800);
    border: 1px solid var(--color-gray-300);
}

.cs-btn-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
    transform: translateY(-2px);
}

/* ==========================================
   CASE STUDIES RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .case-study-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        justify-self: center;
    }

    .case-studies-headline {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .case-studies-section {
        padding: 5rem 0 2rem;
    }

    .case-studies-header {
        margin-bottom: 3rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-study-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .case-study-card-inner {
        padding: 2rem 1.5rem 1.75rem;
    }

    .case-study-number {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .case-study-title {
        font-size: 1.35rem;
    }

    .case-studies-headline {
        font-size: 1.75rem;
    }

    .case-studies-subtext {
        font-size: 1rem;
    }

    .case-study-buttons {
        flex-direction: column;
    }

    .cs-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Custom Portfolio Styles */
.visual-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
}

/* ==========================================
   MOBILE SCROLL REVEAL ANIMATIONS
   ========================================== */
@media (max-width: 768px) {
    .mob-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }

    .mob-reveal.mob-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delay utilities */
    .mob-delay-1 {
        transition-delay: 0.08s;
    }

    .mob-delay-2 {
        transition-delay: 0.16s;
    }

    .mob-delay-3 {
        transition-delay: 0.24s;
    }

    .mob-delay-4 {
        transition-delay: 0.32s;
    }

    .mob-delay-5 {
        transition-delay: 0.40s;
    }

    .mob-delay-6 {
        transition-delay: 0.48s;
    }

    /* Ensure help-cards can still animate on mobile
       (override the opacity: 1 !important and transform: none !important from responsive rule) */
    .help-card.mob-reveal {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }

    .help-card.mob-reveal.mob-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ==========================================
   HERO VIDEO BACKGROUND
   ========================================== */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* ==========================================
   MOBILE SERVICES IMAGE FIX
   ========================================== */
@media (max-width: 768px) {
    .service-hover-image {
        /* Reset positioning to center */
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;

        /* Center transform */
        transform: translate(-50%, -50%) scale(0.8) !important;

        /* Adjust size to fit mobile screen */
        width: 280px !important;
        height: 280px !important;

        /* Ensure it stays above content when visible */
        z-index: 105 !important;
    }

    /* Override hover state to keep it centered */
    .service-row:hover .service-hover-image {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

.w-background-video {
    position: relative;
    overflow: hidden;
    height: 100%;
    color: white;
}

.w-background-video>video {
    background-size: cover;
    background-position: 50% 50%;
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    right: -100%;
    bottom: -100%;
    top: -100%;
    left: -100%;
    object-fit: cover;
    z-index: -100;
}

/* ==========================================
   GAP REDUCTION (Testimonials -> Case Studies)
   ========================================== */
.testimonials-section {
    padding-bottom: 2rem !important;
}

.case-studies-section {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding-bottom: 1.5rem !important;
    }

    .case-studies-section {
        padding-top: 1.5rem !important;
    }
}

/* ==========================================
   MODAL STYLES (Request Access)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* Premium blur effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Subtle border */
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--color-gray-100);
    color: var(--color-black);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

/* Form Styles Override/Refinement for Modal */
.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.modal-form .required {
    color: #ef4444;
    margin-left: 2px;
}

.modal-form .clean-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--color-gray-900);
    background-color: #f9fafb;
    transition: all 0.2s;
}

.modal-form .clean-input:focus {
    outline: none;
    border-color: var(--color-gray-900);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.modal-form .select-wrapper {
    position: relative;
}

.modal-form .select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-gray-500);
}

.modal-form .clean-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Success State Styles */
.modal-success {
    text-align: center;
    padding: 1rem 0;
    animation: fadeIn 0.4s ease;
}

.success-icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    /* Light green */
    color: #16a34a;
    /* Green 600 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 1.25rem;
        max-height: 90vh;
        /* Ensure it fits on small screens vertically */
        overflow-y: auto;
        /* Scrollable if too tall on mobile */
    }

    .modal-title {
        font-size: 1.5rem;
    }
}