:root {
    --navy-bg: #0f172a;
    --navy-dark: #020617;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--slate-100);
    color: var(--slate-800);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section (Dark Top) --- */
.hero-background {
    background-color: var(--navy-bg);
    color: var(--white);
    padding-bottom: 8rem;
    /* Space for overlap */
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

/* Abstract background blobs */
.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Navbar --- */
.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
}

.highlight {
    color: var(--blue-500);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--slate-200);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--blue-500);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* --- Hero Content --- */
.hero-header {
    padding: 4rem 0 6rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pill-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-500);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: slideInFromLeft 0.8s ease-out 0.4s both;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--slate-200);
    max-width: 90%;
    line-height: 1.6;
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D space */
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

.circle-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-50px);
    /* Push back in 3D */
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-person {
    position: relative;
    z-index: 2;
    max-height: 450px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s ease-out;
    /* Smooth but fast for cursor following */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Metric Badges */
.metric-badge {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: transform 0.2s ease-out;
    /* Slightly delayed for parallax depth */
    /* Removed generic float animation to let JS control movement, or mix both later */
}

.metric-badge.badge-1 {
    top: 15%;
    right: -20px;
    transform: translateZ(30px);
}

.metric-badge.badge-2 {
    bottom: 10%;
    left: -30px;
    transform: translateZ(40px);
}

/* New Sales Tactic Badge */
.metric-badge.badge-sales-tactic {
    top: 55%;
    right: -60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(50px);
}

.badge-sales-tactic .metric-text-row {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.badge-sales-tactic strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.badge-sales-tactic span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Icon pulse effect */
.icon-pulse {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: icon-pulse-anim 2s infinite;
}

@keyframes icon-pulse-anim {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-600);
    line-height: 1;
    font-family: var(--font-heading);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* --- Main Floating Content --- */
.main-content {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    margin-top: -100px;
    /* Overlap Effect */
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
    padding: 4rem;
    animation: slideUp 0.8s ease-out 0.8s both;
    transition: box-shadow 0.3s ease;
}

.main-content:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center h2 {
    color: var(--navy-bg);
    font-size: 2rem;
}

.subtitle-text {
    color: var(--slate-600);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Section CTAs */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid var(--slate-300);
    color: var(--slate-800);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-secondary-outline:hover {
    background: var(--slate-800);
    color: var(--white);
    border-color: var(--slate-800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-inline {
    display: inline-block;
    background: var(--blue-600);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary-inline:hover {
    background: var(--blue-500);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary-inline i,
.btn-secondary-outline i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary-inline:hover i {
    transform: translateX(5px);
}

.btn-secondary-outline:hover i {
    transform: translateY(3px);
}

/* Pain Points */
.pain-points-section {
    padding: 2rem 0;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pain-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pain-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.pain-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pain-card h4 {
    color: var(--slate-800);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.pain-card p {
    color: var(--slate-600);
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--slate-50);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--slate-100);
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--white);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--blue-500);
}

.service-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
    background: var(--blue-500);
    box-shadow: var(--shadow-glow);
    transform: rotate(360deg) scale(1.1);
}

.icon-circle i {
    font-size: 1.5rem;
    color: var(--blue-600);
    transition: color 0.3s ease;
}

.service-card:hover .icon-circle i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--navy-bg);
}

.service-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--slate-200);
    margin: 4rem 0;
}

/* Authority Section */
.authority-section {
    padding: 2rem 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.authority-card {
    background: var(--slate-50);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--slate-200);
    opacity: 0;
    transform: scale(0.95);
}

.authority-card.reveal {
    opacity: 1;
    transform: scale(1);
}

.authority-card:hover {
    background: var(--white);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-500);
}

.auth-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--blue-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.authority-card h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--navy-bg);
    font-size: 1.2rem;
}

.authority-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Cases */
.cases-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--navy-bg);
}

/* Methodology Timeline */
.methodology-section {
    padding: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-item.reveal {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -54px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--blue-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.timeline-content {
    background: var(--slate-50);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--blue-500);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: var(--white);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--navy-bg);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Capabilities Grid */
.capabilities-section {
    padding: 2rem 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.capability-card {
    background: linear-gradient(135deg, var(--slate-50), var(--white));
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.capability-card.reveal {
    opacity: 1;
    transform: scale(1);
}

.capability-card:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-color: var(--blue-600);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.3);
}

.cap-icon {
    font-size: 2.5rem;
    color: var(--blue-500);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.capability-card:hover .cap-icon {
    color: var(--white);
    transform: scale(1.2);
}

.capability-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-bg);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.capability-card:hover h5 {
    color: var(--white);
}

.capability-card p {
    font-size: 0.85rem;
    color: var(--slate-600);
    transition: color 0.3s ease;
}

.capability-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-section {
    padding: 2rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--blue-500);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--slate-50);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--blue-500);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--slate-50);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: var(--slate-700);
    line-height: 1.7;
    margin: 0;
}

/* Brands Section - Modern Infinite Marquee */
.brands-section {
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg,
            rgba(248, 250, 252, 0) 0%,
            rgba(241, 245, 249, 0.4) 30%,
            rgba(241, 245, 249, 0.6) 50%,
            rgba(241, 245, 249, 0.4) 70%,
            rgba(248, 250, 252, 0) 100%);
}

/* Fade edges for seamless infinite effect */
.brands-section::before,
.brands-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 10;
    pointer-events: none;
}

.brands-section::before {
    left: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.brands-section::after {
    right: 0;
    background: linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.brands-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 0;
}

.marquee-row {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
}

.marquee-content {
    display: flex;
    gap: 3.5rem;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

/* Different speeds for visual interest */
.marquee-slow .marquee-content {
    animation-duration: 60s;
}

.marquee-medium .marquee-content {
    animation-duration: 45s;
}

.marquee-fast .marquee-content {
    animation-duration: 35s;
}

/* Reverse direction for middle row */
.marquee-reverse .marquee-content {
    animation-direction: reverse;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-logo-item {
    flex-shrink: 0;
    width: 210px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-logo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(147, 197, 253, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.brand-logo-item:hover::before {
    opacity: 1;
}

.brand-logo-item img {
    min-width: 90px;
    max-width: 150px;
    min-height: 45px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1) saturate(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.brand-logo-item:hover {
    transform: perspective(1200px) rotateX(-3deg) rotateY(5deg) translateY(-10px) scale(1.06);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 8px 16px rgba(37, 99, 235, 0.12),
        0 16px 32px rgba(37, 99, 235, 0.08),
        0 24px 48px rgba(37, 99, 235, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.brand-logo-item:hover img {
    filter: brightness(1) contrast(1.15) saturate(1.15) drop-shadow(0 4px 16px rgba(37, 99, 235, 0.3));
    transform: scale(1.08);
}

.brand-logo-item:active {
    transform: perspective(1200px) rotateX(-1deg) rotateY(2deg) translateY(-5px) scale(1.03);
    transition: all 0.15s ease;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .brand-logo-item {
        width: 160px;
        height: 100px;
        padding: 1rem;
    }

    .marquee-content {
        gap: 2rem;
    }

    .brands-marquee-container {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .brand-logo-item {
        width: 140px;
        height: 90px;
        padding: 0.8rem;
    }

    .brand-logo-item img {
        max-width: 100px;
        max-height: 50px;
    }

    .marquee-content {
        gap: 1.5rem;
    }
}

.brand-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem;
    background: var(--slate-50);
    border-radius: 12px;
    border: 2px dashed var(--slate-300);
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.brand-fallback:hover {
    border-color: var(--blue-500);
    background: var(--white);
    transform: scale(1.05);
}

.brand-fallback i {
    font-size: 2.5rem;
    color: var(--blue-500);
    transition: all 0.3s ease;
}

.brand-fallback:hover i {
    transform: scale(1.2);
}

.brand-fallback span {
    font-size: 0.9rem;
    color: var(--slate-600);
    font-weight: 600;
    text-align: center;
}

.brands-note {
    display: none;
}

.brands-note code {
    background: var(--slate-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--blue-600);
}

/* Case Study Row */

.case-study-row {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.case-visual {
    flex: 1.5;
    opacity: 0;
    transform: translateX(-30px);
}

.case-visual.reveal {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.dashboard-mockup {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    height: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-mockup:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15);
}

.mock-header {
    height: 30px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.mock-body {
    flex: 1;
    display: flex;
}

.mock-sidebar {
    width: 60px;
    background: var(--slate-50);
    border-right: 1px solid var(--slate-200);
}

.mock-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.chart-line {
    height: 40%;
    background: linear-gradient(90deg, var(--slate-100), var(--blue-500));
    border-radius: 4px;
    width: 80%;
}

.chart-bars {
    height: 30%;
    display: flex;
    gap: 10px;
}

.chart-bars::before,
.chart-bars::after {
    content: '';
    width: 20px;
    background: var(--slate-200);
    height: 100%;
    border-radius: 4px;
}

.case-text {
    flex: 1;
    display: grid;
    gap: 2rem;
    opacity: 0;
    transform: translateX(30px);
}

.case-text.reveal {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease 0.2s;
}

.stat-box {
    padding-left: 1.5rem;
    border-left: 4px solid var(--blue-500);
    transition: all 0.3s ease;
}

.stat-box:hover {
    padding-left: 2rem;
    border-left-width: 6px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-bg);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--navy-bg), var(--blue-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}

.stat-box p {
    color: var(--slate-600);
    font-size: 0.9rem;
}

/* CTA Banner inside card */
.cta-banner {
    background: var(--navy-bg);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: var(--white);
    margin: 4rem 0;
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.3), transparent 40%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
}

.cta-banner.reveal {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-dark {
    background: var(--white);
    color: var(--navy-bg);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-dark:hover::before {
    width: 300px;
    height: 300px;
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Bio Footer Split */
.bio-footer-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.bio-mini {
    max-width: 60%;
}

.bio-mini h4 {
    color: var(--navy-bg);
    margin-bottom: 0.5rem;
}

.bio-mini p {
    color: var(--slate-600);
    font-style: italic;
}

.contact-details-mini {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--slate-600);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--blue-500);
}

/* Main Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--slate-600);
    font-size: 0.9rem;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
    animation: fabAppear 0.5s ease forwards;
}

.fab-btn.visible {
    opacity: 1;
    transform: scale(1);
}

.fab-whatsapp {
    background: #25D366;
    color: white;
    animation-delay: 0.2s;
}

.fab-whatsapp:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.fab-scroll-top {
    background: var(--slate-800);
    color: white;
    animation-delay: 0.3s;
    opacity: 0;
    pointer-events: none;
}

.fab-scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.fab-scroll-top:hover {
    background: var(--blue-600);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@keyframes fabAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        margin-top: 2rem;
    }

    .main-content {
        margin-top: -50px;
        padding: 2rem;
    }

    .pain-grid,
    .services-grid,
    .authority-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -34px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .case-study-row {
        flex-direction: column;
    }

    .bio-footer-split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .bio-mini {
        max-width: 100%;
    }
}

/* ========================================
   Success Cases - Before/After Section
   ======================================== */

.success-cases-section {
    padding: 5rem 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(248, 250, 252, 1) 50%,
            rgba(255, 255, 255, 1) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

/* Case Card */
.case-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-200);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.case-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.12),
        0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: var(--blue-500);
}

/* Case Header */
.case-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--slate-200);
}

.case-header i {
    font-size: 2rem;
    color: var(--blue-600);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.2));
    border-radius: 12px;
}

.case-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-bg);
    margin: 0;
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* State Labels */
.state-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.before-state .state-label {
    color: #dc2626;
}

.before-state .state-label i {
    color: #dc2626;
    font-size: 1.1rem;
}

.after-state .state-label {
    color: #16a34a;
}

.after-state .state-label i {
    color: #16a34a;
    font-size: 1.1rem;
}

/* Challenge/Result Lists */
.challenge-list,
.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-list li,
.result-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.challenge-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.result-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.before-state {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(248, 113, 113, 0.08));
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.after-state {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(134, 239, 172, 0.08));
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Transformation Arrow */
.transformation-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.transformation-arrow i {
    font-size: 2rem;
    color: var(--blue-600);
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Impact Metrics */
.impact-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--slate-200);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--slate-50), var(--white));
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

.metric:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-color: var(--blue-600);
    transform: translateY(-4px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-600);
    transition: color 0.3s ease;
}

.metric:hover .metric-value {
    color: var(--white);
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.metric:hover .metric-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .transformation-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .case-card {
        padding: 2rem 1.5rem;
    }

    .impact-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .case-header h3 {
        font-size: 1.1rem;
    }

    .challenge-list li,
    .result-list li {
        font-size: 0.85rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}