/**
 * BVMK GLOBAL — TOPBAR & NAVBAR STYLES
 * File: /css/navbar.css
 */

@font-face {
    font-family: 'BVMKFont';
    src: url('../font/bvmkfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.bvmk-brand-font {
    font-family: 'BVMKFont', sans-serif !important;
    text-transform: uppercase !important;
}

/* --- Top Bar Styles --- */
.top-bar {
    background-color: #2c3e50;
    padding: 12px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 35px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2000;
    width: 100%;
}

.top-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-link:hover {
    transform: translateY(-2px);
    color: #3498db;
}

/* --- Navbar Styles --- */
.navbar {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    height: 90px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 50%;
}

.logo img {
    width: 200px;
    height: auto;
    max-height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 23px;
    font-size: 18px;
    align-items: center;
}

.nav-item {
    position: relative;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.nav-item:hover {
    transform: translateY(-3px);
}

.nav-item:nth-child(1):hover { color: #e74c3c; }
.nav-item:nth-child(2):hover { color: #2ecc71; }
.nav-item:nth-child(3):hover { color: #f1c40f; }
.nav-item:nth-child(4):hover { color: #9b59b6; }
.nav-item:nth-child(5):hover { color: #e67e22; }
.nav-item:nth-child(6):hover { color: #3498db; }

/* Lock body scroll when mobile navigation menu is active */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

@keyframes bvmkNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-hamburger {
    display: none;
    font-size: 26px;
    color: #1a2a3a;
    cursor: pointer;
    z-index: 1600;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
    background-color: #f1f5f9;
    color: #013399;
}

.nav-hamburger:active {
    transform: scale(0.92);
}

/* --- Responsive Header Styles --- */
@media (max-width: 991px) {
    .top-bar { justify-content: center; gap: 15px; padding: 8px 15px; }
    .navbar { padding: 15px 24px; height: 75px; }
    .logo img { max-height: 55px; }
    .nav-hamburger { display: block; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 20px 30px !important;
        gap: 12px !important;
        z-index: 9999;
        border-top: 1px solid #f0f2f5;
        border-bottom: 3px solid #013399;
        animation: bvmkNavSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-item {
        width: 100%;
        padding: 12px 10px;
        border-bottom: 1px solid #f0f2f5;
        font-size: 17px;
        text-align: left;
        border-radius: 6px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .nav-item:hover, .nav-item:active {
        background-color: #f8fafc;
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo img { max-height: 45px; }
    .navbar { padding: 15px; }
    .top-bar { display: none; }
}
