/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 20px;
}

.bar {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #2C3E2D;
    margin: 6px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(253, 251, 247, 0.98);
        padding: 80px 2rem 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem !important;
    }

    .nav-list li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-list li a {
        font-size: 1.4rem !important;
        letter-spacing: 3px !important;
    }

    /* Animation for menu items */
    .main-nav.active .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.active .nav-list li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active .nav-list li:nth-child(2) { transition-delay: 0.2s; }
    .main-nav.active .nav-list li:nth-child(3) { transition-delay: 0.3s; }
    .main-nav.active .nav-list li:nth-child(4) { transition-delay: 0.4s; }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Mobile menu overlay */
    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(44, 62, 45, 0.03), transparent);
        pointer-events: none;
    }
}
