/* ========== Professional Header Styles ========== */

/* Base Header */
header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 73px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

header.scrolled,
.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0;
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    transition: padding 0.3s ease;
}

/* header.scrolled .header-content {
    padding: 12px 0;
} */

/* Logo Styles */
.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo h1,
.logo-name {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: block;
}

.logo p,
.logo-tagline {
    font-size: 11px;
    color: #64748B;
    margin: 2px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: block;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1001;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #334155;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb;
    padding-left: 20px;
}

.dropdown-content a:first-child {
    border-top: none;
}

/* Regular Navigation Links */
.nav-menu a:not(.nav-dropdown a) {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

/* .nav-menu a:not(.nav-dropdown a):hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
} */

.nav-menu a:not(.nav-dropdown a):active {
    background: rgba(37, 99, 235, 0.1);
}

/* Navigation CTA Button */
.nav-menu .btn-primary {
    margin-left: 16px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color:white !important;
}

.nav-menu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    /* color:rgb(50, 52, 185) !important; */
}

.nav-menu .btn-primary:active {
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #334155;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.mobile-menu-btn i {
    font-size: 22px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    z-index: 1002;
    padding: 0;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-nav-header {
    padding: 0px 24px 0px 24px;
    border-bottom: 1px solid #E2E8F0;
    /* background: linear-gradient(135deg, #F8FAFC, #EFF6FF); */
}

.mobile-nav-logo h2 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.mobile-nav-logo p {
    font-size: 11px;
    color: #64748B;
    /* margin: 4px 0 0 0; */
}

/* Mobile Menu Links */
.mobile-nav-links {
    padding: 16px 0;
}

.mobile-nav-links a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1.05rem;
    border-bottom: 1px solid #F1F5F9;
    transition: all 0.2s;
}

.mobile-nav-links a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb;
    padding-left: 28px;
}

.mobile-nav-links a i {
    margin-right: 12px;
    width: 20px;
    color: #64748B;
}

.mobile-nav-links a:hover i {
    color: #2563eb;
}

/* Mobile Menu Footer */
.mobile-nav-footer {
    padding: 24px;
    border-top: 1px solid #E2E8F0;
    margin-top: 8px;
}

.mobile-nav-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mobile-nav-contact {
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

.mobile-nav-contact a {
    color: #2563eb;
    text-decoration: none;
}

.mobile-nav-contact a:hover {
    text-decoration: underline;
}

/* Close Button */
.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #E2E8F0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-mobile-menu:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* ========== Responsive Design ========== */

/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .nav-menu {
        gap: 2px;
    }
    
    .nav-menu .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* .header-content {
        padding: 12px 0;
    }
     */
    .logo h1,
    .logo-name {
        font-size: 20px;
    }
    
    .logo p,
    .logo-tagline {
        font-size: 10px;
    }
    
    /* Hide desktop nav */
    .nav-menu {
        display: none !important;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    
    .mobile-nav-menu {
        width: 85%;
        max-width: 320px;
    }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
    .header-content {
        /* padding: 12px 0; */
    }
    
    .logo h1,
    .logo-name {
        font-size: 20px;
    }
    
    .logo p,
    .logo-tagline {
        display: none;
    }
    
    .mobile-menu-btn {
        padding: 6px;
    }
    
    .mobile-menu-btn i {
        font-size: 20px;
    }
    
    .mobile-nav-menu {
        width: 100%;
        max-width: none;
    }
    
    .mobile-nav-links a {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ========== Animations ========== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-nav-menu.active {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    animation: fadeIn 0.3s ease;
}

/* ========== Accessibility ========== */

.nav-menu a:focus,
.mobile-menu-btn:focus,
.mobile-nav-links a:focus,
.close-mobile-menu:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-menu a:hover {
        background: rgba(37, 99, 235, 0.15);
    }
    
    .mobile-nav-links a:hover {
        background: rgba(37, 99, 235, 0.1);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== SCROLL HIDE/SHOW ===== */

/* Base header with smooth transition */
header,
.site-header {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* Hidden state - slides up */
header.header-hidden,
.site-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}

/* Scrolled state - adds shadow */
header.scrolled:not(.header-hidden),
.site-header.scrolled:not(.header-hidden) {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Optional: shrink header when scrolled */
header.scrolled:not(.header-hidden) .header-content {
    padding: 12px 0;
}

/* Optional: fade content when hiding */
header.header-hidden .header-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}

header:not(.header-hidden) .header-content {
    opacity: 1;
    transition: opacity 0.3s ease 0.1s;
}