:root {
    --brand-berry: #9B1D3F;
    --brand-indigo: #1F2A60;
    --brand-coral: #D94526;
    --brand-mist: #F4F5F7;
    --brand-gold: #C6A75E;
    --brand-text: #2B2B2B;
    --brand-subtext: #5A5A5F;

    /* Semantic Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F5F7;
    --card-bg: #FFFFFF;
    --border-color: #F3F4F6;
    --text-primary: #2B2B2B;
    --text-secondary: #5A5A5F;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;

    /* Header Heights */
    --header-height-mobile: 80px;
    --header-height-desktop: 112px;
    --header-shrink-mobile: 64px;
    --header-shrink-desktop: 96px;

    /* Loader */
    --loader-bg: #ffffff;
}

[data-theme="dark"] {
    --brand-indigo: #8E9BD6;
    /* Lighter indigo for dark mode */
    --brand-mist: #1A1A1A;
    --brand-text: #E5E7EB;
    --brand-subtext: #9CA3AF;

    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --card-bg: #1E1E1E;
    --border-color: #2D2D2D;
    --text-primary: #F3F4F6;
    --text-secondary: #B0B5BD;
    --white: #1A1A1A;
    --gray-50: #1A1A1A;
    --gray-100: #2D2D2D;
    --gray-200: #3D3D3D;

    --loader-bg: #121212;
}


/* Global Scrollbar Hiding */
::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

* {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none !important;
}

.scrollbar-hide {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Performance Optimizations */
section,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Disabled Scroll Entry Animations */
.reveal,
.reveal-up,
.reveal-on-scroll,
.fade-in-up,
.fade-in,
.zoom-in,
.slide-in-left,
.slide-in-right,
.reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: transform;
}

/* Stagger Logic - Disabled */
.stagger-container .reveal,
.stagger-container .fade-in-up,
.stagger-container .zoom-in {
    transition-delay: 0ms !important;
}


/* Hover Micro-interactions - Disabled */
.hover-lift {
    transition: none !important;
}

.hover-lift:hover {
    transform: none !important;
}



#main-header {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    top: 0 !important;
}

#top-bar {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    transform: translateY(0);
    opacity: 1;
    overflow: hidden;
    will-change: transform, opacity;
}



.header-scrolled header {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
}

/* Mobile Menu Positioning Fixes */
#mobile-menu {
    position: absolute !important;
    top: 100% !important;
    /* Dynamically sits below whatever the header height is */
    left: 0;
    width: 100%;
    height: 100vh !important;
    /* Forces full viewport height */
    height: 100svh !important;
    /* Modern mobile-first viewport height */
    transition: all 0.3s ease;
    z-index: 100;
}

#main-header header,
#mobile-menu {
    transition: all 0.3s ease;
}

/* 🔔 Marquee Styling (Seamless Infinite Scroll) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--brand-berry);
    color: white;
    padding: 8px 0;
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-infinite 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 4rem;
    /* Increased gap */
}

.marquee-content span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-content a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marquee-content a:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}

/* Pause on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 11px;
    }

    .marquee-track {
        animation-duration: 15s;
        /* Faster scroll on mobile (shorter distance) */
    }
}


/* Global Fixes */
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 184px; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--brand-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Aspect Ratio for Lazy Videos to prevent shift during load */
.youtube-lazy, .video-background-iframe {
    aspect-ratio: 16 / 9;
    background-color: var(--brand-indigo);
}

/* Optimized transitions to avoid non-composited animation warnings */
a,
button {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-brand-indigo {
    color: var(--brand-indigo) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: rgba(26, 26, 26, 0.95) !important;
    border-color: #333 !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 154px; /* Account for smaller header and marquee on mobile */
    }
}

/* Adjusted for tighter header */

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



/* Golden Glow Pulse */
/* @keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
} */

.marker-pulse {
    /* animation: goldPulse 2s infinite; */
}



.timeline-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #C9A227;
}

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

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #F4F5F7;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #9B1D3F;
}


/* Swiper Custom Styling */
.swiper-pagination-bullet-active {
    background: var(--brand-berry) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--brand-indigo);
}

/* Testimonials Swiper Custom Styling */
.testimonialsSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonialsSwiper .swiper-pagination-bullet-active {
    transform: scaleX(2.4);
    border-radius: 5px;
    background: #7c3aed !important;
}


/* Navigation Dropdowns (Desktop) */
.dropdown-parent {
    position: static;
}

.dropdown-menu {
    display: none;
    pointer-events: none;
    z-index: 100;
}

.dropdown-menu.is-visible {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-trigger {
    background: none !important;
    border: none !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
}

.dropdown-trigger:focus {
    outline: none;
}


/* Global Pulse Disable */
.animate-pulse {
    animation: none !important;
}