/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&family=Saira:wght@400;500;600;700&display=swap');

/* ============================================
   NAVBAR CONTAINER
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: contain;
}


/* ============================================
   NAVIGATION LINKS
   ============================================ */
.navbar-links {
    display: flex;
    gap: 22px;
    padding-top: 12px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    font-family: 'Lexend', sans-serif;
    color: #1a4582;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    padding: 8px 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover,
.nav-item:focus {
    color: #00b3e3;
    outline: none;
}


/* ============================================
   HAMBURGER MENU TOGGLE
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
    outline: none;
}

.nav-toggle:focus {
    outline: 2px solid #00b3e3;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-toggle:focus-visible {
    outline: 2px solid #00b3e3;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-toggle-line {
    width: 100%;
    height: 3px;
    background-color: #1a4582;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU BACKDROP
   ============================================ */
.navbar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.navbar-backdrop.active {
    display: block;
    opacity: 1;
}

/* ============================================
   SUBMENU STYLING
   ============================================ */
.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #10122F;
    min-width: 220px;
    border-radius: 8px;
    flex-direction: column;
    z-index: 999;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.submenu-item {
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.submenu-item:hover,
.submenu-item:focus {
    background-color: #00b3e3;
    color: #000;
    outline: none;
}

        /* ============================================
           RESPONSIVE BREAKPOINTS
           ============================================ */

/* Large Tablets and Small Desktops (992px - 1300px) */
@media (min-width: 992px) and (max-width: 1300px) {
    .navbar {
        padding: 0 40px;
        min-height: 65px;
    }

    .navbar-logo {
        height: 55px;
    }

    .navbar-links {
        gap: 20px;
    }

    .nav-item {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 0 30px;
        min-height: 60px;
    }

    .navbar-logo {
        height: 45px;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 60px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
        gap: 0;
    }

    .navbar-links.active {
        transform: translateX(0);
    }

    .nav-item {
        font-family: 'Lexend', sans-serif;
        width: 100%;
        padding: 16px 30px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        color: #1a4582;
    }

    .nav-item::after {
        display: none;
    }

    .nav-item:hover,
    .nav-item:focus {
        background-color: #f8f9fa;
        color: #00b3e3;
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        background-color: #f8f9fa;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        transform: none;
        opacity: 1;
    }

    .dropdown.active .submenu {
        display: flex;
    }

    .submenu-item {
        color: #1a4582;
        padding: 12px 50px;
        margin: 0;
        border-bottom: 1px solid #e9ecef;
    }

    .submenu-item:hover,
    .submenu-item:focus {
        background-color: #e9ecef;
        color: #00b3e3;
    }
}

/* Mobile Phones (480px - 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0 20px;
        min-height: 56px;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-links {
        top: 56px;
        height: calc(100vh - 56px);
        max-width: 100%;
    }

    .nav-item {
        padding: 14px 24px;
        font-size: 14px;
    }

    .submenu-item {
        padding: 12px 40px;
    }
}

/* Small Mobile Phones (up to 479px) */
@media (max-width: 479px) {
    .navbar {
        padding: 0 16px;
        min-height: 52px;
    }

    .navbar-logo {
        height: 36px;
    }

    .navbar-links {
        top: 52px;
        height: calc(100vh - 52px);
        padding: 16px 0;
    }

    .nav-item {
        padding: 12px 20px;
        font-size: 13px;
    }

    .submenu-item {
        padding: 10px 36px;
        font-size: 13px;
    }

    .nav-toggle {
        width: 26px;
        height: 26px;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
    }

    .nav-item {
        border: 1px solid transparent;
    }

    .nav-item:focus {
        border-color: #00b3e3;
    }
}

