/* Enhanced Mobile Menu Styles */

/* Modern Burger Menu Button */
.mobile-menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(80, 200, 120, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Modern Hamburger Icon */
.hamburger {
    position: relative;
    width: 24px;
    height: 18px;
    margin: auto;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    top: 0px;
    transform-origin: left center;
}

.hamburger span:nth-child(2) {
    top: 7px;
    transform-origin: left center;
}

.hamburger span:nth-child(3) {
    top: 14px;
    transform-origin: left center;
}

/* Active state - transform to X */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 3px;
    left: 8px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
    left: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 95%;
        max-width: 500px;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(28, 103, 88, 0.98) 0%,
            rgba(0, 100, 0, 0.96) 50%,
            rgba(22, 83, 70, 0.98) 100%
        );
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 50px 0;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 215, 0, 0.2);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Menu Items Animation */
    .nav-menu li {
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation delay for each menu item */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }

    /* Enhanced Menu Links */
    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px 40px;
        font-size: 1.8rem;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        border: none;
        border-radius: 0;
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        letter-spacing: 1px;
        min-height: 60px;
        text-align: center;
    }

    /* Hover effect with sliding background */
    .nav-menu li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            rgba(80, 200, 120, 0.2), 
            rgba(255, 215, 0, 0.15)
        );
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .nav-menu li a:hover::before,
    .nav-menu li a:focus::before {
        left: 0;
    }

    .nav-menu li a:hover,
    .nav-menu li a:focus {
        color: #FFD700;
        transform: translateX(10px);
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }

    /* Simple and subtle active page highlighting */
    .nav-menu li a.active {
        color: #FFD700 !important;
        font-weight: 600;
    }

    .nav-menu li a.active::before {
        display: none;
    }

    /* Icon for menu items */
    .nav-menu li a .menu-icon {
        font-size: 1.2rem;
        margin-right: 15px;
        transition: all 0.3s ease;
        opacity: 0.8;
    }

    .nav-menu li a:hover .menu-icon {
        opacity: 1;
        transform: scale(1.1);
        color: #FFD700;
    }

    /* Enhanced Dropdown Styles */
    .dropdown {
        position: relative;
    }

    .dropdown > a {
        position: relative;
    }

    .dropdown-indicator {
        font-size: 0.9rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        color: rgba(255, 255, 255, 0.7);
        margin-left: auto;
    }

    .dropdown.mobile-active .dropdown-indicator {
        transform: rotate(180deg);
        color: #FFD700;
    }

    /* Smooth Dropdown Content */
            .dropdown-content {
                position: relative !important;
                left: 0 !important;
                top: 0 !important;
                width: 100% !important;
                max-width: none !important;
                background: linear-gradient(135deg, 
                    rgba(0, 80, 0, 0.85), 
                    rgba(0, 60, 0, 0.9)
                ) !important;
                border-radius: 15px !important;
                margin: 10px 20px !important;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
                border: 1px solid rgba(255, 215, 0, 0.2) !important;
                backdrop-filter: blur(5px) !important;
                opacity: 0 !important;
                max-height: 0 !important;
                overflow: hidden !important;
                transform: none !important;
                transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
                padding: 10px 0;
            }            .dropdown.mobile-active .dropdown-content {
                opacity: 1 !important;
                max-height: 500px !important;
                visibility: visible !important;
            }    /* Dropdown Items */
    .dropdown-content a {
        padding: 25px 60px !important;
        font-size: 1.5rem !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin: 5px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative;
        overflow: hidden;
        letter-spacing: 0.6px;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .dropdown-content a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #FFD700, #50C878);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        transform-origin: bottom;
    }

    .dropdown-content a:hover::before {
        transform: scaleY(1);
    }

    .dropdown-content a:hover {
        background: linear-gradient(90deg, 
            rgba(80, 200, 120, 0.15), 
            rgba(255, 215, 0, 0.1)
        ) !important;
        color: #FFD700 !important;
        transform: translateX(20px) !important;
        padding-left: 80px !important;
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    }

    /* Simple active page styling for dropdown items */
    .dropdown-content a.active {
        color: #FFD700 !important;
        font-weight: 600 !important;
    }

    .dropdown-content a.active::before {
        display: none;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* Close button removed - using hamburger toggle instead */

    /* Mobile menu header removed - using main logo instead */

    /* Smooth entrance animations */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    /* Focus and accessibility improvements */
    .nav-menu li a:focus {
        outline: 2px solid #FFD700;
        outline-offset: 2px;
    }

    .mobile-menu-toggle:focus {
        outline: 2px solid #FFD700;
        outline-offset: 2px;
    }

    /* Touch improvements */
    .nav-menu li a,
    .dropdown-content a {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
        touch-action: manipulation;
    }

    /* Prevent scrolling when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -70%;
        width: 70%;
        max-width: 350px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-menu {
        width: 90%;
        padding: 90px 0 40px 0;
    }

    .nav-menu li a {
        padding: 25px 35px;
        font-size: 1.5rem;
        min-height: 50px;
    }

    .dropdown-content a {
        padding: 20px 55px !important;
        font-size: 1.3rem !important;
        min-height: 45px;
    }

    .mobile-menu-logo {
        font-size: 1.3rem;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .nav-menu li a {
        padding: 12px 30px;
    }

    .mobile-menu-header {
        height: 60px;
    }
}

/* Hide menu icons on desktop to maintain clean desktop design */
@media (min-width: 769px) {
    .menu-icon {
        display: none !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-menu li,
    .dropdown-content,
    .mobile-menu-toggle .hamburger span,
    .nav-menu li a::before {
        transition-duration: 0.1s;
    }
}
