#home {
    width: 100vw !important;
    height: 100vh !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: background-image 1.5s ease-in-out !important;
    transition-duration: 1.5s !important;
    animation-delay: 0;
}
#home .container,
.body-container h1,
.foot-container,
.slider-btn-list {
    display: flex !important;
}
#home .container,
.foot-container {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
#home .container,
.body-container h1 {
    flex-direction: column;
}
#home .container {
    height: 100%;
    box-sizing: border-box;
}
.body-container h1 {
    max-width: 500px;
    align-items: center;
    gap: 10px;
}
.foot-container .scrolldown-btn-container,
.foot-container div {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.foot-container .slider-btn-list {
    justify-content: end;
}
#home .body-container {
    position: relative;
    margin: auto;
}
#home .txt-content {
    max-width: 423px;
}
.slider-btn-list {
    display: flex;
    align-items: center;
    gap: 5px;
}
.slider-btn {
    width: 10px;
    height: 10px;
    background-color: gray;
    transition: 250ms ease-in-out;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
.slider-btn.active {
    background-color: #fff;
    opacity: 1 !important;
    transform: scale(1) !important;
}
.home-subtitle {
    animation: home-subtitle-anim 6s infinite ease-in-out;
    transition: 250ms ease-in-out;
    opacity: 0;
}
.categores-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px auto;
    margin-top: -32px;
    gap: 16px;
    flex-wrap: wrap;
}
.categores-container button.active {
    font-family: Montserrat-regular !important;
    font-weight: 400 !important;
}
.projects-containers-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    transition: 450ms ease-in-out;
}
.projects-containers-list.hidden {
    opacity: 0;
}
.project-container-item {
    position: relative;
    width: 20%;
    aspect-ratio: 1/1.67;
    display: none;
    margin-top: -2px;
}
.project-container-item.selected {
    display: block;
}
.project-container-item.selected-mob {
    display: block !important;
}
.project-container-item.desktop-hidden {
    display: none;
}
.project-container-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: auto 103%;
    background-position: center;
    filter: grayscale(1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.project-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 64px 0;
    box-sizing: border-box;
    opacity: 0;
    transition-delay: 0.1s !important;
}
.project-container-item a,
.project-txt {
    transition: 0.3s ease-in-out;
}
.project-container-item:hover a {
    filter: grayscale(0);
    background-size: auto 110%;
}
.project-container-item:hover .project-txt {
    opacity: 1;
}
#view-more-projects-btn {
    display: none;
}
#view-more-projects-btn.none {
    display: none !important;
}
.about-txt {
    max-width: 817px;
    width: 80%;
    margin: auto !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 90px 0;
}
.logo-mthomaz {
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 90px 0;
}
.services-container {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: stretch;
    row-gap: 128px;
    column-gap: 128px;
    margin-bottom: 64px;
    box-sizing: border-box;
}
.service-item a,
.service-item h2 {
    position: relative;
}
.service-item a div:nth-child(3) p,
.service-item a h2 {
    transition: 0.5s ease-in-out;
}
.service-item a {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    gap: 32px;
    transition: 250ms ease-in-out;
    transform-origin: center;
}
.service-item h2:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background-color: #000;
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.5s ease-in-out;
}
.service-item a:hover {
    opacity: 0.7 !important;
}
.service-item a:hover h2 {
    transform: translateY(-16px) !important;
}
.service-item a:hover div:nth-child(3) p {
    transform: translateY(16px) !important;
}
.service-item a:hover h2:after {
    transform: scaleX(0.9);
}
.service-item p:last-child {
    display: flex;
    align-items: center !important;
    gap: 16px;
    transform-origin: left !important;
}
.service-item span {
    position: relative;
    width: 16px;
    aspect-ratio: 1/1;
    box-sizing: border-box !important;
}
.service-item img {
    position: absolute;
    rotate: 45deg;
    width: 100%;
    object-fit: contain;
}
#contact * {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#contact .scrolldown-btn-container.email {
    margin: 150px auto;
    max-width: 100%;
    height: 40px;
}
#contact .redes-sociais {
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 128px;
}
.footer-window .container > div,
.footer-window .redes-sociais {
    width: 100%;
}
.footer-window .container > div {
    position: relative;
    display: flex;
    align-items: center;
}
.footer-window .redes-sociais {
    position: absolute;
    z-index: 999 !important;
}
.redes-sociais:has(.hidden) {
    z-index: 0 !important;
}
footer .title {
    padding-bottom: 0;
}
@keyframes home-subtitle-anim {
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@media screen and (max-width: 1460px) {
    .services-container {
        flex-direction: column;
    }
    .services-options {
        align-items: center;
    }
    .service-preview {
        margin: auto !important;
    }
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 992px) {
    .project-container-item {
        width: 33%;
    }
    .project-container-item a {
        background-size: cover;
    }
    .service-preview .preview-tool {
        aspect-ratio: 1/0.3;
    }
    .services-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .service-item {
        max-width: 60%;
        margin: auto;
    }
}
@media screen and (max-width: 768px) {
    .service-preview {
        margin: auto 0 !important;
    }
    .service-preview .preview-tool {
        aspect-ratio: 1/0.4;
    }
    .service-item {
        max-width: 500px;
    }
    #home .container {
        padding: 100px 32px;
    }
}
@media screen and (max-width: 564px) {
    #contact .scrolldown-btn-container.email {
        height: 33px;
    }
    #home .txt-content {
        max-width: 75%;
        margin: auto;
    }
    .logo-mthomaz img {
        width: 100px;
        object-fit: contain;
    }
    .project-container-item {
        width: 50%;
    }
    .project-container-item.mobile-hidden {
        display: none;
    }
    .about-txt {
        width: 100%;
        text-align: start;
    }
    .service-preview .preview-tool {
        aspect-ratio: 1/0.6;
    }
    .about-txt,
    .logo-mthomaz,
    .title {
        padding: 3vh 0;
    }
    .services-container {
        padding: 1.8vh 0;
        gap: 10vh;
    }
    section .scrolldown-btn-container {
        margin: 3vh auto;
    }
    #contact .scrolldown-btn-container.email {
        margin: 12vh auto;
    }
    #contact .redes-sociais {
        padding-top: 3vh;
        padding-bottom: 6vh;
    }
    #view-more-projects-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        margin: 6vh auto;
        margin-bottom: 12vh;
    }
    #view-more-projects-btn.active {
        display: flex !important;
    }
    .categores-container {
        margin-top: 0;
        gap: 8px;
    }
}
@media (max-width: 428px) {
    .project-container-item,
    .projects-containers-list {
        overflow: hidden;
    }
    .project-container-item a,
    .projects-containers-list {
        height: 100% !important;
    }
    .project-container-item a {
        position: relative !important;
        background-size: auto 105%;
    }
    #view-more-projects-btn {
        margin: 48px auto;
        margin-bottom: 96px;
    }
}
@media screen and (max-width: 360px) {
    #home .txt-content {
        max-width: 76%;
    }
}
