﻿/* General body reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

    /* Dark overlay for overall contrast */
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 0;
    }

    /* Top white gradient for logo clarity */
    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        z-index: 1;
    }

/* Navigation bar styles */
.navbar {
    position: fixed; /* Ensures it stays at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9); /* Slight transparency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* Navbar container for alignment */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

    .logo:hover {
        transform: scale(1.05);
    }

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: #003366;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 15px;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #00509E;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.nav-link:hover {
    color: #00509E;
}

.nav-link:hover::after {
    transform: scaleX(1);
}


.hero-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #003366);
    z-index: 1;
}

/* Hero content styles */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 3rem;
        margin: 0;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin: 20px 0;
    }

/* Button styling */
.btn {
    text-decoration: none;
    padding: 12px 30px;
    background-color: #2f7ec1;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #FFC107;
    }

/* Responsive fixes */
@media (max-width: 1024px) {
    .navbar-container {
        text-align: center;
    }

    .navbar-nav {
        gap: 10px;
    }

    .logo {
        height: 60px;
    }
}

/* Top white banner for logo */
.top-banner {
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.menu-bar {
    background-color: #003366; /* Dark blue */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* or fixed if you want it sticky */
    z-index: 1000; /* high enough to be above top-banner */
}

    /* Override nav link styles for white text */
    .menu-bar .nav-link {
        color: white;
    }

        .menu-bar .nav-link:hover {
            color: #FFC107;
        }

/* Adjust logo */
.logo {
    height: 70px;
    width: auto;
}

@media (max-width: 1024px) {
    .navbar-container {
        text-align: center;
    }

    .navbar-nav {
        gap: 10px;
        margin-top: 10px;
    }

    .logo {
        height: 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 10px;
    }

    .navbar-nav {
        gap: 8px;
    }

    .nav-item {
        margin: 0;
    }

    .logo {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .hero-content {
        padding: 0 10px;
    }

        .hero-content h1 {
            font-size: 1.5rem;
        }

        .hero-content p {
            font-size: 0.9rem;
        }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Make nav items always stay in one row */
.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap; /* prevent wrapping */
    overflow: hidden; /* avoids overflow issues */
    top: 100%; /* right below the menu-bar */
    left: 0;
    width: 100%;
    background-color: #003366;
    z-index: 1100; /* above everything else */
}

/* Allow nav links to shrink */
.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: clamp(9px, 1.2vw, 15px); /* slightly smaller min + max */
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px; /* tighter padding */
    white-space: nowrap; /* never break text */
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

/* Adjust margins so spacing is tighter */
.nav-item {
    margin: 0 5px; /* narrower spacing */
}

/* Scrollable nav on small screens */
@media (max-width: 768px) {
    .navbar-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        flex-direction: column;
        align-items: center;
    }

        .navbar-nav.open {
            max-height: 1000px; /* enough to show all links */
        }

    .nav-item {
        margin: 10px 0;
    }

        .navbar-nav::-webkit-scrollbar {
            display: none; /* hide scrollbar Chrome/Safari */
        }

    .nav-item {
        flex: 0 0 auto; /* ✅ prevents shrinking too small */
        margin: 0 10px;
    }
}

/* Hamburger button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* above nav */
}

    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

/* Mobile styles */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .navbar-nav {
        position: absolute;
        top: 100%; /* below menu-bar */
        left: 0;
        width: 100%;
        background-color: #003366;
        flex-direction: column;
        align-items: center;
        max-height: 0; /* collapsed by default */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

        .navbar-nav.open {
            max-height: 500px; /* large enough to show all items */
        }

    .nav-item {
        margin: 10px 0; /* vertical spacing in dropdown */
    }
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
