/* Header/Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Ensure container contents are also centered vertically */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo Size Fix */
.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Link color adjustment when header is white/scrolled */
.site-header.scrolled .desktop-menu a {
    color: var(--primary-color);
    text-shadow: none;
}

.desktop-menu a:hover {
    color: var(--btn-color);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
}

/* Toggle color fix on scroll */
.site-header.scrolled .menu-toggle .bar {
    background-color: var(--primary-color);
    box-shadow: none;
}

/* Mobile Full Screen Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Ensure full viewport */
    background-color: var(--btn-color);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 2rem;
    overflow: hidden;
}

.mobile-nav a {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 3rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header {
        padding: 1rem 0;
        /* Slimmer on mobile */
    }
}