@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* Importa fonte Poppins com vários pesos */

*{
    /* Reset universal: remove margins, paddings e defaults do browser */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%; /* 1rem = 10px, facilita cálculos */
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Evita barra horizontal */
    background-color: black;
    color: white;
    padding-top: 80px;  /* Espaço pro header fixo */
}

/* Header fixo no topo da página */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: #000;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid #333;
    transition: transform 0.3s ease; /* Pro hide on scroll */
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent; /* Underline effect */
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

section{
    min-height: 60vh;
    padding: 5rem 9% 5rem;
}

.home{
    /* Hero section full viewport menos header */
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vh;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* Classe reutilizável pros botões */
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

/* Texto animado por JavaScript */
.home-content .typing-text {
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1.6rem;
    display: block;
    min-width: 0;
    min-height: 0;
}

.typing-text span {
    position: relative;
    display: inline;
    color: #b74b4b;
    overflow-wrap: anywhere;
}

/* Cursor acompanhando o final do texto */
/* Cursor visível e fixo durante a digitação e a exclusão */
#typing-role::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 0.15em;
    vertical-align: -0.05em;
    background-color: currentColor;
    opacity: 1;
    animation: none;
}

/* Pisca somente enquanto a frase completa está em pausa */
#typing-role.is-paused::after {
    animation: typing-cursor 0.8s step-end infinite;
}

@keyframes typing-cursor {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Tablet: reduz gap da home */
@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

/* Mobile: stack vertical */
@media(max-width:955px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

section h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #b74b4b;
}

section p {
    font-size: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 0 0;
}

/* Ícone menu (não usado, pro futuro?) */
#menu-icon {
    font-size: 3.6rem;
    color: #b74b4b;
    display: none;
    cursor: pointer;
}

/* Hambúrguer menu escondido desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Animação do X quando ativo */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile completo: hambúrguer + menu lateral */
@media (max-width: 955px) {
    /* Mostra o botão hambúrguer */
    .hamburger {
        display: block;
        z-index: 1001; /* Acima de tudo */
    }

    /* Header ajustado mobile */
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 5%;
        height: 80px; /* Altura fixa */
    }

    /* Menu gaveta (slide from left) */
    .nav-menu {
        position: fixed;
        left: -100%; /* Escondido na esquerda */
        top: 80px; /* Abaixo do header */
        gap: 0;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 80px); /* Não ultrapassa tela */
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        padding-top: 4rem;
        display: flex;
        justify-content: flex-start;
        border-top: 1px solid #333;
    }

    /* Menu ativo desliza pra tela */
    .nav-menu.active {
        left: 0;
    }

    /* Estilo links no mobile menu */
    .nav-menu a {
        display: block;
        font-size: 2.4rem; /* Maior toque */
        margin: 2rem 0;
        background: transparent;
        border: none;
        color: white;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: #b74b4b;
        background: transparent;
        border: none;
    }
    
    /* Home compensa header fixo */
    .home {
        margin-top: 0; 
        padding-top: 10rem;
    }
}

section {
    scroll-margin-top: 100px;
}

@media (max-width: 955px) {
    .home-content .typing-text {
        font-size: 2.5rem;
    }
}