/* =====================================================
   SmartAIthon 2026 — Shared Navigation Bar Stylesheet
   ===================================================== */

:root {
    --primary: #00629B;
    --secondary: #1a365d;
    --accent: #00CED1;
    --text: #333333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Logo Ribbon */
.logo-ribbon {
    width: 100%;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 10px 12px;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
}

.logo-item img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.logo-item:hover img {
    transform: translateY(-3px);
    opacity: 1;
}

/* Nav Menu Container */
.nav-menu-container {
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 1.3vw, 22px);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Register Now Button */
.nav-link.nav-register-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 98, 155, 0.2);
}

.nav-link.nav-register-btn::after {
    display: none;
}

.nav-link.nav-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 98, 155, 0.35);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1002;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Hamburger Open Animation to Close X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--primary);
}

/* Mobile Breakpoint (@media max-width: 768px) */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-end;
        height: 55px;
    }

    .hamburger {
        display: flex;
    }

    .logo-ribbon {
        padding: 8px 10px;
        overflow-x: hidden;
    }

    .logo-track {
        display: grid !important;
        grid-template-columns: repeat(30, 1fr) !important;
        gap: 8px 0 !important;
        justify-items: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .logo-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .logo-item:nth-child(1),
    .logo-item:nth-child(2),
    .logo-item:nth-child(3),
    .logo-item:nth-child(4),
    .logo-item:nth-child(5) {
        grid-column: span 6 !important;
    }

    .logo-item:nth-child(6),
    .logo-item:nth-child(7),
    .logo-item:nth-child(8) {
        grid-column: span 10 !important;
    }

    .logo-item img {
        height: 28px !important;
        width: auto !important;
        max-width: 90px !important;
        object-fit: contain !important;
    }

    /* Mobile Navigation Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 90px 24px 40px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 20px;
        text-align: center;
        width: 100%;
        max-width: 320px;
        border-radius: 8px;
        white-space: normal;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: var(--primary);
        background: rgba(0, 98, 155, 0.08);
        font-weight: 700;
        border-bottom: 2px solid var(--accent);
    }

    .nav-link.nav-register-btn {
        margin-top: 10px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        font-size: 1.05rem;
        padding: 12px 24px;
        border-radius: 30px;
    }
}
