header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.logo {
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

header.scrolled .site-navbar {
    padding: 14px 32px;
}

.site-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C1121F;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    font-family: 'Orbitron', 'Inter', sans-serif;
    text-transform: uppercase;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: #C1121F;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.nav-menu li a.btn {
    padding: 12px 28px;
    color: #ffffff;
    font-weight: 700;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C1121F;
    box-shadow: 0 0 8px rgba(193, 18, 31, 0.6);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: #1a1a1a;
    text-shadow: none;
}

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

.nav-menu li a.active {
    color: #1a1a1a;
}

.nav-menu li a.active::after {
    width: 100%;
    background: #C1121F;
    box-shadow: 0 0 12px rgba(193, 18, 31, 0.8);
}

.nav-menu li a.btn.active::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #C1121F;
    border-radius: 3px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

@media (max-width: 968px) {
    header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .site-navbar {
        padding: 12px 15px;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .header-right {
        display: none !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        color: white !important;
    }

    .nav-menu li a:hover {
        background: rgba(193, 18, 31, 0.2);
        color: #C1121F !important;
    }

    .nav-menu li a::after {
        display: none;
    }

    /* Mobile Menu Footer Buttons */
    .nav-menu::after {
        content: '';
        display: block;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .site-navbar {
        padding: 10px 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 100%;
    }
}