/* Header and Navigation Styles */

.sticky-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
}

.sticky-navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sticky-navbar.scrolled .nav-link {
    color: var(--dark);
}

/* Navigation Links */
.nav-link {
    color: var(--dark);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Megamenu Styles */
.mega-menu-wrapper {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    min-width: 700px;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) translateY(10px) scale(0.98);
}

.mega-menu-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu .grid > div {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-wrapper:hover .mega-menu .grid > div {
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-wrapper:hover .mega-menu .grid > div:nth-child(1) {
    transition-delay: 0.1s;
}

.mega-menu-wrapper:hover .mega-menu .grid > div:nth-child(2) {
    transition-delay: 0.15s;
}

.mega-menu-wrapper:hover .mega-menu .grid > div:nth-child(3) {
    transition-delay: 0.2s;
}

/* Megamenu Links */
.mega-menu ul li a {
    position: relative;
    padding-bottom: 2px;
}

.mega-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu ul li a:hover::after {
    width: 100%;
}

/* Megamenu Icons */
.mega-menu ul li a i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.mega-menu ul li a:hover i {
    transform: scale(1.2);
    color: var(--secondary);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 55;
}

.backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Animation */
.mobile-menu ul li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open ul li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.open ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.open ul li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.open ul li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.open ul li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.open ul li:nth-child(5) {
    transition-delay: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mega-menu {
        display: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .mobile-menu {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sticky-navbar {
        padding: 0.5rem 1rem;
    }
}

