/* Mobile Navigation Styles */
.mobile-nav {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block !important;
    transform: translateY(0);
}

.mobile-nav-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #10b981;
}

.mobile-dropdown-toggle {
    cursor: pointer;
}

.mobile-dropdown-arrow {
    transition: transform 0.2s ease;
}

.mobile-dropdown-toggle.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    transition: all 0.3s ease;
}

.mobile-submenu.show {
    display: block !important;
}

/* Desktop Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #10b981;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Dropdown Styles */
.submenu {
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.group:hover .submenu {
    transform: translateY(0);
}

/* Nested dropdown positioning */
.submenu .submenu {
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
}

/* Logo Styles */
.logo a {
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Animation */
.hamburger-menu {
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

/* Backdrop Blur Support */
@supports not (backdrop-filter: blur(12px)) {
    .md\:block {
        background-color: rgba(0, 0, 0, 0.95);
    }

    .md\:hidden {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo img {
        height: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        height: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .logo img {
        height: 3rem;
    }
}

/* Focus states for accessibility */
.nav-link:focus,
.hamburger-menu:focus,
.mobile-nav-link:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Smooth transitions */
.nav-link,
.hamburger-menu,
.logo a,
.mobile-nav-link {
    transition: all 0.2s ease-in-out;
}