/* ================= HOME SCREEN ================= */

/* Hero Card */
.circle-overlay {
    display: block;
}

.carousel-caption .home-lines .home-text-1-lg,
.carousel-caption .home-lines .home-text-2-lg {
    display: block;
}

.carousel-caption .home-lines .home-text-1-md,
.carousel-caption .home-lines .home-text-2-md {
    display: none;
}

/* Stack Section */


.stack-section .mobile {
    display: none;
}

/* ===== Mobile View ===== */
@media screen and (max-width: 520px) {

    /* Hero Card */

    .carousel-caption {
        right: 0 !important;
        margin-bottom: 0 !important;
    }

    #header-carousel .carousel-item {
        margin-top: 25px !important;
        height: 35vh;
        min-height: 400px;
    }

    .circle-overlay {
        display: none;
    }

    /* Hide desktop text */
    .carousel-caption .home-lines .home-text-1-lg,
    .carousel-caption .home-lines .home-text-2-lg {
        display: none;
    }

    /* Show mobile text */
    .carousel-caption .home-lines .home-text-1-md,
    .carousel-caption .home-lines .home-text-2-md {
        display: block;
        font-size: 3vh;
    }

    .carousel-caption .home-lines .content-2-1 {
        font-size: 32px;
        margin-top: 50px !important;
    }

    .carousel-caption .home-lines .content-2-2 {
        font-size: 40px;
        margin-bottom: 20px !important;
    }

    .carousel-caption .home-text-3 {
        margin-bottom: 0px !important;
        font-size: 16px;
    }

    /* Service Section */

    .services-section {
        padding: 10px;
    }

    .services-section .sub-section-title {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }

    .services-section .cards-container {
        gap: 15px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        justify-items: center;
        /* center grid items */
    }

    .service-card {
        width: 80%;
        max-width: 350px;
        padding: 30px 20px;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    /* stack-section */
    .stack-section {
        margin-top: 30px;
        padding: 10px;
    }

    .stack-section h2:first-of-type {
        font-size: 20px;
    }

    .stack-section h2:last-of-type {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }

    .stack-section .desktop {
        display: none;
    }

    .stack-section .mobile {
        display: flex;
        margin-bottom: 25px !important;
    }

    .stack-section .stack-row {
        gap: 23px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stack-section .stack-item img {
        width: 30px;
        height: 50px;
    }
}