/* Open Lane Technologies - Brand Aligned Design */
/* Brand Colors: Navy (#2d3a5c), Slate (#334155), Clean whites */

:root {
    --primary-dark: #1e293b;
    --primary-navy: #2d3a5c;
    --brand-navy: #2d3a5c;
    --brand-slate: #334155;
    --lavender: #f8fafc;
    --lavender-dark: #f1f5f9;
    --accent: #2d3a5c;
    --accent-light: #475569;
    --accent-bg: #f1f5f9;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    /* Keep purple for backwards compatibility, but map to brand navy */
    --purple: #2d3a5c;
    --purple-light: #475569;
    --purple-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* Logo dark/light mode switching */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

body.dark-mode .logo-light {
    display: block;
}

body.dark-mode .logo-dark {
    display: none;
}

/* Footer always uses light logo on dark background */
.footer .logo-img {
    height: 28px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--brand-navy);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--brand-navy);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s;
}

.nav-item a:hover::after {
    width: 100%;
}

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

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
}

.btn-contact {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-contact:hover {
    background: var(--purple);
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    left: 0;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

/* ===== MEGA MENU ===== */
.has-dropdown {
    position: relative;
}

/* Parent container for hover detection - extends to cover gap */
.has-dropdown > a {
    position: relative;
}

/* Invisible bridge from nav item to mega menu */
.has-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.mega-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    /* FIXED: Solid dark background - no transparency, no white flash */
    background: #0a0f1a;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out, transform 0.2s ease-out;
    display: flex;
    z-index: 1000;
}

/* JS-controlled open state only - no CSS :hover to prevent flicker */
.has-dropdown.menu-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-sidebar {
    background: #0f172a;
    padding: 20px 0;
    width: 280px;
    position: relative;
    flex-shrink: 0;
}

/* Invisible hover buffer - extends 16px to overlap both panels */
.mega-menu-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    width: 32px;
    height: 100%;
    background: transparent;
    z-index: 20;
    pointer-events: auto;
}

.mega-menu-sidebar .menu-category {
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-radius: 0 30px 30px 0;
    margin-right: 16px;
}

.mega-menu-sidebar .menu-category:hover,
.mega-menu-sidebar .menu-category.active {
    background: rgba(148, 163, 184, 0.3);
}

.mega-menu-sidebar .menu-category.estimator {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    margin-top: 10px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding: 32px 40px 32px 32px;
    flex: 1;
    /* FIXED: Solid dark background - matches parent, no transparency */
    background: #0a0f1a;
    align-content: start;
    min-height: 320px;
    /* Smooth opacity transition for content cross-fade */
    transition: opacity 0.18s ease-out;
    /* Prevent layout shift during transition */
    will-change: opacity;
    /* Ensure no gap between sidebar and grid */
    margin-left: 0;
}

.menu-item {
    padding: 24px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(45, 58, 92, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(45, 58, 92, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45, 58, 92, 0.15), 0 0 0 1px rgba(45, 58, 92, 0.2);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(45, 58, 92, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(45, 58, 92, 0.2);
    transition: all 0.2s ease;
}

.menu-item:hover .menu-icon-wrapper {
    background: rgba(45, 58, 92, 0.2);
    border-color: rgba(45, 58, 92, 0.4);
}

.menu-icon {
    width: 24px;
    height: 24px;
    stroke: #475569;
    stroke-width: 1.5;
    transition: stroke 0.2s ease;
}

.menu-item:hover .menu-icon {
    stroke: #94a3b8;
}

.menu-item-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.menu-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.menu-item-desc {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 4px;
}

/* ===== HERO SECTION - STACKED PANEL SYSTEM ===== */
.hero {
    position: relative;
    margin-top: 80px;
    height: calc(100vh - 80px);
    min-height: 700px;
    max-height: 920px;
    overflow: hidden;
}

/* Noise/Grain Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 100;
}

/* Cinematic Backdrop */
.hero-backdrop {
    position: absolute;
    inset: 0;
    background: #0d1420;
}

.backdrop-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(45, 58, 92, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(51, 65, 85, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(45, 58, 92, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #131b2e 0%, #1a2540 50%, #182035 100%);
}

/* Panel Stack Container - Ambient Motion */
.panel-stack {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 40px 60px;
    gap: 0;
    animation: ambientDrift 60s ease-in-out infinite;
}

@keyframes ambientDrift {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(8px); }
}

.hero:hover .panel-stack {
    animation-duration: 120s;
}

/* Individual Panel Cards */
.panel-card {
    position: relative;
    flex: 0 0 90px;
    height: 100%;
    cursor: pointer;
    transition: flex 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-origin: left center;
    border-radius: 16px;
    overflow: hidden;
}

.panel-card.active {
    flex: 1;
}

/* Glass Effect Layer - Glossy finish */
.panel-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* Glossy shine effect */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(45, 58, 92, 0.05);
}

/* Top shine reflection for glossy effect */
.panel-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.panel-card.active .panel-glass {
    opacity: 0;
}

/* Panel Background Image */
.panel-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-radius: 16px;
    overflow: hidden;
}

.panel-card.active .panel-bg {
    opacity: 1;
}

.panel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(5, 8, 16, 0.65) 0%,
        rgba(5, 8, 16, 0.45) 40%,
        rgba(5, 8, 16, 0.25) 70%,
        rgba(5, 8, 16, 0.15) 100%);
}

.panel-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.panel-card.active .panel-bg img {
    transform: scale(1);
}

/* Panel Edge (visible when collapsed) */
.panel-edge {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 40px 0;
    z-index: 10;
    transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.panel-card.active .panel-edge {
    opacity: 0;
    pointer-events: none;
}

/* Arrow icon on each collapsed panel */
.edge-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edge-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.panel-card:hover .edge-arrow {
    background: rgba(45, 58, 92, 0.5);
    border-color: rgba(45, 58, 92, 0.7);
    transform: scale(1.1);
}

.edge-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.panel-card:hover .edge-title {
    color: #94a3b8;
    text-shadow: 0 2px 24px rgba(45, 58, 92, 0.6);
}

/* Panel Body (visible when expanded) */
.panel-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 60px 80px;
    gap: 80px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: 0.3s;
    z-index: 5;
}

.panel-card.active .panel-body {
    opacity: 1;
    transform: translateX(0);
}

/* Panel Content */
.panel-content {
    flex: 1;
    max-width: 540px;
}

.panel-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.panel-content h1 {
    font-size: 4.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.panel-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 460px;
}

.panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2d3a5c;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(45, 58, 92, 0.35);
}

.panel-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.panel-cta:hover {
    background: #3d4f6f;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45, 58, 92, 0.45);
}

.panel-cta:hover svg {
    transform: translateX(4px);
}

/* Panel Visual - Abstract System Display */
.panel-visual {
    flex-shrink: 0;
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: visualFloat 20s ease-in-out infinite;
}

@keyframes visualFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.visual-card {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Edge blur effect - lighter */
.visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Subtle grain on visual */
.visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 11;
    pointer-events: none;
}

/* Abstract system visual container */
.system-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.system-visual svg {
    width: 140%;
    height: 140%;
    opacity: 0.9;
    filter: none;
}

/* Ambient glow behind visual */
.visual-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.visual-stats {
    display: flex;
    gap: 24px;
}

.stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Panel Progress Indicator */
.panel-progress {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
}

.progress-dot {
    position: relative;
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.25);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2d3a5c, #475569);
    border-radius: 2px;
}

.progress-dot.active {
    background: rgba(45, 58, 92, 0.3);
}

.progress-dot.completed .progress-fill {
    width: 100% !important;
    transition: none !important;
}

/* Trust Bar */
.hero-trust-bar {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 28px;
    background: transparent;
    z-index: 20;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.badge-value .stars {
    color: #fbbf24;
    margin-left: 6px;
}

.trust-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* Primary Button (used elsewhere) */
.btn-primary {
    display: inline-block;
    background: #2d3a5c;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #3d4f6f;
    transform: translateY(-2px);
}

/* ===== SECTION INTRO ===== */
.section-intro {
    padding: 60px 0 40px;
    background: var(--lavender);
}

.section-intro .container {
    display: flex;
    justify-content: center;
}

.intro-content {
    max-width: 800px;
    text-align: center;
}

.intro-label {
    display: inline-block;
    color: var(--purple);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.intro-content h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.intro-content p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    display: flex;
    align-items: center;
    background: var(--lavender);
    padding: 30px 0 30px 30px;
    gap: 24px;
}

.services-sidebar {
    width: 320px;
    min-height: 380px;
    padding: 36px 28px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    flex-shrink: 0;
    border-radius: 20px;
    border: 1px solid rgba(45, 58, 92, 0.08);
    box-shadow: 0 4px 20px rgba(45, 58, 92, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
}

.filter-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--purple);
}

.filter-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    flex: 1;
}

.filter-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: var(--white);
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--purple);
    color: var(--white);
}

.services-main {
    flex: 1;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

/* Services Slider Container - Ribbon Animation */
.services-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

/* Ribbon sliding animation */
@keyframes ribbonSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.services-grid {
    display: flex;
    gap: 28px;
    animation: ribbonSlide 40s linear infinite;
    width: max-content;
}

.services-grid:hover {
    animation-play-state: paused;
}

/* Each service card in the ribbon */
.service-card {
    flex: 0 0 380px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 20px rgba(45, 58, 92, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 58, 92, 0.08);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(45, 58, 92, 0.15),
        0 8px 16px rgba(45, 58, 92, 0.1);
    border-color: rgba(45, 58, 92, 0.15);
}

/* New Icon Header Design */
.card-icon-header {
    padding: 32px 28px 24px;
    background: linear-gradient(135deg, #2d3a5c 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.card-icon-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(-10%, 10%); opacity: 1; }
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
    stroke-width: 1.5;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-card-content {
    padding: 28px;
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

.card-arrow {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #2d3a5c 0%, #1e293b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #ffffff;
}

.card-arrow svg {
    width: 20px;
    height: 20px;
}

.card-arrow:hover {
    background: linear-gradient(145deg, #3d4f6f 0%, #2d3a5c 100%);
    transform: translateX(4px);
}

.card-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 58, 92, 0.25) 0%, transparent 70%);
    top: -150px;
    right: -150px;
}

.why-choose::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(71, 85, 105, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.why-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.why-header .intro-label {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.why-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

/* Slide in animation for why cards */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-card {
    background: linear-gradient(145deg, rgba(45, 58, 92, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 36px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideInFromBottom 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.15s);
    opacity: 0;
}

.why-card:nth-child(1) { --card-index: 0; }
.why-card:nth-child(2) { --card-index: 1; }
.why-card:nth-child(3) { --card-index: 2; }
.why-card:nth-child(4) { --card-index: 3; }

.why-card:hover {
    background: linear-gradient(145deg, rgba(55, 70, 105, 0.7) 0%, rgba(40, 52, 72, 0.9) 100%);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.why-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.why-card p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ===== INDUSTRIES ===== */
.industries {
    padding: 80px 0;
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 50px;
    letter-spacing: -1px;
}

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

.industry-card {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 24px;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45, 58, 92, 0.1);
}

.industry-content {
    flex: 1;
}

.industry-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.industry-btn {
    display: inline-block;
    background: var(--brand-navy);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.industry-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.industry-visual {
    width: 200px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.industry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-card:hover .industry-visual img {
    transform: scale(1.05);
}

/* ===== PROCESS SECTION ===== */
.process-section {
    display: flex;
    background: var(--lavender);
}

.process-sidebar {
    width: 320px;
    padding: 80px 40px;
    background: var(--white);
    flex-shrink: 0;
}

.process-nav {
    list-style: none;
}

.process-nav li {
    margin-bottom: 8px;
}

.process-nav a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    padding-left: 28px;
}

.process-nav a::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--purple);
}

.process-nav a:hover,
.process-nav a.active {
    background: var(--lavender);
    color: var(--text-dark);
    font-weight: 600;
}

.process-main {
    flex: 1;
    padding: 80px 60px;
}

.process-main .section-title {
    margin-bottom: 48px;
}

.process-content {
    display: flex;
    gap: 60px;
}

.process-steps {
    width: 320px;
    flex-shrink: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.step:hover,
.step.active {
    background: var(--purple);
    color: var(--white);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--lavender);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--white);
}

.step-name {
    font-weight: 600;
    font-size: 1rem;
}

.process-detail {
    flex: 1;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
}

.process-detail h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.process-detail p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.btn-outline {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary-dark);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.section-header .section-title {
    margin-bottom: 0;
    position: relative;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 200px;
    height: 3px;
    background: var(--purple);
}

.portfolio-nav {
    display: flex;
    gap: 8px;
}

.portfolio-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
}

.portfolio-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
}

.portfolio-btn:hover svg {
    stroke: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    background: var(--lavender);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.portfolio-image {
    height: 260px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 58, 92, 0.3) 0%, transparent 70%);
    top: 20%;
    right: 10%;
}

.portfolio-image img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.portfolio-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--purple);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.portfolio-card h4 {
    padding: 32px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ===== TECH STACK ===== */
.tech-stack {
    padding: 80px 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.tech-header {
    text-align: center;
    margin-bottom: 50px;
}

.tech-header .intro-label {
    color: #94a3b8;
}

.tech-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
}

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

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: 16px;
    transition: all 0.3s;
}

.tech-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.tech-category h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    background: rgba(45, 58, 92, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.2s;
}

.tech-item:hover {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== SUCCESS NUMBERS ===== */
.success-numbers {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.success-numbers::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 58, 92, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.success-numbers .section-title {
    color: #ffffff;
    text-align: center;
    position: relative;
}

.success-numbers .section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: #ffffff;
    margin: 20px auto 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
    position: relative;
}

.number-card .number {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1;
}

.number-card .label {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

/* ===== BLOG ===== */
.blog {
    padding: 100px 0;
    background: var(--lavender);
}

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

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-content h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== CONTACT ===== */
.contact {
    display: flex;
    background: var(--primary-dark);
}

.contact-form-section {
    flex: 1;
    padding: 80px 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.contact-form-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: rgba(255,255,255,0.5) !important;
}

.form-group select {
    color: rgba(255,255,255,0.5) !important;
}

/* When select has a value selected (not placeholder) */
.form-group select:valid,
.form-group select:focus {
    color: #ffffff !important;
}

.form-group select option {
    background: #1e293b !important;
    color: #ffffff !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    color: #ffffff !important;
}

/* Fix for browser autofill - force white text */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    transition: background-color 5000s ease-in-out 0s;
    color: #ffffff !important;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-row .form-group {
    flex: 1;
}

.btn-submit {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 20px 60px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
}

.contact-info-section {
    width: 450px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-person {
    padding: 60px;
    text-align: center;
}

.person-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 28px;
    border: 4px solid var(--lavender);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.person-details h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.person-details .role {
    color: var(--text-gray);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--purple);
}

.contact-link:hover {
    color: var(--purple);
}

/* Dark mode for contact section */
body.dark-mode .person-details h4 {
    color: #fff;
}

body.dark-mode .person-details .role {
    color: #cbd5e1;
}

body.dark-mode .contact-link {
    color: #fff;
}

body.dark-mode .contact-link svg {
    stroke: #818cf8;
}

body.dark-mode .contact-link:hover {
    color: #818cf8;
}

/* ===== LOCATIONS ===== */
.locations {
    padding: 60px 0;
    background: var(--lavender);
}

.locations-grid {
    display: flex;
    gap: 0;
    justify-content: center;
}

.location-card {
    padding: 32px 48px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.location-card:last-child {
    border-right: none;
}

.location-icon {
    width: 32px;
    height: 32px;
    stroke: var(--purple);
    margin-bottom: 12px;
}

.location-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.location-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 32px;
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-icon {
    color: var(--white);
}

.footer-brand p {
    margin: 24px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.chat-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 300px;
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.chat-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
}

.chat-widget:hover .chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--purple);
    border: none;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(45, 58, 92, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.chat-btn svg {
    width: 28px;
    height: 28px;
}

.chat-btn:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-stack {
        padding: 30px 40px;
    }

    .panel-content h1 {
        font-size: 3.2rem;
    }

    .panel-body {
        padding: 40px 50px;
        gap: 50px;
    }

    .panel-visual {
        width: 300px;
    }

    .visual-card {
        height: 260px;
    }

    .hero-trust-bar {
        left: 40px;
        right: 40px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        /* Ribbon animation - no grid in responsive */
    }

    .service-card {
        flex: 0 0 340px;
    }
}

@media (max-width: 992px) {
    .service-card {
        flex: 0 0 300px;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a0f1a;
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item > a {
        display: block;
        padding: 18px 24px;
        color: #ffffff !important;
        font-size: 0.95rem;
    }

    /* Mobile Mega Menu Accordion */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: column;
        display: none;
        box-shadow: none;
        background: transparent;
    }

    .has-dropdown.accordion-open .mega-menu {
        display: flex;
    }

    /* Disable hover-based opening on mobile */
    .has-dropdown:hover .mega-menu,
    .has-dropdown.menu-open .mega-menu {
        display: none;
    }

    .has-dropdown.accordion-open .mega-menu,
    .has-dropdown.accordion-open:hover .mega-menu,
    .has-dropdown.accordion-open.menu-open .mega-menu {
        display: flex;
    }

    .mega-menu-sidebar {
        width: 100%;
        padding: 0;
        background: rgba(255, 255, 255, 0.03);
    }

    .mega-menu-sidebar .menu-category {
        padding: 14px 32px;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.8rem;
    }

    .mega-menu-grid {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px 24px;
        min-height: auto;
    }

    .mega-menu-sidebar .menu-category.active ~ .mega-menu-grid {
        display: grid;
    }

    .menu-item {
        padding: 16px 14px;
    }

    .menu-icon-wrapper {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .menu-icon {
        width: 18px;
        height: 18px;
    }

    .menu-item-title,
    .menu-item span {
        font-size: 0.7rem;
    }

    .menu-item-desc {
        font-size: 0.6rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 80px);
        max-height: none;
    }

    .panel-stack {
        flex-direction: column;
        padding: 24px;
        gap: 12px;
    }

    .panel-card {
        flex: 0 0 60px;
        border-radius: 12px;
    }

    .panel-card.active {
        flex: 1;
        min-height: 400px;
    }

    .panel-edge {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 24px;
        gap: 16px;
    }

    .edge-title {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .panel-body {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .panel-content h1 {
        font-size: 2.5rem;
    }

    .panel-visual {
        width: 100%;
    }

    .visual-card {
        height: 200px;
    }

    .visual-stats {
        gap: 12px;
    }

    .hero-trust-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trust-sep {
        display: none;
    }

    .services-section {
        flex-direction: column;
    }

    .services-section {
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }

    .services-sidebar {
        width: 100%;
        border-radius: 16px;
    }

    .services-main {
        flex-direction: column;
    }

    .process-section {
        flex-direction: column;
    }

    .process-sidebar {
        width: 100%;
        padding: 40px;
    }

    .process-content {
        flex-direction: column;
    }

    .process-steps {
        width: 100%;
    }

    .contact {
        flex-direction: column;
    }

    .contact-info-section {
        width: 100%;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .panel-content h1 {
        font-size: 2rem;
    }

    .panel-card {
        flex: 0 0 50px;
    }

    .panel-card.active {
        min-height: 350px;
    }

    .panel-body {
        padding: 24px;
    }

    .panel-label {
        font-size: 0.6rem;
        padding: 6px 12px;
    }

    .panel-content p {
        font-size: 1rem;
    }

    .panel-cta {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .intro-content h2,
    .why-header h2,
    .tech-header h2 {
        font-size: 2rem;
    }

    .portfolio-grid,
    .blog-grid,
    .numbers-grid,
    .why-grid,
    .tech-categories {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-section h2 {
        font-size: 2.5rem;
    }

    .number-card .number {
        font-size: 3.5rem;
    }

    .locations-grid {
        flex-direction: column;
    }

    .location-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .location-card:last-child {
        border-bottom: none;
    }

    .section-intro {
        padding: 40px 0 30px;
    }

    .why-choose,
    .tech-stack {
        padding: 60px 0;
    }

    .services-main {
        padding: 30px 0;
    }

    .services-sidebar {
        padding: 30px 24px;
    }
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --white: #0f172a;
    --lavender: #1e293b;
    --lavender-dark: #151d2b;
    --text-dark: #f1f5f9;
    --text-gray: #94a3b8;
    --border: #334155;
    --purple: #475569;
    --purple-light: #94a3b8;
    background-color: #0f172a;
}

body.dark-mode .header {
    background: #0f172a;
    border-bottom-color: #334155;
}

body.dark-mode .logo-text {
    color: #f1f5f9;
}

body.dark-mode .nav-item a {
    color: #f1f5f9;
}

body.dark-mode .search-btn svg,
body.dark-mode .theme-toggle svg {
    stroke: #f1f5f9;
}

body.dark-mode .theme-toggle {
    border-color: #334155;
}

body.dark-mode .mega-menu {
    background: #0a0f1a;
}

body.dark-mode .mega-menu-sidebar {
    background: #0f172a;
}

body.dark-mode .menu-category {
    color: #ffffff;
}

body.dark-mode .mega-menu-grid {
    background: #0a0f1a;
}

body.dark-mode .menu-item:hover {
    background: #0f172a;
}

body.dark-mode .menu-item span {
    color: #f1f5f9;
}

body.dark-mode .menu-icon {
    stroke: #475569;
}

body.dark-mode .section-intro {
    background: #1e293b;
}

body.dark-mode .intro-label {
    color: #ffffff;
    font-weight: 800;
}

/* WHY OPEN LANE label - always white and bold */
body.dark-mode .why-header .intro-label {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 5px;
}

body.dark-mode .intro-content h2,
body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode .intro-content p {
    color: #94a3b8;
}

body.dark-mode .services-section {
    background: #1e293b;
}

body.dark-mode .services-sidebar {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(71, 85, 105, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-header h3 {
    color: #f1f5f9;
}

body.dark-mode .filter-number {
    color: #475569;
}

body.dark-mode .filter-tag {
    background: #0f172a;
    color: #475569;
}

body.dark-mode .filter-tag:hover,
body.dark-mode .filter-tag.active {
    background: #2d3a5c;
    color: #ffffff;
}

body.dark-mode .service-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(71, 85, 105, 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(45, 58, 92, 0.3);
}

body.dark-mode .card-icon-header {
    background: linear-gradient(135deg, #3d4f6f 0%, #2d3a5c 100%);
}

body.dark-mode .card-icon {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .service-card h4 {
    color: #ffffff;
    font-weight: 800;
}

body.dark-mode .service-card p {
    color: #cbd5e1;
}

body.dark-mode .card-arrow {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
    color: #ffffff;
}

body.dark-mode .card-arrow:hover {
    background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
}

body.dark-mode .industries {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .industry-card {
    background: #1e293b;
}

body.dark-mode .industry-card h3 {
    color: #f1f5f9;
}

body.dark-mode .industry-card p {
    color: #94a3b8;
}

body.dark-mode .industry-btn {
    background: #475569;
}

body.dark-mode .industry-btn:hover {
    background: #6366f1;
}

body.dark-mode .process-section {
    background: #1e293b;
}

body.dark-mode .process-sidebar {
    background: #0f172a;
}

body.dark-mode .process-nav a {
    color: #94a3b8;
}

body.dark-mode .process-nav a::before {
    color: #475569;
}

body.dark-mode .process-nav a:hover,
body.dark-mode .process-nav a.active {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .process-main .section-title {
    color: #f1f5f9;
}

body.dark-mode .step {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark-mode .step-number {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .process-detail {
    background: #0f172a;
}

body.dark-mode .process-detail h3 {
    color: #f1f5f9;
}

body.dark-mode .process-detail p {
    color: #94a3b8;
}

body.dark-mode .btn-outline {
    background: transparent;
    color: #f1f5f9;
    border-color: #f1f5f9;
}

body.dark-mode .btn-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .portfolio {
    background: #0f172a;
}

body.dark-mode .portfolio-card {
    background: #1e293b;
}

body.dark-mode .portfolio-card h4 {
    color: #f1f5f9;
}

body.dark-mode .portfolio-btn {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .portfolio-btn svg {
    stroke: #f1f5f9;
}

body.dark-mode .tech-stack {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .tech-header h2 {
    color: #ffffff;
}

body.dark-mode .tech-header .intro-label {
    color: #ffffff;
    font-weight: 800;
}

body.dark-mode .tech-item {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .tech-item:hover {
    background: #2d3a5c;
    color: #ffffff;
}

body.dark-mode .blog {
    background: #1e293b;
}

body.dark-mode .blog-card {
    background: #0f172a;
}

body.dark-mode .blog-content h4 {
    color: #f1f5f9;
}

body.dark-mode .blog-meta {
    color: #94a3b8;
}

body.dark-mode .locations {
    background: #1e293b;
}

body.dark-mode .location-card {
    border-color: #334155;
}

body.dark-mode .location-card h4 {
    color: #f1f5f9;
}

body.dark-mode .location-card p {
    color: #94a3b8;
}

body.dark-mode .location-icon {
    stroke: #475569;
}

body.dark-mode .chat-popup {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .chat-popup::after {
    background: #1e293b;
}

body.dark-mode .section-header .section-title::after {
    background: #475569;
}

/* Footer titles in dark mode - must be white on dark background */
body.dark-mode .footer-links h4 {
    color: #ffffff;
    font-weight: 800;
}

/* Contact section LET'S TALK in dark mode */
body.dark-mode .contact-form-section h2 {
    color: #ffffff;
    font-weight: 900;
}

/* Contact Us button in header - bright in dark mode */
body.dark-mode .btn-contact {
    background: #ffffff;
    color: #0f172a;
}

body.dark-mode .btn-contact:hover {
    background: #e2e8f0;
}
