/* ============================================
   Header - Shared Across All Pages
   ============================================ */

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .header-content {
    padding: 14px 0;
}

.logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-text {
    color: #0066ff;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-cta {
    background-color: #0066ff;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-link-cta:hover {
    background-color: #0052cc !important;
    transform: translateY(-1px);
}

/* ============================================
   Scrolled state (solid white background)
   ============================================ */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #f0f1f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.header.scrolled .logo-text {
    color: #1a1a1a;
}

.header.scrolled .nav-link {
    color: #555555;
}

.header.scrolled .nav-link:hover {
    color: #1a1a1a;
    background-color: #f7f8fa;
}

/* ============================================
   Light header (for pages without hero)
   ============================================ */
.header-light {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f1f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.header-light .logo-text {
    color: #1a1a1a;
}

.header-light .nav-link {
    color: #555555;
}

.header-light .nav-link:hover {
    color: #1a1a1a;
    background-color: #f7f8fa;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }

    .header.scrolled .header-content,
    .header-light .header-content {
        padding: 10px 0;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
