/**
 * Unified Navigation Styles
 * Modern, responsive navigation for all pages
 */

/* Navigation Container */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
}

/* Logo/Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.9;
}

.nav-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

.nav-link-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile-menu.active {
    display: flex;
}

.nav-mobile-menu .nav-link {
    padding: 1rem;
    justify-content: flex-start;
    border-radius: 10px;
}

.nav-mobile-menu .nav-link.active::after {
    display: none;
}

.nav-mobile-menu .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-subtitle {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-brand-text {
        display: none;
    }

    .nav-logo {
        width: 42px;
        height: 42px;
    }
}

/* Animations */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile-menu.active .nav-link {
    animation: navSlideIn 0.3s ease forwards;
}

.nav-mobile-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile-menu.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
