/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Sticky Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  }
  
  /* On Scroll */
  .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.3);
  }
  

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(90deg, #413f3f 0%, #658fbe 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a:hover {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
}

.nav-links li a.active {
    color: #2563eb;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
}

/* Dropdown Styles */
.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    padding: 12px 24px;
    color: #334155;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.dropdown-menu li a .menu-icon {
    font-size: 1.1rem;
    width: 24px;
    color: #64748b;
}

.dropdown-menu li a:hover .menu-icon {
    color: #2563eb;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1e293b;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none; /* Disable interactions when hidden */
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions when active */
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .header-container {
        padding: 0 24px;
        height: 72px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 72px; /* Start just below header */
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 72px); /* Full height minus header */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
        z-index: 950;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
    }
    
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .nav-links li a {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: transparent;
        border: none;
        margin-left: 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
        backdrop-filter: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 0 8px 16px;
    }
    
    .dropdown-icon {
        margin-left: auto;
        transform: rotate(-90deg);
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(0deg);
    }
    
    .cta-button {
        margin: 24px 0 0;
        width: 100%;
        padding: 16px 24px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 20px;
        height: 68px;
    }
    
    .logo {
        font-size: 1.4rem;
        gap: 8px;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    .nav-links {
        top: 68px; /* Adjusted for smaller header height */
        height: calc(100vh - 68px);
    }
    
    .nav-links.active {
        transform: translateX(-280px); /* Adjusted for smaller width */
    }
}

/* Prevent horizontal scroll */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}