/* All screen sizes */
@media only screen and (min-width: 0px) {
    /* ********************************* 
     * 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(170px, 60vw, 210px);
        height: clamp(170px, 60vw, 210px);
        display: block;
        margin: auto;
        border-radius: 8px;
        object-fit: cover;
    }

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

    .services-card-text {
        text-align: left !important;
    }

    /* ****************
     * hero-section 
     **************** */
    #hero-section {
        background-color: var(--headerColor);
    }

    #typewriter-effect-bar {
        z-index: 1;
        margin: auto;
        margin-bottom: 15px;
        border: var(--lightGreyBorder);
        border-radius: 50px;
        background-color: #ffffff;
        font-size: 1.7rem;
        box-shadow: var(--dropBoxShadow);
        padding: var(--standardPadding) 25px;
        width: 17em;
        min-height: 1em; /* Keeps height equal to the font size */
    }

    #typewriter-effect-bar::before {
        content: "\00a0"; /* Non-breaking space to prevent shrinking */
        visibility: visible; /* Ensures the element remains visible */
    }

    #hero-text {
        width: 100%;
        padding: 15px;
    }

    #hero-button {
        width: 100%;
        text-align: center;
        text-shadow: var(--textShadowThin);
    }

    #hero-button a {
        color: var(--primaryColorLight);
    }

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

    .hero-1 {
        z-index: 1;
        opacity: 30%;
    }

    .hero-2 {
        z-index: 3;
        margin: auto;
    }

    .hero-3 {
        z-index: 2;
        opacity: 50%;
        right: 0px;
    }
    /* ****************
     * contact section
     **************** */
    .contact-form-container {
        background-color: var(--primaryColor);
        border-radius: 15px;
        padding: var(--standardPadding);
    }

    .contact-form-container picture, #contact-form {
    }

    #contact-form-header {
        text-align: center;
    }

    .contact-form-container picture * {
    }

    #contact-message {
    }

    #contact-form textarea {
    }

    #contact-form * {
        border: none;
        border-radius: 15px;
        padding: 10px;
    }

    #contact-form input {
        margin: 10px 0px;
    }

    #contact-form button {
        background-color: var(--bodyTextColorWhite);
        color: var(--primaryTextColorDark);
    }

    #contact-form button:hover {
        cursor: pointer;
    }
}

/* 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;
    }

    .hero-2 {
        transform: translateX(-50%);
        left: 50%;
    }

    .hero-3 {
        right: 0px;
    }

    /* ****************
     * contact section
     **************** */
    .contact-form-container {
    }

    .contact-form-container picture {
        position: absolute;
        width: 50%;
        visibility: hidden;
    }

    #contact-form {
        width: 80%;
        margin: auto;
    }

    #contact-form-header {
        width: 100%;
    }

    .contact-form-container picture * {
        width: 100%;
        height: 100%;
    }

    #contact-message {
        width: 100%;
    }

    #contact-form textarea {
    /*
        height: 0%;
        */
    }

    #contact-form * {
        border: none;
        border-radius: 15px;
        padding: 10px;
    }

    #contact-form input {
        width: 100%;
    }

    #contact-form button {
        width: 100%;
    }
}

/* Tiny devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 420px) {
    * {
        font-size: 13px;
    }
    /* ****************
     * services section
     **************** */
    .services-card picture,
    .services-card picture img {
        width: clamp(210px, 50vw, 250px);
        height: clamp(210px, 50vw, 250px);
    }
}

/* Tiny devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 500px) {
    * {
        font-size: 14px;
    }
    /* ****************
     * services section
     **************** */
    .services-card picture,
    .services-card picture img {
        width: clamp(230px, 50vw, 270px);
        height: clamp(230px, 50vw, 270px);
    }
}

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

    #hero-images {
        height: 500px;
    }

    #hero-images picture img {
        height: 500px;
    }
    /* ****************
     * services section
     **************** */
    .services-card picture,
    .services-card picture img {
        width: clamp(250px, 50vw, 290px);
        height: clamp(250px, 50vw, 290px);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    /* ****************
     * services section
     **************** */
    .services-card picture,
    .services-card picture img {
        width: clamp(300px, 50vw, 340px);
        height: clamp(300px, 50vw, 340px);
    }
}

/* 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 {
        text-wrap: nowrap;
        margin: auto;
    }

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

    #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(350px, 50vw, 390px);
        height: clamp(350px, 50vw, 390px);
    }

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

    /* ****************
     * contact section
     **************** */
    .contact-form-container {
        display: flex;
    }

    .contact-form-container picture, #contact-form {
        flex-direction: column;
        width: 50%;
    }

    #contact-form-header {
        width: 100%;
    }

    .contact-form-container picture * {
        width: 100%;
        height: 100%;
    }

    #contact-message {
        width: 100%;
    }

    #contact-form textarea {
    /*
        height: 0%;
        */
    }

    #contact-form * {
        border: none;
        border-radius: 15px;
        padding: 10px;
    }

    #contact-form input {
        width: 100%;
    }

    #contact-form button {
        width: 100%;
    }
}

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