:root {
    --primary: #0B2038;
    --accent: #E55C00;
    --bglight: #F8F9FA;
    --textmain: #1A1A1A;
    --textsec: #4A4A4A;
    
    /* CSS Variables tying the Mobile Menu to the Header's scroll state seamlessly */
    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-blur: blur(16px);
}

body {
    background-color: var(--bglight);
    color: var(--textmain);
    -webkit-font-smoothing: antialiased;
}

/* 
  Persistent Glassmorphism Header 
  Starts frosted to let the background subtly bleed through,
  scrolls into a solid white with a gentle shadow.
*/
#navbar {
    background-color: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.6s ease;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

#navbar.scrolled {
    --nav-bg: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Sync Mobile Menu Background strictly to the Header variable */
#mobile-menu {
    background-color: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fluid Responsive Typography */
.fluid-h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); } 
.fluid-h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
.fluid-h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.fluid-p { font-size: clamp(1rem, 1.25vw, 1.125rem); }

/* Base Touch Constraints */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Scroll-Triggered Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Overlays */
.hero-overlay {
    background: linear-gradient(90deg, rgba(11, 32, 56, 0.95) 0%, rgba(11, 32, 56, 0.7) 50%, rgba(11, 32, 56, 0.2) 100%);
}
.sector-card-img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.group:hover .sector-card-img {
    transform: scale(1.05);
}

/* Seamless Fade Edges for Marquee */
.fade-edges {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* JS-Driven Draggable Marquee Setup */
.hide-scrollbar {
    -ms-overflow-style: none; 
    scrollbar-width: none;  
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.sector-card-fixed {
    width: 300px;
    flex-shrink: 0;
    white-space: normal;
}
@media (min-width: 768px) {
    .sector-card-fixed { width: 380px; }
}

/* Standard Custom Scrollbar (Vertical) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #153a66; }

/* Force solid white header and menu on mobile screens */
@media (max-width: 767px) {
    #navbar, #mobile-menu {
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    #navbar {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
}