@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS GLOBAL TOKENS & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette - HSL Tailored for depth & brand identity */
    --color-primary: #15487B;            /* Brand Corporate Navy */
    --color-primary-rgb: 21, 72, 123;
    --color-accent: #34A7DF;             /* Accent Sky Blue */
    --color-accent-rgb: 52, 167, 223;
    
    /* Dark Theme Midnight Slate (Apple-like dark mode) */
    --color-dark-bg: #070C11;
    --color-dark-card: rgba(21, 33, 46, 0.4);
    --color-dark-border: rgba(255, 255, 255, 0.08);
    --color-dark-text: #F8F9FA;
    --color-dark-muted: #94A3B8;

    /* Light Theme Corporate (Clean premium whites) */
    --color-light-bg: #FFFFFF;
    --color-light-bg-alt: #F8FAFC;
    --color-light-card: rgba(255, 255, 255, 0.8);
    --color-light-border: rgba(21, 72, 123, 0.08);
    --color-light-text: #1E293B;
    --color-light-muted: #64748B;
    
    /* Active State Variables (Defaults to Light, overwritten in .dark-theme) */
    --bg-page: var(--color-light-bg);
    --bg-page-alt: var(--color-light-bg-alt);
    --bg-card: var(--color-light-card);
    --color-border: var(--color-light-border);
    --color-text: var(--color-light-text);
    --color-muted: var(--color-light-muted);
    
    /* Typography & Spacing */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg-input-focus: #FFFFFF;
    --border-radius: 4px;                /* strict rectangular corners */
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-quick: all 0.2s ease;
    --container-width: 1240px;
    --header-height-large: 100px;
    --header-height-small: 82px;
}

/* Dark Theme Overrides */
.dark-theme {
    --bg-page: var(--color-dark-bg);
    --bg-page-alt: #0D151E;
    --bg-card: var(--color-dark-card);
    --color-border: var(--color-dark-border);
    --color-text: var(--color-dark-text);
    --color-muted: var(--color-dark-muted);
}

/* ==========================================================================
   BASE & RESET RULES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-dark-bg); /* Prevents white flash on load */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--color-text);
    line-height: 1.625;
    padding-top: 0; /* Remove top padding to let heroes span full-screen under navbar */
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM & GRADIENT TEXTS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3,
h1.dark-text, h2.dark-text, h3.dark-text {
    color: #FFFFFF;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Apple-style Linear Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-quick);
}

.dark-theme a {
    color: var(--color-accent);
}

a:hover {
    color: var(--color-accent);
    text-decoration: none !important;
}

/* ==========================================================================
   PREMIUM BUTTONS & LINKS (Strictly No-Capsules)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
    color: #FFFFFF;
}

/* Glow effects & micro-interactions */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: var(--color-accent);
    color: #FFFFFF !important; /* Force text to remain white and readable on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 167, 223, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #FFFFFF !important;
    box-shadow: 0 10px 25px rgba(21, 72, 123, 0.15);
}

.dark-theme .btn-secondary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.dark-theme .btn-secondary:hover {
    background-color: var(--color-accent);
    color: #FFFFFF !important;
    box-shadow: 0 10px 25px rgba(52, 167, 223, 0.2);
}

.btn-white {
    background: #FFFFFF;
    color: var(--color-primary);
}

.btn-white:hover {
    background: var(--color-accent-light);
    color: var(--color-primary) !important;
}

.btn-disabled {
    background-color: var(--color-border);
    color: var(--color-muted);
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   GLASSMORPHISM & GRID STRUCTURES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

main > section:last-of-type {
    padding-bottom: 5rem;
}

.section-alt {
    background-color: var(--bg-page-alt);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    padding: 3rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(52, 167, 223, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.dark-theme .glass-card:hover {
    border-color: rgba(52, 167, 223, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(21, 33, 46, 0.55);
}

/* Layout Utilities */
.flex { display: flex; }
.grid { display: grid; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================================================
   NAVBAR (Apple-like Floating Glassmorphic Header)
   ========================================================================== */
.header-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--container-width);
    height: 100px;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.dark-theme .header-container {
    background-color: rgba(13, 22, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Scrolled/Shrunk header state transitions to dark theme globally */
.header-container.shrunk {
    top: 12px;
    height: 82px;
    background-color: rgba(13, 22, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.dark-theme .header-container.shrunk {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo img {
    height: 54px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.header-container.shrunk .brand-logo img {
    height: 42px;
    filter: brightness(0) invert(1); /* Logo turns white on scroll down */
}

.dark-theme .brand-logo img {
    filter: brightness(0) invert(1); /* Dark theme always uses white logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    align-items: center;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 600;
    color: #475569; /* Slate grey at the top */
    padding: 0.5rem 0.25rem;
    position: relative;
    letter-spacing: 0.015em;
    transition: var(--transition-quick);
}

.nav-link:hover {
    color: var(--color-primary); /* Brand blue hover at top */
}

.nav-link.active {
    color: var(--color-primary); /* Brand blue active at top */
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Link transitions to white/sky-blue on scroll */
.header-container.shrunk .nav-link {
    color: rgba(255, 255, 255, 0.78);
}

.header-container.shrunk .nav-link:hover,
.header-container.shrunk .nav-link.active {
    color: #FFFFFF;
}

.header-container.shrunk .nav-link::after {
    background: var(--color-accent);
}

/* Dark theme link overrides */
.dark-theme .nav-link {
    color: rgba(255, 255, 255, 0.78);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
    color: #FFFFFF;
}

.dark-theme .nav-link::after {
    background: var(--color-accent);
}
/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-icon {
    vertical-align: middle;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.12);
    z-index: 1000;
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 18px;
    text-decoration: none;
    display: block !important;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-body);
    color: var(--color-primary);
}

.dropdown-content a.active {
    background-color: rgba(52, 167, 223, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

/* Ensure mobile menu handles dropdowns smoothly */
@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
    }
    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        margin-left: 1rem;
        display: none !important; /* Can be toggled if needed, but flex by default for simple static */
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Burger Mobile Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: none;
    background: transparent;
}

.burger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

.header-container.shrunk .burger-bar,
.dark-theme .burger-bar {
    background-color: #FFFFFF; /* Burger bar turns white when scrolled or in dark theme */
}

/* ==========================================================================
   FOOTER DESIGN
   ========================================================================== */
footer {
    background: linear-gradient(135deg, #070C11 0%, #0f2744 55%, #15487B 100%);
    color: #E2E8F0;
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-bottom: 5rem;
    align-items: start;
}

.footer-brand img {
    height: 92px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.75rem;
    display: block;
}

.footer-brand p {
    color: #94A3B8;
    font-size: 0.95rem;
    max-width: 450px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    color: #94A3B8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    line-height: 1;
}

.social-icon[aria-label="Facebook"] {
    font-size: 1.25rem;
    padding-bottom: 2px;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: #FFFFFF !important;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 167, 223, 0.3);
}

.footer-title {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
}

/* Push cols 2 & 3 content down to align with logo bottom */
.footer-grid > div:not(.footer-brand) {
    padding-top: calc(72px + 1.75rem);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

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

.footer-contact p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.footer-contact strong {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #64748B;
    margin-left: 1.5rem;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   PAGE HEROES & SCROLLTIMELINE GLOWS
   ========================================================================== */

/* Homepage Hero */
.premium-hero {
    height: 100vh;
    min-height: 700px;
    background: #070C11;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 0 0;
    overflow: hidden;
}

/* Background Zoom Layer for Smooth Scroll Zoom */
.bg-zoom-layer {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: scale(1.0);
    transition: transform 0.08s ease-out;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 
                0 0 40px rgba(52, 167, 223, 0.05),
                0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.01);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .hero-visual-img {
    transform: scale(1.04);
}

/* Subpage Heroes */
.page-hero {
    position: relative;
    padding: 110px 0 50px 0 !important;
    min-height: 585px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070C11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #FFFFFF !important;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 167, 223, 0.18) 0%, rgba(21, 72, 123, 0.04) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(21, 72, 123, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Hero Background Image Focal Points (Desktop) */
.hero-home .bg-zoom-layer { background-position: center center; }
.hero-about .bg-zoom-layer { background-position: center center; }
.hero-services .bg-zoom-layer { background-position: 54% center; }
.hero-partners .bg-zoom-layer { background-position: center 48%; }
.hero-partner-with-us .bg-zoom-layer { background-position: center 32%; }
.hero-pv .bg-zoom-layer { background-position: 70% center; }
.hero-careers .bg-zoom-layer { background-position: 78% center; }
.hero-contact .bg-zoom-layer { background-position: 60% center; }
.cta-banner .bg-zoom-layer { background-position: center 48%; }

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 24px 0 !important;
        min-height: 250px;
    }

    /* Mobile Hero Centering & Focal Points */
    .hero-home .bg-zoom-layer { background-position: 32% center !important; }
    .hero-about .bg-zoom-layer { background-position: center center !important; }
    .hero-services .bg-zoom-layer { background-position: 52% center !important; }
    .hero-partners .bg-zoom-layer { background-position: center 48% !important; }
    .hero-partner-with-us .bg-zoom-layer { background-position: center 32% !important; }
    .hero-pv .bg-zoom-layer { background-position: 72% center !important; }
    .hero-careers .bg-zoom-layer { background-position: 80% center !important; }
    .hero-contact .bg-zoom-layer { background-position: 60% center !important; }
    .cta-banner .bg-zoom-layer { background-position: center 48% !important; }
}

/* Ensure the first section on all pages clears the floating header */
main > section:first-of-type {
    padding-top: 140px !important;
}

/* Dynamic background aura */
.premium-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 167, 223, 0.15) 0%, rgba(21, 72, 123, 0.03) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.premium-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(21, 72, 123, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.hero-title-main {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero-desc-main {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--color-dark-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

.hero-actions-main {
    display: flex;
    gap: 1.5rem;
    z-index: 5;
    position: relative;
}

.hero-actions-main .btn {
    min-width: 240px;
    justify-content: center;
}

/* Legacy Story Banner */
.premium-legacy-banner {
    border-left: 2px solid var(--color-accent);
    padding: 2.5rem 3rem;
    background: linear-gradient(90deg, rgba(52, 167, 223, 0.05) 0%, transparent 100%);
    margin: 4rem 0;
}

.premium-legacy-banner h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
}

.dark-theme .premium-legacy-banner h3 {
    color: #FFFFFF;
}

/* ==========================================================================
   STATISTICS GRID & CARD ANATOMY
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(21, 72, 123, 0.08);
    border-radius: var(--border-radius);
    padding: 3.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 10px 30px rgba(21, 72, 123, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 25px 50px rgba(52, 167, 223, 0.12);
}

.dark-theme .stat-card {
    background: rgba(21, 33, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .stat-card:hover {
    background: rgba(21, 33, 46, 0.85);
    border-color: var(--color-accent);
    box-shadow: 0 25px 50px rgba(52, 167, 223, 0.25);
}

.stat-card-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.5s var(--transition-smooth), color 0.5s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.18) rotate(5deg);
    color: var(--color-primary);
}

.dark-theme .stat-card:hover .stat-card-icon {
    color: #FFFFFF;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.dark-theme .stat-number {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}


/* ==========================================================================
   ABOUT US: VISUALLY STUNNING INTERACTIVE TIMELINE
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 5rem auto 0 auto;
    padding-left: 50px;
}

/* Timeline Track Vertical Line */
.timeline-track {
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

/* Timeline line that draws itself */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%; /* Driven by JS on scroll */
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    transition: height 0.1s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    opacity: 0.55;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Milestone dot pointer */
.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-page);
    border: 3px solid rgba(52, 167, 223, 0.35); /* Visible accent border when inactive */
    transition: var(--transition-smooth);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    border-color: var(--color-accent);
    background-color: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(52, 167, 223, 0.2);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.dark-theme .timeline-title {
    color: #FFFFFF;
}

/* Vision / Mission / Values overhaul */
.v-m-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    height: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}

.value-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(21, 72, 123, 0.18);
    box-shadow: 0 15px 35px rgba(21, 72, 123, 0.06);
}

.value-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-right: 0;
}

.value-card p {
    font-size: 0.96rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}

.dark-theme .value-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .value-card {
        grid-column: span 1 !important; /* Stack 5th card in grid */
        padding: 2.25rem 1.75rem;
    }
}

/* ==========================================================================
   SERVICES VIEW & CAPABILITY CARDS
   ========================================================================== */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(52, 167, 223, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(52, 167, 223, 0.08);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.service-card-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.dark-theme .service-card h3 {
    color: #FFFFFF;
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-detail-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--color-border);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.service-detail-visual {
    background: var(--bg-page-alt);
    border: 1px solid var(--color-border);
    padding: 5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   PARTNERS GLOWING GRIDS
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.85rem 1.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--bg-page-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-quick);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(21, 72, 123, 0.15);
}

.dark-theme .filter-tab:hover,
.dark-theme .filter-tab.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 10px 20px rgba(52, 167, 223, 0.25);
}

.portfolio-cat-section {
    margin-bottom: 6rem;
    transition: opacity 0.5s ease;
}

.portfolio-cat-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

.dark-theme .portfolio-cat-title {
    color: #FFFFFF;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.logo-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    height: 210px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(52, 167, 223, 0.1);
    transform: translateY(-4px) scale(1.02);
}

.dark-theme .logo-card:hover {
    box-shadow: 0 15px 30px rgba(52, 167, 223, 0.2);
}

.logo-card img {
    width: 285px;
    height: 140px;
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.dark-theme .logo-card img {
    /* Kept colored as requested, no invert unless necessary for visibility */
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
}

.dark-theme .logo-card:hover img {
    background: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   FORMS & INPUT FIELDS
   ========================================================================== */
.form-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 4rem 3.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dark-theme .form-container {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.dark-theme label {
    color: #FFFFFF;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.95rem 1.15rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--bg-page-alt);
    color: var(--color-text);
    transition: var(--transition-quick);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--bg-page);
    box-shadow: 0 0 0 3px rgba(52, 167, 223, 0.12);
}

/* Custom dashed drag-drop file uploader */
.file-upload-wrapper {
    position: relative;
    border: 1px dashed var(--color-border);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: var(--bg-page-alt);
    transition: var(--transition-quick);
}

.file-upload-wrapper:hover {
    border-color: var(--color-accent);
    background-color: var(--bg-page);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-muted);
}

.file-upload-label svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.dark-theme .file-upload-label svg {
    color: var(--color-accent);
}

.file-name-display {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

/* Banners */
.alert {
    padding: 1.15rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-left-width: 4px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.2);
    border-left-color: var(--color-success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.2);
    border-left-color: var(--color-error);
}

/* ==========================================================================
   CONTACT US MAP & COLUMNS
   ========================================================================== */
.contact-section {
    padding: 2rem 0 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
    width: 100%;
}

.contact-details-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 520px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1.25rem;
}

.contact-card {
    margin: 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(52, 167, 223, 0.3);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(52, 167, 223, 0.12);
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    stroke: #34A7DF;
}

.contact-info-text h4 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}

.dark-theme .contact-info-text h4 {
    color: #FFFFFF;
}

.contact-info-text p {
    color: var(--color-text);
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.5;
}

.contact-info-text .hours-bold {
    font-weight: 600;
    color: var(--color-primary);
}

.contact-map-col {
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #f8fafc;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
}

/* ==========================================================================
   SCROLL EFFECTS & TIMELINE ANIMATIONS
   ========================================================================== */

/* Fade-in & Spring-smooth scrollytelling reveals (Framer-tier) */
.reveal {
    opacity: 0;
    transform: translateY(38px) scale(0.985);
    will-change: transform, opacity, filter;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(4px); /* Refined optical reveal */
}

/* Directional and zoom reveal modifiers */
.reveal-scale {
    transform: scale(0.95) translateY(24px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

/* Active states (resets transforms and blurs) */
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1) !important;
    filter: blur(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Native CSS Scroll-Driven Animations (SDA) */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Floating shrinking header */
    .header-container {
        animation: shrink-header auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 100px;
    }

    @keyframes shrink-header {
        to {
            top: 12px;
            height: 64px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            background-color: rgba(255, 255, 255, 0.88);
        }
    }
    
    .dark-theme .header-container {
        animation: shrink-header-dark auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 100px;
    }
    
    @keyframes shrink-header-dark {
        to {
            top: 12px;
            height: 64px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            background-color: rgba(7, 12, 17, 0.88);
        }
    }

    /* Cinematic Hero Scroll-linked parallax & scale-down */
    .premium-hero .container {
        animation: fade-out-scale auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 500px;
    }

    @keyframes fade-out-scale {
        to {
            opacity: 0.08;
            transform: scale(0.93) translateY(50px);
            filter: blur(5px);
        }
    }
}

/* Disable animations for sensitive users */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
    }
    .header-container {
        animation: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.15rem; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-grid .reveal {
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .services-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-small);
    }
    
    .header-container {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        height: var(--header-height-small);
        padding: 0 1.5rem;
    }
    
    .header-container.menu-open {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
    
    .brand-logo img {
        height: 42px;
    }

    /* Mobile Hamburger Nav Drawer */
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height-small) + 12px);
        left: 1rem;
        right: 1rem;
        bottom: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        gap: 0;
        padding: 1.25rem 1.5rem;
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-title {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #94A3B8 !important;
    }
    
    .mobile-menu-close {
        background: transparent;
        border: none;
        color: #475569 !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-close:hover {
        color: var(--color-primary) !important;
    }
    
    .nav-menu .nav-link,
    .header-container.shrunk .nav-menu .nav-link,
    .dark-theme .nav-menu .nav-link {
        display: block;
        padding: 0.95rem 0.65rem;
        font-size: 1rem;
        font-weight: 600;
        color: #1E293B !important;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .nav-menu .nav-link:hover,
    .header-container.shrunk .nav-menu .nav-link:hover,
    .dark-theme .nav-menu .nav-link:hover {
        color: var(--color-primary) !important;
        background: rgba(13, 94, 166, 0.05);
    }
    
    .nav-link.active::after {
        display: none !important;
    }
    
    .nav-menu .nav-link.active,
    .header-container.shrunk .nav-menu .nav-link.active,
    .dark-theme .nav-menu .nav-link.active {
        color: var(--color-primary) !important;
        font-weight: 700;
        background: rgba(13, 94, 166, 0.08);
        padding-left: 0.85rem;
    }

    /* Hamburger Active Animation */
    .burger-menu.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Responsive adjustments */
    section {
        padding: 5rem 0;
    }
    
    main > section:first-of-type {
        padding-top: 110px !important;
    }
    
    .premium-hero {
        height: auto;
        padding: 110px 0 5rem 0 !important;
    }
    
    .hero-title-main {
        font-size: 2.75rem;
    }
    
    .hero-desc-main {
        font-size: 1.15rem;
    }
    
    .hero-actions-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions-main .btn {
        width: 100%;
    }

    .v-m-card, .value-card {
        padding: 2.5rem;
    }

    .services-list-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-visual {
        padding: 3rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .logo-card {
        height: 90px;
    }
    
    .form-container {
        padding: 2.5rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    
    .contact-details-col {
        min-height: auto;
    }
    
    .contact-map-col {
        width: 100%;
        min-height: 380px;
        height: 380px;
    }
    
    .map-container {
        width: 100%;
        min-height: 380px;
        height: 380px;
        border-radius: 14px;
    }
    
    .map-container iframe {
        width: 100%;
        min-height: 380px;
        height: 380px;
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom a {
        margin: 0 0.75rem;
    }
}

/* ==========================================================================
   PARALLAX IMAGE SECTIONS (Webflow/Framer Style Parallax Breaks)
   ========================================================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 !important; /* Ensure seamless flush layouts */
    padding: 0 !important; /* Override general section paddings */
}


.parallax-wrapper {
    position: relative;
    width: 100%;
    height: 520px; /* Taller height for dramatic scroll visual break */
    overflow: hidden;
}

.parallax-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%; /* Extra height to allow scrolling within container */
    object-fit: cover;
    transform: translateY(-15%);
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 10, 14, 0.2) 0%, rgba(5, 10, 14, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 2rem;
}

.parallax-text-card {
    background: rgba(5, 10, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.parallax-text-card h3 {
    margin-bottom: 0.75rem;
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Smooth Scroll-Driven Parallax Zoom */
    .parallax-img {
        animation: parallax-zoom-slide auto linear both;
        animation-timeline: scroll(block root);
        animation-range: entry 0% exit 100%;
    }

    @keyframes parallax-zoom-slide {
        from {
            transform: scale(1.12) translateY(-15%);
        }
        to {
            transform: scale(1.02) translateY(15%);
        }
    }
}

@media (max-width: 768px) {
    .parallax-wrapper {
        height: 300px;
    }
    .parallax-img {
        height: 120%;
        transform: translateY(-10%);
    }
}

/* ==========================================================================
   SERVICES INTERACTIVE TABS SYSTEM
   ========================================================================== */
.services-tabs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    align-items: start;
}

.tabs-nav-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 100px;
    z-index: 5;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

.tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateX(4px);
}

.tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(21, 72, 123, 0.12);
}

.dark-theme .tab-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(52, 167, 223, 0.25);
}

.tabs-content-right {
    position: relative;
    min-height: 400px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    background: var(--bg-card);
    filter: blur(6px); /* Blur reveal on scroll */
    transition: filter 0.8s ease-out, opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-content-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.dark-theme .tab-content-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 2.25rem 0;
}

.dark-theme .content-divider {
    background-color: rgba(255, 255, 255, 0.06);
}

.services-interactive-tabs {
    padding: 2rem 0 6rem 0;
}

@media (max-width: 900px) {
    .services-tabs-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem auto;
    }
    
    .tabs-nav-left {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 1rem 1rem 1rem;
        margin: 0 -1rem;
        scrollbar-width: none;
        gap: 0.5rem;
        position: static;
    }
    
    .tabs-nav-left::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        width: auto;
        white-space: nowrap;
        padding: 0.9rem 1.25rem;
        justify-content: center;
        text-align: center;
    }
    
    .tab-btn:hover {
        transform: none;
    }
    
    .tab-btn.active {
        background-color: var(--color-primary);
        color: #FFFFFF;
        border-color: var(--color-primary);
    }
    
    .tab-content-card {
        padding: 2.25rem 1.5rem;
    }
    
    .tab-split-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .stats-mini-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* ==========================================================================
   LEGACY SECTION (Pillars & Glow Banner)
   ========================================================================== */
.legacy-interactive-section {
    padding: 8rem 0;
}

.legacy-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2.5rem;
}

.legacy-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.legacy-pillar-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 8px; /* Clean rectangular corners */
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.legacy-pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(21, 72, 123, 0.05);
    border-color: rgba(21, 72, 123, 0.15);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 167, 223, 0.06);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

.legacy-pillar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.legacy-pillar-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* Patient Tagline (Transparent) */
.patient-tagline-section {
    position: relative;
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.patient-tagline-section h3 {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 850px;
}

@media (max-width: 1024px) {
    .legacy-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .legacy-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .patient-tagline-section h3 {
        font-size: 1.65rem;
    }
}

.pillar-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.8;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    line-height: 1;
}
/* ==========================================================================
   LEGAL PAGES (Privacy Policy / Terms of Service)
   ========================================================================== */
.legal-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: 1.5rem 0 0.6rem;
}

.legal-section p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 0.9rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
    color: var(--color-text);
}

.legal-section ul li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--color-primary);
}
/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 2.25rem;
    right: 2.25rem;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px rgba(21, 72, 123, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s,
                box-shadow 0.3s ease,
                background 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    background: #FFFFFF;
    box-shadow: 0 12px 40px rgba(21, 72, 123, 0.28), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px) scale(1.05);
}

#back-to-top:active {
    transform: translateY(0) scale(0.97);
}

/* Animated SVG progress ring */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    transform: rotate(-90deg); /* Start from top */
}

.progress-ring__track {
    fill: none;
    stroke: rgba(21, 72, 123, 0.1);
    stroke-width: 2.5;
}

.progress-ring__fill {
    fill: none;
    stroke: url(#ring-gradient);
    stroke: var(--color-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 113.1; /* 2π × r(18) */
    stroke-dashoffset: 113.1; /* Fully hidden by default */
    transition: stroke-dashoffset 0.1s linear;
}

/* Chevron arrow */
.btn-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#back-to-top:hover .btn-arrow {
    transform: translateY(-2px);
}

/* Dark theme adaptation */
.dark-theme #back-to-top {
    background: rgba(21, 30, 43, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-theme #back-to-top:hover {
    background: rgba(21, 30, 43, 0.95);
}

.dark-theme .btn-arrow {
    color: var(--color-accent);
}

.dark-theme .progress-ring__fill {
    stroke: var(--color-accent);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 46px;
        height: 46px;
    }
    .progress-ring {
        width: 46px;
        height: 46px;
    }
}

/* Partner Marquee */
.marquee-section {
    padding: 4.5rem 0 2.25rem;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.marquee-label {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-page), transparent);
}
.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-page), transparent);
}

.marquee-track {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.marquee-track::-webkit-scrollbar {
    display: none;
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
}

.marquee-inner img {
    width: 220px;
    height: 88px;
    object-fit: contain;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}
.marquee-inner img:hover {
    transform: scale(1.08);
}

.dark-theme .marquee-inner img {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA Banner */
.cta-banner { 
    position: relative; 
    overflow: hidden; 
    padding: 0 !important; 
    background: #070C11;
}

.cta-banner-inner {
    background: transparent;
    padding: 6.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Radial glow from bottom */
.cta-banner-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 50% 110%,
        rgba(52, 167, 223, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Hairline top accent */
.cta-banner-inner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent, rgba(52, 167, 223, 0.5), rgba(21, 72, 123, 0.5), transparent);
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .cta-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2.5rem !important;
    }
    .cta-grid .cta-banner-content {
        text-align: center !important;
    }
    .cta-grid .cta-banner-content div {
        justify-content: center !important;
    }
}

/* Animated Stat Counters */
.stat-counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-block;
    will-change: transform;
}

.reach-4col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .reach-4col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .reach-4col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
}

/* Hero Shimmer */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        108deg,
        transparent 38%,
        rgba(255, 255, 255, 0.025) 50%,
        transparent 62%
    );
    background-size: 300% 300%;
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.page-hero > .container { position: relative; z-index: 2; }

@keyframes heroShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
/* Stat Number Glow */
.stat-number.counted {
    text-shadow: 0 0 28px rgba(52, 167, 223, 0.35);
}

/* Accessibility Focus */
.btn:focus-visible,
.filter-tab:focus-visible,
.tab-btn:focus-visible,
#back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}



/* Service Card */
.service-card:hover .service-card-icon svg {
    stroke: var(--color-accent);
    transition: stroke 0.3s ease;
}

/* Pillar Card Number */
.legacy-pillar-card:hover .pillar-number {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.35s ease;
}

/* Responsive Grid Helpers */
.v-m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.careers-culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.pv-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    font-size: 0.98rem;
    color: var(--color-text);
}

@media (max-width: 768px) {
    /* Instantly render scroll reveal elements on mobile to prevent blank/hidden page bugs */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .v-m-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .careers-culture-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pv-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Mobile Footer Layout Compression */
    footer {
        padding: 3.5rem 0 2rem 0 !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem 1.5rem !important;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .footer-grid > div:not(.footer-brand) {
        padding-top: 0 !important; /* Remove desktop alignment padding on mobile */
    }
    
    .footer-brand p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-brand img {
        height: 64px !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-title {
        font-size: 1.1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem !important;
    }
    
    .footer-contact p {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer-bottom {
        margin-top: 2.5rem !important;
        padding-top: 1.5rem !important;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Responsive Parallax & Stats overrides */
.parallax-text-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.parallax-text-card p {
    color: #FFFFFF;
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 620px;
}
@media (max-width: 768px) {
    .parallax-wrapper {
        height: auto;
        min-height: 480px;
        display: flex;
        align-items: center;
    }
    
    .parallax-text-card {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .parallax-text-card h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .parallax-text-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Global mobile menu helper elements (Desktop defaults) */
.mobile-menu-header {
    display: none;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   VISUAL SCALE BALANCING FOR PARTNER LOGOS
   ========================================================================== */

/* Homepage Marquee Slider Logo Balancers */
.marquee-inner img[src*="asahi"] {
    transform: scale(1.55);
}
.marquee-inner img[src*="asahi"]:hover {
    transform: scale(1.68) !important;
}

.marquee-inner img[src*="menarini"] {
    transform: scale(1.35);
}
.marquee-inner img[src*="menarini"]:hover {
    transform: scale(1.48) !important;
}

.marquee-inner img[src*="cipla"] {
    transform: scale(0.85);
}
.marquee-inner img[src*="cipla"]:hover {
    transform: scale(0.95) !important;
}

.marquee-inner img[src*="b-braun"] {
    transform: scale(0.85);
}
.marquee-inner img[src*="b-braun"]:hover {
    transform: scale(0.95) !important;
}

.marquee-inner img[src*="lepu"] {
    transform: scale(0.9);
}
.marquee-inner img[src*="lepu"]:hover {
    transform: scale(1.0) !important;
}

/* Partners Page Grid Logo Balancers */
.logo-card img[src*="asahi"] {
    transform: scale(1.6);
}
.logo-card:hover img[src*="asahi"] {
    transform: scale(1.7) !important;
}

.logo-card img[src*="menarini"] {
    transform: scale(1.35);
}
.logo-card:hover img[src*="menarini"] {
    transform: scale(1.45) !important;
}

.logo-card img[src*="cipla"] {
    transform: scale(0.85);
}
.logo-card:hover img[src*="cipla"] {
    transform: scale(0.95) !important;
}

.logo-card img[src*="b-braun"] {
    transform: scale(0.85);
}
.logo-card:hover img[src*="b-braun"] {
    transform: scale(0.95) !important;
}

.logo-card img[src*="lepu"] {
    transform: scale(0.9);
}
.logo-card:hover img[src*="lepu"] {
    transform: scale(1.0) !important;
}

.logo-card img[src*="dahlhausen"] {
    transform: scale(0.8);
}
.logo-card:hover img[src*="dahlhausen"] {
    transform: scale(0.9) !important;
}

/* ==========================================================================
   SERVICES INTERACTIVE TABS & MOBILE REDESIGN
   ========================================================================== */
.services-section {
    padding: 5rem 0;
}

.services-tab-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.services-tab-nav {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.service-tab-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #FFFFFF;
    color: #1E293B;
    font-weight: 600;
    font-size: 1.02rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.dark-theme .service-tab-btn {
    background: #111B27;
    border-color: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
}

.tab-icon-box {
    width: 56px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-3d-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-title-text {
    flex-grow: 1;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.service-tab-btn:hover {
    border-color: #CBD5E1;
    color: #0d5ea6;
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.service-tab-btn:hover .tab-3d-img {
    transform: scale(1.08);
}

.service-tab-btn.active {
    background: #0d5ea6 !important;
    color: #FFFFFF !important;
    border-color: #0d5ea6 !important;
    box-shadow: 0 10px 25px rgba(13, 94, 166, 0.32) !important;
    transform: translateX(4px);
}

.service-tab-btn.active .tab-title-text {
    color: #FFFFFF !important;
    font-weight: 700;
}

.service-tab-btn.active .tab-3d-img {
    transform: scale(1.1);
}

.services-tab-content-container {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.75rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    min-height: 540px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.service-tab-pane {
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-title {
    color: #0d5ea6;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.service-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    line-height: 1.75;
}

.service-subtitle {
    color: #15487B;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dark-theme .service-subtitle {
    color: #60A5FA;
}

.service-text {
    color: var(--color-text);
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Service Banner Wrap */
.service-banner-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(21, 72, 123, 0.06) 0%, rgba(52, 167, 223, 0.1) 100%), #F8FAFC;
    border: 1px solid rgba(52, 167, 223, 0.22);
    box-shadow: 0 10px 30px rgba(13, 94, 166, 0.08), 0 0 25px rgba(52, 167, 223, 0.06);
}

.service-banner-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 94, 166, 0.05) 0%, transparent 65%, rgba(52, 167, 223, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

.service-banner-wrap img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-banner-wrap:hover img {
    transform: scale(1.02);
}

/* Reach Container in Tab 2 */
.reach-container {
    background: rgba(52, 167, 223, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.25rem;
    margin-top: 2rem;
}

.reach-title {
    color: #15487B;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 1.75rem;
}

.dark-theme .reach-title {
    color: #60A5FA;
}

.reach-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.dark-theme .reach-card {
    background: #111B27;
}

.reach-card .stat-counter {
    font-size: 2.1rem;
    font-weight: 800;
    color: #15487B;
    margin-bottom: 0.35rem;
}

.dark-theme .reach-card .stat-counter {
    color: #34A7DF;
}

.reach-label {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Service Nav Footer (Next/Prev controls) */
.service-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.service-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--bg-card);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.dark-theme .service-nav-btn {
    background: #111B27;
    color: #E2E8F0;
}

.service-nav-btn:hover:not(:disabled) {
    background: #0d5ea6;
    color: #ffffff;
    border-color: #0d5ea6;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 94, 166, 0.25);
}

.service-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.service-nav-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    padding: 0.4rem 0.95rem;
    background: rgba(52, 167, 223, 0.08);
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.service-nav-indicator span {
    display: inline;
    white-space: nowrap;
}

.service-nav-indicator .curr-tab-num {
    color: #0d5ea6;
    font-weight: 800;
}

/* ==========================================================================
   SERVICES MOBILE & TABLET REDESIGN (max-width: 960px)
   ========================================================================== */
@media (max-width: 960px) {
    .services-section {
        padding: 2rem 0 4.5rem 0;
    }

    .services-tab-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    /* Mobile Sticky Horizontal Pill Rail */
    .services-tab-nav {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.55rem;
        padding: 0.65rem 0.5rem 0.85rem 0.5rem;
        margin: 0 -0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: 68px;
        z-index: 30;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.85);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .dark-theme .services-tab-nav {
        background: rgba(7, 12, 17, 0.94);
        border-bottom-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .services-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .service-tab-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 42px;
        padding: 0.42rem 0.95rem 0.42rem 0.55rem;
        border-radius: 9999px;
        font-size: 0.88rem;
        gap: 0.5rem;
        scroll-snap-align: center;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transform: none !important;
    }

    .tab-icon-box {
        width: 32px;
        height: 30px;
    }

    .service-tab-btn.active {
        box-shadow: 0 4px 14px rgba(13, 94, 166, 0.35) !important;
    }

    /* Mobile Content Container */
    .services-tab-content-container {
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
        min-height: auto;
    }

    /* Mobile Banner Image: Compact & proportional */
    .service-banner-wrap {
        margin-bottom: 1.35rem;
        border-radius: 12px;
    }

    .service-banner-wrap img {
        max-height: 210px;
        aspect-ratio: 16/9;
    }

    .service-title {
        font-size: 1.45rem;
        margin-bottom: 1.15rem;
    }

    .service-blocks {
        gap: 1.25rem;
    }

    .service-subtitle {
        font-size: 1.08rem;
        margin-bottom: 0.35rem;
    }

    .service-text {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    /* Distribution stats 2x2 on mobile */
    .reach-container {
        padding: 1.25rem 0.85rem;
        margin-top: 1.5rem;
        border-radius: 14px;
    }

    .reach-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .reach-card {
        padding: 0.9rem 0.4rem;
        border-radius: 10px;
    }

    .reach-card .stat-counter {
        font-size: 1.55rem;
        margin-bottom: 0.2rem;
    }

    .reach-label {
        font-size: 0.78rem;
    }

    /* Mobile Navigation Footer */
    .service-nav-footer {
        margin-top: 1.75rem;
        padding-top: 1.25rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .service-nav-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.84rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .service-nav-indicator {
        font-size: 0.88rem;
        padding: 0.35rem 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 58px;
        text-align: center;
    }
}


