/* ==============================================================================
    ENHANCED NAVIGATION BAR STYLESHEET
    - Dark Theme with Yellow Accent
    - Mobile Responsive with Hamburger Menu
    - Sticky Header on Scroll
    - Active Page Highlighting
    - CTA Button
    - Smooth Animations
    ============================================================================== */

/* ==============================================================================
    HEADER CONTAINER
    ============================================================================== */

.main-header {
    background-color: #1e1e1e;
    color: white;
    border-bottom: 15px solid #ffc107;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Scrolled state - adds shadow */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==============================================================================
    NAVIGATION CONTAINER
    ============================================================================== */

.navbar {
    width: 100%;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative;
    gap: 20px;
}

/* ==============================================================================
    LOGO
    ============================================================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1001;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px #ffc107);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px #ffc107);
    }
    50% {
        filter: drop-shadow(0 0 15px #ffc107);
    }
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg);
}

/* ==============================================================================
    CONTACT INFO (Desktop)
    ============================================================================== */

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    border: 2px solid #ffc107;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-number {
    color: white;
    text-decoration: none;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-contact:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

/* ==============================================================================
    NAVIGATION MENU
    ============================================================================== */

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

/* Hover effect */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffc107;
    transform: translateY(-2px);
}

/* Active page highlighting */
.nav-link.active {
    background-color: #ffc107;
    color: #1e1e1e;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.nav-link.active:hover {
    background-color: #ffcd38;
    transform: translateY(0);
}

/* Underline animation for non-active links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active::after {
    display: none;
}

/* ==============================================================================
    CTA BUTTON
    ============================================================================== */

.nav-cta {
    margin-left: 15px;
}

.nav-button {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1e1e1e;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    border: 2px solid transparent;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffcd38, #ffa726);
}

/* ==============================================================================
    HAMBURGER MENU (Mobile)
    ============================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #ffc107;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #ffc107;
}

/* ==============================================================================
    MOBILE MENU OVERLAY
    ============================================================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ==============================================================================
    RESPONSIVE DESIGN
    ============================================================================== */

@media (max-width: 992px) {
    /* Hide desktop contact info */
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Mobile menu styling */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background-color: #1e1e1e;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 30px;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        border-left: 3px solid #ffc107;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 18px 30px;
        border-radius: 0;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: rgba(255, 193, 7, 0.1);
        transform: translateX(5px);
    }

    .nav-link.active {
        border-left: 5px solid #ffc107;
    }

    /* CTA button in mobile menu */
    .nav-cta {
        margin: 20px 30px;
        border-bottom: none;
    }

    .nav-button {
        width: 100%;
        text-align: center;
        padding: 15px 25px;
    }

    /* Add contact info to mobile menu */
    .nav-menu::before {
        content: '📞 (301) 555-1234';
        display: block;
        text-align: center;
        padding: 15px 30px;
        margin-bottom: 10px;
        background: rgba(255, 193, 7, 0.1);
        border: 2px solid #ffc107;
        border-left: none;
        border-right: none;
        color: white;
        font-family: 'Oswald', 'Impact', sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .nav-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ==============================================================================
    ACCESSIBILITY
    ============================================================================== */

/* Focus states for keyboard navigation */
.nav-link:focus,
.nav-button:focus,
.hamburger:focus,
.logo:focus,
.contact-number:focus {
    outline: 2px solid #ffc107;
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-button,
    .hamburger-line,
    .nav-menu,
    .logo,
    .main-header {
        animation: none;
        transition: none;
    }
}

/* ==============================================================================
    PRINT STYLES
    ============================================================================== */

@media print {
    .main-header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }

    .hamburger,
    .nav-button,
    .mobile-menu-overlay {
        display: none;
    }
}