/* All screen sizes */
@media only screen and (min-width: 0px) {
    /* ****************
     * hero-section 
     **************** */
    #hero-section {
        /* height: 800px; */
    }

    #hero-section h1, #hero-section p, #hero-section img {
        padding: var(--standardPadding);
    }

    #hero-images {
        overflow: hidden;
    }

    #hero-images picture img {
        height: 250px;
        width: auto;
    }

    /* ********************************* 
     * Services section 
     ********************************* */
    #services-offered {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        /* border: 1px solid black; */
        gap: 15px;
        scroll-behavior: smooth;
        padding: 5px;
    }

    #services-offered::-webkit-scrollbar {
        height: 10px;
    }

    #services-offered::-webkit-scrollbar-thumb {
        background-color: var(--primaryColor);
        border-radius: 4px;
    }

    #services-offered::-webkit-scrollbar-track {
        background-color: var(--scrollBarBackground);
        /* border: var(--lightGreyBorder); */
        border-radius: 5px;
    }

    .services-card {
        flex-direction: column;
        background-color: var(--primaryColorLight);
        padding: 20px;
        border-radius: 16px;
        filter: var(--dropShadowBottom);
        border: var(--lightGreyBorder);
        margin-bottom: 10px;
    }

    .services-card picture,
    .services-card picture img {
        height: auto;
        width: clamp(120px, 60vw, 165px);
        display: block;
        margin: auto;
    }

    .services-card h3,
    .services-card p {
        text-align: center;
        width: clamp(120px, 80vw, 500px);
        white-space: wrap;
    }

}

/* Mobile friendly layout (phones and small tablets 992px and down) */
@media only screen and (max-width: 992px) {
    /* ****************
     * hero-section 
     **************** */
    #hero-section h1 {
        text-align: center;
        white-space: nowrap;
    }

    #hero-images {
        position: relative;
        width: 100%;
        height: 400px;
        overflow-x: hidden;
        white-space: nowrap;
        box-sizing: border-box;
    }

    #hero-images picture img {
        position: absolute;
        /* height: 400px; */
        width: auto;
    }
}

/* Tiny devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 420px) {
    * {
        font-size: 13px;
    }

    #hero-images picture img {
        height: 300px;
    }
}

/* Tiny devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 500px) {
    * {
        font-size: 14px;
    }

    #hero-images picture img {
        height: 350px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    * {
        font-size: 16px;
    }

    #hero-images picture img {
        height: 400px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    * {
        font-size: 19px;
    }

    /* ************************************
     * Hero section
     ************************************ */
    #hero-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #hero-section h1 {
        margin: auto;
    }

    #typewriter-effect-bar {
        font-size: 1.8rem;
    }

    #hero-section>*:not(#hero-images) {
        grid-column: 1;
    }

    #hero-images {
        grid-column: 2;
        grid-row: 1 / span 4;
        overflow-x: hidden;
        position: relative;
    }

    #hero-images picture {
        position: absolute;
        top: 0px;
        width: 100%;
    }

    .hero-1 {
        position: absolute;
    }

    .hero-2 {
        position: absolute;

        /* Horizontally center */
        left: 50%; 
        transform: translateX(-50%);
    }

    .hero-3 {
        position: absolute;
        right:0px;
    }

    /* ****************
     * services section
     **************** */
    .services-card picture,
    .services-card picture img {
        width: clamp(150px, 50vw, 190px);
    }

    .services-card h3,
    .services-card p {
        width: clamp(400px, 50vw, 600px);
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    * {
        font-size: 19px;
    }
}