/* MOBILE HEADER DESIGN */
@media (max-width: 768px) {

    .header {
        min-height: 100vh;
        padding: 20px;
    }

}

/* MOBILE MENU */
@media (max-width: 1000px) {

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        outline: none;
        position: fixed;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        z-index: 10001;
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 2px;
    }

    .menu-toggle:active {
        transform: scale(.95);
    }

    .menu-toggle img {
        width: 32px;
        height: 32px;
        filter: invert(1);
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 60%;
        height: 100vh;
        background: var(--bg-main);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 75px 15px 15px;
        border-radius: 2px;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar a {
        width: 100%;
        text-align: left;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 15px 10px;
    }

    .navbar.active {
        transform: translateX(0);
    }

}

/* RESPONSIVE GRID */
@media (max-width: 700px) {
    .two-columns,
    .three-columns {
        grid-template-columns: 1fr;
    }
}

/* MOBILE FORM QUERY */
@media (max-width: 768px) {

    .contact-navbar .not-active{
        display: none
    }

    .contact-layout {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
        padding: 0;
        border: none;
    }

    .contact-layout aside,
    .contact-layout section {
        width: 100%;
        min-width: 0;
        padding: 10px;
    }

    .contact-layout section {
        order: 2;
    }

    .contact-layout aside {
        order: 1;
    }

    .contact-layout fieldset {
        border: none;
        padding: 0;
    }

    .contact-layout fieldset legend {
        display: none;
    }
}

/* MOBILE VIEW PROJECTS PAGE*/
@media (max-width: 1000px) {

    .messages-projects {
        min-height: 100vh;
        padding: 15px;
    }

    .projects-message {
        padding: 10px;
    }

    .projects-card {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .project-content {
        width: 100%;
        padding: 20px;
    }

    .project-image {
        max-width: 100%;
        width: 100%;
        max-height: 300px;
    }

}

/* FOOTER RESPONSIVE */
@media (max-width: 700px) {

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    #links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}