/* stylemobile.css */

/* Mobile Menu Toggle - Display only on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Show the mobile menu toggle */
        flex-direction: column;
        cursor: pointer;
        padding: 8px;
        background-color: var(--bg-green);
        border-radius: 8px;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 35px;
    }

    .mobile-menu-toggle span {
        width: 28px;
        height: 4px;
        background-color: white;
        margin: 2px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile Navigation & Overlay - Hidden on desktop, shown on mobile */
    header nav {
        display: none; /* Hide the regular navigation on mobile */
    }

    .mobile-menu-overlay {
        display: none; /* Controlled by JS, but default to hidden */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 900;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--card-bg);
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        z-index: 901;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu .menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .mobile-menu .close-menu-button {
        font-size: 30px;
        color: var(--text-color);
        cursor: pointer;
        line-height: 1;
        padding: 0 5px;
        transition: color 0.3s ease;
    }

    .mobile-menu .close-menu-button:hover {
        color: var(--bg-green);
    }

    .mobile-menu ul {
        list-style: none;
        padding: 20px;
        margin: 0;
        flex-grow: 1;
    }

    .mobile-menu ul li {
        margin: 15px 0;
    }

    .mobile-menu ul li a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        font-size: 18px;
        display: block;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

    .mobile-menu ul li a:hover {
        color: var(--bg-green);
    }

    /* Mobile page title - Display only on mobile */
    .mobile-page-title {
        display: block;
        color: var(--text-color);
        font-weight: 600;
        font-size: 18px;
        flex-grow: 1;
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Hide the desktop-only button on mobile */
    .desktop-only {
        display: none;
    }

    /* Footer adjustments for mobile */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .separator {
        display: none;
    }

    .footer-logo {
        margin-left: 0;
        align-self: center;
    }
}

/* Further mobile adjustments for very small screens */
@media (max-width: 480px) {
    .main-footer {
        padding: 20px 10px;
    }

    .social-section,
    .contact-section {
        padding: 20px;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}