/* ==========================================
   BrightWealth - Modern Navigation System
   ========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(10, 36, 99, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: #FFFFFF;
}

.logo-accent {
    color: #FFD700;
}

.logo-reg {
    font-size: 0.8rem;
    color: #FFD700;
    vertical-align: super;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FFD700;
}

/* Navigation Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-main {
    display: flex;
    align-items: center;
}

.logo-bright {
    color: #FFFFFF;
}

.logo-wealth {
    color: #FFD700;
}

.logo-subtitle {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: -2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Login Buttons */
.login-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-login.client {
    background: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.btn-login.client:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-login.affiliate {
    background: linear-gradient(135deg, #00C9A7, #00a389);
    color: white;
    border-color: #00C9A7;
}

.btn-login.affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-left {
        gap: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 36, 99, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .login-buttons {
        position: fixed;
        bottom: 20px;
        left: 2rem;
        right: 2rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(10, 36, 99, 0.98);
        padding: 1.5rem;
        border-radius: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease 0.1s;
        z-index: 9998;
    }

    .nav-menu.active ~ .login-buttons {
        transform: translateX(0);
    }

    .btn-login {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Page transition effect */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
