/* Navigation Styles - Unified across all pages */

/* Navbar Container */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

/* Navbar Brand */
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Logo Image */
.logo-img {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: rotate(360deg);
}

/* Navigation Links */
.nav-link {
    font-weight: 500;
    color: var(--text-dark, #1f2937) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--accent-red, #dc2626) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-red, #dc2626) !important;
    font-weight: 600;
}

/* Underline animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red, #dc2626);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Navbar Toggler for Mobile */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Orbitron Font Class for Brand */
.orbitron-bold {
    font-family: "Orbitron", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.orbitron-text {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.orbitron-text.small {
    font-size: 1.3rem;
    padding: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
    }
    
    .nav-link:hover {
        background: rgba(220, 38, 38, 0.05);
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .orbitron-text.small {
        font-size: 1rem;
    }
}

/* Fixed Navbar Adjustments */
.navbar-custom.fixed-top {
    z-index: 1030;
}

/* Add padding to body to prevent content from hiding under fixed navbar */
body.has-fixed-navbar {
    padding-top: 70px;
}

@media (max-width: 992px) {
    body.has-fixed-navbar {
        padding-top: 65px;
    }
}
