/* Configurações Globais e Variáveis */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #080808; /* Preto profundo */
    --bg-color-alt: #121212; /* Cinza super escuro */
    --text-color: #f4f4f4;
    --main-color: #9d4edd; /* Roxo principal */
    --main-color-hover: #7b2cbf;
    --neon-glow: 0 0 15px rgba(157, 78, 221, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Reutilizável */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.section-title span {
    color: var(--main-color);
    text-shadow: var(--neon-glow);
}

section {
    padding: 100px 0;
}

/* Header / Navbar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 1000;
    transition: 0.4s;
}

header.sticky {
    padding: 15px 10%;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--main-color);
}

nav .nav-list {
    display: flex;
    list-style: none;
}

nav .nav-list li {
    margin-left: 35px;
}

nav .nav-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1rem;
}

nav .nav-list li a:hover {
    color: var(--main-color);
    text-shadow: var(--neon-glow);
}

/* Hero Section (Início) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative; /* ADICIONADO */
    overflow: hidden; /* ADICIONADO para esconder pontos que saem da tela */
    z-index: 1; /* ADICIONADO */
}

/* Novo código CSS para o Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Joga a teia para trás do texto */
    pointer-events: none; /* Evita que o canvas bloqueie cliques nos botões */
}

.hero-content h3 {
    font-size: 1.8rem;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-color);
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-content h2 span {
    color: var(--main-color);
    text-shadow: var(--neon-glow);
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--main-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin: 10px;
}

.btn.primary {
    background: var(--main-color);
    color: #fff;
    box-shadow: var(--neon-glow);
}

.btn.primary:hover {
    background: var(--main-color-hover);
    box-shadow: 0 0 25px rgba(123, 44, 191, 0.8);
    transform: translateY(-3px);
}

.btn.secondary {
    border: 2px solid var(--main-color);
    color: var(--main-color);
    background: transparent;
}

.btn.secondary:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* Sobre Mim */
.about {
    background: var(--bg-color-alt);
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #b3b3b3;
    font-size: 1.15rem;
}

.about-text p {
    margin-bottom: 20px;
}

/* Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-card {
    background: var(--bg-color-alt);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(157, 78, 221, 0.1);
    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
    border-color: var(--main-color);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 20px;
    transition: 0.4s;
}

.skill-card:hover i {
    transform: scale(1.1);
    text-shadow: var(--neon-glow);
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: #888;
}

/* Projetos */
.projects {
    background: var(--bg-color-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
    border-color: var(--main-color);
}

/* Gradients para simular imagens dos projetos */
.project-img {
    height: 220px;
}
.p1 { background: linear-gradient(135deg, #10002b, #3c096c); }
.p2 { background: linear-gradient(135deg, #240046, #7b2cbf); }
.p3 { background: linear-gradient(135deg, #0d0d0d, #5a189a); }

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.4rem;
}

.project-info p {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--main-color-hover);
    text-shadow: var(--neon-glow);
}

/* Contato */
.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info i {
    color: var(--main-color);
    margin-right: 15px;
    font-size: 1.4rem;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--bg-color-alt);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--main-color);
    text-decoration: none;
    margin: 0 12px;
    transition: 0.4s;
}

.social-links a:hover {
    background: var(--main-color);
    color: #fff;
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-8px);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #050505;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

/* Responsividade / Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }

    nav .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: #080808;
        border-left: 1px solid rgba(157, 78, 221, 0.2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }

    nav .nav-list.active {
        right: 0;
    }

    nav .nav-list li {
        margin: 25px 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
}