:root {
    --shadow-color: rgba(0, 0, 0, 0.486)
}

.main-service {
    transform: translateY(-5rem);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 10rem;

    & h1 {
        text-align: center;
        font-size: 4rem;
    }

    & button {
        background: red;
        color: white;
        font-weight: 700;
        border: none;
        cursor: pointer;
        box-shadow: 1px 1px 2px 0 black;
        font-size: 1rem;
        padding: .5rem 1rem;
        margin: 2rem 0;
    }

    & .upper {
        width: 100%;
        display: flex;
        flex-direction: column;

        & .header-container {
            width: 100%;
        }

        & .img-text-wrapper {
            display: flex;
            justify-content: space-between;
            width: 100%;
            /* align-items: center; */
            padding: 0 3rem;
            padding-bottom: 5rem;
            border-bottom: 1px solid red;

            & .img-container {
                width: 48%; 
                max-height: 650px;
                border-radius: 1rem;
                overflow: hidden;
                box-shadow: 2px 2px 3px 0 var(--shadow-color);

                & img {
                    max-width: 100%;
                    height: auto;
                    object-fit: cover;
                }
            }

            & .text-container {
                width: 48%;
                display: flex;
                flex-direction: column;
                box-shadow: 2px 2px 3px 0 var(--shadow-color);
                border-radius: 1rem;
                padding: 2rem;

                & .intro-text {
                    font-size: 1.2rem;
                }

                & .headline {
                    font-size: 1.2rem;
                }
            }
        }

        & .highlight-container {
            display: flex;
            flex-direction: column;
            padding: 5rem 2rem;
            border-bottom: 1px solid red;

            & h2 {
                text-align: center;
                padding-bottom: 5rem;
            }

            & .card-container {
                width: 100%;
                display: flex;
                justify-content: space-evenly;
                padding-bottom: 5rem;

                & .service-card {
                    width: 23%;
                    padding: 2rem;
                    box-shadow: 2px 2px 3px 0 var(--shadow-color);
                    border-radius: 1rem;
                    position: relative;
                    display: flex;
                    flex-direction: column;

                    & img {
                        max-width: 100%;
                        height: auto;
                        border-radius: 1rem;
                        margin: 2rem;
                    }

                    & h4 {
                        font-size: 1.5rem;
                    }
                }
            }
        }
    }

    & .contact-section {
        width: 100%;
        padding: 5rem 2rem;
        display: flex;
        align-items: center;

        & .text-wrapper {
            width: 56%;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 1.5rem;
        }

        & .img-wrapper {
            width: 42%;
            height: 50vh;
            overflow: hidden;

            & img {
                width: auto;
                height: 100%;
                border-radius: 1rem;
            }
        }
    }
}

@media screen and (max-width: 900px) {
    .main-service {
        & .upper {
            & .img-text-wrapper {
                flex-direction: column;
                padding: 0 1rem;

                & .img-container {
                    width: 100%;
                    margin-bottom: 2rem;
                }

                & .text-container {
                    width: 100%;
                    margin-bottom: 2rem;
                }
            }

            & .highlight-container {
                padding: 2rem 1rem;

                & h2 {
                    padding-bottom: 2rem;
                }

                & .card-container {
                    flex-direction: column;
                    padding: 0;

                    & .service-card {
                        width: 100%;
                        margin-bottom: 2rem;
                    }
                }
            }
        }

        & .contact-section {
            padding: 2rem 1rem;
            flex-direction: column;

            & .img-wrapper {
                width: 100%;
                padding: 2rem 1rem;
                margin: 0 auto;
                display: flex;
                justify-content: center;
            }
        }
    }
}