* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Tenor Sans';
    src: url('../fonts/TenorSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Tenor Sans';
    src: url('../fonts/TenorSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Tenor Sans';
    src: url('../fonts/TenorSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: 'Tenor Sans', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;    
}

.lines {
    display: flex;
    justify-content: space-evenly;
    height: 100%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.line {
    width: 1px;
    background-color: rgba(187, 185, 185, 0.1);
    height: 100vh;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.center-text {
    text-align: center;
    align-content: center;
    height: calc(100vh - 400px);
}

.center-text h1 {
    font-size: 5.208vw;
    font-family: "Tenor Sans";
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.2;
    margin: 0;
    color: #dbdbdb;
}

.center-text p {
    font-size: 1.2rem;
    color: #4d4d4d;
    margin-top: 40px;
    font-weight: 500;
    font-family: "Archivo", "Archivo Placeholder", sans-serif;
    letter-spacing: 0.8px;
    transition: color 0.4s ease-in-out;
}

.center-text p:hover {
    color: #fff;
    transition: color 0.4s ease-in-out;
    cursor: default;
}

.index-images-bottom, .index-video {
    width: 100%;
    transform: scale(0.8);
}

.index-images-bottom img, .index-video video {
    width: 100%;
}

@layer demo {
    @keyframes scale-a-lil {
        from {
            scale: 0.8;
        }
        to {
            scale: 1.7;
        }
    }
    
    @media (prefers-reduced-motion: no-preference) {
      figure {
        animation: scale-a-lil linear both;
        animation-timeline: view();
        animation-range: 1vh 100vh;
        height: 100vh;
      }
    }
  }
  
  @layer demo.support {  
    /* Define largura máxima para as imagens */
    .index-images video {
        max-inline-size: 100%;
        transform: scale(0.8);
    }

    .index-images img {
        max-inline-size: 100%;
        transform: scale(0.8);
    }
    
    /* Configurações de layout do grid */
    .index-images {
        display: grid;
        gap: 20vmin;
        width: 100%;
        text-align-last: center;
        margin-bottom: 100px;
        margin-top: 100px;
        height: 160vh;
    }
    
    /* Define o layout da figure */
    figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        margin: 0;
    }

    /* Configura o figcaption para não ser escondido pela imagem */
    figcaption {
        text-transform: uppercase;
        margin-top: 0.5rem;
        z-index: 1;
        text-align-last: left;
    }

    /* Ajuste para a animação da imagem */
    figure video {
        transform-origin: center;
        transition: transform 0.3s;
        max-inline-size: 100%;
    }

    figure img {
        transform-origin: center;
        transition: transform 0.3s;
        max-inline-size: 100%;
    }
}

.line-imaginary {
    overflow: hidden;
    height: 5.208vw;
    position: relative;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: fadeIn 1.8s forwards;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-container {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1rem;
    line-height: 20px;
    padding: 0 20px;
    width: 66.667vw;
    font-family: "Archivo", "Archivo Placeholder", sans-serif;
    justify-items: center;
}

.about-container p {
    color: rgb(163, 163, 163);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-container p strong {
    color: rgb(219, 219, 219);
}

/* Estilo do carrossel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin-top: 160px;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 22%, rgb(0, 0, 0) 78%, rgba(0, 0, 0, 0) 100%);
}

.logo-item {
    flex: 0 0 auto;
    width: 150px;
    margin: 0 10px;
}

.logo-item img {
    height: auto;
    display: block;
}

.carousel-track {
    display: flex;
    justify-content: space-around;
    align-items: center;
    animation: scroll 40s linear infinite;
     /* Ajuste para iniciar o carrossel no centro ao carregar a página */
     transform: translateX(0);
}

/* Animação do carrossel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.projects-container {
    margin-top: 120px;
    width: 100%;
}

.projects-container .projects-text {
    font-size: 19.5vw;
    text-align: center;
    position: sticky;
    top: 0;
    transition: opacity 1s ease, transform 1s ease; /* Transições suaves */
    opacity: 1; /* Visível quando sticky */
    transform: translateY(0); /* Posição normal quando sticky */
    font-weight: 400;
}

.projects-text.relative {
    opacity: 0; /* Diminuindo a visibilidade */
    transform: translateY(-10px); /* Translação para cima */
    transition: opacity 1s ease, transform 1s ease;
}

.projects-container .projects-text .line-imaginary {
    height: 24vw;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #111;
    display: flex;
    flex-direction: column;
    height: 100%;
    scroll-behavior: smooth;
}

.card {
    position: sticky;
    top: 0;
}

.project-name {
    position: relative;
    top: 5px;
    font-weight: 600;
    line-height: 80%;
    font-size: 1.38vw;
    font-family: "Archivo", "Archivo Placeholder", sans-serif;
}

.card__inner {
    will-change: transform;
    background: white;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px hsla(265.3, 20%, 10%, 35%);
    transform-origin: center top;
    width: 120%;
}

.cards-container {
    position: relative;
    transform: translateY(200px);
}

.cards {
    width: 44vw;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: repeat(var(--cards-count), var(--card-height));
    gap: 10vw 0;
}

.card__image-container {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    flex-direction: column;
}

.card__image-container:hover {
    filter: brightness(0.75);
}

.card:hover .project-name {
    text-decoration: underline;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space {
    height: 45vh;
}

.seeAllBtn-container h2 {
    text-align: center;
    font-weight: 500;
    color: rgb(163, 163, 163);
    font-family: "Archivo", "Archivo Placeholder", sans-serif;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin: 0 10px;
}

.seeAllBtn-container h2 strong {
    color: rgb(219, 219, 219);
}

.seeAllBtn {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 70px;
    margin-bottom: 100px;
}

.seeAll-btn {
    display: inline-block;
    padding: 15px 30px;
    color: rgb(163, 163, 163);
    background-color: transparent;
    border: 1px solid rgb(163, 163, 163);
    text-transform: uppercase;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    height: 72px;
    width: 262px;
    align-content: center;
    text-align: center;
    font-weight: 600;
    color: rgb(163, 163, 163);
    font-family: "Archivo", "Archivo Placeholder", sans-serif;
    z-index: 2;
}

.seeAll-btn:hover {
    background-color: rgb(163, 163, 163);
    color: #000;
}

video {
    -webkit-appearance: none; /* Remove a aparência padrão no Safari */
    appearance: none;
    outline: none; /* Remove bordas ou elementos padrão */
}

@media (max-width: 600px) {    
    .center-text {
        height: 30vh;
    }

    .center-text h1 {
        font-size: 10vw;
    }

    .line-imaginary {
        height: 10vw;
    }

    .responsive-image {
        transform: scale(0.8);
    }

    .about-container {
        padding: 0;
        margin-top: 25px;
        width: 90%;
    }
    
    .carousel-container {
        margin-top: 20px;
    }

    .cards {
        width: 80%;
    }
    
    .cards-container {
        transform: translateY(60px);
    }
    .card__inner {
        flex-direction: column;
        width: 100%;
    }

    .card__image-container {
        width: 100%;
    }

    .card__image {
        aspect-ratio: 16 / 9;
    }

    .space {
        height: 14vh;
    }

    .project-name {
        font-size: 20px;
    }

    .projects-container {
        margin-top: 60px;
    }

    .projects-container h2 {
        font-size: 1rem;
    }

    .index-images-video {
        height: 80vh;
    }
}