/* ====== HEADER & NAVIGATION ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideInDown 0.6s ease-out;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links .btn {
    margin-left: 15px;
}

/* Mobile toggle controlled by bottom nav menu button */
.mobile-toggle {
    display: none !important;
}

/* Mobile Navigation - Hidden by default, shown when toggled */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 25px;
        box-shadow: var(--shadow-lg);
        gap: 20px;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-main-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .nav-main-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--light-gray);
        text-align: center;
    }
    
    .nav-action-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        order: -1;
    }
}