/* ------------------- CSS For Tab and mobile Screens ------------------- */

@media screen and (max-width: 890px) {
    #header nav ul li a .color {
        color: black;
    }

#header {
    background-image: url('/RESOURCES/Images/Backgrounds/background-mobile.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

nav ul {
    position: absolute;
    top: 0px;
    right: -250px;
    height: 100vh;
    width: 250px;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    padding: 25px 25px;
    z-index: 4;
    transition: right 0.5s;
}

nav ul .fa-solid {
    position: absolute;
    top: 15px;
    right: 15px;
    transition: color 0.5s;
}

nav ul .fa-solid:hover {
    color: black;
}
nav .fa-solid, nav p {
    display: block;
    font-size: 35px;
    cursor: pointer;

}

nav ul li a {
    transition: color 0.5s;
    font-size: 23px;
    margin-top: 15px;
}

nav ul li a:hover {
    color: black;
}

.header-text {
    margin-top: 250px;
}

.header-text p {
    font-size: 27px;
}

.header-text h1 {
    font-size: 45px;
}

}

@media screen and (max-width: 600px) {

    /* -------------- Utility Clases ------------------ */
    .sub-title {
        font-size: 40px;
    }

    nav ul li a {
        font-size: 20px;
    }

    .header-text {
        margin-top: 250px;
    }
    
    .header-text p {
        font-size: 25px;
    }
    
    .header-text h1 {
        font-size: 40px;
    }

    /*------------------- About ---------------- */
    #about .container .row {
        flex-direction: column;
        align-items: center;
    }

    .about-col-1 {
        width: 80%;
    }

    /*------------------- Services Section ---------------- */
    .services-col:hover {
        transform: translateY(-10px);
    }
    /*------------------- Contact Section ---------------- */
    #contact .row {
        flex-direction: column;
    }

    #contact p {
        font-size: 16px;
    }
    .contact-left {
        order: 2;
    }
    .contact-right {
        order: 1;
    }
}

@media screen and (max-width: 502px) {
    .header-text {
        margin-top: 300px;
    }
    
    .header-text p {
        font-size: 18px;
    }
    
    .header-text h1 {
        font-size: 30px;
    }
}

@media screen and (max-width: 387px) {
    nav img {
        width: 144px;
    }
    nav .fa-solid, nav p {
        font-size: 27px;
    }

    .header-text {
        margin-top: 250px;
    }
    
    .header-text h1 {
        font-size: 28px;
    }
}

@media screen and (max-width: 364px) {
    .header-text {
        margin-top: 250px;
    }

    .header-text p {
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 25px;
    }
}