/* =====================================================================
   CALDAN CONSTRUCTION — MAIN STYLESHEET
   Brand: Royal Blue, Deep Navy, Gold
   Tagline: "Building Kenya's Future, One Project at a Time."
   ===================================================================== */

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

/* =====================================================================
   1. CSS CUSTOM PROPERTIES (Light/Dark Theme)
   ===================================================================== */

:root,
[data-theme="light"] {
    /* Backgrounds */
    --bg-primary: #FCF9F4;
    --bg-secondary: #F6F1E8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8F5;
    --bg-inverse: #0B172A;

    /* Text */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-primary: #E5E7EB;
    --border-secondary: #D1D5DB;
    --border-light: #F0F1F3;

    /* Accents — CALDAN BRAND COLORS */
    --accent-primary: #0B66C3;        /* Royal Blue */
    --accent-primary-hover: #0A55A8;
    --accent-secondary: #D4AF37;      /* Gold */
    --accent-secondary-hover: #E8C84A;
    --accent-danger: #B9342B;
    --accent-success: #27AE60;
    --accent-warning: #F39C12;
    --accent-info: #2980B9;

    /* Fonts */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Layout */
    --sidebar-width: 270px;
    --topbar-height: 70px;
    --content-max-width: 1400px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

[data-theme="dark"] {
    /* Backgrounds — Deep Navy based */
    --bg-primary: #0D1F2A;
    --bg-secondary: #1A2A35;
    --bg-card: #1A3A3A;
    --bg-card-hover: #2A4A4A;
    --bg-inverse: #FCF9F4;

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --text-inverse: #0D1F2A;

    /* Borders */
    --border-primary: #334155;
    --border-secondary: #475569;
    --border-light: #273549;

    /* Accents */
    --accent-primary: #3B82F6;
    --accent-primary-hover: #60A5FA;
    --accent-secondary: #D4AF37;
    --accent-secondary-hover: #E8C84A;
    --accent-danger: #E74C3C;
    --accent-success: #2ECC71;
    --accent-warning: #F1C40F;
    --accent-info: #3498DB;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Device Default */
@media (prefers-color-scheme: dark) {
    [data-device-theme] {
        --bg-primary: #0D1F2A;
        --bg-secondary: #1A2A35;
        --bg-card: #1A3A3A;
        --bg-card-hover: #2A4A4A;
        --bg-inverse: #FCF9F4;
        --text-primary: #F1F5F9;
        --text-secondary: #94A3B8;
        --text-tertiary: #64748B;
        --text-inverse: #0D1F2A;
        --border-primary: #334155;
        --border-secondary: #475569;
        --border-light: #273549;
        --accent-primary: #3B82F6;
        --accent-secondary: #D4AF37;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    }
}


/* =====================================================================
   2. BASE RESET & TYPOGRAPHY
   ===================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--accent-secondary);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}
h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* Section Headers */
.section-head {
    text-align: center;
    margin-bottom: 44px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent-secondary);
    display: inline-block;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.08rem;
}


/* =====================================================================
   3. BUTTONS
   ===================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: #FFFFFF;
}
.btn-primary:hover {
    background: var(--accent-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--accent-secondary);
    color: #0D2B36;
}
.btn-gold:hover {
    background: var(--accent-secondary-hover);
    color: #0D2B36;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}
.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn .fa-arrow-right,
.btn .fa-paper-plane {
    transition: transform var(--transition-fast);
}
.btn:hover .fa-arrow-right {
    transform: translateX(4px);
}
.btn:hover .fa-paper-plane {
    transform: translateX(4px) rotate(-8deg);
}


/* =====================================================================
   4. CARDS
   ===================================================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-body {
    padding: 24px;
}


/* =====================================================================
   5. GRID LAYOUTS
   ===================================================================== */

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


/* =====================================================================
   6. ANIMATIONS
   ===================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}
.stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}
.stagger.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}
.stagger.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}
.stagger.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}
.stagger.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}
.stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.text-gold {
    color: var(--accent-secondary);
}
.text-center {
    text-align: center;
}
.font-mono {
    font-family: var(--font-mono);
}

.mt-1 {
    margin-top: 8px;
}
.mt-2 {
    margin-top: 16px;
}
.mt-3 {
    margin-top: 24px;
}
.mt-4 {
    margin-top: 32px;
}
.mt-5 {
    margin-top: 48px;
}
.mb-1 {
    margin-bottom: 8px;
}
.mb-2 {
    margin-bottom: 16px;
}
.mb-3 {
    margin-bottom: 24px;
}
.mb-4 {
    margin-bottom: 32px;
}
.mb-5 {
    margin-bottom: 48px;
}


/* =====================================================================
   7. RESPONSIVE BREAKPOINTS
   ===================================================================== */

@media (max-width: 992px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 16px;
    }
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }
    .card-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* =====================================================================
   8. UTILITY CLASSES
   ===================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.hidden {
    display: none !important;
}
.visible {
    display: block !important;
}
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gap-1 {
    gap: 8px;
}
.gap-2 {
    gap: 16px;
}
.gap-3 {
    gap: 24px;
}
.gap-4 {
    gap: 32px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

/* =====================================================================
   PRELOADER - Construction Theme (Genius Edition)
   ===================================================================== */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Blueprint Grid Background */
#preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 102, 195, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 102, 195, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Floating Particles Container */
.preloader-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    color: rgba(212, 175, 55, 0.08);
    font-size: 1.5rem;
    animation: floatParticle 12s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.particle:nth-child(2) { top: 20%; right: 8%; animation-delay: 2s; font-size: 1.8rem; }
.particle:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 4s; font-size: 3rem; }
.particle:nth-child(4) { top: 50%; right: 5%; animation-delay: 1s; font-size: 2rem; }
.particle:nth-child(5) { bottom: 15%; right: 15%; animation-delay: 3s; font-size: 2.2rem; }
.particle:nth-child(6) { top: 70%; left: 20%; animation-delay: 5s; font-size: 1.6rem; }
.particle:nth-child(7) { top: 35%; left: 35%; animation-delay: 2.5s; font-size: 2.8rem; }
.particle:nth-child(8) { bottom: 45%; right: 30%; animation-delay: 4.5s; font-size: 1.9rem; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0.1; }
    25% { transform: translateY(-30px) rotate(10deg) scale(1); opacity: 0.3; }
    50% { transform: translateY(-60px) rotate(-5deg) scale(1.2); opacity: 0.15; }
    75% { transform: translateY(-30px) rotate(8deg) scale(1.1); opacity: 0.25; }
}

.loader-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 60px;
    text-align: center;
    width: 100%;
    max-width: 520px;
}

/* ===== HARD HAT ICON ===== */
.construction-icon {
    position: relative;
    font-size: 5.5rem;
    color: var(--accent-secondary);
    animation: hardHatPulse 2s ease-in-out infinite;
}

/* Glow Ring Behind Hard Hat */
.construction-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes hardHatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

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

/* ===== GEARS ===== */
.construction-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    height: 52px;
}

.gear {
    border-radius: 50%;
    background: var(--accent-primary);
    position: relative;
    transition: all 0.3s ease;
}

.gear::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px dashed var(--accent-secondary);
    animation: gearSpin 2s linear infinite;
}

.gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: var(--bg-primary);
}

.gear:nth-child(1) {
    animation: gearSpin 1.2s linear infinite;
    width: 24px;
    height: 24px;
}
.gear:nth-child(2) {
    animation: gearSpin 1.8s linear infinite reverse;
    width: 16px;
    height: 16px;
}
.gear:nth-child(3) {
    animation: gearSpin 1.4s linear infinite;
    width: 34px;
    height: 34px;
}

.gear:nth-child(1)::before { border-color: #0B66C3; }
.gear:nth-child(2)::before { border-color: #D4AF37; }
.gear:nth-child(3)::before { border-color: #123B73; }

.gear:nth-child(1)::after { background: var(--bg-primary); }
.gear:nth-child(2)::after { background: var(--bg-primary); }
.gear:nth-child(3)::after { background: var(--bg-primary); }

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== LOADER TEXT ===== */
.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-top: -6px;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    width: 380px;
    max-width: 85%;
    margin-top: 8px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.progress-text span:first-child {
    font-weight: 500;
    color: var(--accent-secondary);
}

.progress-text span:last-child {
    font-weight: 300;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-primary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ===== LOADING DOTS ===== */
.loading-dots {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dotBounce 1.6s ease-in-out infinite;
}

.dot:nth-child(1) {
    background: var(--accent-secondary);
    animation-delay: 0s;
}
.dot:nth-child(2) {
    background: var(--accent-primary);
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    background: var(--accent-secondary);
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(0.6);
        opacity: 0.3;
    }
    40% {
        transform: translateY(-12px) scale(1);
        opacity: 1;
    }
}

/* ===== PERCENTAGE TEXT ===== */
.progress-percentage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-top: 4px;
    letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .loader-container {
        padding: 40px;
        gap: 20px;
    }
    .construction-icon {
        font-size: 4rem;
    }
    .construction-icon::after {
        width: 90px;
        height: 90px;
    }
    .loader-text {
        font-size: 1.8rem;
    }
    .loader-subtext {
        font-size: 0.85rem;
    }
    .progress-container {
        width: 280px;
    }
    .progress-percentage {
        font-size: 1.3rem;
    }
    .gear:nth-child(1) { width: 20px; height: 20px; }
    .gear:nth-child(2) { width: 14px; height: 14px; }
    .gear:nth-child(3) { width: 28px; height: 28px; }
    .dot {
        width: 10px;
        height: 10px;
    }
    .particle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .loader-container {
        padding: 30px 20px;
        gap: 16px;
    }
    .construction-icon {
        font-size: 3.2rem;
    }
    .loader-text {
        font-size: 1.4rem;
    }
    .loader-subtext {
        font-size: 0.75rem;
    }
    .progress-container {
        width: 220px;
    }
    .progress-percentage {
        font-size: 1rem;
    }
    .gear:nth-child(1) { width: 16px; height: 16px; }
    .gear:nth-child(2) { width: 12px; height: 12px; }
    .gear:nth-child(3) { width: 22px; height: 22px; }
    .dot {
        width: 8px;
        height: 8px;
    }
}


/* =====================================================================
   NAVBAR SCROLL BEHAVIOR
   ===================================================================== */

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-primary);
}

#mainHeader.visible {
    transform: translateY(0);
    opacity: 1;
}

#mainHeader.scrolled {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] #mainHeader {
    background: rgba(13, 31, 42, 0.92);
}

[data-theme="dark"] #mainHeader.scrolled {
    box-shadow: var(--shadow-md);
}