/* navbar.css - Mobile-Friendly with Hamburger Menu */

/* Base Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.logo {
    flex-shrink: 0 !important;
    z-index: 1001 !important;
}

.logo h2 {
    color: #ff6b9d !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    white-space: nowrap !important;
}

/* Desktop Navigation */
.nav-links {
    list-style: none !important;
    display: flex !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.nav-links li {
    margin: 0 !important;
}

.nav-links a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.3s !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: block !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b9d !important;
    background: rgba(255, 107, 157, 0.1) !important;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
    display: none !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 1001 !important;
}

.hamburger span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #ff6b9d !important;
    border-radius: 3px !important;
    transition: all 0.3s !important;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px) !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px) !important;
}

/* Add top padding to body when navbar is present */
body:has(.navbar) {
    padding-top: 80px !important;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    /* Show Hamburger */
    .hamburger {
        display: flex !important;
    }
    
    /* Hide Desktop Nav by Default */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 280px !important;
        background: white !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 20px 20px !important;
        gap: 5px !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
    }
    
    /* Show Mobile Nav When Active */
    .nav-links.active {
        right: 0 !important;
    }
    
    /* Mobile Nav Items */
    .nav-links li {
        width: 100% !important;
    }
    
    .nav-links a {
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        width: 100% !important;
    }
    
    /* Overlay Behind Mobile Menu */
    .nav-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }
    
    .nav-overlay.active {
        display: block !important;
    }
}

/* Tablet Adjustments */
@media (max-width: 1200px) and (min-width: 901px) {
    .nav-links {
        gap: 10px !important;
    }
    
    .nav-links a {
        font-size: 0.9rem !important;
        padding: 8px 10px !important;
    }
}
