/* =========================
SITE HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform var(--transition-medium), background var(--transition-medium);
    padding: var(--space-sm) 0;
    will-change: transform, background;
    /* margin: 1%;  */
    /* border-radius: var(--radius-card); */
   border:1px solid transparent ; 
      background: var(--glass-bg);
}

/* Glassmorphism Effect */
.site-header.is-scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-soft);
     /* border:1px solid var(--color-deep-blue); */
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-container {
    position: relative;
    z-index: 1001;
        max-width: 100%;
    /* width: 200px;
    height: 80px; */
}

.logo-container img {
    object-fit: contain;
    height: 35px;
    width: auto;
    transition: transform var(--transition-fast);
}
@media (max-width: 768px) {
    .logo-container {
        height: 50px;
    width: 100px;
        transform: translateY(-2px);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-deep-blue);
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.is-scrolled .logo-text {
    color: var(--color-core-blue);
}

/* Navigation Styling */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-item:hover .nav-link::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 10px 24px !important;
    border-radius: var(--radius-button);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-soft);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.nav-cta::after {
    display: none;
}

/* Dropdown Icon */
.dropdown-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: var(--transition-medium);
}

.nav-item:hover .dropdown-icon {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* Dropdown Menu (3D Cinematic) */
.dropdown-menu {
    position: absolute;
    top: 100%;
  left: 0%;
    transform: translateX(-50%) translateY(20px) rotateX(-15deg);
    background: var(--color-white);
    min-width: 220px;
    padding: var(--space-md);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-3d);
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s;
    perspective: 1000px;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0%) translateY(10px) rotateX(0);
}

.dropdown-list li {
    margin-bottom: var(--space-xs);
}

.dropdown-list li:last-child {
    margin-bottom: 0;
}

.dropdown-list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary) !important;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.dropdown-list a:hover {
    background: var(--color-light-grey);
    color: var(--color-core-blue);
    transform: translateX(5px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-deep-blue);
    position: relative;
    transition: var(--transition-medium);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-deep-blue);
    transition: var(--transition-medium);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-toggle.is-active .hamburger {
    background: transparent;
}

.mobile-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-list {
        gap: var(--space-lg);
    }
}

@media (max-width: 991px) {
    .main-nav {
        display: none; /* Handled by mobile nav overlay */
    }

    .mobile-toggle {
        display: block;
    }

    .site-header {
        padding: var(--space-md) 0;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white); /* Changed to white for better readability */
    z-index: 2000; /* Above everything */
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--color-light-grey);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.mobile-nav-close:hover {
    background: var(--color-deep-blue);
    color: var(--color-white);
    transform: rotate(90deg);
}

.close-icon {
    font-size: 32px;
    line-height: 1;
}

.mobile-nav-content {
    width: 100%;
    margin-top: 60px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
}

.mobile-nav-list .nav-item {
    border-bottom: 1px solid var(--color-light-grey);
}

.mobile-nav-list .nav-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-deep-blue);
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.mobile-nav-list .nav-link::after {
    display: none; /* Remove underline effect on mobile */
}

.mobile-nav-list .dropdown-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-deep-blue);
    border-bottom: 2px solid var(--color-deep-blue);
    transition: transform 0.3s ease;
    margin: 0;
}

.mobile-nav-list .nav-item.is-open .dropdown-icon {
    transform: rotate(-135deg);
}

/* Mobile Dropdown Menu */
.mobile-nav-list .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.3s ease-out; */
    background: var(--color-light-grey);
    border-radius: 0;
    min-width: 100%;
    margin: 0;
}

.mobile-nav-list .nav-item.is-open .dropdown-menu {
    max-height: 500px; /* Large enough for content */
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-card);
}

.mobile-nav-list .dropdown-list {
    padding: 0 var(--space-md);
}

.mobile-nav-list .dropdown-list a {
    font-size: 18px;
    padding: var(--space-sm) 0;
    color: var(--color-deep-blue) !important;
}

.mobile-nav-list .nav-cta {
    margin-top: var(--space-lg);
    text-align: center;
    justify-content: center;
    font-size: 20px;
}
