/* --- ROOT VARIABLES --- */
:root {
    --primary: #002D62;
    --gold: #C5A059;
    --dark: #001a38;
    --light: #f8fafc;
}

/* --- GENERAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* Prevents horizontal scrolling on mobile */
}

/* --- NAVIGATION & LINKS --- */
.nav-link {
    transition: all 0.3s ease;
    display: inline-block;
}

/* For Desktop Hover Effects */
.lg\:flex li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

/* Active State for JS integration */
.active-page {
    background-color: var(--gold) !important;
    color: white !important;
}

/* --- HERO SLIDER UPDATES --- */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 600px; /* Absolute limit for height */
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    height: 100%;
}

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

/* Adjust text size for the smaller height */
@media (max-width: 768px) {
    .hero-slider {
        max-height: 400px; /* Even smaller for mobile to look better */
    }
}

/* --- SECTOR CARDS --- */
.sector-card {
    background: #fff;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sector-card:hover {
    border-color: var(--gold) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sector-card .icon-box i {
    transition: transform 0.3s ease;
}

.sector-card:hover .icon-box i {
    transform: scale(1.2);
}

/* --- MARQUEE (CLIENTS SCROLL) --- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

/* Stops animation on hover for better UX */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 1s forwards ease-out;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 1024px) {
    /* Ensure the mobile nav covers the screen properly */
    #mobile-nav {
        background: linear-gradient(135deg, #002D62 0%, #001a38 100%);
    }

    /* Add space for the sticky header so content doesn't jump */
    .hero-slider {
        margin-top: 0;
    }
    
    /* Make text smaller on very small screens */
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}

/* --- FOOTER STYLES --- */
.footer-social {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--gold);
}

.footer-social:hover {
    background: var(--gold);
    color: white;
    transform: rotate(360deg);
}

/* Glassmorphism Effect for Legacy Section */
.glass-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}