/* VARIÁVEIS E GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a64dff;
    --secondary-color: #e0e0e0;
    --background-dark: #0d0d0d;
    --background-light: #1a001a;
    --card-background: #1a1a1a;
    --text-color: #fff;
    --fade-duration: 1s;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, var(--background-dark), var(--background-light));
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

/* ANIMAÇÕES E EFEITOS ESPECIAIS */
/* Fundo estrelado */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Animação de entrada */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInSlideUp var(--fade-duration) ease-out forwards;
}

#about { animation-delay: 0.2s; }
#projects { animation-delay: 0.4s; }
#contact { animation-delay: 0.6s; }

/* NAVEGAÇÃO E MENU HAMBÚRGUER */
header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 5px 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Estilos do menu hambúrguer */
.hamburger-menu {
    display: none; /* Esconde o botão por padrão */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger-menu:focus {
    outline: none;
}

/* SEÇÕES E ELEMENTOS DA PÁGINA */
/* Seção de Início (Hero) */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.cta-button {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--text-color);
}

.cta-button.primary:hover {
    background: #8000ff;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Seção Sobre Mim */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-content {
    flex: 2;
}

.about-skills {
    flex: 1;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-item span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bar {
    background: #333;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #a64dff, #8000ff);
    height: 100%;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--text-color);
}

/* Seção de Projetos e Certificações */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.github-button {
    background: var(--card-background);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.github-button:hover {
    background: #333;
}

.projects-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.project-content {
    padding: 20px;
}

.project-tags {
    margin-top: 10px;
    margin-bottom: 15px;
}

.project-tags span {
    background: #333;
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.project-button {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.project-button.code {
    background: #282a36;
    color: #fff;
}

.project-button.code:hover {
    background: #44475a;
}

.project-button.live {
    background: var(--primary-color);
    color: var(--text-color);
}

.project-button.live:hover {
    background: #8000ff;
}

/* Seção de Contato */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.form-group input, .form-group textarea {
    background: #333;
    border: none;
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 20px;
    background: var(--background-dark);
    margin-top: 40px;
}

/* RESPONSIVIDADE (MOBILE) */
/* Estilos do menu hambúrguer */
.hamburger-menu {
    display: none; /* Esconde o botão por padrão */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger-menu:focus {
    outline: none;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-dark);
        padding-top: 100px;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}