* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    /* Adiciona comportamento de rolagem suave para todo o documento */
}

body {
    background: #0a0a0a;
    color: #fff;
}

.secao {
    padding: 100px 0;
    padding-left: 50px;
    scroll-margin-top: 70px;
    /* Adiciona margem para compensar o menu fixo */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    margin-left: 50px;
    position: sticky;
    /* Torna o cabeçalho fixo */
    top: 0;
    background-color: rgba(10, 10, 10, 0.9);
    /* Fundo com transparência */
    backdrop-filter: blur(10px);
}

ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #800080;
    transition: width 0.3s ease;

}

.nav-link:hover {
    color: #800080;
    text-decoration: none;


}

.nav-link:hover::after {
    width: 100%;
    text-decoration: none;

}

.principal {
    display: flex;
    align-items: center;
    margin-left: 30px;
    min-height: 85vh;
    scroll-margin-top: 70px;
    /* Adiciona margem para compensar o menu fixo */
}

.principal h1 {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -4px;
}

.principal h1 span {
    color: #800080;
}

.principal p {
    font-size: 20px;
    margin-bottom: 20px;
    max-width: 500px;
    color: #bbb;
    margin-bottom: 40px;
}

.botao {
    display: inline-block;
    padding: 15px 30px;
    background-color: #800080;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 15px;
    /* Adicionado para remover sublinhado */
}

.titulo-secao {
    font-size: 42px;
    margin-bottom: 60px;
    position: relative;
}

.titulo-secao::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 100px;
    height: 4px;
    background-color: #800080;
}

.grade-projetos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card-projeto {
    background-color: #161616;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-projeto:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(128, 0, 128, 0.2);
}

.img-projeto {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.info-projeto {
    padding: 20px;
}

.info-projeto h3 {
    margin-bottom: 10px;
}

.info-projeto p {
    color: #bbb;
    margin-bottom: 15px;
}

.info-projeto a {
    color: #800080;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
}

.img-sobre {
    height: 400px;
    background-color: transparent;
    /*      border-radius: 50%;
     box-shadow: rgba(128, 0, 128, 0.25) 0px 54px 55px, 
             rgba(128, 0, 128, 0.12) 0px -12px 30px, 
             rgba(128, 0, 128, 0.12) 0px 4px 6px, 
             rgba(128, 0, 128, 0.17) 0px 12px 13px, 
             rgba(128, 0, 128, 0.09) 0px -3px 5px;
 */
}

.conteudo-sobre h2 {
    margin-bottom: 30px;
}

.conteudo-sobre p {
    margin-bottom: 20px;
    color: #bbb;
}

.conteudo-sobre span {
    color: #800080;
    font-weight: 500;
}

.habilidades {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag-habilidades {
    background-color: rgba(128, 0, 128, 0.2);
    color: #800080;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.botoes-contato {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.botao-contato {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
    min-width: 160px;
    text-decoration: none;
    color: white;
}

.whatsapp {
    background-color: #25D366;
}

.email {
    background-color: #EA4335;
}

.linkedin {
    background-color: #0077B5;
}

.github {
    background-color: #333;
}

footer {
    padding: 20px 5%;
    text-align: center;
    border-top: 1px solid #222;
}

.efeito-cursor {
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
}

.efeito-cursor:hover {
    transform: translateY(-10px);
}

.cursor {
    pointer-events: none;
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: rgba(128, 0, 128, 0.5);
    z-index: 99;
    transform: translate(-50%, -50%);
}

img {
    max-width: 100%;
    height: auto;
}

/* ANIMAÇÃO DE DIGITAÇÃO */
#site-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#typewriter-text {
    font-size: 4.5rem;
    font-weight: bold;
    color: #800080;
    font-family: 'Courier Prime', monospace;
    text-shadow: 
        0 0 5px #800080,
        /* 0 0 10px #800080, */
        0 0 20px #800080;
}

.cursor {
    font-size: 4.5rem;
    color: #800080;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}


@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Garante que o conteúdo não seja clicável durante a animação */
#welcome-screen.active ~ #site-content {
    pointer-events: none;
}



@media (max-width: 768px) {

    header {
        padding: 20px;
        margin-left: 0;
    }

    ul {
        gap: 20px;
        justify-content: flex-start;
    }

    .principal h1 {
        font-size: 50px;
    }

    .secao {
        padding: 60px 20px;
    }

    .sobre {
        grid-template-columns: 1fr;
    }

    .img-sobre {
        height: auto;
    }
    .typewriter-line {
        font-size: 1.8rem;
        white-space: normal; /* Permite quebra de linha */
        text-align: center;
    }
    .typewriter-cursor {
        font-size: 1.8rem;
    }
    #typewriter-container {
        padding: 0 25px;
    }
    .typewriter-line {
        font-size: 1.8rem;
        white-space: normal; /* Permite quebra de linha */
        text-align: center;
    }
    .typewriter-cursor {
        font-size: 1.8rem;
    }
}


