:root {
    --primary-color: #002d5b;
    /* Navy from logo */
    --accent-color: #00d1c1;
    /* Teal from logo */
    --accent-glow: rgba(0, 209, 193, 0.3);
    --text-primary: #002d5b;
    /* Navy instead of black */
    --text-secondary: #5a6b7b;
    --bg-light: #ffffff;
    --bg-dark: #002d5b;
    /* Navy instead of black */
    --bg-soft: #f7f9fc;
    --bg-alt: #f8faff;
    /* Lighter version of the second picture tone for alternating sections */
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    /* Slightly more modern radius */
    --shadow-subtle: 0 10px 30px rgba(0, 45, 91, 0.06);
    --accent-gradient: linear-gradient(135deg, #00d1c1 0%, #002d5b 100%);
    --dark-gradient: linear-gradient(180deg, #002d5b 0%, #001a35 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);

    /* Responsive Spacing Tokens */
    --section-spacing: 100px;
    --container-padding: 24px;
    --mobile-padding: 20px;
}

@media (max-width: 991px) {
    :root {
        --header-height: 70px;
        --section-spacing: 60px;
        --container-padding: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --section-spacing: 50px;
        --container-padding: 16px;
    }
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    /* Fix for iOS font scaling */
    scroll-behavior: smooth;
    cursor: auto;
    /* Show default cursor */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-full {
    width: 100%;
    max-width: 100%;
    /* Full width spread */
    margin: 0;
    padding: 0 5%;
    /* Fluid padding for breathing room */
}

/* Header Ref implementation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    /* Matches logo background */
    z-index: 3000; /* Elevated to stay above all mobile overlays */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 45, 91, 0.05);
}

/* Scroll Lock Helper */
.lock-scroll {
    overflow: hidden !important;
    height: 100% !important;
    position: relative !important;
}

.lock-scroll body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* Global Scrollbar Hiding for inner elements (Keeping main scrollbar) */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
}

/* Explicitly show main vertical scrollbar on html */
html {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

html::-webkit-scrollbar {
    display: block !important;
    width: 8px;
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

html::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Child scroll indicators (slider dots and carousel arrows) are shown by default */

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 100;
}

.mobile-nav-icon {
    display: none !important;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Spans full header height */
}

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

.logo-img {
    height: 32px;
    /* Further reduced for a minimalist look */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 60px;
    /* Reduced gap for smaller header scale */
    list-style: none;
    height: 100%;
    /* Spans full nav height */
}

.has-mega {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 16px;
    /* Slightly larger text */
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    /* More vertical space */
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-links a:hover,
.has-mega.active>a {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.has-mega.active>a::after {
    width: 100%;
}

.nav-arrow {
    font-size: 12px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.has-mega.active .nav-arrow {
    transform: rotate(180deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Reduced gap for better scaling */
}

@media (max-width: 1200px) {
    .header-right {
        gap: 20px;
    }
}

.search-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Premium Search Strip Styles */
.search-strip {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    border-bottom: 1px solid rgba(0, 45, 91, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
}

.search-strip.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-strip-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.search-strip-container i.fa-search {
    color: var(--primary-color);
    font-size: 18px;
}

.search-strip-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 0;
    outline: none;
}

.search-strip-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-strip-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.search-strip-close:hover {
    background: rgba(0, 45, 91, 0.05);
    color: var(--primary-color);
}

/* Suggestions Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.15);
    max-height: 450px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    padding: 20px;
    border: 1px solid rgba(0, 45, 91, 0.05);
    border-top: none;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-category {
    margin-bottom: 24px;
}

.search-result-category:last-child {
    margin-bottom: 0;
}

.search-category-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 45, 91, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary-color);
}

.search-result-item:hover {
    background: rgba(0, 209, 193, 0.05);
    transform: translateX(5px);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    transition: var(--transition);
}

.search-result-item:hover .search-result-icon {
    background: var(--accent-color);
    color: #ffffff;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    line-height: 1.4;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--bg-soft);
    display: block;
}

.search-no-results span {
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .search-strip {
        top: var(--header-height);
        height: 56px;
    }
    
    .search-container {
        padding: 0 20px;
        gap: 15px;
    }

    .search-strip-input {
        font-size: 16px;
    }
    
    .search-results-dropdown {
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: calc(100vh - var(--header-height) - 56px);
        padding: 15px;
        width: 100vw;
    }

    .search-result-item {
        padding: 10px;
    }

    .search-result-icon {
        width: 32px;
        height: 32px;
    }
}

.btn-tesla {
    position: relative;
    background: var(--primary-color);
    color: #ffffff;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.btn-tesla .btn-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-top-left-radius: 100%;
}

.btn-tesla:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 45, 91, 0.15);
}

/* Tesla Style Sections */
.section-padding {
    padding: 60px 0 24px;
    /* Standardized padding with reduced bottom spacing */
}

/* Who We Are Modern Section */
.who-we-are-modern {
    padding: 100px 0;
    background-color: #ffffff;
}

.who-we-are-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.who-we-are-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.who-card {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('assets/card_bg_tech_v2.png');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 45, 91, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.03);
}

.who-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.08);
}

.who-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.who-card.mission::before {
    background: #3b82f6;
}

.who-card .label {
    display: block;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.who-card.mission .label {
    color: var(--text-secondary);
}

.who-card h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.who-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
    font-weight: 600;
}

.who-we-are-values {
    background: linear-gradient(rgba(247, 251, 251, 0.85), rgba(247, 251, 251, 0.85)), url('assets/card_bg_tech_v2.png');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 209, 193, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.who-we-are-values::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.who-we-are-values .values-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    display: block;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.value-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    min-width: 40px;
    margin-top: 4px;
}

.value-content h4 {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.value-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 100%;
    font-weight: 600;
}

@media (max-width: 991px) {
    .who-we-are-grid {
        grid-template-columns: 1fr;
    }

    .who-we-are-values {
        padding: 40px;
    }
}

/* Alternating Background Colors */
#solutions,
#services,
main>section:last-of-type {
    background-color: var(--bg-alt);
}

#testimonials {
    background-color: var(--bg-alt);
    /* Lightened warm cream background */
}

h1 {
    font-size: clamp(36px, 10vw, 110px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
    text-transform: uppercase;
    position: relative;
    color: var(--accent-color);
}

/* Underline bar removed to prevent glitching */

section[style*="text-align: center"] h2::after,
section[style*="text-align:center"] h2::after,
div[style*="text-align: center"] h2::after,
div[style*="text-align:center"] h2::after,
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-outline {
    -webkit-text-stroke: 1.5px var(--primary-color);
    /* Slightly thicker for visibility */
    color: transparent;
    opacity: 1;
    /* Fully visible lines */
    margin-bottom: 4px;
}

.section-header {
    margin-bottom: 0;
    /* Space removed completely */
}

.section-label {
    display: block;
    font-size: 20px;
    /* Increased as requested */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* More impact */
    color: var(--accent-color);
    margin-bottom: 24px;
}

.section-header p {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 18px;
    max-width: 700px;
}

#solutions .section-header p {
    max-width: 900px;
    /* Aligns with the length of the long header */
}

p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    p {
        font-size: 16px;
    }
}

/* Vertical Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    width: 100%;
    overflow: hidden;
    background: #000a1a;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Faster, smoother cross-fade */
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 10, 25, 0.7) 0%, rgba(0, 10, 25, 0.2) 100%);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide.prev {
    opacity: 0;
}

.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s 0.6s ease, opacity 0.8s 0.6s ease;
    position: relative;
    z-index: 2;
    /* Above the vignette */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider .container {
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin-left: 0;
    padding-left: 10%;
    padding-right: 10%;
    /* Add right padding for mobile balance */
}

@media (max-width: 768px) {
    .hero-slider .container {
        padding: 0 24px;
        justify-content: center;
    }
}

.hero-content h1 {
    color: var(--accent-color);
    font-size: clamp(32px, 8vw, 64px);
    text-shadow: none;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content h1 .text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
    /* Changed from Black to White outline */
    color: transparent;
    opacity: 1;
}

.hero-content p {
    color: #ffffff;
    font-size: clamp(16px, 4vw, 22px);
    max-width: 800px;
    margin-bottom: 32px;
    font-weight: 600;
    line-height: 1.5;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-content {
        align-items: center !important;
        text-align: center !important;
    }

    .hero-btns {
        justify-content: center !important;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slider-nav {
        display: none !important; /* Remove arrows on mobile as requested */
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero-slider {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .hero-slide .hero-content {
        padding: 0 24px;
        text-align: center;
        align-items: center;
    }
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    /* Bottom center */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    /* Horizontal dots */
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
    width: 60px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1);
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
}

.hero-content .btn-main {
    background: var(--primary-color);
    /* Dark blue specifically for hero */
    color: #ffffff;
    padding: 16px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-main:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 209, 193, 0.3);
}

.btn-main {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 16px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

header .btn-main {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 32px;
    /* Slightly more compact for header */
    font-size: 13px;
}

header .btn-main:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-main:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 209, 193, 0.3);
}

.btn-sec {
    background: rgba(0, 45, 91, 0.05);
    color: var(--primary-color);
    padding: 18px 60px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-sec:hover {
    background: rgba(0, 45, 91, 0.1);
    transform: translateY(-3px);
}

.cta-logo {
    height: 40px;
    margin-bottom: 32px;
}

/* Reveal on Scroll Base Styles */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bento Grid Style - What Defines Us */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.bento-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 20px 32px;
    /* Even shorter card */
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s ease,
        background 0.6s ease,
        border-color 0.6s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 45, 91, 0.03);
}

.bento-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.12);
    background: #ffffff;
    /* Shift to pure white on hover */
    border-color: var(--accent-color);
}

.bento-card:hover .bento-content h3 {
    color: var(--accent-color);
}

.bento-card:hover .bento-visual img {
    transform: scale(1.1);
    /* Slightly more subtle pop */
    filter: contrast(110%) brightness(105%) drop-shadow(0 0 20px rgba(0, 209, 193, 0.15));
    animation-duration: 6s;
    /* Graceful speed-up (from 20s to 6s) */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bento-card.tall {
    justify-content: flex-start;
}

.bento-content h3 {
    font-size: 32px;
    /* Larger and Thicker */
    font-weight: 900;
    margin-bottom: 8px;
    /* Tighter gap */
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.bento-card.tall .bento-content h3 {
    font-size: 24px;
    /* Reduced to ensure one-liner on narrow cards */
    white-space: nowrap;
}

.bento-content p {
    font-size: 18px;
    /* Larger and Thicker */
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 100%;
}

.bento-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Matched with the card background */
    border-radius: 20px;
    padding: 10px;
    perspective: 1000px;
    /* Required for vertical 3D rotation */
}

.bento-visual img {
    width: 100%;
    max-width: 140px;
    /* Further reduced from 200px */
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(105%) brightness(102%);
    /* Cleans up any remaining grey in white background */

    /* Live animation: Ultra-slow vertical rotation + floating */
    animation: bentoLive 20s linear infinite;

    /* Entrance animation: Prep for slide-in using separate translate property */
    opacity: 0;
    transition: opacity 1.5s ease-out, translate 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alternate entrance directions */
.bento-card:nth-child(odd) .bento-visual img {
    translate: -80px 0;
    /* From Left */
}

.bento-card:nth-child(even) .bento-visual img {
    translate: 80px 0;
    /* From Right */
}

.bento-card.is-visible .bento-visual img {
    opacity: 1;
    translate: 0 0;
}

@keyframes bentoLive {
    from {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(1.02);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    75% {
        transform: translateY(15px) scale(0.98);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

.bento-card.tall .bento-visual {
    margin-bottom: 20px;
}

.gen-ai-card .bento-visual img {
    max-width: 180px;
    /* Reduced from 240px */
}

.bento-card.tall .bento-visual img {
    max-width: 160px;
    /* Reduced from 220px */
}

.strategy-card .bento-visual img {
    max-width: 220px;
    /* Specifically larger for the bubble visual */
}

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

.solution-card {
    grid-column: span 4;
    padding: 60px 40px;
    background: var(--bg-light);
    border: 1px solid rgba(0, 45, 91, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.solution-card:nth-child(1) {
    grid-column: span 8;
}

.solution-card:nth-child(4) {
    grid-column: span 12;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.solution-card:hover {
    background: var(--bg-light);
    transform: translateY(-10px);
    box-shadow: var(--shadow-subtle);
    border-color: var(--accent-color);
}

.solution-card:hover p {
    color: var(--text-secondary);
}

.solution-card:hover .solution-icon {
    background: var(--accent-color);
    color: white;
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 40px;
    transition: var(--transition);
}

.who-block .label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.who-block h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.values-list li {
    margin-bottom: 12px;
    font-size: 18px;
    padding-left: 20px;
    position: relative;
}

.values-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.values-list li strong {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 16px;
}

/* Stats Section - Dark Mode (Logo Theme) */
.impact {
    background: var(--bg-dark);
    /* Navy background from logo */
    color: white;
    padding: 60px 0 24px;
    /* Reduced bottom spacing */
    overflow: hidden;
    position: relative;
}

.impact h2 {
    color: var(--accent-color);
    /* Teal from logo */
}

/* Specific outline for dark background */
.impact .text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
    color: transparent;
    opacity: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.stat-item {
    padding: 60px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-10px);
}

.stat-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.4s ease;
}

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

.stat-item h3 {
    font-size: clamp(64px, 8vw, 90px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -4px;
    color: white;
    transition: all 0.4s ease;
}

.stat-item:hover h3 {
    color: var(--accent-color);
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    white-space: nowrap;
}

.stat-item:hover p {
    color: white;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .stat-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        padding: 40px 20px;
    }
}

/* Pillars Section - Apple Style */
.pillars-list {
    margin-top: 60px;
}

/* Pillars Section - Bold Split Layout */
.pillar-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    /* Reduced from 200px */
    position: relative;
}

/* Zigzag logic */
.pillar-item:nth-child(even) .pillar-text {
    order: 2;
}

.pillar-item:nth-child(even) .pillar-visual {
    order: 1;
}

/* Shooter Scroll Animations */
.pillar-text {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.pillar-visual {
    position: relative;
    padding: 30px;
    /* Increased padding to fully accommodate shadows and rotation */
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Alternate directions for zigzag */
.pillar-item:nth-child(even) .pillar-text {
    transform: translateX(80px);
}

.pillar-item:nth-child(even) .pillar-visual {
    transform: translateX(-80px);
}

/* Animation trigger */
.pillar-item.is-visible .pillar-text,
.pillar-item.is-visible .pillar-visual {
    opacity: 1;
    transform: translateX(0);
}

.pillar-text .pill-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 24px;
    display: block;
    letter-spacing: 2px;
}

.pillar-text h3 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.pillar-text p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 100%;
}

.pillar-visual img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.8s ease;
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.15);
}

.pillar-visual:hover img {
    transform: scale(1.05) rotate(1deg);
}

#why-choose {
    padding-bottom: 50px;
}

#why-choose .pillar-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .pillar-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px;
        text-align: center;
    }

    #why-choose .pillar-item:last-child {
        margin-bottom: 0;
    }

    .pillar-item:nth-child(even) .pillar-text,
    .pillar-item:nth-child(even) .pillar-visual {
        order: initial;
    }

    .pillar-text,
    .pillar-visual {
        transform: translateY(40px) !important;
    }

    .pillar-item.is-visible .pillar-text,
    .pillar-item.is-visible .pillar-visual {
        transform: translateY(0) !important;
    }

    .pillar-text h3 {
        font-size: 28px;
        white-space: normal;
        /* Allow wrapping on small screens to avoid overflow */
    }

    .pillar-visual img {
        height: 250px;
    }
}

/* FAQ Accordion - Clean Tesla style */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 45, 91, 0.08);
}

.faq-question {
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    padding: 0;
}

/* Footer Re-style */
footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 80px 0 30px;
}

footer .container {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 1.1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 32px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    /* Smaller, bold headers */
    font-weight: 700;
    margin-bottom: 25px;
}

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

.footer-col ul li {
    margin-bottom: 20px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    /* Greyer links */
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-col.branding p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.social-list-vertical {
    list-style: none;
}

.social-list-vertical li {
    margin-bottom: 20px;
}

.social-list-vertical li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.social-list-vertical li a i {
    font-size: 16px;
    width: 20px;
}

.social-list-vertical li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: relative;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
}

.footer-bottom-left p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}



.footer-bottom-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-color);
}



.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 40px;
    flex-shrink: 0;
}

.back-to-top:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Marquee Effect */
.marquee-container {
    background: var(--accent-color);
    /* Inverted: Teal background */
    color: var(--primary-color);
    /* Inverted: Navy text */
    padding: 10px 0;
    /* Very very short */
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 45, 91, 0.1);
    border-bottom: 1px solid rgba(0, 45, 91, 0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 28px;
    /* Significantly smaller */
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 80px;
    letter-spacing: 1px;
}

.marquee-content span:nth-child(even) {
    -webkit-text-stroke: 1px var(--primary-color);
    color: transparent;
    opacity: 0.6;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Cursor */
.custom-cursor {
    display: none;
}

/* Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Enhancements */
.faq-item.active .faq-answer,
.faq-item:hover .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 30px;
}

.faq-item.active {
    background: rgba(0, 209, 193, 0.05);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.faq-item:hover {
    background: rgba(0, 209, 193, 0.02);
}

.nav-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-mega.active .nav-arrow {
    transform: rotate(180deg);
}

/* Desktop Mega Menu (Isolated & Compact) */
@media (min-width: 992px) {
    .mega-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background: #ffffff;
        width: 100%;
        max-width: 1000px;
        padding: 30px 40px;
        box-shadow: 0 20px 40px rgba(0, 45, 91, 0.12);
        border-radius: 0 0 20px 20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            visibility 0.4s;
        z-index: 1001;
        border: 1px solid rgba(0, 45, 91, 0.05);
        border-top: none;
        display: block !important;
    }

    .mega-dropdown.about-mega {
        max-width: 620px;
        /* Reduced to eliminate excess side space */
    }

    .mega-dropdown.about-mega .mega-content {
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 50px !important;
        /* Slightly more compact gap */
        padding-top: 0 !important;
    }


    .mega-dropdown.about-mega ul {
        list-style: none !important;
        padding-left: 20px !important;
        margin-top: 15px !important;
    }

    .mega-dropdown.about-mega ul li {
        display: block !important;
        margin-bottom: 12px !important;
    }

    .has-mega.active .mega-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
        pointer-events: auto !important;
    }


    .mega-content {
        display: flex !important;
        justify-content: center !important;
        gap: 50px !important;
        align-items: flex-start !important;
        margin: 0 auto !important;
    }

    .mega-col {
        display: flex !important;
        flex-direction: column !important;
        min-width: 240px !important;
    }

    .mega-group {
        margin-bottom: 15px !important;
    }

    .mega-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        color: var(--primary-color) !important;
        letter-spacing: 1px !important;
        margin-bottom: 5px !important;
        display: block !important;
        text-decoration: none !important;
        transition: var(--transition);
    }

    /* Sub-links hidden by default, revealed on hover */
    .mega-group ul {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateY(10px);
        pointer-events: none;
        list-style: none;
        padding: 0;
    }

    .mega-group:hover ul {
        max-height: 300px;
        /* Increased for longer lists */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        margin-top: 10px;
    }

    .mega-col ul li {
        margin-bottom: 6px;
    }

    .mega-col ul li a {
        color: var(--primary-color) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 2px 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0 !important;
        text-decoration: none;
        transition: var(--transition);
    }

    .mega-col ul li a:hover {
        color: var(--accent-color) !important;
        transform: translateX(5px);
    }

    .mega-col ul li a i {
        font-size: 12px;
        color: var(--primary-color);
        width: 18px;
        margin-right: 10px;
    }

    .mega-col.featured {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: 20px;
    }

    .featured-card img {
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}


.mega-col ul li a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.mega-col ul li a::after {
    display: none;
    /* Disable the global link underline for menu links */
}

.mega-col.featured {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 20px;
    flex-shrink: 0;
}

.featured-card img {
    width: 240px;
    /* Significantly larger for better visual impact */
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    display: block;
}

/* Removed legacy featured text styles */

/* Cleaned up redundant mobile block */

/* Bento Responsive logic */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.wide {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .bento-card.tall {
        text-align: center;
    }

    .bento-card.wide .bento-visual {
        order: -1;
        /* Image on top for mobile */
        margin-bottom: 30px;
    }
}


/* Glassmorphic Service Bento - Premium Upgrade */
.service-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    perspective: 2000px;
}

.service-card-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 40px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.8s ease,
        background 0.8s ease,
        border-color 0.8s ease,
        opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.03);
    animation: whoFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Delay for cascade effect */
.service-card-glass:nth-child(1) {
    animation-delay: 0s;
}

.service-card-glass:nth-child(2) {
    animation-delay: 1s;
}

.service-card-glass:nth-child(3) {
    animation-delay: 2s;
}

.service-card-glass:nth-child(4) {
    animation-delay: 1.5s;
}

.service-card-glass:nth-child(5) {
    animation-delay: 2.5s;
}

.service-card-glass:nth-child(6) {
    animation-delay: 0.5s;
}

/* Corner Fly-in Logic */
.service-card-glass {
    opacity: 0;
}

/* Top-Left */
.service-card-glass:nth-child(1) {
    transform: translate(-100px, -100px) rotate(-5deg);
}

/* Top-Center */
.service-card-glass:nth-child(2) {
    transform: translate(0, -100px);
}

/* Top-Right */
.service-card-glass:nth-child(3) {
    transform: translate(100px, -100px) rotate(5deg);
}

/* Bottom-Left */
.service-card-glass:nth-child(4) {
    transform: translate(-100px, 100px) rotate(-5deg);
}

/* Bottom-Center */
.service-card-glass:nth-child(5) {
    transform: translate(0, 100px);
}

/* Bottom-Right */
.service-card-glass:nth-child(6) {
    transform: translate(100px, 100px) rotate(5deg);
}

/* Refined Light Pastel Card Colors */
.service-card-glass:nth-child(1) {
    background-color: #F3F9FC;
}

/* Mint Teal */
.service-card-glass:nth-child(2) {
    background-color: rgba(94, 92, 230, 0.06);
}

/* Soft Lavender */
.service-card-glass:nth-child(3) {
    background-color: rgba(0, 122, 255, 0.06);
}

/* Azure Blue */

/* Services 3-Column Grid Layout */
.services-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
    align-items: stretch;
}

.service-card-ref {
    background: #ffffff;
    border: 1px solid rgba(0, 45, 91, 0.08);
    border-radius: 14px;
    padding: 8px;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 45, 91, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Ensure all cards in the grid row have same height */
}

.service-card-ref:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.15), 0 0 20px rgba(0, 209, 193, 0.2);
    border-color: var(--accent-color);
    z-index: 5;
}

/* Shine Animation */
.service-card-ref::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.8s;
    z-index: 3;
    pointer-events: none;
}

.service-card-ref:hover::before {
    left: 150%;
}

/* Vertical Style (Type A) */
.service-card-ref .card-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.service-card-ref .card-image img {
    width: 100%;
    height: 150px;
    /* Increased height as requested */
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-ref:hover .card-image img {
    transform: scale(1.1) rotate(-1deg);
}

.service-card-ref .card-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: -0.5px;
}

.service-card-ref .card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    /* Space for the button */
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 209, 193, 0.06);
    /* Very soft teal background */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid rgba(0, 209, 193, 0.1);
}

.card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.card-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 209, 193, 0.2);
}

.card-link:hover i {
    transform: translateX(3px);
}

/* Horizontal Style (Type B) */
.service-card-ref.horizontal {
    flex-direction: column-reverse;
    /* Content top, Image bottom */
    gap: 20px;
}

.service-card-ref.horizontal .card-image {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    border-radius: 12px;
}

.service-card-ref.horizontal .card-image img {
    height: 150px;
    /* Increased height as requested */
    width: 100%;
    object-fit: cover;
}

.service-card-ref.horizontal .card-content {
    width: 100%;
}

.service-card-ref.horizontal .card-content h3 {
    font-size: 20px;
    /* Consistent with vertical */
    margin-bottom: 4px;
}

.service-card-ref.horizontal .card-content p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid-3col {
        grid-template-columns: 1fr;
    }

    .service-card-ref.horizontal {
        flex-direction: column-reverse;
    }
}

/* Reveal Animations - Slow Motion Settle */
.reveal-item {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Coming from edges */
/* Left Column items - come from top-left */
.services-grid-3col .reveal-item:nth-child(3n+1) {
    transform: translateX(-100px) translateY(-40px);
}

/* Middle Column items - come from top */
.services-grid-3col .reveal-item:nth-child(3n+2) {
    transform: translateY(-80px);
}

/* Right Column items - come from top-right */
.services-grid-3col .reveal-item:nth-child(3n) {
    transform: translateX(100px) translateY(-40px);
}

/* Responsive Reveal Overrides */
@media (max-width: 1024px) {
    .services-grid-3col .reveal-item:nth-child(2n+1) {
        transform: translateX(-80px);
    }

    .services-grid-3col .reveal-item:nth-child(2n) {
        transform: translateX(80px);
    }
}

@media (max-width: 768px) {
    .services-grid-3col .reveal-item {
        transform: translateY(60px) !important;
        /* Simple fade-up on mobile */
    }
}

.reveal-item.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.service-card-glass:nth-child(4) {
    background-color: rgba(255, 59, 48, 0.04);
}

/* Soft Rose */
.service-card-glass:nth-child(5) {
    background-color: rgba(255, 159, 10, 0.05);
}

/* Soft Amber */
.service-card-glass:nth-child(6) {
    background-color: rgba(50, 173, 230, 0.08);
}

/* Sky Blue */

.service-card-glass {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card-glass.is-visible {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
}

.service-card-glass:hover {
    transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.12);
    border-color: var(--accent-color);
    animation-play-state: paused;
}

.service-card-glass::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: 0.8s;
    pointer-events: none;
}

.service-card-glass:hover::after {
    top: -50%;
    left: -50%;
}

.service-info h3 {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card-glass p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    transition: var(--transition);
}

.solution-visual img {
    max-height: 200px;
    /* Reduced size */
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 45, 91, 0.3));
    animation: float3d 6s ease-in-out infinite;
}

.service-card-glass:hover .bento-icon-shade {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.service-card-glass:hover .bento-icon-shade i {
    color: white;
}

.service-card-glass:hover .service-visual {
    background: white;
}

.learn-more-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 6px 6px 6px 18px;
    /* Offset padding for bubbly icon */
    background: rgba(0, 209, 193, 0.05);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 209, 193, 0.1);
}

.tag-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    /* Dark Blue bubbly */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 45, 91, 0.2);
}

.tag-icon i {
    font-size: 12px;
    transition: transform 0.4s ease;
}

.learn-more-tag:hover {
    background: white;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 45, 91, 0.08);
}

.learn-more-tag:hover .tag-icon {
    background: var(--accent-color);
    transform: rotate(-45deg);
    /* Stylish tilt on hover */
    box-shadow: 0 5px 15px rgba(0, 209, 193, 0.3);
}

.learn-more-tag:hover .tag-icon i {
    transform: rotate(45deg);
    /* Keep arrow horizontal during tilt */
}

@keyframes float3d {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}


/* Bento Icon Shade - Perfectly Centered */
.bento-icon-shade {
    width: 45px;
    height: 45px;
    min-width: 45px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    animation: bulletFloat 4s ease-in-out infinite;
}

.service-card-glass:nth-child(1) .bento-icon-shade {
    background: rgba(0, 209, 193, 0.2);
}

.service-card-glass:nth-child(2) .bento-icon-shade {
    background: rgba(94, 92, 230, 0.15);
}

.service-card-glass:nth-child(3) .bento-icon-shade {
    background: rgba(0, 122, 255, 0.15);
}

.service-card-glass:nth-child(4) .bento-icon-shade {
    background: rgba(255, 59, 48, 0.15);
}

.service-card-glass:nth-child(5) .bento-icon-shade {
    background: rgba(255, 159, 10, 0.15);
}

.service-card-glass:nth-child(6) .bento-icon-shade {
    background: rgba(50, 173, 230, 0.2);
}

.bento-icon-shade i {
    font-size: 20px;
    color: var(--primary-color);
    line-height: 1;
    display: block;
}

.service-card-glass h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
    white-space: nowrap;
}

.service-card-glass:hover .bento-icon-shade {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.service-card-glass:hover .bento-icon-shade i {
    color: white;
}

@keyframes bulletFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


/* Who We Are New Layout */
.who-top-branding {
    display: flex;
    align-items: stretch;
    gap: 0;
    /* Removed gap */
    padding: 0;
    /* Removed padding to allow content to touch edges */
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 45, 91, 0.1);
    border-radius: 0;
    /* Sharp edges */
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.03);
    perspective: 2000px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.who-top-branding:hover {
    transform: translateY(-20px) rotateX(1deg) rotateY(-1deg);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.12),
        0 0 20px rgba(0, 209, 193, 0.1);
    animation-play-state: paused;
}

.who-top-branding::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: 0.8s;
    pointer-events: none;
}

.who-top-branding:hover::after {
    top: -50%;
    left: -50%;
}

.who-text-content {
    flex: 1.2;
    padding: 40px;
    /* Added padding back here since it was removed from parent */
    display: flex;
    flex-direction: column;
}

.who-text-content p {
    font-size: 24px;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
}

.who-visual-content {
    flex: 1;
    border-radius: 0;
    /* Sharp edges */
    overflow: hidden;
}

.who-visual-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.who-top-branding:hover .who-visual-content img {
    transform: scale(1.05);
}

/* Integrated Cards Layout */
.who-cards-grid-integrated {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* Removed gap */
    margin-top: auto;
    /* Push to bottom if needed */
    border: 1px solid rgba(0, 45, 91, 0.05);
}

.who-card-mini {
    padding: 30px;
    border-radius: 0;
    /* Sharp edges */
    background-color: #fdfdfd;
    /* Enhanced Crushed Paper Texture */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 40%, rgba(0, 0, 0, 0.03) 100%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.5) 0%, transparent 40%, rgba(0, 0, 0, 0.02) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='transparent' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    border: 1px solid rgba(0, 45, 91, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.who-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 49%, rgba(0, 0, 0, 0.04) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 0, 0, 0.03) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49.5%, rgba(0, 0, 0, 0.02) 50%, transparent 50.5%);
    background-size: 60px 60px, 80px 80px, 100px 100px;
    opacity: 0.4;
    pointer-events: none;
}

/* Individual Card Colors */
.who-card-mini:nth-child(1) {
    background-color: #F3F9FC;
    /* Light Teal */
    border-color: rgba(0, 209, 193, 0.2);
}

.who-card-mini:nth-child(2) {
    background-color: rgba(142, 68, 173, 0.08);
    /* Light Purple */
    border-color: rgba(142, 68, 173, 0.2);
}

.who-card-mini:nth-child(3) {
    background-color: rgba(241, 196, 15, 0.08);
    /* Light Gold */
    border-color: rgba(241, 196, 15, 0.2);
}

.who-card-mini:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 45, 91, 0.08);
}

.who-card-mini .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    /* Dark blue tag as requested */
    font-weight: 900;
    /* Thicker label */
    margin-bottom: 12px;
    display: block;
}

.who-card-mini h3 {
    font-size: 18px;
    font-weight: 900;
    /* Thicker header */
    color: var(--primary-color);
    margin-bottom: 8px;
}

.who-card-mini p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 600;
    /* Thicker paragraph text */
    margin: 0;
}

.values-list-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list-mini li {
    font-size: 13px;
    font-weight: 800;
    /* Thicker list text */
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.values-list-mini li::before {
    content: "•";
    color: var(--primary-color);
    /* Dark blue bullet point as requested */
    font-weight: 900;
}

@media (max-width: 1200px) {
    .who-cards-grid-integrated {
        grid-template-columns: 1fr;
    }

    .who-top-branding {
        flex-direction: column;
    }

    .who-visual-content {
        height: 300px;
    }
}

.who-card.glass::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: 0.8s;
    pointer-events: none;
}

.who-card.glass:hover::after {
    top: -50%;
    left: -50%;
}

@keyframes whoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

@media (max-width: 991px) {
    .who-top-branding {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .who-cards-grid {
        grid-template-columns: 1fr;
    }
}

.values-list-bento {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.values-list-bento li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--text-primary);
}

.values-list-bento li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 2px;
    background: var(--accent-color);
}

/* Testimonials Section Redesign */
.testimonial-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    /* Space for buttons */
}

.testimonial-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    margin-top: 30px;
    padding: 30px 0 60px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.testimonial-grid.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card-premium {
    flex: 0 0 calc((100% - 60px) / 3);
    background: #ffffff;
    border-radius: 4px;
    /* Sharp professional corners */
    padding: 32px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.05);
    border: 1px solid rgba(0, 45, 91, 0.03);
    min-height: 320px;
    /* Shorter card height */
    box-sizing: border-box;
    max-width: 100%;
}

.testimonial-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.08);
}

.testimonial-quote-icon {
    font-size: 28px;
    /* Smaller icon */
    color: var(--accent-color);
    margin-bottom: 16px;
    opacity: 0.8;
}

.testimonial-premium-text {
    font-size: 15px;
    /* Smaller font size */
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-premium-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-premium-avatar {
    width: 44px;
    /* Smaller avatar */
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.testimonial-premium-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-premium-info h4 {
    font-size: 14px;
    /* Smaller font */
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.testimonial-premium-info span {
    font-size: 12px;
    /* Smaller font */
    font-weight: 600;
    color: #8899a6;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    /* Dark blue as requested */
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

@media (max-width: 992px) {
    .testimonial-card-premium {
        flex: 0 0 85vw;
        padding: 24px;
        border-radius: 4px;
    }

    .carousel-nav {
        display: none;
    }

    .testimonial-carousel-wrapper {
        padding: 0;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Services Page Specific Styles --- */
.services-hero {
    height: 100vh;
    height: 100dvh;
    /* Full screen to remove extra space below */
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
}

/* Horizontal Contextual Navigation in Hero (Image Style) */
.hero-nav-strip {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    /* Reduced to move up as per left arrow */
    order: 4;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-nav-item i {
    font-size: 16px;
    transition: all 0.4s ease;
}

/* The "Play" icon styling from image */
.hero-nav-item .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(4px);
}

.hero-nav-item .nav-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    margin-left: 2px;
    transition: all 0.4s ease;
}

/* Active state: Solid icon and bright text */
.hero-nav-item.active {
    color: #ffffff;
    font-weight: 800;
}

.hero-nav-item.active .nav-icon {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero-nav-item.active .nav-icon::after {
    border-color: transparent transparent transparent var(--primary-color);
}


/* Hover effects */
.hero-nav-item:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.hero-nav-item:hover .nav-icon {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.hero-nav-item:hover .nav-icon::after {
    border-color: transparent transparent transparent #ffffff;
}

@media (max-width: 991px) {
    .hero-nav-strip {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .hero-nav-item {
        font-size: 14px;
    }
}


/* Breadcrumb Strip - Plastic Sheet Aesthetic */
/* Breadcrumb Strip - Minimalist Text Style */
.breadcrumb-strip {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(10px);
    animation: stripFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@keyframes stripFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-strip .breadcrumb-slash {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 400;
    opacity: 0.5;
    margin: 0 2px;
}

.breadcrumb-strip::before {
    display: none;
    /* Removed background pill */
}

.breadcrumb-strip:hover::before {
    background: #fdfdfd;
    filter: drop-shadow(0 6px 20px rgba(0, 45, 91, 0.12));
}

.breadcrumb-strip a,
.breadcrumb-strip span {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.breadcrumb-strip a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.breadcrumb-strip span {
    color: var(--accent-color);
    opacity: 1;
}

/* For smaller screens, adjust or hide */
@media (max-width: 991px) {
    .breadcrumb-strip {
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .breadcrumb-strip a,
    .breadcrumb-strip span {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-strip {
        display: none;
    }
}

/* For smaller screens, hide or adjust */
@media (max-width: 991px) {
    .hero-service-nav {
        display: none;
    }
}

.services-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 10, 25, 0.7) 0%, rgba(0, 10, 25, 0.2) 100%);
    z-index: 1;
}

.services-hero .container,
.services-hero .container-full {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.services-hero h1 {
    order: 1;
    margin-bottom: 30px;
    /* Consistent gap */
    margin-left: 0;
    /* Align with breadcrumb card edge */
    font-size: clamp(32px, 5vw, 64px);
    color: var(--accent-color);
    text-transform: none;
    font-weight: 900;
    line-height: 1.1;
    /* Increased from 0.9 to prevent descender overlap */
}

.services-hero h1 .text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
    color: transparent;
}

.services-hero p {
    order: 2;
    margin-top: 0;
    margin-bottom: 30px;
    /* Consistent gap */
    margin-left: 30px;
    /* Aligns text with internal breadcrumb text */
}

.services-hero .section-label {
    color: var(--accent-color);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    display: block;
}

.services-hero p,
.services-hero .hero-subheading-blue {
    color: #ffffff !important;
    /* Pure white as per home hero */
    font-size: 22px !important;
    max-width: 800px;
    margin: 0 0 32px 0;
    font-weight: 800 !important;
    line-height: 1.4;
    opacity: 1 !important;
    text-shadow: none;
    text-transform: none;
}

.services-hero .btn-main {
    margin-top: 10px;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 100px auto 24px;
}

.services-intro p {
    font-size: 24px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.services-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 120px;
}

.service-nav-card {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 45, 91, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-nav-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.1);
    border-color: var(--accent-color);
}

.service-nav-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-nav-card p {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-nav-card .icon-shade {
    width: 60px;
    height: 60px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--accent-color);
    font-size: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-nav-card:hover .icon-shade {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* Sticky Services Nav */
.services-sticky-nav {
    position: sticky;
    top: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 900;
    border-bottom: 1px solid rgba(0, 45, 91, 0.05);
    padding: 0;
    transition: all 0.3s ease;
    display: none;
}

.services-sticky-nav.visible {
    display: block;
}

.services-sticky-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.services-sticky-nav ul li a {
    display: block;
    padding: 24px 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: all 0.3s ease;
}

.services-sticky-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.services-sticky-nav ul li a.active {
    color: var(--primary-color);
}

.services-sticky-nav ul li a.active::after {
    width: 100%;
}

/* Detailed Service Sections */
.service-detail-section {
    padding: 140px 0 56px;
    scroll-margin-top: 160px;
}

.service-detail-section:nth-child(even) {
    background: var(--bg-soft);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.service-detail-text h2 {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
}

.service-detail-text .service-subheading {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: block;
}

.service-detail-text p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 100%;
    color: var(--text-secondary);
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* No gaps at all */
    margin-top: 5px;
    /* Minimal gap from title */
}

.service-features li {
    position: relative;
    padding-left: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
    /* Strictly one line per item */
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
}

.service-detail-visual {
    position: relative;
}

.service-detail-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.12);
}

/* Alternate Layout */
.service-detail-section.alt .service-detail-content {
    direction: rtl;
}

.service-detail-section.alt .service-detail-text {
    direction: ltr;
}

.service-detail-section.alt .service-detail-visual {
    direction: ltr;
}

@media (max-width: 991px) {
    .services-nav-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .service-detail-section.alt .service-detail-content {
        direction: ltr;
    }

    .services-sticky-nav ul {
        gap: 20px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 24px;
    }

    .services-sticky-nav ul li a {
        white-space: nowrap;
        padding: 16px 0;
    }
}

@media (max-width: 768px) {
    .services-nav-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-text h2 {
        font-size: 40px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}

/* Individual Service Page Styles */
.service-intro-section {
    padding: 80px 0 32px;
    /* Reduced bottom spacing */
    text-align: left;
    background-color: #ffffff;
}

.industry-intro-sub {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.service-intro-section .container {
    max-width: 1000px;
}

.service-intro-section p {
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
}

.core-offerings-section {
    padding: 100px 0 40px;
    background: var(--bg-alt);
    /* Aligned with home section alternating colors */
}

.approach-section {
    padding: 120px 0 48px;
    position: relative;
}

.public-approach {
    overflow: hidden;
}

.public-approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Bold Concentric Arcs - Top Left */
        repeating-radial-gradient(circle at 0% 0%, transparent 0, transparent 60px, rgba(0, 45, 91, 0.1) 60px, rgba(0, 45, 91, 0.1) 62px),
        /* Bold Concentric Arcs - Bottom Right */
        repeating-radial-gradient(circle at 100% 100%, transparent 0, transparent 90px, rgba(0, 209, 193, 0.1) 90px, rgba(0, 209, 193, 0.1) 92px),
        /* Visible Grid */
        repeating-linear-gradient(45deg, transparent 0, transparent 150px, rgba(0, 45, 91, 0.04) 150px, rgba(0, 45, 91, 0.04) 151px);
    pointer-events: none;
    z-index: 0;
}

.approach-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Above the ::before pattern */
}

.bg-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    animation: floatShape 30s infinite ease-in-out;
}

.shape-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: -100px;
    right: 5%;
    background: linear-gradient(135deg, rgba(0, 209, 193, 0.3), rgba(0, 45, 91, 0.2));
}

.shape-square {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 10%;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.3), rgba(41, 128, 185, 0.2));
    /* Purple to Blue */
    transform: rotate(15deg);
    border-radius: 30px;
    animation-delay: -5s;
}

.shape-rect {
    width: 300px;
    height: 120px;
    top: 15%;
    left: -50px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.2));
    /* Pink to Purple */
    border-radius: 60px;
    transform: rotate(-20deg);
    animation-delay: -12s;
}

.shape-diamond {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(230, 126, 34, 0.2));
    /* Gold to Orange */
    transform: rotate(45deg);
    border-radius: 20px;
    animation-delay: -18s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid rgba(0, 209, 193, 0.4);
    top: 45%;
    right: 10%;
    background: transparent;
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
    animation-delay: -7s;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(233, 30, 99, 0.3);
    bottom: 10%;
    right: 40%;
    background: transparent;
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
    animation-delay: -22s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }

    33% {
        transform: translate(40px, -60px) rotate(15deg);
    }

    66% {
        transform: translate(-30px, 40px) rotate(-15deg);
    }
}

.public-approach .container {
    position: relative;
    z-index: 2;
    /* Highest level for content */
}

.approach-header-simple {
    margin-bottom: 10px;
    /* Shortened gap further */
    text-align: center;
}

/* Approach Timeline Styles - Inverted Steep Arch Layout */
.approach-timeline-container {
    position: relative;
    padding: 30px 0 32px;
    /* Reduced bottom spacing */
    margin-top: 0;
}

.timeline-line {
    position: absolute;
    top: 110px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(0, 45, 91, 0) 0%,
            rgba(0, 209, 193, 0.3) 50%,
            rgba(0, 45, 91, 0) 100%);
    z-index: 1;
    opacity: 0.5;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Removed Inverted Arch (Valley) Effect - Items now aligned naturally */

.timeline-symbol {
    width: 160px;
    /* Slightly smaller for tighter layout */
    height: 160px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 45, 91, 0.1));
    animation: float3D 6s ease-in-out infinite;
}

.timeline-item:nth-child(odd) .timeline-symbol img {
    animation-delay: -3s;
}

@keyframes float3D {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.timeline-symbol img.ls-large {
    width: 135%;
    height: 135%;
    max-width: none;
}

.timeline-item:hover {
    z-index: 10;
}

.timeline-item:hover .timeline-symbol img {
    transform: scale(1.1);
    filter: drop-shadow(0 30px 60px rgba(0, 209, 193, 0.2));
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 auto;
    max-width: 200px;
}

@media (max-width: 1024px) {
    .timeline-item {
        transform: none !important;
    }

    .approach-timeline-container {
        padding: 40px 0;
    }

    .timeline-line {
        display: none;
    }

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

@media (max-width: 600px) {
    .timeline-items {
        grid-template-columns: 1fr;
    }
}

.approach-header-simple h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

.approach-header-simple p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin: 0 auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.approach-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 45, 91, 0.05);
}

.approach-card:hover {
    transform: perspective(1000px) rotateY(-3deg) translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.12), 0 0 20px rgba(0, 209, 193, 0.15);
    border-color: var(--accent-color);
    z-index: 5;
}

.card-image {
    height: 150px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.approach-card:hover .card-image img {
    transform: scale(1.1) rotate(1deg);
}

.card-content {
    padding: 10px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-outline-small {
    padding: 10px 24px;
    border: 1.5px solid var(--primary-color);
    border-radius: 100px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

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

.service-image-banner {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px 0;
}

.service-image-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 91, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
}

.banner-content h2 {
    font-size: clamp(32px, 5vw, 64px);
    color: white;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 900;
}

/* CTA Footer Banner (from user image) */
.cta-footer-banner {
    padding: 120px 0 48px;
    background: var(--bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.cta-footer-banner h2 {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    line-height: 1.1;
    color: var(--primary-color);
}

.cta-footer-banner .text-outline {
    -webkit-text-stroke: 1.5px var(--primary-color);
    color: transparent;
}

.cta-footer-banner .text-solid {
    color: var(--accent-color);
}

.cta-footer-banner p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
}

.cta-footer-banner .btn-main {
    background: var(--primary-color);
    color: var(--accent-color);
    /* Matches Get in touch button style */
    padding: 20px 60px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.cta-footer-banner .btn-main:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 209, 193, 0.2);
}

.cta-footer-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-bottom: -12px;
    /* Half visible */
}

@media (max-width: 991px) {
    .approach-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Offerings Chart Quadrant --- */
.offerings-chart-section {
    padding: 100px 0 40px;
    background: var(--bg-alt);
}

.offerings-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Horizontally wider */
    gap: 0;
    position: relative;
    margin-top: 40px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 45, 91, 0.08);
    border: 1px solid rgba(0, 45, 91, 0.05);
}

.chart-quadrant {
    padding: 50px 40px;
    /* Vertically shorter */
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Subtle light overlay for background images */
.chart-quadrant::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    /* Very light and subtle */
    z-index: -1;
    transition: background 0.6s ease;
}

.chart-quadrant:not(:last-child) {
    border-right: 1px solid rgba(0, 45, 91, 0.05);
}

.chart-quadrant:hover {
    z-index: 2;
    transform: translateY(-5px);
}

.chart-quadrant:hover::before {
    background: rgba(255, 255, 255, 0.85);
}

.quadrant-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 22px;
    margin-bottom: 5px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 45, 91, 0.05);
}

.chart-quadrant:hover .quadrant-icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.quadrant-content h3 {
    font-size: 18px;
    /* Smaller for 4 columns */
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--primary-color);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quadrant-features {
    list-style: none;
    padding: 0;
}

.quadrant-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 22px;
    position: relative;
    font-weight: 500;
    line-height: 1.4;
}

.quadrant-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
}

@media (max-width: 1200px) {
    .offerings-chart {
        grid-template-columns: 1fr 1fr;
    }

    .chart-quadrant:nth-child(2) {
        border-right: none;
    }

    .chart-quadrant:nth-child(1),
    .chart-quadrant:nth-child(2) {
        border-bottom: 1px solid rgba(0, 45, 91, 0.05);
    }
}

@media (max-width: 768px) {
    .offerings-chart {
        grid-template-columns: 1fr;
    }

    .chart-quadrant {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 45, 91, 0.05);
        padding: 40px;
    }
}

/* Staggered Approach Section (Consulting Page) */
.approach-staggered-section {
    padding: 120px 0 48px;
    background: var(--bg-soft);
}

.approach-staggered-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 100px;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: -1px;
}

.approach-staggered-items {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.approach-staggered-row {
    display: flex;
    align-items: center;
    transition: var(--transition);
    overflow: visible;
    /* Ensure shadows/transforms aren't clipped */
}

.approach-staggered-visual {
    flex: 0 0 450px;
    height: 280px;
    background: #5d6269;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);

    /* Animation initial state */
    opacity: 0;
    transform: translateX(-200px);
}

.approach-staggered-visual .visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: var(--transition);
}

.approach-staggered-visual i {
    font-size: 60px;
    color: white;
    z-index: 2;
    transition: var(--transition);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.approach-staggered-text {
    margin-left: 80px;
    max-width: 650px;
    /* Increased to accommodate one-liner columns */
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);

    /* Animation initial state */
    opacity: 0;
    transform: translateX(200px);
}

/* Settle in their places */
.approach-staggered-row.is-visible .approach-staggered-visual,
.approach-staggered-row.is-visible .approach-staggered-text {
    opacity: 1;
    transform: translateX(0);
}

.approach-staggered-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.approach-staggered-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Staggering Logic */
.stagger-row-1,
.stagger-row-3 {
    padding-left: 180px;
}

.stagger-row-2,
.stagger-row-4 {
    padding-left: 0;
}

/* Hover effects */
.approach-staggered-row:hover .approach-staggered-visual {
    background: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.2);
}

.approach-staggered-row:hover .visual-bg {
    opacity: 0.2;
    transform: scale(1.1);
}

.approach-staggered-row:hover .approach-staggered-visual i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.approach-staggered-row:hover h3 {
    color: var(--accent-color);
}

@media (max-width: 1200px) {

    .stagger-row-1,
    .stagger-row-3 {
        padding-left: 100px;
    }

    .approach-staggered-visual {
        flex: 0 0 380px;
        height: 240px;
    }
}

@media (max-width: 991px) {
    .approach-staggered-row {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0 !important;
        gap: 30px;
    }

    .approach-staggered-visual {
        width: 100%;
        flex: none;
        height: 280px;
    }

    .approach-staggered-text {
        margin-left: 0;
        max-width: 100%;
    }

    .approach-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .approach-pills {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 10px;
    }
    
    .approach-pill {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        white-space: normal;
        padding: 12px 15px;
    }
}

/* Approach Section - Second Image Style (Carousel + Tabs) */
.approach-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.approach-tabs-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.approach-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.approach-pills::-webkit-scrollbar {
    display: none;
}

.approach-pill {
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 45, 91, 0.02);
}

.approach-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 45, 91, 0.05);
}

.approach-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 45, 91, 0.15);
}

.approach-nav-controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.approach-nav-btn {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 45, 91, 0.1);
}

.approach-nav-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 209, 193, 0.2);
}

.approach-carousel-container {
    position: relative;
    overflow: hidden;
}

.approach-carousel-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 60px;
    cursor: grab;
    align-items: flex-start;
    /* For masonry-like top alignment */
}

.approach-carousel-grid::-webkit-scrollbar {
    display: none;
}

.approach-carousel-grid.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.approach-carousel-card {
    flex: 0 0 320px;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    padding: 10px;
}

.approach-carousel-card.active {
    border-color: var(--primary-color);
    background: rgba(0, 45, 91, 0.02);
    transform: translateY(-8px);
}

.approach-carousel-card .card-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f0f3f7;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.05);
}

.approach-carousel-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.approach-carousel-card:hover .card-img img {
    transform: scale(1.1);
}

.approach-carousel-card .card-body {
    padding: 0 10px;
}

.approach-carousel-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.approach-carousel-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .approach-carousel-card {
        flex: 0 0 85vw;
    }

    .approach-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .approach-nav-controls {
        display: none;
    }
}

/* Global hero theme now applies consistently across all service pages */


.consulting-page h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.consulting-page .approach-staggered-section {
    padding: 60px 0 24px;
}

.consulting-page .approach-section {
    padding: 60px 0 24px;
}

.consulting-page .approach-staggered-items,
.consulting-page .approach-grid {
    margin-left: -50px;
    /* Shifting cards slightly to the left as requested */
}

.consulting-page .service-intro-section {
    background: var(--bg-alt);
    padding: 60px 0 24px;
}

.consulting-page .approach-staggered-text h3 {
    font-size: 28px;
    /* Reduced to prevent bleeding */
    white-space: normal;
    /* Allow wrapping */
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.service-passage {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 991px) {
    .consulting-page .approach-staggered-text h3 {
        white-space: normal;
        /* Allow wrapping on smaller screens */
        font-size: 28px;
    }

    .consulting-page .approach-staggered-items,
    .consulting-page .approach-grid {
        margin-left: 0;
    }
}

/* Scoped override for Consulting Approach Cards */
.consulting-page .approach-card .card-image {
    height: 200px;
    /* Slightly increased for better focus */
}

.consulting-page .approach-card .card-content {
    padding: 20px;
    /* More breathing room for consulting text */
}

.consulting-page .approach-grid {
    gap: 24px;
    /* Slightly wider gap to match larger cards */
}

/* Industry Capabilities Grid */
.industry-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.industry-capabilities-grid.no-gap {
    gap: 0;
    border: 1px solid rgba(0, 45, 91, 0.1);
}

.industry-cap-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 0.5px solid rgba(0, 45, 91, 0.05);
}

.no-gap .industry-cap-card {
    border: 0.5px solid rgba(0, 45, 91, 0.1);
    box-shadow: none;
}

.industry-cap-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.industry-cap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.industry-cap-content {
    padding: 20px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.industry-cap-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.industry-cap-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Details List */
.cap-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cap-details-list li {
    font-size: 16px;
    /* Increased font size as requested */
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cap-details-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Unique 3D Animation */
.cap-unique-anim {
    perspective: 1000px;
}

.no-gap .industry-cap-card:hover {
    z-index: 10;
    transform: perspective(1000px) rotateX(-2deg) scale(1.03) translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 45, 91, 0.2), 0 0 25px rgba(0, 209, 193, 0.25);
    border-color: var(--accent-color);
}

.industry-cap-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.industry-cap-card:hover::after {
    opacity: 1;
}

.industry-cap-card:hover .industry-cap-image img {
    transform: scale(1.1) rotate(2deg);
}

@media (max-width: 991px) {
    .industry-capabilities-grid.no-gap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .industry-capabilities-grid.no-gap {
        grid-template-columns: 1fr;
    }
}

/* Public Sector Capabilities Custom Background */
.public-capabilities-section {
    background-color: var(--bg-dark) !important;
    padding: 100px 0 40px;
}

.public-capabilities-section h2 {
    color: #ffffff;
}

.public-capabilities-section h2 .text-outline {
    -webkit-text-stroke: 1px #ffffff;
    color: transparent;
}

.public-capabilities-section h2 .text-accent-light {
    color: #00d1c1;
    /* Logo Teal */
    filter: brightness(1.2);
    /* Lighter version */
}


/* Industry Mini Grid (Home Page) */
.industry-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.industry-mini-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 45, 91, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.industry-mini-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.1);
    border-color: var(--accent-color);
}

.industry-mini-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 209, 193, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.industry-mini-icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.industry-mini-card:hover .industry-mini-icon {
    background: var(--accent-color);
}

.industry-mini-card:hover .industry-mini-icon i {
    color: #ffffff;
}

.industry-mini-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.industry-mini-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 100%;
}

.industry-mini-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.industry-mini-card:hover .industry-mini-link {
    gap: 12px;
}

/* Accessibility Links */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-block !important;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
}

.card-role-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 12px;
}

.card-role-link:hover .card-role {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.inline-link:hover {
    border-bottom-color: var(--accent-color);
}

/* Outcomes Minimal Section */
.outcomes-minimal-section {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.outcomes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.outcomes-visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.outcomes-image-wrapper {
    width: 100%;
    height: 550px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 12px;
}

.outcomes-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 45, 91, 0.9) 0%, rgba(0, 45, 91, 0.5) 70%, transparent 100%);
    z-index: 2;
}

.outcomes-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.outcomes-direct-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 900px;
    width: calc(100% - 100px);
}

.outcomes-direct-content .outcomes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px 60px;
    list-style: none;
    padding: 0;
}

.outcomes-direct-content .outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.outcome-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.outcome-icon i {
    color: var(--accent-color);
    font-size: 14px;
}

.outcome-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.outcome-text strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.outcome-text span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .outcomes-direct-content .outcomes-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .outcomes-image-wrapper::after {
        background: linear-gradient(to top, rgba(0, 45, 91, 0.95) 0%, rgba(0, 45, 91, 0.7) 100%);
    }

    .outcomes-direct-content {
        left: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }

    .outcomes-image-wrapper {
        height: auto;
        min-height: 600px;
    }

    .outcome-text strong {
        font-size: 16px;
    }

    .outcome-text span {
        font-size: 13px;
    }
}

.btn-main-dark {
    background: #444444;
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-main-dark:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .outcomes-title {
        left: -20px;
        font-size: clamp(40px, 10vw, 80px);
    }
}

@media (max-width: 768px) {
    .outcomes-title {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .outcomes-image-wrapper {
        height: 350px;
    }

    .outcomes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-line {
        width: 60px;
        flex-grow: 0;
    }
}

/* Organic Segments Section */
.segments-organic-section {
    position: relative;
    padding: 60px 0 24px;
    overflow: hidden;
    background-color: #ffffff;
}

.segments-bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 193, 0.05) 0%, rgba(0, 45, 91, 0.02) 100%);
    filter: blur(100px);
    z-index: 1;
    border-radius: 50%;
}

.segments-organic-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.segment-organic-card {
    background: #ffffff;
    padding: 30px 24px;
    width: 280px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05), -1px -1px 5px rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    border: none;
    position: relative;
    /* Crushed paper edge effect */
    clip-path: polygon(0% 2%, 5% 0%, 15% 3%, 25% 1%, 35% 4%, 45% 2%, 55% 5%, 65% 1%, 75% 3%, 85% 0%, 95% 4%, 100% 2%,
            98% 15%, 100% 25%, 97% 35%, 100% 45%, 98% 55%, 100% 65%, 97% 75%, 100% 85%, 98% 95%, 100% 100%,
            85% 98%, 75% 100%, 65% 97%, 55% 100%, 45% 98%, 35% 100%, 25% 97%, 15% 100%, 5% 98%, 0% 100%,
            2% 85%, 0% 75%, 3% 65%, 1% 55%, 4% 45%, 2% 35%, 5% 25%, 1% 15%);
}

/* Sub-rotation for more natural "paper" feel */
.segment-organic-card:nth-child(1) {
    transform: rotate(-1.5deg);
}

.segment-organic-card:nth-child(2) {
    transform: rotate(1.2deg) translateY(40px);
}

.segment-organic-card:nth-child(3) {
    transform: rotate(-0.8deg);
}

.segment-organic-card:nth-child(4) {
    transform: rotate(1.5deg) translateY(40px);
}

.segment-organic-card:nth-child(5) {
    transform: rotate(-1.2deg);
}

.segment-organic-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.1);
    z-index: 10;
}

/* Fold line effect */
.segment-organic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 45%, rgba(0, 0, 0, 0.02) 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%);
    pointer-events: none;
}

/* Staggering effect */
.segment-organic-card:nth-child(even) {
    transform: translateY(40px);
}

.segment-organic-card:nth-child(even):hover {
    transform: translateY(25px);
}

.organic-blob-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.organic-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 8s linear infinite;
    opacity: 0.15;
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.organic-blob-wrapper i {
    font-size: 30px;
    position: relative;
    z-index: 2;
}

.segment-organic-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: -0.5px;
}

.segment-organic-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

/* Colors from reference image */
.card-blue .organic-blob {
    background: #4a90e2;
}

.card-blue .organic-blob-wrapper i {
    color: #4a90e2;
}

.card-teal .organic-blob {
    background: #00d1c1;
}

.card-teal .organic-blob-wrapper i {
    color: #00d1c1;
}

.card-red .organic-blob {
    background: #ff7675;
}

.card-red .organic-blob-wrapper i {
    color: #ff7675;
}

.card-orange .organic-blob {
    background: #fab1a0;
}

.card-orange .organic-blob-wrapper i {
    color: #fab1a0;
}

.card-blue-alt .organic-blob {
    background: #a29bfe;
}

.card-blue-alt .organic-blob-wrapper i {
    color: #a29bfe;
}

@media (max-width: 768px) {
    .segments-organic-grid {
        gap: 20px;
    }

    .segment-organic-card:nth-child(even) {
        transform: none;
    }

    .segment-organic-card {
        width: 100%;
        max-width: 400px;
    }
}



/* QE Capabilities Grid Style */
.qe-capabilities-section {
    padding: 40px 0 0;
    /* Reduced space at top */
    overflow: hidden;
    background-color: #ffffff;
}

.qe-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.qe-cap-box {
    display: flex;
    padding: 0;
    min-height: 240px;
    position: relative;
    border-radius: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    overflow: hidden;
    perspective: 1000px;
}

.qe-cap-box:hover {
    z-index: 2;
    box-shadow: 0 40px 100px rgba(0, 45, 91, 0.15);
}

.qe-cap-box.light {
    background: #ffffff;
    color: var(--primary-color);
}

.qe-cap-box.dark {
    background: var(--primary-color);
    color: #ffffff;
}

.qe-cap-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.qe-cap-box:hover .qe-cap-content {
    transform: scale(1.02);
}

.qe-cap-box.reverse .qe-cap-content {
    flex-direction: row-reverse;
}

.qe-cap-text {
    flex: 0 0 50%;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.qe-cap-box:hover .qe-cap-text {
    transform: translateX(10px);
}

.qe-cap-box.reverse:hover .qe-cap-text {
    transform: translateX(-10px);
}

.qe-cap-tag {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.qe-cap-box:hover .qe-cap-tag {
    letter-spacing: 5px;
    color: var(--accent-color);
}

.light .qe-cap-tag {
    color: var(--primary-color);
    opacity: 0.6;
}

.dark .qe-cap-tag {
    color: var(--accent-color);
}

.qe-cap-text h3 {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gen AI Specific Capability Cards (Image Inspired) */
.gen-ai-capabilities-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.gen-ai-cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 80px;
}

.gen-ai-cap-card {
    background: #ffffff;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 45px rgba(0, 45, 91, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.gen-ai-cap-card:hover {
    transform: translateY(-10px);
}

.cap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.cap-card-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cap-card-logo img {
    height: 20px;
}

.cap-card-logo span {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}

.cap-card-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
}

.cap-card-body {
    display: flex;
    align-items: center;
    gap: 50px;
}

.cap-card-text {
    flex: 1;
    z-index: 2;
}

.cap-card-text h3 {
    font-size: 20px;
    /* Reduced further to maintain one-liner status without changing card proportions */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #222;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.cap-card-text p {
    font-size: 15px;
    color: #777;
    margin-bottom: 35px;
    max-width: 100%;
    line-height: 1.5;
}

.cap-card-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: none;
}

.cap-card-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.cap-card-visual img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.blob-container {
    position: absolute;
    width: 160%;
    height: 160%;
    z-index: 1;
    opacity: 0.9;
}

.blob-main {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.8;
    filter: blur(2px);
}

.blob-accent {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 4;
    animation: floatIcon 4s ease-in-out infinite;
}

.blob-accent:nth-child(2) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.blob-accent:nth-child(3) {
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
}

.blob-accent:nth-child(4) {
    top: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Specific Card Themes based on Image */
.gen-ai-cap-card.theme-1 .cap-card-btn {
    background: #ff5722;
    color: white;
}

.gen-ai-cap-card.theme-1 .blob-main {
    background: #ffebd2;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
}

.gen-ai-cap-card.theme-2 .cap-card-btn {
    background: #673ab7;
    color: white;
}

.gen-ai-cap-card.theme-2 .blob-main {
    background: #f3e5f5;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.gen-ai-cap-card.theme-3 .cap-card-btn {
    background: #ffca28;
    color: #333;
}

.gen-ai-cap-card.theme-3 .blob-main {
    background: #e0f2f1;
    border-radius: 30% 70% 40% 60% / 50% 60% 40% 50%;
}

.gen-ai-cap-card.theme-4 .cap-card-btn {
    background: #bf360c;
    color: white;
}

.gen-ai-cap-card.theme-4 .blob-main {
    background: #fff9c4;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}

.gen-ai-cap-card.theme-5 .cap-card-btn {
    background: #1976d2;
    color: white;
}

.gen-ai-cap-card.theme-5 .blob-main {
    background: #e3f2fd;
}

.gen-ai-cap-card.theme-6 .cap-card-btn {
    background: #388e3c;
    color: white;
}

.gen-ai-cap-card.theme-6 .blob-main {
    background: #e8f5e9;
}

@media (max-width: 991px) {
    .gen-ai-cap-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }

    .cap-card-text h3 {
        white-space: normal;
        /* Allow wrapping on mobile */
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cap-card-body {
        flex-direction: column;
    }

    .cap-card-text {
        text-align: center;
    }

    .cap-card-visual {
        width: 100%;
        min-height: 200px;
    }
}


.qe-cap-box:hover .qe-cap-text h3 {
    color: var(--accent-color);
}

.qe-cap-text p {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 100%;
    color: inherit;
    transition: opacity 0.6s ease;
}

.qe-cap-box:hover .qe-cap-text p {
    opacity: 1;
}

.qe-cap-visual {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.qe-cap-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 209, 193, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.qe-cap-box:hover .qe-cap-visual::after {
    opacity: 1;
}

.qe-cap-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qe-cap-box:hover .qe-cap-visual img {
    transform: scale(1.1) rotate(1deg);
}

.light .qe-cap-visual img {
    /* mix-blend-mode removed for cover images as it might look weird with backgrounds */
}

@media (max-width: 1200px) {
    .qe-cap-text h3 {
        font-size: 19px;
    }

    .qe-cap-text {
        padding: 40px;
    }
}

@media (max-width: 1024px) {
    .qe-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .qe-cap-box {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .qe-cap-content {
        flex-direction: column-reverse !important;
    }

    .qe-cap-box.reverse .qe-cap-content {
        flex-direction: column-reverse !important;
    }

    .qe-cap-text {
        flex: 0 0 auto;
        padding: 40px 30px;
    }

    .qe-cap-visual {
        flex: 0 0 250px;
        width: 100%;
    }
}


/* AI Capabilities Section - Two Column Ref Style */
.ai-capabilities-section {
    padding: 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.ai-cap-grid {
    display: flex;
    min-height: 800px;
    /* Increased for better visual impact */
}

.ai-cap-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.ai-cap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-cap-text-content {
    flex: 0 0 55%;
    padding: 80px 100px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-cap-text-content h2 {
    color: var(--primary-color);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
    text-transform: none;
    letter-spacing: -1px;
}

.ai-cap-item {
    margin-bottom: 35px;
}

.ai-cap-item h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.ai-cap-item p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 100%;
    line-height: 1.5;
}

.ai-cap-item p strong {
    color: var(--primary-color);
}

.ai-cap-banner {
    margin-top: 30px;
    background-color: var(--accent-color);
    padding: 20px 30px;
    border-radius: 4px;
}

.ai-cap-banner p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    max-width: 100%;
    line-height: 1.4;
}

.ai-cap-banner p strong {
    color: #ffffff;
}

@media (max-width: 1200px) {
    .ai-cap-text-content {
        padding: 60px;
    }
}

@media (max-width: 1024px) {
    .ai-cap-grid {
        flex-direction: column;
    }

    .ai-cap-image {
        flex: 0 0 500px;
    }

    .ai-cap-text-content {
        padding: 60px 40px;
    }
}


/* ==========================================================================
   EdTech Premium Segments Section
   ========================================================================== */
.edtech-segments-section {
    padding: 120px 0;
    background-color: #f7f9fc;
}

.edtech-segments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.edtech-segment-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 280px;
}

.edtech-segment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.08);
}

.segment-card-content {
    flex: 1.1;
    z-index: 5;
}

.segment-card-content h3 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-transform: none;
    white-space: nowrap;
}

.segment-card-content p {
    font-size: 15px;
    color: #64748b;
    max-width: 280px;
    line-height: 1.5;
    font-weight: 400;
}

.segment-card-visual {
    flex: 0.8;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* UI Snippet Base */
.ui-snippet {
    position: relative;
    width: 220px;
    /* Slightly larger base */
    height: 180px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.edtech-segment-card:hover .ui-snippet {
    transform: scale(1.1) rotate(2deg) translateY(-10px);
}

/* Staggered/Randomized placement classes */
.edtech-segment-card:nth-child(odd) .ui-snippet {
    transform: rotate(-3deg) translateX(10px);
}

.edtech-segment-card:nth-child(even) .ui-snippet {
    transform: rotate(3deg) translateX(-10px) translateY(10px);
}

.edtech-segment-card:nth-child(3n) .ui-snippet {
    transform: rotate(5deg) scale(0.9) translateY(-20px);
}


/* Card 1: Smart Management */
.ui-snippet-1 .ui-main-box {
    width: 120px;
    height: 80px;
    background: #111827;
    border-radius: 12px;
    position: absolute;
    top: 10px;
    right: 0;
}

.ui-snippet-1 .ui-glass-layer {
    width: 140px;
    height: 120px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    position: absolute;
    top: 30px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ui-snippet-1 .ui-profiles {
    display: flex;
    position: absolute;
    top: 50px;
    right: 30px;
    z-index: 3;
}

.ui-snippet-1 .ui-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    background: #e2e8f0;
    margin-left: -10px;
    overflow: hidden;
}

.ui-snippet-1 .ui-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-snippet-1 .ui-profile:first-child {
    margin-left: 0;
}

.ui-snippet-1 .ui-check {
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 70px;
    left: 0px;
    z-index: 4;
    font-size: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ui-snippet-1 .ui-ai-badge {
    background: white;
    padding: 8px;
    border-radius: 10px;
    position: absolute;
    bottom: 10px;
    right: 20px;
    z-index: 4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.ui-snippet-1 .ui-ai-badge i {
    font-size: 12px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

.ui-snippet-1 .ui-ai-badge span {
    font-size: 8px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Card 2: Business Automation */
.ui-snippet-2 .ui-dark-box {
    width: 150px;
    height: 110px;
    background: #111827;
    border-radius: 16px;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 15px;
    color: white;
}

.ui-snippet-2 .ui-roi {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ui-snippet-2 .ui-roi span {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 400;
}

.ui-snippet-2 .ui-roi-label {
    font-size: 9px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.ui-snippet-2 .ui-bars {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 30px;
}

.ui-snippet-2 .ui-bar {
    width: 8px;
    border-radius: 2px;
    background: #334155;
}

.ui-snippet-2 .ui-bar.active {
    background: #10b981;
}

.ui-snippet-2 .ui-glass-chart {
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 2;
}

.ui-snippet-2 .ui-floating-icon {
    width: 28px;
    height: 28px;
    background: #166534;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: -5px;
    z-index: 3;
    font-size: 10px;
}

/* Card 3: Analytics Dashboard */
.ui-snippet-3 .ui-panel {
    width: 150px;
    height: 120px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.ui-snippet-3 .ui-panel-header {
    font-size: 9px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.ui-snippet-3 .ui-circle-stat {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
    border-top-color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.ui-snippet-3 .ui-goal {
    background: #f8fafc;
    padding: 8px;
    border-radius: 10px;
    font-size: 9px;
}

.ui-snippet-3 .ui-goal strong {
    display: block;
    color: #1e293b;
}

.ui-snippet-3 .ui-goal span {
    color: #10b981;
}

.ui-snippet-3 .ui-floating-card {
    width: 100px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    position: absolute;
    top: -10px;
    left: 0px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 10px;
    z-index: 2;
}

.ui-snippet-3 .ui-floating-card .title {
    font-size: 7px;
    color: #94a3b8;
    margin-bottom: 3px;
}

.ui-snippet-3 .ui-floating-card .price {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.ui-snippet-3 .ui-floating-card .price span {
    font-size: 7px;
    color: #94a3b8;
    font-weight: 400;
}

.ui-snippet-3 .ui-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.ui-snippet-3 .wave-bar {
    width: 4px;
    background: #10b981;
    border-radius: 1px;
}

/* Card 4: Partner Matches */
.ui-snippet-4 .ui-user-frame {
    width: 140px;
    height: 140px;
    background: #111827;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.ui-snippet-4 .ui-user-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.ui-snippet-4 .ui-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
    animation: scan 3s linear infinite;
}

.ui-snippet-4 .ui-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.ui-snippet-4 .control {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.ui-snippet-4 .control.active {
    background: #10b981;
}

.ui-snippet-4 .ui-corner-badge {
    position: absolute;
    top: 15px;
    right: -15px;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 6;
}

@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

@media (max-width: 992px) {
    .edtech-segments-grid {
        grid-template-columns: 1fr;
    }

    .edtech-segment-card {
        padding: 40px;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 32px;
    }

    .segment-card-content {
        flex: none;
        width: 100%;
    }

    .segment-card-content p {
        max-width: 100%;
    }

    .segment-card-visual {
        flex: none;
        width: 100%;
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }

    .ui-snippet {
        transform: scale(0.9) !important;
    }
}

@media (max-width: 576px) {
    .edtech-segment-card {
        padding: 30px 24px;
        gap: 24px;
    }

    .segment-card-content h3 {
        font-size: 22px;
        white-space: normal;
        margin-bottom: 12px;
    }

    .segment-card-content p {
        font-size: 14px;
    }

    .segment-card-visual {
        display: flex;
        height: 160px;
    }

    .ui-snippet {
        transform: scale(0.75) !important;
    }

    .segment-mobile-icon {
        display: none !important;
    }
}

.segment-mobile-icon {
    display: none;
}

/* ==========================================================================
   Collage Outcomes Section (Refined)
   ========================================================================== */
.collage-outcomes-section {
    padding: 80px 0 120px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

.collage-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 450px;
}

.collage-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.collage-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Antonio', sans-serif;
    font-size: clamp(150px, 25vw, 400px);
    font-weight: 700;
    color: rgba(0, 45, 91, 0.03);
    z-index: 0;
    pointer-events: none;
    letter-spacing: -10px;
}

.collage-img-box {
    width: 320px;
    height: 420px;
    background: #fff;
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    /* To allow badges to pop out */
    border-radius: 12px;
    padding: 10px;
}

.collage-img-box-2 {
    width: 280px;
    height: 380px;
    background: #fff;
    position: relative;
    z-index: 2;
    transform: rotate(4deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    border-radius: 12px;
    padding: 10px;
}

.collage-img-box-3 {
    width: 240px;
    height: 340px;
    background: #fff;
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    border-radius: 12px;
    padding: 10px;
}

.collage-img-box img,
.collage-img-box-2 img,
.collage-img-box-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Detailed Grid */
.outcomes-detailed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.outcome-detail {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 45, 91, 0.05);
    transition: var(--transition);
}

.outcome-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.08);
}

.outcome-detail i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.outcome-detail h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.outcome-detail p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Metrics Bar */
.outcomes-metrics-bar {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.outcomes-metrics-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: sweep 3s infinite;
}

.outcomes-metrics-bar .metric {
    text-align: center;
    position: relative;
    z-index: 1;
}

.outcomes-metrics-bar .value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

.outcomes-metrics-bar .label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes sweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 992px) {
    .collage-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    .collage-img-box,
    .collage-img-box-2,
    .collage-img-box-3 {
        width: 100%;
        max-width: 320px;
        transform: none;
    }

    .collage-watermark {
        font-size: 150px;
    }

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

    .outcomes-metrics-bar {
        flex-wrap: wrap;
        gap: 30px;
    }

    .metric {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .outcomes-detailed-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        width: 100%;
    }
}

.badge-yellow {
    position: absolute;
    top: 10%;
    right: -20px;
    background: #e6a83d;
    color: #1a1a1a;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 100px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(230, 168, 61, 0.2);
}

.badge-blue {
    position: absolute;
    bottom: 10%;
    left: -20px;
    background: #3b82f6;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.badge-dark {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.badge-accent {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 209, 193, 0.2);
}

/* Small Search Bar */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right;
    width: 320px;
    background: #ffffff;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 45, 91, 0.15);
}

.search-bar.active {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-bar input {
    width: 100%;
    height: 35px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.search-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    min-height: 14px;
    transition: all 0.3s ease;
}

.search-status.has-results {
    color: #10b981;
    /* Success Green */
}

.search-status.no-results {
    color: #ef4444;
    /* Error Red */
}

.search-bar input:focus {
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}


mark.search-highlight {
    background-color: yellow;
    color: black;
    padding: 0 2px;
    border-radius: 2px;
}

/* Hide the toggle button globally on desktop */
.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS OVERRIDES (320px - 1440px)
   ========================================================================== */

/* Universal Reset & Viewport Fixes */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Touch Spacing & Accessibility */
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

/* Base Responsive Breakpoints */
/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS OVERRIDES (320px - 1440px)
   ========================================================================== */

/* Universal Reset & Viewport Fixes */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch Spacing & Accessibility */
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

/* 1. Large Screen Adjustments (1440px and below) */
@media (max-width: 1440px) {
    .container {
        padding: 0 40px;
    }

    .container-full {
        padding: 0 5%;
    }
}

/* 2. Tablet & Desktop Transition (1200px and below) */
@media (max-width: 1200px) {
    .header-right {
        gap: 20px;
    }

    .nav-links {
        gap: 30px;
    }

    h1 {
        font-size: clamp(40px, 8vw, 80px);
    }

    h2 {
        font-size: clamp(32px, 5vw, 40px);
    }
}

/* 3. Mobile Header & Menu (991px and below) */
@media (max-width: 991px) {
    header {
        height: var(--header-height) !important;
    }

    .logo-img {
        height: 26px;
    }

    .header-right .btn-main {
        display: none !important;
    }

    .header-right {
        gap: 15px;
    }

    .search-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: var(--header-height) !important;
        right: auto !important;
        transform: translateY(-100%) !important;
        z-index: 2005 !important;
        background: #ffffff !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 5px 15px rgba(0, 45, 91, 0.1) !important;
    }

    .search-bar.active {
        transform: translateY(0) !important;
    }

    .search-input-group {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .search-bar input {
        font-size: 16px !important;
        height: 40px !important;
    }


    /* Premium Mobile Menu Icon */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        background: rgba(0, 45, 91, 0.03);
        border: 1px solid rgba(0, 45, 91, 0.05);
        border-radius: 10px;
        cursor: pointer;
        z-index: 3100; /* Above the nav-links */
        position: relative; /* Essential for z-index to work */
        padding: 0;
        transition: var(--transition);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }


    .mobile-menu-toggle:hover {
        background: rgba(0, 209, 193, 0.1);
        border-color: var(--accent-color);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 1.5px;
        background: #003366; /* Distinct Dark Blue */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, width 0.3s;
        border-radius: 4px;
        pointer-events: none;
    }

    .mobile-menu-toggle span:nth-child(2) {
        width: 14px;
    }

    .mobile-menu-toggle.active {
        background: var(--primary-color);
    }

    .mobile-menu-toggle.active span {
        background: #ffffff;
        width: 18px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* Full-Screen Premium Mobile Nav */
    .nav-links {
        display: flex !important;
        position: fixed;
        top: var(--header-height) !important;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height)) !important;
        height: calc(100dvh - var(--header-height)) !important;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 30px !important;
        gap: 0 !important;
        z-index: 2000 !important;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        visibility: hidden;
        border-left: 1px solid rgba(0, 45, 91, 0.05);
    }

    .nav-links.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Mobile Only & CTA Elements */
    .mobile-only {
        display: block !important;
    }

    /* Fix visibility and ensure CTA style is prominent */
    .nav-links li a.cta-mobile {
        background: var(--primary-color) !important;
        color: var(--accent-color) !important;
        padding: 16px 24px !important;
        border-radius: 100px !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 20px 0 10px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        border: none !important;
        box-shadow: 0 10px 30px rgba(0, 45, 91, 0.2) !important;
        display: flex !important;
        width: 100% !important;
        font-size: 14px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.3s ease !important;
    }

    .nav-links li a.cta-mobile.secondary {
        background: transparent !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--primary-color) !important;
        margin-top: 10px !important;
        box-shadow: none !important;
    }

    .nav-links li a.cta-mobile:hover {
        background: var(--accent-color) !important;
        color: var(--primary-color) !important;
        transform: translateY(-2px) !important;
    }

    .nav-links li a.cta-mobile.secondary:hover {
        background: var(--primary-color) !important;
        color: #ffffff !important;
    }

    .nav-links li {
        width: 100% !important;
        display: block !important;
        height: auto !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links li:has(a.cta-mobile:not(.secondary)) {
        margin-top: auto !important;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entry for menu links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }


    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links a {
        font-size: 17px !important;
        font-weight: 700 !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 45, 91, 0.05);
        color: var(--primary-color) !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        letter-spacing: -0.01em;
        position: relative;
    }

    .nav-links a::after {
        display: none !important;
    }

    /* Active Page Stamp/Tag Effect */
    .nav-links a.current,
    .has-mega.active>a {
        color: var(--accent-color) !important;
        background: rgba(0, 209, 193, 0.08) !important;
        padding: 10px 15px !important;
        margin: 5px -12px !important;
        border-radius: 10px !important;
        border-bottom: none !important;
    }

    .mobile-nav-icon {
        display: inline-block !important;
        margin-right: 5px; /* Tightened gap */
        color: #003366; /* Dark Blue */
        width: 20px;
        text-align: center;
        font-size: 14px;
    }

    /* Consistent icon styling for all sub-links on mobile */
    .mega-dropdown i {
        margin-right: 5px !important; /* Tightened gap */
        color: #003366 !important; /* Dark Blue */
        width: 20px !important;
        text-align: center !important;
        font-size: 14px !important;
    }

    .nav-arrow {
        font-size: 18px;
        color: #003366 !important; /* Dark Blue */
        transition: transform 0.3s ease;
    }
    /* Mega Dropdown in Mobile */
    .has-mega.active>a .nav-arrow {
        transform: rotate(180deg);
    }

    .mega-dropdown {
        position: static !important;
        width: 100% !important;
        display: none; /* Reverted to hidden by default */
        padding: 5px 0 15px 15px !important;

        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .has-mega.active .mega-dropdown {
        display: block !important;
    }


    /* Show arrows on mobile for collapsible sections */
    .nav-arrow {
        display: block !important;
        font-size: 14px;
        transition: transform 0.3s ease;
        transform: rotate(0deg); /* Reset to horizontal by default on mobile */
        margin-left: auto; /* Push arrow to the far right */
    }


    .mega-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .mega-col.featured {
        display: none !important;
    }

    .mega-title {
        font-size: 12px !important;
        padding: 10px 0 !important; /* Increased padding for icons */
        font-weight: 800 !important;
        color: var(--primary-color) !important;
        text-transform: none !important;
        letter-spacing: 1.5px !important;
        border-bottom: none !important;
        display: flex !important; /* Ensure flex for icon alignment */
        align-items: center !important;
    }

    /* Global Mobile Menu Reordering - Ensures EdTech is always last in Industries */
    .nav-links .mega-col:not(.featured) {
        display: contents !important;
    }

    .nav-links a[href="edtech.html"] {
        order: 99 !important;
    }

    .about-mega .mega-title {
        display: none !important;
    }

    .about-mega .mega-content {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding-left: 0 !important;
    }

    .mega-dropdown ul,
    .mega-group ul {
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding-left: 25px !important; /* Slightly aligned to the right from parent */
        margin-top: 0 !important;
        border-left: none !important;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: none !important;
        text-align: left !important;
        list-style: none !important;
    }

    /* Ensure About Us sub-links are visible by default in mobile */
    .about-mega ul {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
        padding-left: 15px !important;
    }

    .about-mega .mega-group ul li,
    .mega-group ul li {
        text-align: left !important;
        display: block !important;
    }

    .mega-group.mobile-active ul {
        max-height: 500px !important;
        opacity: 1 !important;
        margin-top: 10px !important;
        pointer-events: auto !important;
    }

    .mega-group .mega-title {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        position: relative !important;
    }

    .mega-group .mega-title::after {
        content: '\f067';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s ease;
        opacity: 0.5;
        margin-left: auto; /* Push to right */
    }

    .mega-group.mobile-active .mega-title::after {
        content: '\f068';
        transform: rotate(180deg);
        color: #003366; /* Dark Blue */
        opacity: 1;
    }

    .mega-group ul li a {
        padding: 12px 0 !important;
        /* Larger tap target */
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
        border: none !important;
        opacity: 1 !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        display: flex !important; /* Ensure flex for icon alignment */
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important; /* Using margin on icon instead */
    }




    /* Grids & Layouts Stacking - Senior UX Optimization */
    .who-we-are-grid,
    .bento-grid,
    .pillars-list,
    .services-grid-3col,
    .footer-grid,
    .stats-grid,
    .about-grid,
    .contact-grid,
    .industry-capabilities-grid,
    .edtech-segments-grid,
    .outcomes-detailed-grid,
    .outcomes-metrics-bar,
    .approach-timeline-container,
    .timeline-items,
    .who-we-are-cards,
    .who-we-are-values {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .section-padding {
        padding: 80px 0 !important;
    }

    .section-header {
        margin-bottom: 40px !important;
        text-align: center !important;
    }

    .section-header h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .section-header p {
        font-size: 16px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        line-height: 1.6;
    }

    /* Premium Typography Scaling */
    h1 {
        font-size: clamp(38px, 10vw, 56px) !important;
    }

    h2 {
        font-size: clamp(28px, 8vw, 36px) !important;
    }

    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* All Hero Sections - Premium Center Alignment & Pacing */
    .hero-slide::after,
    .services-hero::after,
    .service-image-banner::before {
        background: linear-gradient(to right, rgba(0, 10, 25, 0.63) 0%, rgba(0, 10, 25, 0.52) 100%) !important;
    }

    .desktop-only {
        display: none !important;
    }

    .services-hero {
        min-height: 80vh !important;
        min-height: 80dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 100px 0 60px !important;
    }

    .services-hero .container,
    .services-hero .container-full,
    .hero-slider .container {
        padding: 0 24px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .services-hero h1,
    .hero-content h1,
    .hero-title-small {
        text-align: center !important;
        margin: 0 auto 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .services-hero p,
    .hero-subheading-blue,
    .hero-content p {
        text-align: center !important;
        margin: 0 auto 30px !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .hero-content .btn-main {
        margin-top: 10px !important;
    }

    /* Hero Strip & Breadcrumb - Centered & Optimized */
    .hero-nav-strip {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 20px auto 0 !important;
        padding: 10px 0 !important;
        overflow-x: visible !important;
    }

    .hero-nav-item {
        font-size: 13px !important;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 16px;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0 !important;
    }

    .breadcrumb-strip {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        font-size: 11px !important;
        margin-bottom: 20px !important;
        opacity: 0.8;
        width: 100% !important;
    }

    /* Bento Cards - Premium Mobile Fix */
    .bento-card {
        padding: 40px 24px !important;
        flex-direction: column !important;
        text-align: center;
        border-radius: 30px !important;
    }

    .bento-card.wide {
        flex-direction: column !important;
    }

    .bento-visual img {
        max-width: 140px !important;
        margin: 0 auto 30px !important;
        order: -1;
    }

    .bento-content h3 {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .bento-content p {
        font-size: 16px !important;
    }

    /* Service Cards Ref - Consistent Spacing */
    .service-card-ref {
        padding: 15px !important;
        border-radius: 20px !important;
    }

    .card-image {
        height: 200px !important;
        border-radius: 12px !important;
    }

    .card-content {
        padding: 20px 5px !important;
    }

    .card-content h3 {
        font-size: 22px !important;
    }

    /* Testimonials Mobile Fix - Premium Swiper Feel */
    .testimonial-carousel-wrapper {
        padding: 0 !important;
        margin: 0 -20px;
    }

    .testimonial-grid {
        gap: 15px;
        padding: 20px 20px 40px;
        scroll-padding: 0 20px;
    }

    .testimonial-card-premium {
        flex: 0 0 85vw !important;
        min-height: auto !important;
        padding: 30px !important;
        border-radius: 15px !important;
    }

    .carousel-nav {
        display: none !important;
    }

    /* Footer Mobile Refinement - Premium Clean Look */
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        text-align: center;
    }

    .footer-col.branding {
        margin-bottom: 10px;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-col.branding p {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .social-list-vertical {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-top: 20px;
        padding: 0 !important;
    }

    .social-list-vertical li {
        margin-bottom: 0 !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 40px 0 !important;
        margin-top: 40px !important;
        display: flex !important;
    }

    .back-to-top {
        order: 1 !important;
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 0 auto !important;
        display: flex !important;
    }

    .footer-bottom-left {
        order: 2 !important;
        justify-content: center !important;
    }

    .footer-bottom-right {
        order: 3 !important;
        margin: 0 auto !important;
    }

    .footer-legal {
        gap: 15px;
        justify-content: center;
    }
}

/* 4. Small Phones (480px and below) */
@media (max-width: 480px) {
    :root {
        --section-spacing: 45px;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        text-align: center !important;
    }

    .section-header h2 {
        font-size: 24px !important;
    }

    .hero-content h1,
    .services-hero h1,
    .hero-title-small {
        font-size: 32px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .hero-content p,
    .hero-subheading-blue {
        font-size: 15px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .btn-main,
    .btn-sec,
    .btn-tesla {
        width: 100% !important;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 14px !important;
    }

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

    .footer-col.branding {
        grid-column: span 1;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    .stat-item {
        padding: 20px 10px !important;
        border: 1px solid rgba(0, 45, 91, 0.05) !important;
        border-radius: 8px;
    }

    .stat-item h3 {
        font-size: 24px !important;
    }

    .stat-item p {
        font-size: 13px !important;
    }

    .logo-img {
        height: 26px;
    }

    .back-to-top {
        margin: 0 auto !important;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
    }
}

/* 5. Extra Small Phones (360px and below) */
@media (max-width: 360px) {
    .section-header h2 {
        font-size: 24px !important;
    }
    .hero-content h1 {
        font-size: 30px !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .nav-links a {
        font-size: 15px !important;
    }
}

/* Final Polish: Zero Horizontal Scroll Guarantee */
html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

* {
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

section,
main,
footer {
    width: 100%;
    overflow-x: hidden !important;
}

@supports (-webkit-overflow-scrolling: touch) {
    .nav-links,
    .testimonial-grid,
    .approach-carousel-grid {
        -webkit-overflow-scrolling: touch;
    }
}
