/* =========================================
   Navigation Header Styles
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    position: relative;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    transition: transform var(--transition-base);
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-extrabold);
    color: var(--gray-900);
    white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    padding: var(--space-xs) var(--space-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-actions .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-fixed);
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: var(--gray-800);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

.nav-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* =========================================
   Mobile Navigation Styles
   ========================================= */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-xl) var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        gap: var(--space-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-md);
    }
    
    .nav-link:hover {
        background-color: var(--primary-blue-lightest);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-text {
        font-size: var(--font-size-base);
    }
    
    .nav-actions {
        position: fixed;
        bottom: var(--space-lg);
        right: -100%;
        width: 280px;
        padding: 0 var(--space-lg);
        transition: right var(--transition-base);
    }
    
    .nav-menu.active ~ .nav-actions {
        right: 0;
    }
    
    .nav-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px var(--space-sm);
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: var(--font-size-sm);
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-actions {
        width: calc(100% - var(--space-md) * 2);
        right: -100%;
        padding: 0 var(--space-md);
    }
    
    .nav-toggle {
        width: 26px;
        height: 20px;
    }
    
    .hamburger {
        height: 2.5px;
    }
}

/* Hero Section Padding for Fixed Header */
.hero-section {
    padding-top: calc(var(--space-3xl) + 70px);
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: calc(var(--space-2xl) + 65px);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: calc(var(--space-xl) + 60px);
    }
}
