:root {
    --color-brand-blue: rgb(60, 190, 254);
    --color-dark: rgb(35, 31, 32);
    --color-black: #000;
    --color-white: #fff;
}

img {
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.logo-webkit-optimize {
    image-rendering: -webkit-optimize-contrast;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.dark-section {
    background-color: var(--color-black);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.hover\:text-blue-300:hover {
    transition: color 0.2s ease;
}

.smooth-dark-section {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.bg-construction,
.bg-blueprint {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.bg-construction::before,
.bg-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
}

.bg-construction {
    background-image: url("https://images.pexels.com/photos/439416/pexels-photo-439416.jpeg?cs=srgb&dl=pexels-sevenstormphotography-439416.jpg&fm=jpg");
    color: var(--color-white);
}

.bg-blueprint {
    background-image: url("https://img.freepik.com/fotos-gratis/silhueta-de-construcao_1150-8336.jpg");
    color: var(--color-white);
}

.bg-construction > *,
.bg-blueprint > * {
    position: relative;
    z-index: 2;
}

.bg-services-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://udiaco.com.br/wp-content/uploads/2023/07/U_SEMBOTAO_BANNER_NOVEMNRO_22-11_V1.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section {
    scroll-margin-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.btn-blue {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
}

#mobile-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.carousel-container,
.clients-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper,
.clients-carousel-wrapper {
    position: relative;
}

.carousel-slides,
.clients-carousel-slides {
    display: flex;
}

.carousel-slides {
    transition: transform 0.5s ease;
}

.clients-carousel-slides {
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
}

.clients-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-button,
.clients-carousel-button {
    opacity: 0.8;
}

.carousel-button:hover,
.clients-carousel-button:hover {
    opacity: 1;
}

.clients-carousel-item img {
    width: 250px;
    height: 200px;
    object-fit: contain;
}

.clients-carousel-item img:hover {
    filter: grayscale(0%);
}

.clients-carousel-surface {
    background-color: aliceblue;
}

.logo-container {
    width: 100px;
    height: 80px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.logo-feplan-container {
    width: 360px;
    height: 180px;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-feplan {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-partner-container {
    width: 160px;
    height: 90px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-partner {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon {
    font-size: 24px;
    color: white;
}

.social-icon:hover,
.social-icon:focus {
    color: white;
}

@media (max-width: 768px) {
    .carousel-slides,
    .clients-carousel-slides {
        gap: 1rem;
    }

    .carousel-item {
        height: 400px !important;
    }

    .clients-carousel-item img {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 769px) {
    .logo-container {
        width: 180px;
        height: 120px;
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .logo-feplan-container {
        width: 220px;
        height: 110px;
    }

    .logo-partner-container {
        width: 140px;
        height: 80px;
    }
}
