/* =========================================== */
/* === Responsive & Modern Header Overrides === */
/* =========================================== */

/* === Base Styles (Copy these if they aren't in your main CSS yet) === */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(130deg, #0a1128, #001845, #001233);
    background-size: 400% 400%;
    animation: gradientShift 16s ease infinite;
    color: #f7f9fc;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* === Header & Navigation === */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    /* Transparent background for a sleek look */
    background: rgba(0, 17, 51, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.3s;
}

    /* Smart Header Logic CSS */
    .header.hidden {
        top: -70px;
    }

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25em;
}

/* Desktop Nav Styles */
.nav-desktop {
    display: flex;
    align-items: center;
}

    .nav-desktop a {
        color: #fff;
        text-decoration: none;
        margin: 0 12px;
        font-weight: 500;
        transition: .3s;
    }

        .nav-desktop a:hover, .nav-desktop a.active {
            color: #00aaff;
        }

.cta {
    background: #00aaff;
    padding: 8px 18px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    margin-left: 15px;
}

/* Mobile Elements */
.mobile-actions {
    display: flex; /* Show by default on mobile */
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    line-height: 1;
}

/* Mobile Slide-in Menu Overlay */
.nav-mobile {
    display: none; /* Default hidden */
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 75%;
    max-width: 300px;
    background: #001233; /* Solid background for clarity */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 998;
}

    .nav-mobile.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-mobile a {
        color: #fff;
        text-decoration: none;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 500;
        transition: background 0.2s;
    }

        .nav-mobile a:hover {
            background: rgba(0, 170, 255, 0.1);
            color: #00aaff;
        }

/* === Section and Layout Adjustments (for improved spacing) === */
.hero {
    padding-top: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

h1 {
    font-size: 46px;
    margin: 10px 0 20px 0;
    line-height: 1.3;
}

.lead {
    font-size: 17px;
    opacity: .9;
    margin-bottom: 30px;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 15px;
}

.section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 30px;
    color: #00aaff;
    margin-bottom: 10px;
}

.section-sub {
    opacity: 0.85;
    margin-bottom: 30px;
}

/* Footer Adjustments */
.footer {
    background: #001433;
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

    .footer strong {
        display: block;
        margin-bottom: 10px;
        font-size: 1.1em;
    }

/* === RESPONSIVE MEDIA QUERIES === */
/* Hide mobile elements on Desktop/Large Tablets */
@media(min-width:1025px) {
    .mobile-actions,
    .nav-mobile {
        display: none !important;
    }
}

/* Hide desktop elements on Mobile/Small Tablets */
@media(max-width:1024px) {
    .nav-desktop {
        display: none;
    }
}

/* Mobile-specific styles (for phones) */
@media(max-width:768px) {
    .hero {
        text-align: center;
        padding-top: 80px;
        min-height: auto;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .lead {
        font-size: 16px;
    }

    .actions {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .hero-illu {
        order: -1;
        margin-bottom: 20px;
    }

    .hero-img {
        max-width: 80%;
    }

    .section {
        padding: 40px 0;
    }

    .footer .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}
