/* Shared Navigation Styles for All Pages */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 28px; /* Consistent smaller size for all pages */
    width: auto;
    display: block;
    margin: auto 0; /* Vertically center the logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: 0.3s;
    border-radius: 2px;
    transform-origin: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
        height: 60px;
    }
    
    .nav-brand img {
        height: 24px; /* Even smaller on mobile for better proportions */
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .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(7px, -6px);
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.5rem 1rem;
        height: 55px;
    }
    
    .nav-brand img {
        height: 22px; /* Smallest size for very small screens */
    }
    
    .nav-links {
        top: 55px;
        font-size: 1rem;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .nav-toggle {
        width: 28px;
        height: 28px;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2px;
    }
}
