* {
    box-sizing: border-box;
    font-family: 'Poppins', 'Geist', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

:target {
    scroll-margin-top: 100px;
    /* Ajuste este valor */
}

.promocao {
    width: 100%;
    height: 32px;
    background: linear-gradient(90deg, #09BAFE 0%, #75FF91 100%);
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    height: 32px;
}

.promocao>a {
    text-decoration: none;
    font-size: 0.875rem;
    color: #040E15;
    font-weight: 500;
}

.header {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    padding: 16px 0;
    background-color: #040E15;
    border-bottom: 1px solid #10171E;
    z-index: 1000;
    /* transition: all 0.5s ease; */
    display: flex;
    justify-content: center;
}

body.scrolled .header {
    top: 12px;
    /* Remova este valor incorreto e use um valor menor, ou apenas tire o max-width */
    /* max-width: 12160px; */
    height: 64px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #10171E;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
    /* Adicione esta linha para corrigir */
    margin: 0 20px;
}

body.menu-aberto .header {
    border-radius: 30px 30px 0 0;
}

.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins';
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}

.logotipo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logotipo img {
    border-radius: 999px;
}

.logotipo span {
    color: #fff;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 12px;
}

nav ul {
    display: flex;
    gap: 16px;
}

li {
    list-style: none;
    width: 100%;
}

li a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

li a:hover {
    background-color: #10171E;
}

li a:active {
    background-color: #2A3A48;
}

li a.ativo {
    background-color: #10171E;
}

.btnHeader {
    display: flex;
    gap: 12px;
}

.btnBlog {
    padding: 8px 16px;
    color: #fff;
    background-color: #040E15;
    font-family: 'Inter';
    font-size: 1rem;
    font-weight: 500;
    line-height: 24px;
    border: none;
    border-radius: 100px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btnBlog:hover {
    background-color: #fff;
    color: #040E15;
}

.btnContato {
    padding: 8px 16px;
    color: #040E15;
    font-family: 'Inter';
    font-size: 1rem;
    font-weight: 500;
    line-height: 24px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #09BAFE, #75FF91, #09BAFE);
    background-size: 300% 300%;
    animation: moveGradient 5s ease infinite;
    transition: color 0.3s ease;
    cursor: pointer;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hamburguer {
    display: none;
    /* Escondido por padrão */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburguer span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 100px;
}

/* Estilos do Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 72px;
    /* Altura do header padrão */
    left: 0;
    width: 100%;
    height: 0;
    background-color: #040E15;
    z-index: 999;
    flex-direction: column;
    overflow: hidden;
    /* transition: all 0.5s ease; */
    padding: 0 20px;
}

/* Regras para o menu aberto */
body.menu-aberto .mobile-menu {
    /* Mude `height: auto` para uma altura fixa ou maior que o conteúdo, como `max-height` */
    max-height: 500px;
    /* Use um valor grande o suficiente para acomodar o conteúdo */
    padding-top: 20px;
    padding-bottom: 20px;
    top: 104px;
    /* Senta abaixo do header padrão (72px) + 32px de top */
}

body.scrolled.menu-aberto .mobile-menu {
    top: 76px;
    /* Senta abaixo do header flutuante (64px) + 12px de top */
}

.mobile-menu nav ul {
    flex-direction: column;
    /* gap: 20px; */
    width: 100%;
    justify-content: start;
    align-items: start;
}

.mobile-menu li a {
    /* Habilita o flexbox e alinha os itens */
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Outros estilos para os links */
    font-size: 1rem;
    padding: 12px 16px;
    /* Adicione padding para dar mais espaço de clique */
    text-align: left;
    /* Alinha o texto à esquerda */
    border-bottom: 1px dashed #10171E;
}

.mobile-menu li a::after {
    /* Cria o ícone > */
    content: '>';
    color: #fff;
    font-size: 1.2rem;
}

.mobile-menu .btnHeader {
    flex-direction: column;
    margin-top: 20px;
    /* gap: 15px; */

}

.mobile-menu .btnHeader button,
.mobile-menu .btnHeader a {
    width: 100%;
    text-align: center;
}

/* Animação do X */
body.menu-aberto .hamburguer span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-aberto .hamburguer span:nth-child(2) {
    opacity: 0;
}

body.menu-aberto .hamburguer span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.inicio-sobre {
    width: 100%;
    height: 836px;
    background-image: url(/img/background_grid_patterns.webp);
    background-position-y: 54px;
    /* background-color: #040E15; */
    display: flex;
    align-items: center;
    font-family: 'Poppins';
    flex-direction: column;
    position: relative;
}

.texto-inicio-sobre {
    text-align: center;
    max-width: 1216px;
    margin-top: 176px;
}

.texto-inicio-sobre>span {
    padding: 6px 16px;
    border: 1px solid #2B3B4E;
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
    box-shadow:
        inset 0 0 5px #2B3B4E,
        0 0 5px rgba(43, 59, 78, 0.1);
    margin-bottom: 8px;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow:
            inset 0 0 5px #2B3B4E,
            0 0 5px rgba(43, 59, 78, 0.3);
        border-color: #2B3B4E;
    }

    100% {
        box-shadow:
            inset 0 0 5px #3A4F6B,
            0 0 10px rgba(58, 79, 107, 0.8);
        border-color: #3A4F6B;
    }
}

.texto-inicio-sobre h1 {
    /* width: clamp(410px, 80vw, 960px); */
    width: 100%;
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.4px;
    color: #fff;
    margin-bottom: 32px;
    margin-top: 16px;
}

.degrade {
    background: linear-gradient(135deg, #098AFE, #75FF91);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.texto-inicio-sobre h2 {
    font-size: clamp(1rem, 1.25vw + 0.5rem, 1.5rem);
    font-weight: 400;
    line-height: 140%;
    color: #AAB8C1;
    margin-bottom: 48px;
}

.btnInicio {
    display: flex;
    gap: 12px;
}

.btnInicio button {
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px 24px;
    border-radius: 6px;
    color: #fff;
    background-color: #040E15;
    border: 1px solid #10171E;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background 0.2s ease-in-out
}

.btnInicio button:hover {
    background: linear-gradient(135deg, #09BAFE, #75FF91);
    color: #040E15;
}

.btnInicio button>svg {
    width: 34px;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

.btnInicio button:hover svg {
    transform: translateX(5px);
}

.btnInicio button:active {
    transform: scale(0.95);
}

.btnInicio button:hover svg path {
    fill: #040E15;
}

#toggle-texto {
    display: none;
    /* Escondido por padrão */
    background: none;
    border: 1px solid #000;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px auto 0 auto;
    position: relative;
    z-index: 2;
}

.sobre-mim {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 72px;
    margin-bottom: 148px;
}

.texto-sobre {
    width: 100%;
    max-width: 592px;
}

.texto-sobre p {
    font-size: clamp(20px, 1.2vw + 1rem, 24px);
    line-height: 2rem;
    color: #000;
    font-weight: 400;
    margin-bottom: 32px;
    text-align: justify;
    word-spacing: -0.1em;
    font-family: 'Inter'
}

.img-sobre img {
    width: 100%;
}

.feedback {
    margin-bottom: 148px;
}

.texto-feedback {
    margin: 0 auto;
    max-width: 1216px;
    margin-bottom: 104px;
}

.texto-feedback h1 {
    color: #000;
    font-family: 'Geist';
    font-size: 4rem;
    font-style: normal;
    font-weight: 500;
    line-height: 70.4px;
}

.texto-feedback span {
    background: linear-gradient(135deg, #09BAFE, #75FF91);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Geist';
    font-size: 4rem;
    font-style: normal;
    font-weight: 500;
    line-height: 50.4px;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Gradiente como overlay */
    mask-image: linear-gradient(90deg,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
}

.carousel-track {
    display: flex;
    width: min-content;
    /* Altere a velocidade aqui para definir a velocidade de ambos */
    animation: scroll 25s linear infinite;
}

/* Aplica a animação no segundo carrossel (para a direita) */
.reverse .carousel-track {
    /* Usa a mesma animação, mas inverte a direção */
    animation-direction: reverse;
}

.card {
    width: 384px;
    background: white;
    margin: 0 16px;
    border-radius: 16px;
    border: 1px solid #E4E4E7;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    padding: 24px 24px;
    row-gap: 28px;
}

.avaliacao span {
    font-size: 1rem;
    background: linear-gradient(135deg, #09BAFE, #75FF91);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.texto-feedback-card p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-family: 'Geist';
    font-weight: 400;
    color: #605E70;
    overflow: hidden;
    /* Esconde o que transborda */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.yuri-amorim {
    justify-content: space-between;
}

.perfil-feedback {
    display: flex;
    gap: 8px;
}

.nome-feedback p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25rem;
    font-family: 'Geist';
    font-weight: 600;
    color: #040E15;
}

.nome-feedback span {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    font-family: 'Geist';
    color: #838393;
}

.comentario {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.comentario a {
    text-decoration: none;
    color: #7F96A2;
}

.comentario a:hover {
    text-decoration: underline;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.footer-cta {
    height: 488px;
    background-color: #040E15;
    background-image: url(/img/pattern.webp);
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-cta h2 {
    font-size: 5rem;
    line-height: 5.5rem;
    font-weight: 500;
    letter-spacing: -2.4px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 1rem;
    line-height: 1.375rem;
    font-weight: 400;
    letter-spacing: -0.64px;
    color: #E5E5E7;
    margin-bottom: 32px;
}

.footer-cta>a>button {
    padding: 8px 24px;
    background-color: #fff;
    border: none;
    border-radius: 6px;
    height: 48px;
    color: #040E15;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    font-family: 'poppins';
    cursor: pointer;
}

.footer-cta>a>button:hover {
    background-color: #040405;
    color: #fff;
}

footer {
    width: 100%;
    height: 80px;
    background-color: #040E15;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-container {
    width: 100%;
    max-width: 1216px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: #2B3B4E;
}

.links-footer,
.links-footer a {
    display: flex;
    align-items: center;
    gap: 16px;
}

.links-footer a {
    transition: transform 0.1s ease-in-out;
}

.links-footer a:hover {
    transform: scale(1.2);
}

@media (max-width: 1442px) {
    .header {
        padding: 16px 24px;
    }
}

@media (max-width: 1236px) {
    .sobre-mim {
        gap: 0;
    }

    .img-sobre-lucas {
        display: none;
    }
}

@media (max-width: 1220px) {
    .sobre-mim {
        flex-wrap: wrap;
    }

    .logos-container {
        max-width: 100%;
    }

    .img-sobre {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 16px 24px;
    }
}

@media (min-width: 831px) {

    .navegation,
    .btnHeader {
        display: flex;
    }

    /* Oculta o ícone de hambúrguer e o menu mobile */
    .hamburguer,
    .mobile-menu {
        display: none;
    }

    /* Estilos do header quando a página é rolada */
    body.scrolled .header {
        top: 12px;
        max-width: 1216px;
        height: 64px;
        padding: 12px 16px;
        border-radius: 999px;
        border: 1px solid #10171E;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
        margin: 0 auto;
    }
}

@media (max-width: 830px) {
    .header {
        padding: 16px 20px;
    }

    /* Estilos do header quando a página é rolada em telas pequenas */
    body.scrolled .header {
        max-width: calc(100% - 40px);
        margin: 0 20px;
    }

    .navegation,
    .btnHeader {
        display: none;
    }

    .hamburguer {
        display: flex;
    }

    /* Estilos do menu mobile quando aberto */
    body.menu-aberto .mobile-menu {
        max-width: calc(100% - 40px);
        margin: 0 20px;
        max-height: 500px;
        /* Um valor grande para a transição */
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        top: 104px;
        border-radius: 0 0 30px 30px;
        border-left: 1px solid #10171E;
        border-right: 1px solid #10171E;
        border-bottom: 1px solid #10171E;
    }

    body.scrolled.menu-aberto .mobile-menu {
        top: 76px;
    }

    .inicio-sobre {
        padding: 0 24px;
        height: 548px;
        margin-bottom: 64px;
    }

    .texto-inicio-sobre {
        margin-top: 118px;
    }

    .texto-inicio-sobre h1 {
        margin-top: 12px;
        margin-bottom: 24px;
        font-size: 2.5rem;
        line-height: 3rem;
    }

    #toggle-texto {
        display: block;
        /* Mostra o botão apenas em mobile */
    }

    .texto-container {
        position: relative;
        overflow: hidden;
        max-height: 250px;
        transition: max-height 0.3s ease-out;
    }

    .texto-container:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
        pointer-events: none;
        z-index: 1;
    }

    .texto-container.expandido {
        max-height: 2000px;
    }

    .texto-container.expandido:after {
        display: none;
    }

    .conteudo-oculto {
        display: none;
    }

    .texto-container.expandido .conteudo-oculto {
        display: block;
    }

    .sobre-mim {
        margin: 64px 0;
    }

    /* .texto-sobre p {
        font-size: 1.5rem;
        line-height: 2rem;
    } */

    .feedback {
        margin-bottom: 104px;
    }

    .texto-feedback {
        margin: 0 24px;
    }

    .texto-feedback h1 {
        font-size: 3rem;
        line-height: 3.5rem;
        margin-bottom: 64px;
    }

    .footer-cta h2 {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .footer-cta p {
        font-size: 1rem;
        line-height: 1.25rem;
    }

    .footer-container {
        justify-content: space-around;
    }
}

@media (max-width: 612px) {
    .texto-inicio-sobre h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }
}

@media (max-width: 587px) {
    .sobre-mim {
        margin: 56px 20px;

    }



    .texto-sobre p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

@media (max-width: 569px) {
    .texto-inicio-sobre h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}



@media (max-width: 512px) {
    .footer-cta h2 {
        font-size: 3rem;
        line-height: 3.25rem;
    }
}

@media (max-width: 431px) {
    .promocao>a {
        font-size: 0.656rem;
    }

    .header-sobre {
        padding: 16px 20px;
    }

    .body.scrolled .header {
        width: calc(100% - 40px);
    }

    .inicio-sobre {
        padding: 0 20px;
        height: 406px;
        margin-bottom: 56px
    }

    .inicio-sobre h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .sobre-mim {
        margin: 56px 20px;

    }

    .texto-sobre {
        max-width: 390px;
    }

    .texto-sobre p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .feedback {
        margin-bottom: 72px;
    }

    .texto-feedback {
        margin: 0 20px;
    }

    .texto-feedback h1 {
        font-size: 2.5rem;
        line-height: 2rem;
        margin-bottom: 48px;
    }

    .card {
        margin: 0 12px;
    }

    .carousel-container {
        gap: 24px;
    }

    .footer-cta {
        height: 360px;
    }

    .footer-cta h2 {
        font-size: 2.5rem;
        line-height: 2.5rem;
        letter-spacing: -0.5px;
    }

    .links-footer {
        display: none;
    }
}

@media (max-width: 400px) {
    .footer-cta h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .footer-cta p {
        font-size: 0.875rem;
        line-height: 1.5rem;
    }
}