/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: var(--letter-spacing-tight);
}

.logo img {
    width: calc(5vw + 8rem);
    height: auto;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 4rem;
}

.desktop-nav a {
    font-size: 1rem;
    font-weight: 300;
    color: var(--black);
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.desktop-nav a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.4s ease;
}

.desktop-nav a:hover:after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1003;
    overflow-y: auto;
    visibility: hidden;
}

.mobile-nav.active {
    right: 0;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-logo img {
    height: 30px;
    width: auto;
}

.mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-close-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.mobile-close-btn span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.mobile-close-btn span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block !important;
}

.mobile-nav li {
    margin: 1rem 0;
    border-bottom: 1px solid #eee;
    display: block !important;
}

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

.mobile-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #007bff;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu Animation */
.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

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

    .mobile-nav {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}