

/*
Author: XpeedStudio
Author URI: http://themeforest.net/user/XpeedStudio/portfolio
*/

//* Portrait tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        font-size: 15px;
    }
}

/* Portrait tablets and small desktops */
@media (max-width: 991px) {
    html {
        font-size: 90%;
    }
    .portfolio-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px; /* Space between items */
        justify-content: center;
    }
    .portfolio-item {
        flex: 1 1 45%; /* Allows two items per row */
        max-width: 45%;
    }
    .heading p {
        line-height: 30px;
    }
    .about-content {
        text-align: center;
    }
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    html {
        font-size: 80%;
    }
    .home-details .home-title h1 {
        font-size: 35px;
    }
    .portfolio-item {
        flex: 1 1 45%; /* Two items per row on smaller screens */
        max-width: 45%;
    }
    .contact-details .contact-category .mail h2 {
        font-size: 30px;
    }
    .contact-details .contact-category .phone h5 {
        font-size: 25px;
    }
    .heading p {
        line-height: 23px;
        margin-top: 30px;
    }
}

/* Landscape phones and smaller */
@media (max-width: 480px) {
    html {
        font-size: 70%;
    }
    .home-details .home-title h1 {
        font-size: 20px;
    }
    .scroll-down h5 {
        font-size: 13px;
    }
    .portfolio-item {
        flex: 1 1 100%; /* Full width for single item per row */
        max-width: 100%;
    }
    .contact-details .contact-category .mail h2 {
        font-size: 22px;
    }
    .contact-details .contact-category .phone h5 {
        font-size: 20px;
    }
    .copyright p {
        font-size: 12px;
    }
}

/* Smallest screens (320px and below) */
@media (max-width: 320px) {
    html {
        font-size: 60%;
    }
}
