* {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Altura inicial */
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(0);
    padding: 20px 0;
    /* Inicial com padding de 20px */
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    /* Efeito de blur */
    color: #333;
    padding: 10px 0;
    /* Menos padding quando rolar */
    height: 60px;
    /* Altura reduzida para 60px ao rolar */
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #F0F0F0, transparent);
}

.cabecalho {
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav ul li a {
    font-size: 1rem;
    color: #000;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-decoration: none;
    transition: color 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efeito de sublinhado animado */
nav ul li a::after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #000;
    transition: width 400ms cubic-bezier(0.25, 0.8, 0.25, 1), left 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav ul li a:hover,
nav ul li a:focus {
    color: #000;
    /* Pode trocar a cor se quiser também animar ela */
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
    left: 0%;
}


.menu-mobile {
    display: none;
    position: fixed;
    top: 80px;
    /* altura do header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 999;
}

.menu-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-mobile ul li {
    margin: 16px 0;
}

.menu-mobile ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.foto-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foto-cabecalho span {
    width: 100px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #939395;
}

.btn-header-cta button {
    padding: 15px 30px;
    font-size: 14px;
    background-color: #010306;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter';
}

/* Hambúrguer: Aparece somente em telas menores */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

main {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1413px;
    min-height: 944px;
    background-image: url('/img/background.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}



.inicio {
    display: flex;
    margin: 254px auto 140px;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.texto-inicio {
    width: 100%;
    max-width: 1216px;
}

/* .texto-inicio span {
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: 6px;
    color: #878A8F;
    margin-left: 6px;
} */

.texto-inicio h1 {
    color: #000;
    text-align: center;
    font-size: clamp(24px, 6vw, 96px);
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 16px;
}

.texto-inicio h2 {
    color: #878A8F;
    text-align: center;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 300;
    /* max-width: 816px; */
    max-width: 400px;
    margin: 0 auto;
}

.rede-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    margin-top: 128px;
}

.instagram a,
.dribbble a {
    width: 20px;
    height: 20px;
}

/* Estilo das Redes Sociais */
.rede-social .instagram,
.rede-social .linkedin,
.rede-social .github,
.rede-social .behance,
.rede-social .dribbble {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid #E8E7EA;
}

.rede-social img {
    max-width: 100%;
    transition: transform 0.3s;
}

.instagram:hover img,
.linkedin:hover img,
.github:hover img,
.behance:hover img,
.dribbble:hover img {
    transform: scale(1.1);
}

#sobre {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    height: 1024px;
    background-color: #000;
    margin: 0 auto 32px;
}

.sobre-mim {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 12px;
}

.texto-sobre {
    max-width: 595px;
    color: white;
}

.texto-sobre h1 {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: bold;
    margin-bottom: 48px;
}

.texto-sobre p {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 300;
    margin-bottom: 61px;
}

.img-sobre img {
    border: 1px solid #242424;
    width: 100%;
}

.links-sobre {
    display: flex;
    gap: 36px;
    margin-bottom: 100px;
}

.links-sobre img {
    transition: transform 0.3s;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.links-sobre img:hover {
    transform: scale(1.1);
}

.curiosidades {
    display: flex;
    justify-content: space-between;
}

.curiosidades p {
    margin: 0;
}

.from {
    color: #5A5F63;
    font-size: 0.75rem !important;
    font-weight: 500;
}

.txt-sobre {
    color: white;
    font-size: 0.875rem !important;
    font-weight: 300;
}

#projetos {
    width: 100%;
    background-color: white;
    margin-bottom: 60px;
    max-width: 1216px;
    margin: 0 auto;
}

.titulo-projeto {
    height: 90px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.meus-projetos span {
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
}

.meus-projetos h1 {
    font-weight: bold;
    color: #000;
    font-size: 2rem;
}

.cards-projetos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1216px;
    margin-bottom: 52px;
}

.texto-site-lucas,
.texto-site-codeone,
.texto-site-sellmart {
    padding: 134px 50px;

}

.cards-projetos h1 {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 12px;
}

.cards-projetos h2 {
    font-size: 1rem;
    color: #000;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 16px;
}

/* .cards-projetos p {
    font-size: 1rem;
    color: #878A8F;
    font-weight: 300;
    line-height: 24px;
} */

.cards-projetos a {
    text-decoration: none;
    color: #878A8F;
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Geist Mono', sans-serif;
}

.text-container {
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-rotator-container {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.static-text {
    color: #878A8F;
    display: inline;
    margin-right: 4px;
}

.text-rotator {
    height: 1.2em;
    /* Altura fixa = 1 linha */
    overflow: hidden;
    /* Corta palavras extras */
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.word-list {
    position: relative;
    top: 0;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-list div {
    height: 1.2em;
    /* Altura fixa por palavra */
    line-height: 1.2em;
    /* Centralização vertical */
    font-weight: bold;
    white-space: nowrap;
    color: #000;
}

.texto-site-lucas p,
.texto-site-codeone p,
.texto-site-sellmart p {
    margin-bottom: 30px;
}

.minimal-btn {
    background: transparent;
    border: none;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
}

.minimal-btn:hover {
    transform: translateY(-4px);
    color: #5a5c61;
}

.site-lucas,
.site-codeone,
.site-sellmart {
    width: 100%;
    max-width: 1216px;
    /* height: 524px; */
    display: flex;
}

.site-lucas {
    border: 1px solid #f2f2f3;
    border-bottom: 0;
}

.site-codeone {
    border: 1px solid #f2f2f3;
    border-bottom: 0;
}

.site-sellmart {
    border: 1px solid #f2f2f3;
}

.texto-site-lucas,
.texto-site-codeone,
.texto-site-sellmart {
    width: 488px;
    border-right: 1px solid #f2f2f3;
}

.img-site-lucas,
.img-site-codeone,
.img-site-sellmart {
    width: 728px;
    height: 524px;
    max-width: 100%;
    background-image: url(/img/background-riscos.webp);
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    position: relative;
    
}

.site-lucas-img img,
.site-codeone-img img,
.site-sellmart-img img {
    display: block;
    height: 429px;
    transition: all 0.3s ease;
}

.site-lucas-img,
.site-codeone-img,
.site-sellmart-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

.image-hover-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    /* background: rgba(255, 255, 255, 0.9); */
    background-color: #121212;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.image-hover-button a {
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.button-arrow {
    transition: transform 0.3s ease;
}

/* Efeitos no hover */
.site-lucas-img:hover img,
.site-codeone-img:hover img,
.site-sellmart-img:hover img {
    filter: blur(2px) brightness(1);
}

.site-lucas-img:hover .image-overlay,
.site-codeone-img:hover .image-overlay,
.site-sellmart-img:hover .image-overlay {
    opacity: 1;
}

.site-lucas-img:hover .image-hover-button,
.site-codeone-img:hover .image-hover-button,
.site-sellmart-img:hover .image-hover-button {
    opacity: 1;
}

.image-hover-button:hover {
    background: #248AFF;
    color: #fff;
}

.image-hover-button:hover .button-arrow {
    transform: translateX(4px);
}

.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45px;
    background-color: #fff;
    color: #878A8F;
    border-top: 1px solid #f2f2f3;
}

.background-footer {
    /* background-image: url(/img/background_footer.webp);
    background-repeat: no-repeat;
    background-position: center center; */
    background-color: #010308;
    border-radius: 32px 32px 0 0;
    width: 100%;
    height: 352px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.texto-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 32px;

}

.texto-footer h1 {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
}

.texto-footer button {
    width: 183px;
    height: 48px;
    background-color: #F2F2F3;
    color: #010308;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.54px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
}

.footer {
    width: 100%;
    max-width: 1920px;
    height: 104px;
    background-color: #010308;
    color: #fff;
}

.footer span {
    font-size: 12px;
}

.links-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.links-footer img {
    transition: transform 0.3s;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.links-footer img:hover {
    transform: scale(1.1);
}

@media (max-width: 1440px) {
    #sobre {
        padding: 0 104px;
    }
}

@media (max-width: 1312px) {
    #sobre {
        flex-direction: column;
    }

    .sobre-mim {
        align-items: center;
    }
}

@media (max-width: 1216px) {

    nav {
        padding: 0 104px;
    }

    .titulo-projeto {
        padding: 0 104px;
    }

    .cards-projetos {
        gap: 16px;
    }

    .cards-projetos h1 {
        font-size: 1.125rem;
        margin-bottom: 0;
    }

    .site-lucas,
    .site-codeone,
    .site-sellmart {
        flex-direction: column;
        justify-content: center;
        width: auto;
        border-bottom: 1px solid #f2f2f3;
    }

    .texto-site-lucas,
    .texto-site-codeone,
    .texto-site-sellmart {
        border-bottom: 1px solid #f2f2f3;
        border-right: none;
        padding: 0 50px;
        height: 45px;
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .texto-site-lucas p,
    .texto-site-codeone p,
    .texto-site-sellmart p {
        display: none;
    }

    .texto-site-lucas h2,
    .texto-site-codeone h2,
    .texto-site-sellmart h2 {
        display: none;
    }


}

@media (max-width: 1000px) {
    .img-sobre {
        display: none;
    }
}

@media (max-width: 830px) {
    nav {
        padding: 0 104px;
    }

    nav ul,
    .btn-header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .img-sobre img {
        display: none;
    }

    #sobre {
        padding: 0 24px;
    }

    .img-sobre img {
        display: none;
    }

}

@media (max-width: 768px) {
    nav {
        padding: 0 86px;
    }

    #projetos {
        padding: 0 24px;
    }

    .titulo-projeto {
        padding: 0 32px;
    }

    .img-site-lucas,
    .img-site-codeone,
    .img-site-sellmart {
        width: clamp(390px, 85vw, 728px);
        height: auto;
    }

    .img-site-lucas img,
    .img-site-codeone img,
    .img-site-sellmart img {
        width: clamp(342px, 85vw, 628px);
        height: auto;
    }

}

@media (max-width: 430px) {    
    header {
        height: 60px;
    }

    nav {
        padding: 0 20px;
    }

    .foto-cabecalho img {
        width: 32px;
        height: 32px;
    }

    .background-grid {
        display: none;
    }

    .inicio {
        margin: 154px 0 64px;
        padding: 0 20px;
    }

    .rede-social {
        margin-top: 64px;
    }

    #sobre {
        padding: 0 20px;
        height: 424px;
    }

    .sobre-mim {
        gap: 0;
    }

    .img-sobre {
        display: none;
    }

    .texto-sobre h1 {
        margin-bottom: 29px;
    }

    .texto-sobre > p {
        margin-bottom: 32px;
    }

    .from {
        margin-bottom: none;
    }

    .links-sobre {
        display: none;
    }

    .img-site-lucas,
    .img-site-codeone,
    .img-site-sellmart {
        width: 390px;
        height: 302px;
    }

    .img-site-lucas img,
    .img-site-codeone img,
    .img-site-sellmart img {
        width: 342px;
        height: 233px;
    }


    .text-container,
    .static-text,
    .word-list div {
        font-size: 12px;
    }

    .titulo-projeto {
        padding: 0;
    }

    /* Ajuste fino para evitar sobreposição */
    .text-rotator,
    .word-list div {
        height: 1.2em;
        line-height: 1.2em;
    }

    .texto-site-lucas, .texto-site-codeone, .texto-site-sellmart {
        padding: 0 24px;
    }

    #contato {
        border-radius: 16px 16px 0 0;
        height: 104px;
    }

    .texto-footer h1 {
        font-size: 32px;
    }

    .footer {
        height: 60px;
    }

    .links-footer a {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 393px) {
    .site-lucas, .site-codeone, .site-sellmart {
        width: 100%;
    }

    .site-lucas img, .site-codeone img, .site-sellmart img {
        width: 100%;
        height: auto;
    }

    .curiosidades {
        display: none;
    }

    .texto-site-lucas h1, .texto-site-codeone h1, .texto-site-sellmart h1 {
        font-size: 1rem;
    }

    .texto-site-lucas a, .texto-site-codeone a, .texto-site-sellmart a {
        font-size: 0.875rem;
    }

    .text-rotator-container {
        flex-direction: column;
    }

    .img-site-lucas, .img-site-codeone, .img-site-sellmart {
        height: auto;
    }

    .site-lucas-img:hover img, .site-codeone-img:hover img, .site-sellmart-img:hover img {
        filter: none;
    }

    .image-hover-button {
        display: none;
    }
}