/* ==========================================================================
   GLOBAL SETTINGS & VARIABLES
   ========================================================================== */

/* Hide native scrollbar for premium app-like feel */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

:root {
    /* Core Color Palette */
    --bg-primary: #F7F7F5;
    --bg-secondary: #FFFFFF;
	--bg-dark: #0A0A0A;
    --accent: #FF5A1F;
    --accent-soft: #FFF1EA;
    --accent-gradient: linear-gradient(135deg, #FF5A1F, #FF8C42);
    
    /* Typography Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-charcoal: #222222;
    --divider: #E5E5E5;

    /* Font Stacks */
    --font-heading: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Unified Animation Timings */
    /* Luxury is for scroll reveals, Fast is for hover states */
    --transition-luxury: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hard Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip; /* Prevents horizontal scrolling/wobble */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Global Section Spacing */
.main-section {
    position: relative;
    padding: 120px 5%;
}

/* ==========================================================================
   GLOBAL REVEAL ENGINE (Scroll Triggers)
   ========================================================================== */
/* How it works: JS detects when this element enters the screen and adds the .active class.
   The CSS handles the actual movement and fading. 
*/
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    /* 1.2s smooth deceleration curve */
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform; /* Hardware acceleration hint */
}

.reveal-element.active,
.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CUSTOM MOUSE CURSOR
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Crucial: allows clicking through the cursor div */
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px dashed var(--accent);
    background-color: transparent !important;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--transition-luxury), height 0.4s var(--transition-luxury);
}

/* Cursor expands when hovering over links/buttons */
.cursor-outline.hover {
    width: 50px;
    height: 50px;
    animation: singleRotation 0.8s var(--transition-luxury) forwards;
}

@keyframes singleRotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cursor pulse effect on click */
.cursor-outline.click {
    animation: clickBurst 0.5s var(--transition-luxury) forwards;
}

@keyframes clickBurst {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.15); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* ==========================================================================
   TOP STRIP (Marquee & Global Contact Info)
   ========================================================================== */
.top-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 40px;
    background-color: var(--bg-secondary);
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid var(--divider);
}

.strip-left {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

/* Vignette fades on the edge of the marquee */
.marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-fade-left { left: 0; background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%); }
.marquee-fade-right { right: 0; background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%); }

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    padding-right: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- TOP STRIP MARQUEE PAUSE ON HOVER --- */
.top-strip:hover .marquee-content {
    animation-play-state: paused;
}

.strip-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 30px;
    border-left: 1px solid var(--divider);
    border-right: 1px solid var(--divider);
}

.client-portal-link {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.client-portal-link:hover { color: var(--accent); }

.strip-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5%;
    gap: 20px;
    height: 100%;
}

/* --- TOP STRIP EMAIL HOVER FIX --- */
.top-strip .strip-right a:hover {
    color: var(--accent, #ff4500) !important;
}

.contact-number { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.top-strip .strip-right .contact-number:hover {
    color: var(--accent, #ff4500) !important;
}

.social-icons { display: flex; align-items: center; gap: 15px; }
.social-icons a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
}
.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER (Sticky & Transparent Logic)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 40px; /* Sits exactly below the top strip */
    width: 100%;
    padding: 25px 5%;
    background-color: transparent;
    z-index: 99;
    box-shadow: none;
    transition: background-color 0.3s ease, padding 0.6s var(--transition-luxury), box-shadow 0.6s var(--transition-luxury);
}

/* Class added by JS when user scrolls down */
.main-header.scrolled-sticky {
    transform: translateY(-40px); /* Pushes up to hide the top strip */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 5%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
}

.main-nav>ul>li>a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.main-nav>ul>li>a:hover { color: var(--accent); }

/* ==========================================================================
   HEADER PREMIUM "BOOK A CALL" BUTTON
   ========================================================================== */
.main-header .btn-primary,
.main-header .desktop-only-cta .btn {
    /* Subtle shifting liquid gradient background */
    background: linear-gradient(90deg, var(--accent) 0%, #FF8C42 50%, var(--accent) 100%);
    background-size: 200% auto;
    color: #FFFFFF !important; /* Forces pure white text */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 90, 31, 0.25);
    /* 4s infinite linear loop for a slow, premium sheen effect */
    animation: premiumSheen 4s linear infinite;
    transition: transform 0.3s var(--transition-fast), box-shadow 0.3s var(--transition-fast);
}

/* Hover state lifts the button and increases the glow */
.main-header .btn-primary:hover,
.main-header .desktop-only-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 90, 31, 0.4);
    color: #FFFFFF !important;
}

/* The Keyframe that creates the subtle moving background */
@keyframes premiumSheen {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ==========================================================================
   DESKTOP MEGA MENU DROPDOWN
   ========================================================================== */
.has-mega-menu { position: static; }

@media (min-width: 993px) {
    .mega-menu-dropdown {
        position: absolute;
        top: 100%;
        left: 5%; 
        right: 5%; 
        width: 90%;
        background: var(--bg-secondary);
        border: 1px solid var(--divider);
        border-radius: 16px;
        padding: 40px 50px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.4s var(--transition-luxury);
        pointer-events: none;
        margin-top: 20px;
    }

    /* Invisible bridge to prevent mouse-leave trigger when moving cursor from link to dropdown */
    .mega-menu-dropdown::before {
        content: '';
        position: absolute;
        top: -30px; 
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent;
    }

    .has-mega-menu:hover .mega-menu-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        width: 100%;
    }

    .mob-plus { display: none; } 
}

.mega-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 15px;
}

.mega-col-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-col-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 0;
}

.mega-col-links a:hover { color: var(--accent); transform: translateX(5px); }

/* ==========================================================================
   GLOBAL BUTTON STYLES
   ========================================================================== */
.btn {
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 20px;
}

.btn-primary { background: var(--text-primary); color: #FFFFFF; border: 1px solid var(--text-primary); }
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--divider); }
.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   SECTION 1: HERO SCROLLJACKING (CSS GRID STACK)
   ========================================================================== */
/* The Hero Section is fully managed by JS scroll hijacking. 
   The CSS Grid Stack places all slides in the exact same cell so they crossfade without jumping. */

#hero { background-color: var(--bg-primary); }

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start; /* Forces text and image to align perfectly at the top */
    width: 100%;
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    margin-top: -12px; /* Optical alignment: offsets the invisible line-height of the huge H1 font */
}

.hero-slider {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 40px;
    width: 100%;
}

.hero-slide {
    grid-column: 1;
    grid-row: 1; /* Locks all text slides into the same grid cell */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle { font-size: 1.3rem; color: var(--text-secondary); max-width: 650px; line-height: 1.6; font-weight: 400; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 60px; justify-content: flex-start; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 80px; border-top: 1px solid var(--divider); padding-top: 30px; justify-content: start; align-items: baseline; }
.stat-col { display: flex; flex-direction: column; gap: 8px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-charcoal); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

.hero-visual-column { width: 100%; }

.hero-image-slider {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr; /* Locks all image slides into the same cell */
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background-color: var(--divider);
}

.hero-img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05); /* Slight zoom out effect as it fades in */
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-img.active { opacity: 1; transform: scale(1); }

/* ==========================================================================
   SECTION 2: THE HARD TRUTH (Dark Mode)
   ========================================================================== */
.dark-section {
    background-color: #0A0A0A;
    color: #FFFFFF;
    padding: 140px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.truth-container { max-width: 1200px; margin: 0 auto; }
.truth-header { max-width: 1000px; margin-bottom: 80px; }
.truth-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; color: #FFFFFF; }
.accent-text { color: var(--accent); }

.truth-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

/* Wrapper forces the card to take full height of grid cell */
.truth-grid .reveal-element { display: flex; }

.truth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    /* Snappy transition for mouse hover */
    transition: transform 0.3s ease-out, background 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.truth-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.truth-icon {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.truth-card:hover .truth-icon {
    transform: rotate(90deg) scale(1.1);
}

.truth-card p { font-size: 1.1rem; color: #A0A0A0; line-height: 1.5; }
.truth-card p strong { color: #FFFFFF; font-weight: 600; }
.truth-footer { margin-top: 80px; text-align: center; }
.truth-conclusion { font-size: 1.8rem; font-weight: 600; color: #FFFFFF; letter-spacing: -0.5px; }

/* ==========================================================================
   SECTION 3: GROWTH SYSTEM PIPELINE (3D Hover Cards)
   ========================================================================== */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    perspective: 1000px; /* Enables 3D space for the JS tilt effect */
}

.pipeline-grid .reveal-element { display: flex; }

.pipeline-card {
    background: var(--bg-primary);
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pipeline-card:hover { z-index: 10; } /* Pops card over neighbors during 3D tilt */

/* JS Mouse-Tracking Glow */
.pipeline-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.pipeline-content { 
    position: relative; 
    z-index: 1; 
    transform: translateZ(30px); /* Pushes text closer to user in 3D space */
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.step-number { font-size: 3.5rem; font-weight: 800; color: var(--accent); opacity: 0.2; line-height: 1; margin-bottom: 20px; }
.step-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.step-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed var(--divider); }

.pipeline-services { 
    list-style: none; 
    margin-top: auto; /* Forces lists to align at the bottom of the card universally */
}

/* JS Magnetic Pull Target */
.magnetic-item {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.2, 1, 0.3, 1), color 0.2s ease;
}

.pip-line { width: 15px; height: 2px; background-color: var(--accent); transition: width 0.3s ease; }
.magnetic-item:hover .pip-line { width: 25px; }

/* ==========================================================================
   SECTION 4: SERVICES OVERVIEW (Interactive Pure CSS)
   ========================================================================== */
.services-section { background-color: var(--bg-secondary); }
.section-header { margin-bottom: 80px; max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
.section-header h2 { font-size: 3.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -1px; margin-bottom: 15px; }
.section-header p { color: var(--text-secondary); font-size: 1.2rem; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.services-grid .reveal-element { display: flex; }

/* The Service Box Base & Hover */
.service-box { 
    background: var(--bg-secondary); 
    padding: 40px 40px; 
    border: 1px solid var(--divider); 
    border-radius: 20px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    width: 100%;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.05);
}

/* The Top Bar Slide */
.box-top-border { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background-color: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--transition-smooth); }
.service-box:hover .box-top-border { transform: scaleX(1); }

.service-box h3 { font-size: 1.8rem; margin-bottom: 30px; color: var(--text-primary); font-weight: 700; letter-spacing: -0.5px; }
.service-box ul { list-style: none; }
.service-box ul li { margin-bottom: 25px; }

/* List Items & Grid Stack */
.list-item-main { display: flex; align-items: center; gap: 15px; cursor: pointer; }

.service-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; position: relative; flex-shrink: 0; transition: background-color 0.3s ease; }
.service-arrow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed transparent; transition: border-color 0.3s ease; }
.arrow-icon { font-weight: 400; color: var(--text-primary); font-size: 1.1rem; transition: transform 0.4s ease, color 0.3s ease, font-weight 0.3s ease; }

.service-text-wrapper { position: relative; flex: 1; display: grid; align-items: center; }
.service-name, .service-desc { grid-area: 1 / 1; width: 100%; line-height: 1.4; }

.service-name { font-size: 1.15rem; font-weight: 500; color: var(--text-primary); transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; opacity: 1; transform: translateY(0); }
.service-desc { font-size: 1rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translateY(15px); transition: opacity 0.3s ease, transform 0.3s ease; }

/* Pure CSS Hover Effects (Replaces the JS) */
.js-service-item:hover .service-arrow { background-color: var(--accent-soft); }
.js-service-item:hover .service-arrow::before { border-color: var(--accent); animation: rotateSlow 8s linear infinite; }
.js-service-item:hover .arrow-icon { transform: rotate(45deg); color: var(--accent); font-weight: 800; }

.js-service-item:hover .service-name { opacity: 0; transform: translateY(-15px); transition: opacity 0.3s ease, transform 0.3s ease; }
.js-service-item:hover .service-desc { opacity: 1; transform: translateY(0); transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; }

@keyframes rotateSlow {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTION 5: INDUSTRIES WE SERVE
   ========================================================================== */
#industries { background-color: var(--bg-secondary); }
#industries .center-text { text-align: center; }

.oebking-industries { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
    border: 1px solid var(--divider); 
    border-radius: 16px; 
    overflow: hidden; 
    background: var(--bg-secondary); 
}

.oebking-industries .industry-item { 
    position: relative; 
    padding: 35px 30px; 
    min-height: 120px; 
    cursor: pointer; 
    border-right: 1px solid var(--divider); 
    border-bottom: 1px solid var(--divider); 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
}

.oebking-industries .industry-item:nth-child(2n) { border-right: none; }
.oebking-industries .industry-item:nth-last-child(-n+2) { border-bottom: none; }

/* The black fill animation */
.oebking-industries .industry-item::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    background-color: var(--text-primary); 
    z-index: 1; 
    transform: scaleY(0); 
    transform-origin: bottom; 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.oebking-industries .industry-item:hover::before { transform: scaleY(1); }
.oebking-industries .industry-title { position: relative; z-index: 2; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); transition: transform 0.4s ease, opacity 0.3s ease; letter-spacing: -0.5px; }
.oebking-industries .industry-desc { position: absolute; z-index: 2; left: 30px; right: 30px; font-size: 0.95rem; font-weight: 400; color: #FFFFFF; line-height: 1.6; opacity: 0; transform: translateY(20px); transition: transform 0.4s ease, opacity 0.4s ease; pointer-events: none; }
.oebking-industries .industry-item:hover .industry-title { transform: translateY(-15px); opacity: 0; }
.oebking-industries .industry-item:hover .industry-desc { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   SECTION 6: CLEAR INVESTMENT (Sticky Sidebar Layout)
   ========================================================================== */
.sticky-scroll-section { padding-top: 120px; padding-bottom: 120px; background-color: #0A0A0A; position: relative; }
.sticky-container { display: flex; align-items: flex-start; max-width: 1300px; margin: 0 auto; gap: 80px; }

/* Locks title to left side while cards scroll on the right */
.sticky-left { position: sticky; top: 150px; width: 40%; display: flex; flex-direction: column; align-self: flex-start; }
.sticky-title { font-size: 4rem; font-weight: 800; line-height: 1.1; color: #FFFFFF; margin-bottom: 25px; letter-spacing: -1.5px; }
.sticky-desc { font-size: 1.15rem; color: #A0A0A0; line-height: 1.6; margin-bottom: 50px; }

.scroll-indicator { display: flex; align-items: center; gap: 15px; color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--accent); border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background-color: var(--accent); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollWheel 1.5s infinite ease-in-out; }

@keyframes scrollWheel { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

.sticky-right { width: 60%; display: flex; flex-direction: column; gap: 100px; padding-bottom: 100px; }

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease-out;
}
.pricing-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.tier-badge { display: inline-block; padding: 6px 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.tier-title { font-size: 2.2rem; color: #FFFFFF; font-weight: 800; margin-bottom: 15px; }
.tier-desc { color: #A0A0A0; font-size: 1.05rem; margin-bottom: 40px; line-height: 1.6; }
.tier-features { list-style: none; margin-bottom: 40px; }
.tier-features li { color: #E0E0E0; font-size: 1.05rem; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.check { color: var(--accent); font-weight: 800; }
.tier-price { font-size: 1.8rem; color: #FFFFFF; font-weight: 700; margin-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; }
.pricing-card .btn-primary { width: 100%; }

/* ==========================================================================
   SECTION 7: CASE STUDIES
   ========================================================================== */
.case-studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1300px; margin: 0 auto; }

.case-card { background: var(--bg-secondary); border: 1px solid var(--divider); border-radius: 20px; overflow: hidden; transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; }
.case-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); }

.case-img-wrapper { width: 100%; height: 260px; overflow: hidden; background-color: var(--divider); }
.case-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-luxury); }
.case-card:hover .case-img { transform: scale(1.05); }

.case-content { padding: 40px 35px; }
.case-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.case-category { color: var(--text-secondary); }
.case-metric { color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 12px; }
.case-title { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); margin-bottom: 15px; letter-spacing: -0.5px; }
.case-desc { font-size: 1rem; color: var(--text-secondary); margin-bottom: 30px; line-height: 1.6; }
.case-link { display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; }
.case-card:hover .case-link { color: var(--accent); }

/* ==========================================================================
   SECTION 8: CLIENT LOGO MARQUEE
   ========================================================================== */
.logo-marquee-container { position: relative; width: 100%; overflow: hidden; padding: 20px 0; background: transparent; display: flex; flex-direction: column; }
.logo-fade { position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none; }
.logo-fade-left { left: 0; background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%); }
.logo-fade-right { right: 0; background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%); }
.marquee-row { width: 100%; overflow: hidden; }
.logo-marquee-track { display: flex; width: fit-content; }
.track-right { animation: scrollRight 40s linear infinite; }
.track-left { animation: scrollLeft 40s linear infinite; }

.logo-slide { display: flex; align-items: center; gap: 80px; padding-right: 80px; flex-shrink: 0; }
.logo-slide img { height: 45px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease; cursor: pointer; flex-shrink: 0; }

.marquee-row:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-container.is-hovered .logo-slide img { filter: grayscale(100%); opacity: 0.2; }
.logo-marquee-container .logo-slide img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(calc(var(--scroll-width) * -1)); } }
@keyframes scrollRight { 0% { transform: translateX(calc(var(--scroll-width) * -1)); } 100% { transform: translateX(0); } }

/* ==========================================================================
   SECTION 9: PATH TO SUCCESS GRID
   ========================================================================== */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1300px; margin: 0 auto; padding-top: 20px; }
.path-card { background: var(--bg-primary); border: 1px solid var(--divider); border-radius: 16px; padding: 40px 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out; cursor: pointer; }
.path-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
.path-footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--divider); padding-top: 20px; transition: border-color 0.3s ease-out; }
.path-meta { display: flex; align-items: center; gap: 10px; }
.path-num { color: var(--text-secondary); font-size: 0.9rem; font-weight: 700; }
.path-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); transition: color 0.3s ease-out; }
.path-icon { color: var(--text-primary); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease-out, color 0.3s ease-out; }

.path-card:hover { border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); transform: translateY(-8px); }
.path-card:hover .path-footer { border-color: rgba(255, 90, 31, 0.2); }
.path-card:hover .path-num, .path-card:hover .path-title { color: var(--accent); }
.path-card:hover .path-icon { color: var(--accent); animation: iconBounce 1s ease-in-out infinite; }

@keyframes iconBounce { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.1); } 100% { transform: translateY(0) scale(1); } }

/* ==========================================================================
   SECTION 10: FAQ & COMMAND CENTER (Form)
   ========================================================================== */
.faq-booking-container { display: flex; align-items: flex-start; gap: 100px; max-width: 1300px; margin: 0 auto; }
.booking-col { width: 35%; position: sticky; top: 150px; }
.booking-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); margin-bottom: 25px; letter-spacing: -1px; }
.booking-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }

/* FAQ Accordion */
.faq-col { width: 65%; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--divider); padding: 35px 0; cursor: pointer; }
.faq-item:first-child { padding-top: 0; }
.faq-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.faq-question { font-size: 1.35rem; font-weight: 600; color: var(--text-primary); transition: color 0.3s ease; margin: 0; line-height: 1.4; }
.faq-item:hover .faq-question { color: var(--accent); }
.faq-arrow { flex-shrink: 0; width: 44px; height: 44px; background-color: transparent; }
.faq-arrow .arrow-icon { font-size: 1.2rem; transition: transform 0.4s var(--transition-luxury), color 0.3s ease; }
.faq-item:hover .faq-arrow::before { border-color: var(--accent); }

/* FAQ Active State */
.faq-item.is-open .faq-question { color: var(--accent); }
.faq-item.is-open .faq-arrow { background-color: var(--accent-soft); }
.faq-item.is-open .faq-arrow::before { border-color: var(--accent); animation: rotateSlow 8s linear infinite; }
.faq-item.is-open .arrow-icon { color: var(--accent); transform: rotate(180deg); font-weight: 800; }

/* The Expanding Wrapper Trick */
.faq-answer-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding-top: 25px; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; margin: 0; opacity: 0; transition: opacity 0.2s ease-out; }
.faq-item.is-open .faq-answer-wrapper { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { opacity: 1; transition: opacity 0.4s ease-out 0.15s; }

/* Command Center Layout */
.funnel-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; max-width: 1300px; margin: 0 auto; }
.funnel-left { display: flex; flex-direction: column; }
.funnel-title { font-size: 3.2rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); margin-bottom: 30px; letter-spacing: -1px; }
.funnel-trust-list { list-style: none; margin-bottom: 50px; }
.funnel-trust-list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 15px; font-weight: 500; }

.cal-card { display: flex; align-items: center; justify-content: space-between; background: var(--bg-secondary); border: 1px solid var(--divider); padding: 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.cal-card:hover { border-color: var(--accent); box-shadow: 0 15px 35px rgba(255, 90, 31, 0.08); }
.cal-card-text h4 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.cal-card-text p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; line-height: 1.4; max-width: 90%; }
.cal-icon-btn { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--bg-secondary); border: 1px solid var(--divider); border-radius: 12px; color: var(--text-primary); transition: all 0.3s ease; flex-shrink: 0; }
.cal-card:hover .cal-icon-btn { background: var(--accent); color: #FFFFFF; border-color: var(--accent); transform: scale(1.05) translateY(-3px); }

/* Quick Contact Strip */
.contact-btn-group { display: flex; gap: 15px; }
.contact-split-btn { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 20px; }
.pulse-btn { position: relative; z-index: 1; }
.pulse-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; background: inherit; z-index: -1; animation: heartbeat 2s infinite cubic-bezier(0.25, 1, 0.5, 1); }
@keyframes heartbeat { 0% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.08); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
.w-full-btn { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* 3D Multi-Step Form Logic */
.funnel-right { position: relative; background: transparent; }
.form-wrapper { position: relative; width: 100%; min-height: 580px; display: flex; }

.form-step { position: absolute; top: 0; left: 0; width: 100%; transition: transform 0.6s var(--transition-luxury), opacity 0.6s var(--transition-luxury); opacity: 0; transform: translateX(50px); pointer-events: none; }
.form-step.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.form-step.slide-left { transform: translateX(-50px); }

.step-header { margin-bottom: 30px; }
.step-indicator { font-size: 0.85rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.step-header h3 { font-size: 2rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }

/* 3D Inset Effect for Inputs */
.input-3d { width: 100%; padding: 18px 20px; background-color: #EBEBEB; border: 1px solid #D8D8D8; border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--text-primary); box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.07), inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(255, 255, 255, 0.8); transition: all 0.3s ease; }
.input-3d:focus { outline: none; border-color: var(--accent); background-color: var(--bg-secondary); box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05), 0 0 0 4px rgba(255, 90, 31, 0.15); }
select.input-3d { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A1A1A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 12px auto; }

.success-state { text-align: left; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.success-icon { width: 60px; height: 60px; background: var(--accent-soft); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold; margin-bottom: 25px; }
.success-state h3 { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 15px; }
.success-state p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.success-divider { margin: 20px 0; color: var(--divider); font-weight: bold; font-size: 1rem; letter-spacing: 2px; }

/* ==========================================================================
   GLOBAL WIDGETS
   ========================================================================== */
.floating-action-center { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; pointer-events: none; }
.float-btn { pointer-events: auto; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 8px 20px rgba(0,0,0,0.4); cursor: pointer; border: none; }
.floating-action-center .btn-call {
    background-color: #ffffff;
    color: #111111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-action-center .btn-call:hover {
    background-color: #f1f1f1;
    transform: scale(1.1);
}
.btn-whatsapp { background: #25D366; }
.btn-top { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-main); opacity: 0; transform: translateY(20px); visibility: hidden; }
.btn-top.show { opacity: 1; transform: translateY(0); visibility: visible; }

.float-btn:hover { transform: scale(1.08) translateY(-3px); }

@keyframes subtlePulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.btn-whatsapp { animation: subtlePulse 3s infinite; }

/* ==========================================================================
   MOBILE & RESPONSIVE MEDIA QUERIES
   ========================================================================== */
.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.mobile-menu-btn span { width: 30px; height: 2px; background-color: var(--text-primary); transition: all 0.3s ease; }
.mobile-only-cta { display: none; }
.desktop-only-cta { display: block; }

@media (max-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
    .hero-stats { gap: 40px; }
    .pipeline-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .case-studies-grid { grid-template-columns: repeat(2, 1fr); }
    .path-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}

@media (max-width: 992px) {
    .strip-center, .strip-right { display: none !important; }
    .strip-left { width: 100% !important; border-right: none; }

    .has-mega-menu { width: 100%; }
    .mega-menu-link { display: flex; justify-content: space-between; align-items: center; width: 100%; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
    .mega-menu-dropdown { display: none; padding: 15px 0 15px 15px; }
    .has-mega-menu.is-active .mega-menu-dropdown { display: block; }
    .dropdown-arrow { transition: transform 0.3s ease; }
    .has-mega-menu.is-active .dropdown-arrow { transform: rotate(180deg); }
    .mega-menu-grid { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .mega-col-title { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin-bottom: 0; padding-bottom: 10px; cursor: pointer; border-bottom: none; }
    .mob-plus { display: inline-block; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform 0.3s ease; line-height: 1; }
    .mega-col-links { display: none; padding-top: 10px; padding-bottom: 15px; padding-left: 15px; border-left: 2px solid var(--accent-soft); }
    .mega-col.is-open .mega-col-links { display: flex; }
    .mega-col.is-open .mob-plus { transform: rotate(45deg); }

    .funnel-container { grid-template-columns: 1fr; padding-top: 0; }
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .contact-btn-group { flex-direction: column; }
    .funnel-title { font-size: 2.6rem; }

    .mobile-menu-btn { display: flex !important; flex-direction: column; justify-content: space-between; width: 32px; height: 20px; cursor: pointer; z-index: 1001; }
    .mobile-menu-btn span { width: 100%; height: 3px; background-color: var(--accent); border-radius: 2px; transition: all 0.3s ease; }
    .desktop-only-cta { display: none !important; }
    .mobile-only-cta { display: block; margin-top: 30px; }

    .main-nav {
        position: fixed; top: 0; right: 0; transform: translateX(100%); width: 80%; max-width: 400px; height: 100vh;
        background-color: var(--bg-secondary); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column;
        justify-content: flex-start; padding: 120px 40px 40px 40px; transition: transform 0.6s var(--transition-luxury); z-index: 1000; overflow-y: auto; 
    }
    .main-nav.active { transform: translateX(0); }
    .main-nav > ul { flex-direction: column; gap: 20px; align-items: flex-start; width: 100%; }
    .main-nav > ul > li { width: 100%; }
    .main-nav > ul > li > a { font-size: 1.5rem; font-weight: 700; padding: 15px 0; width: 100%; justify-content: space-between; }

    .mobile-only-cta .btn-primary { background-color: var(--text-primary); color: #FFFFFF; border-color: var(--text-primary); width: 100%; }
    .mobile-only-cta .btn-primary:hover, .mobile-only-cta .btn-primary:active { background-color: var(--text-primary); color: var(--accent); border-color: var(--text-primary); transform: translateY(-3px); }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .cursor-dot, .cursor-outline { display: none !important; }

    .main-section { min-height: auto; height: auto; padding: 100px 5%; }

    .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { max-width: 100%; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    /* FIXED: Completely hides the right-side visual column on mobile */
    .hero-visual-column { display: none !important; }

    .marquee-wrapper { width: 100% !important; border-right: none !important; }
    .top-strip { height: 40px !important; flex-direction: row !important; }
    .main-header { top: 0; transform: translateY(40px); padding: 15px 5%; }
    .main-header.scrolled-sticky { transform: translateY(0); padding: 15px 5%; }

    .faq-booking-container { flex-direction: column; gap: 50px; }
    .booking-col { width: 100%; position: relative; top: 0; }
    .faq-col { width: 100%; }
    .booking-title { font-size: 2.8rem; }
    .faq-question { font-size: 1.15rem; }

    .services-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2.5rem; }
    .truth-title { font-size: 3rem; }
    .truth-grid { grid-template-columns: repeat(2, 1fr); }
    .truth-conclusion { font-size: 1.4rem; }
    .dark-section { padding: 100px 5%; }

    .sticky-container { flex-direction: column; gap: 40px; }
    .sticky-left { position: relative; top: 0; width: 100%; margin-bottom: 20px; }
    .sticky-right { width: 100%; gap: 30px; padding-bottom: 0; }
    .pricing-card { padding: 40px 30px; }

    /* Disables 3D effects on mobile to prevent scrolling lag */
    .pipeline-grid { perspective: none; }
    .pipeline-card, .pipeline-card:hover { transform: none !important; transition: none !important; }
    .pipeline-glow { display: none !important; }
}

@media (max-width: 768px) {
    .case-studies-grid { grid-template-columns: 1fr; gap: 30px; }
    .case-img-wrapper { height: 220px; }
    .case-content { padding: 30px 25px; }
    .logo-slide { gap: 40px; padding-right: 40px; }
    .logo-fade { width: 80px; }
    .logo-slide img { height: 35px; }
    .path-grid { grid-template-columns: 1fr; }
    .oebking-industries { grid-template-columns: 1fr; }
    .oebking-industries .industry-item { border-right: none; border-bottom: 1px solid var(--divider) !important; min-height: 130px; }
    .oebking-industries .industry-item:last-child { border-bottom: none !important; }
    

}

@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .hero-stats { grid-template-columns: 1fr; gap: 30px; }
    .truth-title { font-size: 2.2rem; }
    .truth-grid { grid-template-columns: 1fr; }
    .pipeline-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
#footer.main-footer { background-color: #0A0A0A; color: #FFFFFF; position: relative; overflow: hidden; padding-top: 100px; padding-bottom: 0; }
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo-text { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: #FFFFFF; text-decoration: none; letter-spacing: -1px; display: inline-block; margin-bottom: 30px; }
.footer-contact-info { margin-bottom: 30px; }
.contact-line { display: flex; align-items: flex-start; gap: 15px; color: #A0A0A0; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
.contact-line svg { color: #FFFFFF; flex-shrink: 0; margin-top: 3px; }
.contact-line a { color: #A0A0A0; text-decoration: none; transition: color 0.3s ease; }
.contact-line a:hover { color: var(--accent); }

/* --- Company Profile Button Interactive Hover --- */
.company-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent); 
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0); 
}

.company-profile-btn .btn-icon {
    background-color: #ffffff;
    color: var(--accent);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.3s ease;
}

/* Gives the arrow a nice spring-like rotation curve */
.company-profile-btn .btn-icon svg {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

/* Lifts the whole button and adds glow */
.company-profile-btn:hover {
    transform: translateY(-4px); 
    box-shadow: 0 8px 25px rgba(255, 90, 31, 0.4); 
    color: #ffffff;
}

/* Lifts the white circle up slightly and scales it */
.company-profile-btn:hover .btn-icon {
    transform: translateY(-4px) scale(1.1); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for the lifting circle */
}

/* Rotates the arrow 360 degrees smoothly */
.company-profile-btn:hover .btn-icon svg {
    transform: rotate(360deg); 
}

/* --- Premium Menu Styling --- */
.footer-desc { color: #A0A0A0; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px;}

.premium-menu .footer-heading {
    position: relative;
    padding-top: 15px; 
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px; 
    color: #ffffff;
    text-transform: uppercase;
}

.premium-menu .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-menu .footer-links li {
    margin-bottom: 12px;
}

.premium-menu .footer-links a {
    color: #A1A1AA; 
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.premium-menu .footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px); 
}

/* --- Animated Border Styling --- */
.widget-header {
    position: relative;
    width: 100%;
}

.animated-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1); 
}

.animated-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    background-color: var(--accent); 
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-menu:hover .animated-border::after {
    width: 30%;
}

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.copyright { color: #6B6B6B; font-size: 0.9rem; margin: 0; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: #FFFFFF; transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: var(--accent); transform: translateY(-3px); }

.footer-watermark { font-size: 18vw; font-weight: 900; font-family: var(--font-heading); color: rgba(255, 255, 255, 0.02); text-align: center; line-height: 0.7; margin-top: -2vw; margin-bottom: -4vw; user-select: none; pointer-events: none; }

/* ==========================================================================
   CINEMATIC CURTAIN REVEAL PRELOADER
   ========================================================================== */
.oeb-preloader { position: fixed; inset: 0; z-index: 999999; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.preloader-top, .preloader-bottom { position: absolute; left: 0; width: 100%; height: 50vh; background-color: #0A0A0A; z-index: 1; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.preloader-top { top: 0; transform-origin: top; }
.preloader-bottom { bottom: 0; transform-origin: bottom; }

.preloader-content { 
    position: relative; 
    z-index: 3; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    /* FIXED: Forces the container to take the full screen */
    height: 100vh;
    width: 100vw;
    gap: 0; 
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease; 
}

.preloader-logo, .preloader-sub { 
    font-family: var(--font-heading); 
    margin: 0; 
    text-transform: uppercase; 
    line-height: 1;
}

.preloader-logo { 
    color: #FFFFFF; 
    font-size: clamp(2rem, 6vw, 4.5rem); 
    font-weight: 800; 
    letter-spacing: -1px; 
    /* FIXED: Takes exactly the top half of the screen, aligns text to the bottom */
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 25px; /* Creates the top half of the line gap */
}

.preloader-sub { 
    color: var(--accent); 
    font-size: clamp(1rem, 2vw, 1rem); 
    font-weight: 400;
    letter-spacing: 3px;
    /* FIXED: Takes exactly the bottom half of the screen, aligns text to the top */
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 25px; /* Creates the bottom half of the line gap */
}

.preloader-line { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 12px; height: 12px; background-color: var(--accent); border-radius: 50%; z-index: 4; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.5s cubic-bezier(0.8, 0, 0.2, 1), height 0.5s cubic-bezier(0.8, 0, 0.2, 1), border-radius 0.5s ease, opacity 0.3s ease; }

.oeb-preloader.is-dot .preloader-line { transform: translate(-50%, -50%) scale(1); }
.oeb-preloader.is-drawing .preloader-line { width: 100vw; height: 2px; border-radius: 0; }
.oeb-preloader.is-opening .preloader-top { transform: translateY(-100%); }
.oeb-preloader.is-opening .preloader-bottom { transform: translateY(100%); }
.oeb-preloader.is-opening .preloader-line { opacity: 0; }
.oeb-preloader.is-opening .preloader-content { opacity: 0; transform: scale(1.05); filter: blur(10px); }

/* ==========================================================================
   ABOUT US: MODULAR CMS BLOCKS (Premium Redesign)
   ========================================================================== */

/* 1. Vertical Accent Manifesto */
.manifesto-block { border-left: 4px solid var(--accent); padding-left: 30px; margin: 60px 0; }
.manifesto-block h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--text-primary); letter-spacing: -1px; }
.manifesto-block span.highlight { color: var(--accent); }

/* 2. Elite Principles Grid */
.elite-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.elite-card { background: var(--bg-secondary); padding: 50px 40px; border-top: 4px solid transparent; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); transition: all 0.4s ease; }
.elite-card:hover { transform: translateY(-8px); border-top-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.elite-card h3 { font-size: 1.5rem; color: var(--accent); margin-bottom: 20px; font-weight: 700; letter-spacing: -0.5px; }
.elite-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* 3. Cinematic Video Vault */
.video-vault { position: relative; width: 100%; height: 600px; border-radius: 20px; overflow: hidden; margin: 40px auto 100px; background-color: var(--bg-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; max-width: 1200px; }
.video-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.5s ease; }
.video-vault:hover .video-thumbnail { opacity: 0.3; }
.play-btn { position: relative; z-index: 2; width: 90px; height: 90px; background: rgba(255, 90, 31, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--transition-luxury); animation: pulsePlay 2s infinite; }
.play-btn svg { width: 30px; height: 30px; fill: #FFFFFF; margin-left: 5px; }
.video-vault:hover .play-btn { transform: scale(1.1); }

/* 4. Genesis Split Story */
.genesis-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 100px 5%; align-items: center; max-width: 1300px; margin: 0 auto; }
.genesis-content h2 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 30px; color: var(--text-primary); line-height: 1.1; }
.genesis-content p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.genesis-visual { background: var(--bg-secondary); border: 1px solid var(--divider); padding: 50px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.03); }
.genesis-visual h3 { font-size: 2rem; color: var(--text-primary); margin-bottom: 20px; }
.genesis-visual .accent-text { color: var(--accent); font-weight: 800; }

/* 5. Centered Decade Stats (Image 1 fix) */
.white-canvas { background-color: var(--bg-secondary); padding: 100px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.stats-centered-wrapper { display: flex; justify-content: center; width: 100%; padding: 0 5%; }
.decade-stats-row { display: flex; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 1200px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 50px 0; }
.decade-stat { flex: 1; border-right: 1px solid var(--divider); padding: 0 30px; text-align: left; min-width: 180px; }
.decade-stat:last-child { border-right: none; }
.decade-number { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; letter-spacing: -1px; }
.decade-label { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.decade-sub { font-size: 0.9rem; color: var(--text-secondary); }

/* 6. Perfected Engineering Timeline (Image 2 fix) */
.timeline-wrapper { position: relative; max-width: 1200px; margin: 80px auto; padding: 0 5%; }
/* The MAGIC LINE: spans exactly 80% to stop perfectly at the 5th dot */
.timeline-line { position: absolute; top: 11px; left: 5%; width: 80%; height: 2px; background-color: var(--divider); z-index: 1; }
.timeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; z-index: 2; }
.timeline-step { display: flex; flex-direction: column; align-items: flex-start; }
.timeline-dot { width: 24px; height: 24px; background-color: var(--bg-secondary); border: 4px solid var(--accent); border-radius: 50%; margin-bottom: 25px; transition: transform 0.3s ease; }
.timeline-step:hover .timeline-dot { transform: scale(1.3); background-color: var(--accent); }
.timeline-title { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); margin-bottom: 15px; letter-spacing: -0.5px; }
.timeline-list { list-style: none; padding: 0; }
.timeline-list li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 10px; font-weight: 500; }

/* 7. Infinite Testimonial Marquee (Image 3 fix) */
.dark-testi-section { background-color: #0A0A0A; padding: 120px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); }
.testi-header { text-align: center; margin-bottom: 60px; }
.testi-header h2 { font-size: 3.5rem; color: #FFFFFF; font-weight: 800; letter-spacing: -1px; }
.testi-header p { color: #A0A0A0; font-size: 1.2rem; }
.testi-slider-container { width: 100%; position: relative; display: flex; }
/* Fade edges to black so cards appear out of nowhere */
.testi-slider-container::before, .testi-slider-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; pointer-events: none; }
.testi-slider-container::before { left: 0; background: linear-gradient(to right, #0A0A0A 0%, transparent 100%); }
.testi-slider-container::after { right: 0; background: linear-gradient(to left, #0A0A0A 0%, transparent 100%); }
/* The Infinite Track */
.testi-track { display: flex; width: max-content; gap: 30px; padding: 0 15px; animation: scrollTesti 40s linear infinite; }
.testi-track:hover { animation-play-state: paused; }
.testi-card { width: 450px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 50px 40px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color 0.3s ease; }
.testi-card:hover { border-color: rgba(255,90,31,0.5); }
.quote-mark { font-family: serif; font-size: 5rem; color: rgba(255, 90, 31, 0.2); line-height: 0; margin-bottom: 40px; display: block; }
.testi-card p { font-size: 1.15rem; color: #E0E0E0; line-height: 1.6; margin-bottom: 40px; }
.testi-author { font-size: 1.1rem; font-weight: 700; color: var(--accent); display: block; }
.testi-company { font-size: 0.95rem; color: #888; }

@keyframes scrollTesti { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }

/* ==========================================================================
   ABOUT US: FINAL POLISH & FIXES
   ========================================================================== */

/* 1. New Interactive Core Values Grid */
.core-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.core-value-card { background: var(--bg-primary); padding: 40px; border-radius: 16px; border: 1px solid var(--divider); display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; position: relative; overflow: hidden; }
.core-value-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: rgba(255, 90, 31, 0.3); }
.cv-title { color: var(--accent); font-weight: 700; margin-bottom: 15px; display: block; font-size: 1.4rem; }
.cv-text { font-size: 1.15rem; line-height: 1.6; color: var(--text-primary); font-weight: 500; }
.cv-icon-wrapper { position: relative; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }

/* FIX 1: Dashed Circle Base State (Shrunk and completely transparent) */
/* Replace your current .cv-dashed-circle with this: */
.cv-dashed-circle { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    border: 1.5px dashed rgba(0, 0, 0, 0.25); /* Explicitly forced color instead of variable */
    border-radius: 50%; 
    opacity: 0; 
    transform: scale(0.5); 
    transition: opacity 0.4s ease, border-color 0.4s ease; 
    box-sizing: border-box;
}

.cv-arrow { 
    font-size: 1.3rem; 
    color: var(--text-primary); 
    transition: transform 0.3s ease, color 0.3s ease; 
    line-height: 1; 
    margin-left: 0px; 
    display: inline-flex; /* Required for the transform to work */
    align-items: center;
    justify-content: center;
    transform: rotate(0deg); /* Makes the right-arrow point Right by default */
}

.core-values-header h2 {
    text-decoration: none !important; /* Forces the underline to disappear */
    border-bottom: none !important;
}

/* FIX 1: Dashed Circle Hover State (Grows to full size, Fades in, Rotates) */
.core-value-card:hover .cv-dashed-circle { 
    border-color: var(--accent); 
    opacity: 1; 
    animation: dashedSpin 6s linear infinite;
}
/* The Arrow Hover Animation (Diagonal Slide) */
.core-value-card:hover .cv-arrow { 
    transform: rotate(-45deg); 
    color: var(--accent); 
}

@keyframes dashedSpin {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* -----------------------------------------------------------
   FIX 2: Video Play Button Pulse Effect
----------------------------------------------------------- */
.play-btn {
    animation: videoPulse 2s infinite; 
    transition: transform 0.3s ease;
}
.play-btn:hover {
    transform: scale(1.1);
    animation: none; /* Stops pulsing when hovering over it */
}
@keyframes videoPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(255, 90, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* -----------------------------------------------------------
   FIX 3: Seamless Infinite Marquee Loop for Testimonials
----------------------------------------------------------- */
.testi-track {
    display: flex;
    width: max-content; /* Forces the track to be exactly as wide as all cards combined */
    gap: 30px; /* Explicit gap matching your CSS layout */
    animation: infiniteScroll 35s linear infinite;
}
.testi-track:hover {
    animation-play-state: paused; /* Pauses on hover so users can read */
}
@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    /* Shift exactly 50% of the total width minus half of the 30px gap */
    100% { transform: translateX(calc(-50% - 15px)); } 
}

/* -----------------------------------------------------------
   Desktop Centering & Mobile Overrides
----------------------------------------------------------- */
@media (min-width: 993px) {
    .timeline-step { align-items: center; text-align: center; }
    .timeline-dot { margin-left: auto; margin-right: auto; }
    /* Perfectly anchors the line from the center of dot 1 to the center of dot 5 */
    .timeline-line { left: 10% !important; width: 80% !important; }
    .timeline-list { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 992px) {
    .core-values-grid { grid-template-columns: 1fr; }
}


/* Mobile Overrides for New Structure */
/* ==========================================================================
   ABOUT US: AGGRESSIVE MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 992px) {
    /* 1. Universal Spacing Fixes (Overrides inline desktop padding) */
    main[style] { padding-top: 100px !important; padding-bottom: 40px !important; }
    .white-canvas { padding: 50px 0 !important; }
    .dark-testi-section { padding: 60px 0 !important; }
    
    /* 2. Hero & Manifesto Mobile Typography */
    .manifesto-block { margin: 40px 0; padding-left: 20px; border-left-width: 3px; }
    .manifesto-block h2 { font-size: 1.8rem !important; line-height: 1.3; }

    /* 3. Elite Principles Grid */
    .elite-principles-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
    .elite-card { padding: 30px 25px; }

    /* 4. Video Vault - Reduce massive height */
    .video-vault { height: 250px !important; margin: 40px auto !important; border-radius: 12px; }
    .play-btn { width: 60px; height: 60px; }
    .play-btn svg { width: 20px; height: 20px; }

    /* 5. Genesis Story - Stack and reduce padding */
    .genesis-split { grid-template-columns: 1fr; gap: 40px; padding: 40px 5%; margin: 40px auto; }
    .genesis-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
    .genesis-visual { padding: 30px 20px; }
    .genesis-visual h3 { font-size: 1.5rem; }

    /* 6. Decade Stats - Convert from 5-cols to a clean 2x2 Grid (5th item centered at bottom) */
    .decade-stats-row { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 15px; 
        padding: 30px 0; 
        border: none !important; 
    }
    .decade-stat { 
        border-right: none !important; 
        border-bottom: 1px solid var(--divider); 
        padding: 20px 10px !important; 
        text-align: center !important; 
    }
    /* Make the 5th stat (Zero Leakage) stretch across the whole bottom row safely */
    .decade-stat:nth-child(5) { 
        grid-column: 1 / -1; 
        border-bottom: none !important; 
    }
    .decade-number { font-size: 2.2rem; }

    /* 7. Engineering Timeline - Convert from Horizontal to Perfect Vertical Stack */
    .timeline-wrapper { margin: 40px auto; }
    .timeline-grid { grid-template-columns: 1fr !important; gap: 30px; }
    /* Transform the horizontal line into a vertical line on the left side */
    .timeline-line { 
        width: 2px !important; 
        height: calc(100% - 40px) !important; 
        left: calc(5% + 11px) !important; 
        top: 0 !important; 
    }
    .timeline-step { 
        flex-direction: row !important; 
        gap: 20px; 
        align-items: flex-start; 
    }
    .timeline-dot { margin-bottom: 0 !important; flex-shrink: 0; }
    .timeline-content { padding-top: 2px; }

    /* 8. Testimonial Slider - Make cards fit phone screens */
    .testi-header { margin-bottom: 40px; }
    .testi-header h2 { font-size: 2.2rem; }
    .testi-card { 
        width: 300px; /* Slimmed down for mobile */
        padding: 30px 25px; 
    }
    .quote-mark { font-size: 3.5rem; margin-bottom: 20px; }
    /* Reduce the black fade edges so they don't cover the smaller cards */
    .testi-slider-container::before, .testi-slider-container::after { width: 50px; }
}

/* Extra small screens (Phones under 400px wide) */
@media (max-width: 480px) {
    .decade-stats-row { grid-template-columns: 1fr !important; }
    .decade-stat:nth-child(5) { grid-column: auto; }
    .timeline-line { left: 11px !important; }
    .timeline-wrapper { padding: 0 !important; }
}

/* ==========================================================================
   SITEMAP PAGE STYLING (Row Style + Exact Services Arrow)
   ========================================================================== */

/* --- Cinematic Left-Aligned Hero --- */
.sitemap-hero {
    padding: 180px 5% 100px;
    background-color: var(--bg-primary);
}

.sitemap-hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sitemap-huge-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.sitemap-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* --- Layout Grids (Row Based) --- */
.sitemap-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* The Row Card: Replaces Grid */
.sitemap-row-card {
    background: var(--bg-secondary);
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 50px 60px;
    margin-bottom: 40px;
    display: flex;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Card Hover Lift & Shadow */
.sitemap-row-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.05);
}

/* The Top Bar Slide (Moved from bottom to TOP) */
.sitemap-row-card .box-top-border { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background-color: var(--accent); 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); 
}
.sitemap-row-card:hover .box-top-border { transform: scaleX(1); }

/* Left side Title Column */
.sitemap-row-header {
    width: 30%;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

/* Right side Content Column */
.sitemap-row-content {
    width: 70%;
}

/* --- Base Links & Lists --- */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.sitemap-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px dashed var(--divider);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    cursor: pointer;
}

/* Hide border on the last items in a standard list, but in a grid it's safer to keep them light */
.sitemap-link .link-num {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    width: 40px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.sitemap-link .link-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- THE EXACT ARROW & DASHED CIRCLE LOGIC --- */
/* (Pulled directly from your Services code block) */
.service-arrow { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    position: relative; 
    flex-shrink: 0; 
    transition: background-color 0.3s ease; 
    background-color: transparent;
    margin-left: auto; /* Pushes the arrow perfectly to the right side of the list item */
}

.service-arrow::before { 
    content: ""; 
    position: absolute; 
    inset: 0; 
    border-radius: 50%; 
    border: 1px dashed transparent; 
    transition: border-color 0.3s ease; 
}

.arrow-icon { 
    font-weight: 400; 
    color: var(--text-primary); 
    font-size: 1.1rem; 
    transition: transform 0.4s ease, color 0.3s ease, font-weight 0.3s ease; 
    display: inline-block;
    transform: rotate(0deg); 
}

/* The Hover Triggers mapped to .sitemap-link instead of .js-service-item */
.sitemap-link:hover .service-arrow { background-color: var(--accent-soft); }
.sitemap-link:hover .service-arrow::before { border-color: var(--accent); animation: rotateSlow 8s linear infinite; }
.sitemap-link:hover .arrow-icon { transform: rotate(45deg); color: var(--accent); font-weight: 800; }

.sitemap-link:hover .link-text {
    color: var(--accent);
    transform: translateX(8px);
}
.sitemap-link:hover .link-num { color: var(--accent); }


/* --- Nested Sub-Navigation (For Row 2: Our Services) --- */
.sitemap-group { margin-bottom: 10px; }
.group-head { border-bottom: none; padding-bottom: 10px; }

.sitemap-sublist {
    list-style: none;
    padding: 0 0 20px 40px; 
    margin: 0;
}

.sitemap-sublist li {
    margin-bottom: 10px;
    position: relative;
}

/* The little file-tree directory lines */
.sitemap-sublist li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 10px;
    height: 1px;
    background-color: var(--text-secondary);
    opacity: 0.3;
}

.sitemap-sublist a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.sitemap-sublist a:hover {
    color: var(--accent);
    transform: translateX(5px);
}



/* --- Mobile Overrides --- */
@media (max-width: 992px) {
    .sitemap-row-card { 
        flex-direction: column; /* Stacks the Title on top, links below */
        gap: 30px; 
        padding: 40px 30px; 
    }
    .sitemap-row-header, .sitemap-row-content { width: 100%; }
    .sitemap-hero { padding: 140px 5% 60px; }
}

@media (max-width: 600px) {
    .sitemap-2col { grid-template-columns: 1fr; /* 1 column on small phones */ gap: 10px; }
}

/* ==========================================================================
   FINAL MOBILE OVERRIDES (Must stay at the bottom of the file)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Tablet View: 2 Columns */
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 50px; 
    }
}

@media (max-width: 768px) {
    /* Mobile View: Custom Grid Stack */
    .footer-grid { 
        /* Create 2 equal columns */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 40px 20px !important; /* 40px vertical gap, 20px horizontal gap */
    }
    
    /* Force the 1st block (Logo/Contact) and 2nd block (About) to span across BOTH columns */
    .footer-grid > div:nth-child(1),
    .footer-grid > div:nth-child(2) {
        grid-column: span 2;
    }
    
    /* The 3rd (Quick Links) and 4th (Company) blocks will naturally sit in the 2 columns side-by-side! */

    .footer-bottom { 
        flex-direction: column !important; 
        gap: 20px; 
        text-align: center; 
    }
    
    /* Ensures the download button doesn't stretch weirdly on small screens */
    .company-profile-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================================================
   GLOBAL CURSOR LOCKDOWN (Forces Custom Cursor Everywhere)
   ========================================================================== */
@media (pointer: fine) {
    /* Targets literally every single element on the page for desktop users */
    html, body, * {
        cursor: none !important;
    }
}

/* Force all header navigation links to inherit the correct typography */
header a, 
header .nav-link, 
.header-menu a {
    color: var(--text-primary, #111) !important;
    text-decoration: none !important;
}

header a:hover, 
header .nav-link:hover, 
.header-menu a:hover {
    color: var(--accent, #ff4500) !important;
}

/* =========================================
   MOBILE MENU REFINEMENTS
   ========================================= */
@media (max-width: 992px) {
    /* 1. Slim down the massive menu fonts */
    .main-nav ul li a {
        font-size: 1.15rem !important; 
        font-weight: 600 !important;
        padding: 12px 0 !important;
        letter-spacing: -0.2px !important;
    }

    /* Adjust the dropdown arrow size to match */
    .main-nav ul li a .dropdown-arrow {
        font-size: 1rem !important;
    }

    /* 2. Fix the cramped CTA Button */
    .mobile-only-cta {
        margin-top: 25px !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }
    
    .mobile-only-cta .btn {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        padding: 15px 20px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2) !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}