/* ================= RESPONSIVE DESIGN ================= */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .container {
        padding: 10px 0%;
    }

    .text {
        margin-top: 30%;
        font-size: 24px;
    }

    .text h2 {
        font-size: 42px;
    }

    .about1,
    .about2 {
        flex-basis: 100%;
    }

    .about1 {
        text-align: center;
        margin-bottom: 30px;
    }

    .about1 img {
        max-width: 350px;
    }

    .tab {
        margin: 20px 0;
        flex-wrap: wrap;
        gap: 20px;
    }

    .links {
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
}

/* Tablets */
@media only screen and (max-width: 768px) {

    nav .fa-solid {
        display: block;
        font-size: 28px;
        color: red;
        cursor: pointer;
        z-index: 1001;
    }

    nav ul {
        display: block;
    }


    #sidemenu {
        background: rgba(0, 0, 0, 0.55);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 380px;
        padding-top: 70px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow: hidden;
    }

    #sidemenu li {
        display: block;
        margin: 25px;
    }

    #sidemenu li a {
        color: white;
        font-size: 22px;
        text-decoration: none;
    }

    #sidemenu .fa-xmark {
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 30px;
        color: red;
        cursor: pointer;
    }

    .text {
        margin-top: 60%;
        text-align: center;
        padding: 0 15px;
    }

    .text h2 {
        font-size: 34px;
        line-height: 1.4;
    }

    .text h3 {
        font-size: 22px;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    #home {
        background-image: url(img/bg3.jpeg);
        background-position: center;
    }

    .logo {
        margin-left: 0;
        margin-top: 0;
        width: 35px;
        height: auto;
    }

    .text {
        margin-top: 55%;
        font-size: 18px;
        padding: 0 10px;
    }

    .text h2 {
        font-size: 26px;
    }

    .text span2 {
        font-size: 20px;
    }

    .sub {
        font-size: 30px;
    }

    .about2 {
        font-size: 15px;
        line-height: 1.8;
    }

    .tab {
        flex-direction: column;
        gap: 12px;
    }

    .links {
        font-size: 16px;
    }

    .services-list div,
    .work,
    .contact-right form {
        width: 100%;
    }

    input,
    textarea {
        width: 100%;
        font-size: 16px;
    }

    footer {
        font-size: 14px;
        text-align: center;
        padding: 15px;
    }
}

/* Very small devices */
@media (max-width: 400px) {
    .text h2 {
        font-size: 22px;
    }

    .sub {
        font-size: 26px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .work-list {
        grid-template-columns: 1fr;
    }
}