/* ========== NAVIGATION BAR — Shared across all pages ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.98) 0%, rgba(45, 0, 0, 0.98) 50%, rgba(26, 0, 0, 0.98) 100%);
    border-bottom: 2px solid #4a0000;
    box-shadow:
        0 5px 20px rgba(139, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.navbar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.03) 0%, transparent 70%);
    animation: navPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes navPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.05); }
}

.navbar-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-logo .logo-text {
    font-family: 'Metal Mania', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 0, 0, 0.6);
    animation: logoGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-logo .logo-text:hover {
    color: #ff3333;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(255, 0, 0, 0.9);
    transform: scale(1.05);
}

.navbar-logo .logo-text a,
.navbar-logo .logo-text a:visited {
    color: inherit;
    text-decoration: none;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 8px #ff0000); }
    50%       { filter: drop-shadow(0 0 18px #ff0000); }
}

/* Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #cccccc;
    text-decoration: none;
    font-family: 'Metal Mania', cursive;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 107, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.mobile-menu-toggle:hover span {
    background: #ff3333;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

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

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

.navbar.menu-active .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .navbar-content {
        padding: 15px 30px;
    }

    .navbar-menu {
        gap: 0;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .navbar-logo .logo-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 12px 20px;
    }

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

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(26, 0, 0, 0.98) 0%, rgba(45, 0, 0, 0.98) 100%);
        border-top: 1px solid #4a0000;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .navbar.menu-active .navbar-menu {
        max-height: 500px;
        box-shadow: 0 10px 30px rgba(139, 0, 0, 0.6);
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(74, 0, 0, 0.5);
        text-align: center;
    }

    .navbar-logo .logo-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

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

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

    .mobile-menu-toggle span {
        width: 25px;
        height: 2.5px;
    }
}

/* ========== END NAVIGATION BAR ========== */
