/* Mobile styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Hide default menu */
    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--menu-bg);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 20px;
    }

    /* Show menu when active */
    .menu.active {
        left: 0;
        box-shadow: var(--shadow);
    }

    /* Hamburger button */
    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: var(--text);
        transition: transform 0.3s ease;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu list adjustments */
    .menu-list {
        flex-direction: column;
        padding: 0;
        margin-top: 60px;
    }

    .menu-list li {
        margin: 10px 0;
    }

    /* Content adjustments */
    .content {
        margin-left: 0;
        padding: 20px;
    }

    /* Theme and language switchers */
    .theme-switcher,
    .language-switcher {
        position: fixed;
        top: 20px;
    }

    .theme-switcher {
        right: 20px;
    }

    .language-switcher {
        right: 70px;
    }

    /* Project cards */
    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-card {
        width: 100%;
    }

    /* Modal adjustments */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 15px;
    }
    .content {
        margin-left: 0;
        padding: 10px;
        width: calc(100% - 20px); /* Adjust width to account for new padding */
    }
}