/* assets/css/main.css */

:root {
    /* Premium Color Palette */
    --color-primary: #0F172A;
    /* Slate 900 */
    --color-primary-light: #1E293B;
    /* Slate 800 */
    --color-primary-dark: #020617;
    /* Slate 950 */

    --color-secondary: #94A3B8;
    /* Slate 400 */
    --color-secondary-light: #CBD5E1;
    /* Slate 300 */

    --color-accent: #38BDF8;
    /* Sky 400 */
    --color-accent-glow: rgba(56, 189, 248, 0.5);
    --color-accent-dim: #0EA5E9;
    /* Sky 500 */

    --color-bg-body: #F8FAFC;
    --color-bg-light: #F1F5F9;
    --color-bg-white: #FFFFFF;
    --color-bg-glass: rgba(255, 255, 255, 0.7);
    --color-bg-dark-glass: rgba(15, 23, 42, 0.8);

    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-text-light: #F1F5F9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 64px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--color-accent-glow);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 64px;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0F172A;
    /* Dark Blue Slate 900 */
    z-index: 99999;
    /* Highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#splash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: splashContentIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Mobile Optimization */
@media (max-width: 1024px) {
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }

    /* Globe matches width */
    .globe-wrapper {
        height: 400px;
    }

    .engine-panel {
        padding-top: 0;
        order: 2;
        /* Keep in middle: 1. Depts, 2. Engine, 3. Results */
        z-index: 5;
        /* Ensure on top of cards to avoid 'underneath' look */
    }

    .dept-panel {
        order: 1;
        z-index: 1;
    }

    .results-panel {
        order: 3;
        z-index: 1;
    }
}

@media (max-width: 640px) {
    .globe-wrapper {
        height: 400px;
        /* Increased to fit text (340px+) */
    }

    .dept-grid {
        gap: 1rem;
    }

    .dept-card {
        padding: 0.75rem;
    }

    .mini-chart-container {
        height: 50px;
    }
}



.splash-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.splash-subtitle {
    font-size: 1.25rem;
    color: #94A3B8;
    /* Slate 400 */
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: splashSubtitleIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes splashContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashSubtitleIn {
    to {
        opacity: 1;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Header & Navigation --- */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,
            rgba(10, 25, 60, 0.75) 0%,
            rgba(15, 35, 80, 0.7) 50%,
            rgba(10, 25, 60, 0.75) 100%);
    background-size: 200% 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(56, 189, 248, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1280px;
    border-radius: 28px;
    padding: 0 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

@keyframes headerGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.site-header.scrolled {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: white;
    transition: color 0.3s ease;
}

.main-nav a.btn {
    color: white !important;
}

.site-header .site-logo {
    height: auto;
    max-height: calc(var(--header-height) - 36px);
    /* 18px padding top and bottom */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* --- Dropdown Menu --- */
/* --- Dropdown Menu --- */
.has-dropdown {
    position: relative;
    padding-bottom: 2px;
    /* Bridge gap for hover */
}

/* Dropdown Container - Transparent */
.dropdown {
    position: absolute;
    top: 100%;
    /* Directly below parent */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: transparent;
    /* Removed background */
    backdrop-filter: none;
    /* Removed blur */
    border: none;
    /* Removed border */
    box-shadow: none;
    /* Removed shadow */
    padding: 0.5rem 0;
    /* Adjusted padding */
    min-width: 280px;
    /* Wide enough for text */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Increased gap */
    z-index: 1100;
}

/* Links inside Dropdown - Capsule Style */
.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: white;
    /* Ensure visible */
    background: rgba(10, 25, 60, 0.85);
    /* Dark capsule background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Capsule shape */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Slight shadow per item */
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent wrapping */
    text-align: center;
    /* Center text in capsule */
}

@media (hover: hover) and (pointer: fine) {
    .main-nav a:hover {
        color: var(--color-accent);
    }

    /* Hover State */
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(10px);
        /* Slide up into place */
    }

    .dropdown a:hover {
        background: var(--color-accent);
        color: white;
        transform: translateY(-2px);
        /* Slight lift */
        box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
        /* Glow effect */
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.mobile-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 0;
}

.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .site-header {
        width: 100%;
        height: 60px;
        max-width: none;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 1rem;
    }

    .site-header .site-logo {
        height: 24px;
        width: auto;
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 320px);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 25, 60, 0.98);
        backdrop-filter: blur(20px);
        padding: calc(var(--header-height) + 1.6rem) 1.5rem 2rem;
        flex-direction: column;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0s linear 0.3s;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }

    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 13, 34, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border: none;
        padding: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        z-index: 998;
    }

    body.nav-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.25s ease;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 1.1rem;
        width: 100%;
    }

    .main-nav a.btn {
        margin-top: 0.3rem;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        border: none;
        background: transparent;
        touch-action: manipulation;
    }

    .mobile-toggle:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
        border-radius: 8px;
    }

    .mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: white;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.25s ease;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Dropdown Styling */
    .has-dropdown {
        display: block;
        /* Stack vertically */
    }

    .services-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
    }

    .dropdown-icon-mobile {
        font-size: 1.5rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .services-link.active .dropdown-icon-mobile {
        transform: rotate(180deg);
        color: var(--color-accent);
    }

    /* Mobile Only utility */
    .mobile-only {
        display: block;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        backdrop-filter: none;
        width: 100%;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
    }

    .has-dropdown .dropdown.active {
        opacity: 1;
        visibility: visible;
        max-height: 22rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 1rem;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .dropdown a {
        padding: 0.6rem 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        /* Reset Capsule Styles */
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
        display: block;
    }

    .dropdown a:active,
    .dropdown a:focus-visible {
        background: transparent;
        color: white;
        transform: translateX(5px);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {

    .main-nav,
    .mobile-nav-backdrop,
    .mobile-toggle span,
    .has-dropdown .dropdown,
    .dropdown a {
        transition: none !important;
    }
}

/* Hide toggle on desktop */
@media (min-width: 769px) {
    .mobile-nav-backdrop {
        display: none !important;
    }

    .dropdown-icon-mobile {
        display: none;
    }

    .mobile-only {
        display: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-sm {
    padding: 4rem 0;
}

.section-lg {
    padding: 8rem 0;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: white;
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.bg-dark {
    background-color: var(--color-primary);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Margin Utilities */
.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 2rem;
}

.mb-lg {
    margin-bottom: 4rem;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 4rem;
}

/* Standardized Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-dark);
    overflow: hidden;
    color: white;
    text-align: center;
}

.text-center {
    text-align: center;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.35rem;
    color: var(--color-secondary-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Animation Container */
.hero-bg-anim {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Ensure clicks pass through to text/buttons */
}

/* Hero Inner Pages - Adapt to new standard or keep specific overrides if needed */
.hero-section-inner {
    /* Inherits height/min-height from .hero-section now if class is chained, 
       or we explicitly set it here if we want them ALL to be the same. 
       User asked for "exact same dimensions", so we REMOVE the smaller height overrides. */
    /* height: 50vh; REMOVED */
    /* min-height: 400px; REMOVED */

    /* Keep other inner-specific styles */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 60vh;
        /* Reduced from 100vh */
        padding-top: 100px;
        padding-bottom: 4rem;
        align-items: center;
        /* Changed from flex-start to center */
    }

    .hero-section-inner {
        min-height: 50vh;
        /* Even shorter for inner pages */
    }

    .hero-section h1 {
        font-size: 3rem;
    }
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--color-primary-dark) 90%);
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-heading);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 0 15px var(--color-accent-glow);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-dim);
    font-weight: 600;
    font-family: var(--font-heading);
}

.arrow-link:hover {
    gap: 0.75rem;
    color: var(--color-accent);
}

/* UI Cards */
.card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition-medium);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-dim);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Components for Redevelopment --- */

/* Hero Grid Background */
.hero-grid-bg {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    position: absolute;
    inset: 0;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 1.5rem;
}

.bento-item {
    background: white;
    border: 1px solid var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-dim);
}

.bento-span-2 {
    grid-column: span 2;
}

.bento-dark {
    background: var(--color-primary);
    color: white;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent-dim);
}

.bento-dark .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

/* Process Steps */
.process-wrapper {
    position: relative;
    padding: 2rem 0;
}

.process-line {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary-light);
    z-index: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.process-step:hover .step-marker {
    background: var(--color-accent);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    object-fit: cover;
}

/* FAQ Accordion */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    display: none;
    /* JS will toggle this */
    border-top: 1px solid #f1f5f9;
    margin-top: -0.5rem;
    padding-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Industry Cards */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.industry-card {
    position: relative;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.industry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.4);
    z-index: 10;
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-card h4 {
    position: relative;
    z-index: 2;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Updates */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-span-2 {
        grid-column: span 1;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-line {
        height: 100%;
        width: 2px;
        left: 24px;
        top: 0;
    }

    .process-step {
        text-align: left;
        padding-left: 4rem;
        position: relative;
        margin-bottom: 2rem;
    }

    .step-marker {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .industry-grid {
        grid-template-columns: 1fr 1fr;
    }

    .industry-card {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }

    .industry-card h4 {
        width: 100%;
        text-align: center;
    }

    .industry-card--manufacturing h4 {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* --- Inner Page Standardizations --- */

/* Contact Page Grid */
/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        /* Reduced padding for mobile */
    }
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.info-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.info-card h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-card p,
.info-card a {
    color: var(--color-text-muted);
}

/* Stats Grid (About Us) */
.mt-lg {
    margin-top: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Case Studies Grid */
.mb-lg {
    margin-bottom: 3rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.cs-card {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    background: white;
}

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-dim);
}

.cs-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.cs-content {
    padding: 2rem;
}

.cs-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.cs-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.cs-metrics {
    display: flex;
    gap: 2rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.metric .val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.metric .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* Deliverables Grid (Services) */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.deliverables-grid li {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.deliverables-grid li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Expanded Homepage Sections --- */

/* Comparison Section */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.compare-side {
    padding: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-chaos {
    background: #f1f5f9;
    color: var(--color-text-muted);
    border-right: 1px solid #e2e8f0;
}

.side-clarity {
    background: var(--color-primary);
    color: white;
}



/* Tech Stack Marquee/Grid */
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tech-item:hover {
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Insights/Blog Preview */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.insight-image {
    height: 200px;
    background-color: #cbd5e1;
    position: relative;
    background-size: cover;
    background-position: center;
}

.insight-content {
    padding: 1.5rem;
}

.insight-tag {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.insight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.insight-link:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 900px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }

    .side-chaos {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Utility Additions for Service Pages --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gap-4 {
    gap: 1rem;
}

.items-center {
    align-items: center;
}

.flex {
    display: flex;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Tech Landscape Styles --- */
.tech-landscape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.tech-card {
    background: rgba(30, 41, 59, 0.4);
    /* Slate 800 roughly transparent */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translate(0, 0);
}

.tech-card:hover .card-glow {
    opacity: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tags span {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    transition: all 0.2s;
    cursor: default;
}

.tech-tags span:hover {
    background: rgba(56, 189, 248, 0.15);
    color: white;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .tech-landscape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-landscape-grid {
        grid-template-columns: 1fr;
    }

    .bento-span-2 {
        grid-column: span 1;
    }
}

/* --- Transformation Section Styles --- */

#transformation-section {
    position: relative;
    padding-bottom: 4rem;
    /* Ensure z-stacking works */
}

@media (max-width: 768px) {
    #transformation-section {
        padding-top: 2rem !important;
        /* Visual cleanup: reduce top space */
    }

    #transformation-section .text-center {
        margin-bottom: 4rem !important;
        /* Increase gap after text as requested */
    }
}

.transformation-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
    /* Align headers to top */
    position: relative;
    min-height: 500px;
}

/* Panels */
.dept-panel,
.results-panel {
    z-index: 2;
    width: 100%;
    /* Ensure full width */
}

.engine-panel {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    align-self: center;
    /* keep globe centered vertically relative to tall grid */
    padding-top: 2rem;
    /* Visual offset for headers */
}

/* Dept Cards */
.dept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    /* Increased gap */
}

.dept-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Increased radius */
    padding: 0.75rem;
    /* Reduced padding (from 1.25rem) */
    transition: all 0.5s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dept-card.active {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.dept-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dept-name {
    font-size: 0.9rem;
    /* Increased font */
    font-weight: 600;
    color: var(--color-secondary-light);
}

.dept-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    /* Red for 'Chaos' */
    box-shadow: 0 0 5px #ef4444;
    transition: all 0.5s ease;
}

.dept-card.active .dept-status-dot {
    background-color: #22c55e;
    /* Green for 'Resolved' */
    box-shadow: 0 0 8px #22c55e;
}

.mini-chart-container {
    height: 60px;
    /* Increased height */
    width: 100%;
    position: relative;
}

.mini-chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Globe Wrapper */
.globe-wrapper {
    width: 100%;
    height: 450px;
    /* Slightly reduced to match side panels better */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#transformationGlobe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Trigger Button */
.transformation-trigger {
    position: absolute;
    z-index: 20;
    cursor: pointer;
    transition: all 0.5s ease;
}

.transformation-trigger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.trigger-content {
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.transformation-trigger:hover .trigger-content {
    transform: scale(1.05);
    background: var(--color-accent-dim);
}

.trigger-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 60px;
    border: 2px solid var(--color-accent);
    opacity: 0.5;
    animation: triggerPulse 2s infinite;
    z-index: 1;
}

@keyframes triggerPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Results Panel */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: border-color 0.5s ease;
}

.metric-card.active {
    border-color: #34d399;
    /* Emerald 400 for Revenue */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(52, 211, 153, 0.1) 100%);
}

.metric-card[data-metric="profits"].active {
    border-color: #22c55e;
    /* Green 500 for Profits */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.metric-header {
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.metric-chart-container {
    height: 80px;
    width: 100%;
}

.metric-chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .globe-wrapper {
        height: 300px;
    }

    .dept-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .dept-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #tech-stack-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Target the header container to reduce gap */
    #tech-stack-section .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #techGlobeWrapper {
        height: 400px !important;
        margin-top: 0 !important;
    }
}


@media (max-width: 768px) {
    #transformation-section {
        padding-bottom: 2rem !important;
    }

    .results-panel {
        padding-bottom: 2rem !important;
        margin-bottom: 0 !important;
    }

    .transformation-grid {
        gap: 1rem !important;
        padding-bottom: 0 !important;
    }
}

/* ============================
   CONSULTING OVERVIEW SECTION
   ============================ */
.definition-featured {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.definition-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(56, 189, 248, 0.15) 100%);
    border-radius: 20px;
    color: var(--color-accent);
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.consulting-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.overview-content {
    padding-right: 2rem;
}

.overview-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overview-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
}

.overview-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
    color: var(--color-accent);
}

.overview-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.overview-card p {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .consulting-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-content {
        padding-right: 0;
    }
}

/* ============================
   SERVICES GRID - Clean Design
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card-clean {
    position: relative;
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card-clean:hover {
    background: white;
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.35);
    font-family: var(--font-heading);
    line-height: 1;
}

.service-icon-clean {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.service-card-clean h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service-card-clean>p {
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   DELIVERABLES GRID
   ============================ */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.deliverable-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.deliverable-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    color: var(--color-accent);
    margin: 0 auto 1rem;
}

.deliverable-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.deliverable-card>p {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   IMPACT CARDS - Clean Design
   ============================ */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: transparent;
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s ease;
}

.impact-card:hover {
    background: rgba(56, 189, 248, 0.05);
    transform: translateX(5px);
}

.impact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    color: var(--color-accent);
}

.impact-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.4rem;
}

.impact-content>p {
    font-size: 0.8rem;
    color: var(--color-secondary);
    line-height: 1.5;
    margin: 0;
}

.impact-metric {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-secondary-light);
}

@media (max-width: 1200px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card {
        padding: 1.25rem;
    }
}

/* Consulting Roadmap */
/* ============================
   ROADMAP TIMELINE - Clean Design
   ============================ */
.roadmap-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

/* Connecting Line - Prominent */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-accent) 0%,
            var(--color-accent) 100%);
    z-index: 0;
    border-radius: 2px;
    opacity: 0.6;
}

/* Step Item */
.roadmap-step {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.roadmap-step:hover {
    transform: translateY(-5px);
}

/* Step Marker - Clean Circle */
.step-marker {
    width: 50px;
    height: 50px;
    background: var(--color-primary-dark);
    border: 3px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 6px var(--color-primary-dark),
        0 0 20px rgba(56, 189, 248, 0.2);
}

/* Hover State */
.roadmap-step:hover .step-marker {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px var(--color-primary-dark),
        0 0 30px rgba(56, 189, 248, 0.5);
}

/* Content - Minimal Style */
.step-content {
    background: transparent;
    border: none;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-content h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.step-content p {
    color: var(--color-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Hover - Subtle highlight */
.roadmap-step:hover .step-content h4 {
    color: var(--color-accent);
}

/* ============================
   Mobile Responsive - Vertical Timeline
   ============================ */
@media (max-width: 900px) {
    .roadmap-container {
        flex-direction: column;
        padding: 0 1rem 0 2rem;
        gap: 0;
        margin-top: 2rem;
    }

    /* Vertical Line */
    .roadmap-container::before {
        width: 3px;
        height: calc(100% - 50px);
        top: 25px;
        left: 25px;
        background: linear-gradient(180deg,
                var(--color-accent) 0%,
                var(--color-accent) 100%);
    }

    .roadmap-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        padding: 0 0 2.5rem 0;
        gap: 1.5rem;
    }

    .roadmap-step:last-child {
        padding-bottom: 0;
    }

    .roadmap-step:hover {
        transform: translateX(5px);
    }

    .step-marker {
        width: 50px;
        height: 50px;
        margin: 0;
        flex-shrink: 0;
    }

    .step-content {
        text-align: left;
        padding: 0.25rem 0;
        flex: 1;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }
}

/* ============================
   PARTNER WITH US PAGE
   ============================ */
.partner-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.08), transparent 35%),
        radial-gradient(circle at 90% 25%, rgba(37, 99, 235, 0.08), transparent 40%),
        var(--color-bg-body);
}

.partner-hero {
    position: relative;
    overflow: hidden;
}

.partner-hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at center, rgba(56, 189, 248, 0.2) 0%, rgba(37, 99, 235, 0.09) 40%, transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.partner-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-page .btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.partner-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
}

.partner-intro {
    padding-top: 5rem;
}

.partner-page .partner-band-light {
    background: #ffffff;
}

.partner-page .partner-band-dark:not(.cta-enhanced) {
    background: linear-gradient(135deg, #0b1226 0%, #0f1f40 55%, #112a4f 100%);
}

.partner-page .partner-band-dark:not(.cta-enhanced) .partner-kicker {
    color: #7dd3fc;
}

.partner-page .partner-band-dark:not(.cta-enhanced) .partner-section-head h2 {
    color: #ffffff;
}

.partner-intro-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: var(--color-secondary-light);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 22px;
    padding: 2.2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

.partner-intro-card p {
    font-size: 1.07rem;
    line-height: 1.9;
}

.partner-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.partner-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #dbe4f2;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.partner-panel h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.partner-panel p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.partner-checklist {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.partner-checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--color-text-main);
}

.partner-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.partner-note {
    margin-top: 0.8rem;
    font-weight: 500;
    color: #0b4f7d;
}

.partner-section-head {
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.partner-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.9rem;
}

.partner-section-head h2 {
    font-size: 2.35rem;
    margin-bottom: 0.8rem;
}

.partner-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.partner-feature-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe7f3;
    padding: 1.6rem;
    min-height: 190px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.partner-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.partner-feature-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.partner-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.partner-profile-card {
    background: #fff;
    border: 1px solid #dbe8f6;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
}

.partner-profile-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.partner-profile-card h4 {
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #075985;
}

.partner-profile-card p {
    color: var(--color-text-muted);
}

.partner-profile-card ul,
.partner-category-card ul {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    color: #1e293b;
    margin-top: 0.45rem;
}

.partner-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.partner-category-card {
    background: #ffffff;
    border: 1px solid #dbe8f6;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.partner-category-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.partner-category-card p {
    color: var(--color-text-muted);
    margin-bottom: 0.55rem;
    line-height: 1.6;
}

.partner-category-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-category-card ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-primary-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.partner-category-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.partner-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-process-step {
    background: #ffffff;
    border: 1px solid #dbe8f6;
    border-radius: 16px;
    padding: 1.4rem;
    color: var(--color-text-main);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.partner-step-no {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.18);
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.partner-process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: var(--color-primary);
}

.partner-process-step p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.partner-process.partner-band-dark .partner-process-step {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(125, 211, 252, 0.3);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.partner-process.partner-band-dark .partner-step-no {
    background: rgba(125, 211, 252, 0.15);
    color: #7dd3fc;
}

.partner-process.partner-band-dark .partner-process-step h3 {
    color: #ffffff;
}

.partner-process.partner-band-dark .partner-process-step p {
    color: #cbd5e1;
}

.partner-model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-model-card {
    background: #fff;
    border: 1px solid #dbe8f6;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.partner-model-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
}

.partner-model-card p {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.partner-faq-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.partner-faq-wrap .faq-item {
    border-radius: 14px;
    border-color: #dbe8f6;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.partner-faq-wrap .faq-question {
    width: 100%;
    background: #fff;
    border: 0;
    text-align: left;
    font-size: 1rem;
}

.partner-faq-wrap .faq-question:hover {
    background: #f8fbff;
}

.partner-faq-wrap .faq-answer p {
    margin: 0;
    line-height: 1.65;
}

@media (max-width: 1100px) {

    .partner-card-grid,
    .partner-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-process-grid,
    .partner-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   CONTACT PAGE STYLES
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-bg-light);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.office-location h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.office-location p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 600px) {
    .contact-info {
        flex-direction: column;
    }
}

/* ============================
   CONTACT FORM POPUP
   ============================ */
.form-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
}

.form-popup-overlay.active {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

.form-popup {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.97));
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-popup-overlay.active .form-popup {
    transform: translateY(0) scale(1);
}

.form-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.form-popup__close:hover {
    color: #1e293b;
    background: rgba(15, 23, 42, 0.08);
}

.form-popup__icon {
    margin-bottom: 1.25rem;
}

.form-popup__icon svg {
    display: inline-block;
}

.form-popup--success .form-popup__icon svg {
    color: #16a34a;
}

.form-popup--error .form-popup__icon svg {
    color: #dc2626;
}

.form-popup__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-popup--success .form-popup__title {
    color: #15803d;
}

.form-popup--error .form-popup__title {
    color: #b91c1c;
}

.form-popup__message {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .form-popup {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 16px;
    }

    .form-popup__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    .partner-intro-grid,
    .partner-profile-grid,
    .partner-card-grid,
    .partner-category-grid,
    .partner-process-grid,
    .partner-model-grid {
        grid-template-columns: 1fr;
    }

    .partner-section-head h2 {
        font-size: 1.75rem;
    }

    .partner-panel,
    .partner-intro-card {
        padding: 1.5rem;
    }

    .partner-hero-actions .btn {
        width: 100%;
    }
}

/* Mobile Fixes for Homepage */
@media (max-width: 768px) {

    .dept-panel h4,
    .results-panel h4 {
        display: none;
    }

    .results-panel .results-grid {
        margin-top: 2rem;
    }
}

/* ============================
   PARTNER CTA SECTION
   ============================ */
.partner-page .cta-enhanced {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem 0;
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-trust svg {
    color: var(--color-accent);
}

/* Mobile Optimization for Partner CTA */
@media (max-width: 768px) {
    .partner-page .cta-enhanced {
        padding: 4rem 0;
    }

    .partner-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .partner-hero-actions .btn {
        width: 100%;
    }

    .cta-trust {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 2rem;
        text-align: center;
    }
}

/* ============================
   FAQ ACCORDION STYLES
   ============================ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--color-bg-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    transition: transform var(--transition-medium);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Material Icons adjustment if needed */
.faq-icon i {
    font-size: 1.25rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: var(--color-bg-white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    transition: max-height 0.4s ease-in-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

/* ============================================
   Footer (moved from inline <style> in footer.php)
   ============================================ */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.site-footer .brand h3 {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}