/* Header Component CSS - Updated with unique class names */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --navy: #0f172a;
    --slate: #1e293b;
    --light-slate: #334155;
    --gray: #64748b;
    --light-gray: #94a3b8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Header Styles */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-xl);
}

/* Alternative styling for light pages */
.site-header.light {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.light.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Styles */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-logo-img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
}

.header-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header.light .header-logo-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-logo:hover .header-logo-img {
    transform: scale(1.1);
}

/* Navigation Links */
.header-nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.header-nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.site-header.light .header-nav-link {
    color: var(--gray);
}

.header-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.light .header-nav-link::before {
    background: rgba(37, 99, 235, 0.05);
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--white);
    transform: translateY(-2px);
}

.site-header.light .header-nav-link:hover,
.site-header.light .header-nav-link.active {
    color: var(--primary-blue);
}

.header-nav-link:hover::before,
.header-nav-link.active::before {
    transform: translateX(0);
}

/* Plans Button Special Styling */
.header-plans-btn {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: 0.3rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.025em !important;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header-plans-btn::before {

    color: #f8fafc;
    transform: translateX(-100%);
}

.header-plans-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-xl) !important;
    color: var(--white) !important;
}

.header-plans-btn:hover::before {
    transform: translateX(0);
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--light-gray);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.site-header.light .header-hamburger-line {
    background: var(--gray);
}

.header-mobile-toggle:hover .header-hamburger-line {
    background: var(--white);
}

.site-header.light .header-mobile-toggle:hover .header-hamburger-line {
    background: var(--primary-blue);
}

.header-mobile-toggle.active .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.header-mobile-toggle.active .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .header-logo-text {
        font-size: 0px;
        display: none;
    }

    .header-logo-img {
        width: 32px;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1rem;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow-xl);
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.light .header-nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .header-nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .header-nav-link {
        padding: 1rem;
        text-align: center;
        font-size: 1rem;
        border-radius: 12px;
        width: 100%;
    }

    .header-plans-btn {
        margin-top: 1rem;
        padding: 1rem 2rem !important;
    }
}

@media (min-width: 480px)  and (max-width: 991px){
    .header-container {
        padding: 10px;
    }

    .header-logo-text {
        font-size: 1.25rem;
    }

    .header-logo-img {
        width: 28px;
    }

    .header-nav-links {
        padding: 1.5rem 0.75rem;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .header-nav-link,
    .header-mobile-toggle {
        min-height: 44px;
        min-width: 44px;
    }

    .header-nav-link:hover {
        transform: none;
    }

    .header-nav-link:active {
        transform: translateY(-2px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-nav-link,
    .header-mobile-toggle,
    .header-hamburger-line,
    .header-logo-img {
        transition: none;
    }
    
    .header-nav-links.active {
        animation: none;
    }
}

/* Focus states for better accessibility */
.header-nav-link:focus-visible,
.header-mobile-toggle:focus-visible,
.header-logo:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header {
        border-bottom-width: 2px;
    }
    
    .header-nav-link {
        border: 1px solid transparent;
    }
    
    .header-nav-link:hover,
    .header-nav-link.active {
        border-color: currentColor;
    }
}


/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .nav-link,
    .mobile-menu-toggle,
    .hamburger-line,
    .logo-img {
        transition: none;
    }
    
    .nav-links.active {
        animation: none;
    }
}

/* Focus states for better accessibility */
.nav-link:focus-visible,
.mobile-menu-toggle:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-header {
        border-bottom-width: 2px;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: currentColor;
    }
}