/* main */
.main {
    padding-top: 8rem;
}

/* top main */

.top-main {
    min-height: 100vh;
}

.top-main__title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.top-main__title-text {
    display: block;
    text-align: center;
}

.top-main__img {
    position: relative;
    justify-self: center;
    max-width: 30%;
}

.top-main__lap-top {
    position: absolute;
    width: 172% !important;
    top: -10%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-51%);
    transition: all 2.8s;
}

.push-down-lap-top {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate(-51%, 25%);
}

.top-main__img img {
    width: 100%;
}

.top-main__text-wrapper {
    flex-direction: column;
    gap: 1rem;
    margin-top: 8.5rem;
}

.top-main__text {
    margin-bottom: 2rem;
    max-width: 450px;
    text-align: center;
}

/* middle-main */

.middle-main {
    margin: 8rem 0 0 0;
    position: relative;
}

.middle-main__wrapper {
    padding: 6rem 1rem;
}

.contact-wrapper-img {
    width: 10%;
    position: absolute;
    top: 0;
    left: 3%;
    transform: rotate(-24deg);
}

.contact-wrapper-img.hover-anim {
    animation: ringThenSettle 2s ease forwards;
}

@keyframes ringThenSettle {
    0% {
        transform: rotate(-24deg);
    }
    5% {
        transform: rotate(-18deg) translateX(6px);
    }
    10% {
        transform: rotate(-30deg) translateX(-6px);
    }
    15% {
        transform: rotate(-20deg) translateY(6px);
    }
    20% {
        transform: rotate(-28deg) translateY(-6px);
    }
    25% {
        transform: rotate(-22deg) translateX(4px);
    }
    30% {
        transform: rotate(-26deg) translateX(-4px);
    }
    35% {
        transform: rotate(-24deg) translateY(5px);
    }
    40% {
        transform: rotate(-28deg) translateY(-5px);
    }
    45% {
        transform: rotate(-22deg) translateX(5px);
    }
    50% {
        transform: rotate(-30deg) translateX(-5px);
    }
    55% {
        transform: rotate(-20deg);
    }
    60% {
        transform: rotate(-26deg);
    }
    70% {
        transform: rotate(-24deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.contact-wrapper-img img {
    width: 100%;
}

.contact-wrapper__title {
    text-align: center;
}

.contact-wrapper__title p {
    margin: 2rem 0 .7rem 0;
}

.contact-wrapper__title span {
    font-size: 14px;
}

.contact-box {
    margin-top: 6rem;
}

.contact-box-sub {
    max-width: 800px;
    margin: 4rem auto auto auto;
}

/* bottom main */

.bottom-main {
    margin-top: 14rem;
    text-align: center;
}

.bottom-main-wrapper {
    box-shadow: var(--box-shadow);
    border-radius: 12px;
    padding: 2rem 1rem;
    position: relative;
}

.bottom-main-wrapper__img {
    position: absolute;
    top: 0;
    left: 0;
    margin: 1rem;
}

.bottom-main-wrapper__img img {
    width: 100%;
}

.bottom-main__text-wrapper {
    margin-top: 2rem;
}

.bottom-main__text-wrapper p {
    margin-top: 1rem;
}

.know-me {
    margin-top: 3rem;
    place-self: center;
}

/* req-codeGraphy */

.req-codeGraphy {
    margin-top: 12rem;
    text-align: center;
}

.req-codeGraphy__title-wrapper {
    margin: 2rem 0;
    place-self: center;
}

.req-codeGraphy__text-wrapper {
    padding: 2rem 1rem;
    border-radius: 12px;
    background-color: var(--background-green);
    position: relative;
}

.req-codeGraphy__img {
    position: absolute;
    top: 0;
    left: 0;
    margin: 1rem;
}

.req-codeGraphy__img img {
    width: 100%;
}

.req-codeGraphy__text-wrapper h3 {
    margin: 1.5rem 0 2rem 0;
}

.req-codeGraphy__text-wrapper p {
    margin: 1rem auto;
    line-height: 34px;
}

.req-codeGraphy-btn {
    place-self: center;
    margin-top: 3rem;
}

/* responsive */

@media only screen and (max-width: 1200px) {
    .top-main__title-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .top-main__img {
        max-width: 35% !important;
    }
}

@media only screen and (max-width: 1000px) {
    .contact-wrapper-img {
        width: 12%;
    }
}

@media only screen and (max-width: 900px) {
    .top-main__img {
        max-width: 40% !important;
    }

    .top-main__text {
        max-width: 80%;
        text-align: center;
    }
}

@media only screen and (max-width: 750px) {
    .contact-wrapper__title h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .contact-wrapper-img {
        width: 16% !important;
    }
}

@media only screen and (max-width: 700px) {
    .top-main__img {
        max-width: 50% !important;
    }
}

@media only screen and (max-width: 600px) {
    .contact-wrapper-img {
        width: 20% !important;
    }
}

@media only screen and (max-width: 540px) {
    .top-main__img {
        max-width: 60% !important;
    }

    .top-main__text {
        font-size: 14px;
    }

    .contact-wrapper-img {
        width: 25% !important;
    }
}

@media only screen and (max-width: 500px) {
    .contact-wrapper__title h2 {
        font-size: 1.1rem;
    }

    .contact-wrapper__title p {
        font-size: .85rem;
    }
}

@media only screen and (max-width: 450px) {
    .middle-main {
        margin-top: 3rem;
    }

    .contact-wrapper-img {
        width: 30% !important;
    }
}

@media only screen and (max-width: 420px) {
    .req-codeGraphy__title-wrapper h2, .bottom-main__title-wrapper h2 {
        font-size: 1.2rem;
    }
    .bottom-main__text-wrapper, .req-codeGraphy__text-wrapper {
        font-size: 14px;
    }
}

@media only screen and (max-width: 360px) {
    .contact-wrapper__title h2 {
        font-size: 1rem;
    }
}
