/* Navigation Styles */
.main-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 0;
}

.nav-logo:hover {
    color: #f7fafc;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-bottom-color: #4299e1;
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #4299e1;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle:focus {
    outline: none;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav-link {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #4299e1;
    text-decoration: none;
}

.footer-info {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.footer-brand p {
    color: #cbd5e0;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,0.15);
        border-bottom-color: rgba(255,255,255,0.1);
        border-left: 3px solid #4299e1;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .footer-nav {
        gap: 15px;
    }
}

/* Page-specific active states */
body.investment-page .nav-link[href="index.html"],
body.retirement-page .nav-link[href="Retirement_Calculator.html"],
body.mortgage-page .nav-link[href="mortgage_calculator.html"] {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #4299e1;
}