/* Navigation System - Sticky header with mobile hamburger menu */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 2px solid rgba(255, 250, 205, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 20, 25, 0.98);
    border-bottom-color: rgba(255, 250, 205, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-text {
    font-size: 1.5em;
    color: #fffacd;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 250, 205, 0.4);
    font-weight: normal;
}

.logo-icon {
    font-size: 1.8em;
}

.main-nav {
    display: flex;
    gap: 5px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    color: #d9cbe5;
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: #fffacd;
    background: rgba(255, 250, 205, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fffacd;
    background: rgba(255, 250, 205, 0.15);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fffacd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 250, 205, 0.3);
    color: #fffacd;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border-color: #fffacd;
    background: rgba(255, 250, 205, 0.1);
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 250, 205, 0.15);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .logo-text {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .logo-icon {
        font-size: 1.4em;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        border-bottom: 2px solid rgba(255, 250, 205, 0.2);
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-nav.mobile-open {
        max-height: 500px;
        opacity: 1;
    }

    .nav-link {
        padding: 15px 30px;
        border-radius: 0;
        font-size: 1.05em;
        border-bottom: 1px solid rgba(255, 250, 205, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

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

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255, 250, 205, 0.15);
        transform: translateX(5px);
    }
}

/* Accessibility: Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #fffacd;
    color: #0f1419;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 10px;
}

/* Main content spacing to account for fixed header */
.page-content {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 60px;
    }
}
