/* --- 1. Importação da Fonte (Recomendado) --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;900&display=swap');

/*
=====================================================
✅ VARIÁVEIS E RESET BÁSICO
=====================================================
*/
:root {
    --primary-color: #00B4D8;
    /* Azul claro para modernidade */
    --secondary-color: #90E0EF;
    /* Azul ainda mais claro */
    --accent-color: #48CAE4;
    /* Azul de destaque */
    --text-color: #e0e0e0;
    /* Texto claro para fundo escuro */
    --bg-dark: #0A0A10;
    /* Fundo muito escuro para o 3D */
    --bg-light: #1A1A22;
    /* Fundo para seções claras */
    --bg-card: #22222A;
    --transition-speed: 0.3s;

    /* Variáveis ausentes usadas no código (adicionadas para evitar erros) */
    --card-background: var(--bg-card);
    --primary-color-dark: #0087A3;
    --text-color-light: #f5f5f5;
    --text-color-secondary: #ccc;
    --skill-width: 0%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/*
=====================================================
⚙️ ESTILOS GERAIS DE ESTRUTURA
=====================================================
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
    color: var(--text-color);
}

.bg-light {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    /* Títulos em cor de destaque */
}



/*
=====================================================
👨‍💻 SEÇÃO SOBRE MIM (ABOUT ME)
=====================================================
*/
.about-me {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    position: relative;
    /* Garante que o conteúdo fique acima do vídeo */
    z-index: 1;
}

.about-text {
    flex: 2;
    padding-right: 20px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(144, 224, 239, 0.4);
}

.about-me p {
    font-size: 1.1em;
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-me strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- ÍCONE/IMAGEM DE PERFIL --- */
.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px var(--accent-color);
    animation: pulseGlow 3s infinite alternate;
    background-color: var(--bg-card);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.5s;
}

.profile-image-container img:hover {
    filter: grayscale(0%) contrast(1.2);
}

/* Animação: Brilho Pulsante */
@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px var(--primary-color);
    }

    to {
        box-shadow: 0 0 30px var(--accent-color), 0 0 5px var(--primary-color);
    }
}

/* --- Card de Formação (Education) --- */
.education-card {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-color-dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.education-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-card h3 {
    font-size: 1.8em;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 10px;
}

.education-card p {
    font-size: 1em;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-bottom: 5px;
}

/* --- Cards de Missão e Visão --- */
.mission-vision {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.mv-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
    margin: .5rem !important;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-card h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-card p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 0;
}

/*
=====================================================
💻 SEÇÃO DE HABILIDADES (SKILLS)
=====================================================
*/
.skills-section h2 {
    color: var(--primary-color);
}

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

.skill-group {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    text-align: left;
    color: #ddd;
}

.skill-group:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-group h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.skill-bar-container p {
    color: #bbb;
}

.skill-bar {
    background: #444;
}

.skill-bar::before {
    content: '';
    display: block;
    height: 100%;
    background-color: var(--primary-color);
    width: var(--skill-width, 0%);
    transition: width 1.5s ease-out;
}
    .a-templete{
        border: 2px solid var(--primary-color) !important;
        padding: 10px 15px !important;
        height: 3rem;
    }
    .nav-links a{
        padding: 15px 0;
        height: 3rem;
    }
/*
=====================================================
💼 SEÇÃO DE PROJETOS (PROJECTS)
=====================================================
*/
.projects-section h2 {
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

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

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

/* Estilos para a imagem dentro do card */
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--primary-color-dark);
}

.card-content {
    padding: 20px;
    color: #ddd;
}

.card-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.tech-stack {
    margin: 15px 0;
}

.front-tag,
.back-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    font-size: 0.8em;
    border-radius: 4px;
    font-weight: 600;
}

.front-tag {
    background: #0077B630;
    color: var(--primary-color);
}

.back-tag {
    background: #FF980030;
    color: #FF9800;
}

.project-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.project-link:hover {
    text-decoration: underline;
}

/*
=====================================================
💬 SEÇÃO DE DEPOIMENTOS (TESTIMONIALS)
=====================================================
*/
.testimonials-section {
    background-color: var(--bg-dark);
}

.testimonials-section h2 {
    color: var(--primary-color);
}

.testimonial-carousel {
    background-color: var(--bg-card);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ddd;
}

.testimonial-card footer {
    color: #aaa;
}

/*
=====================================================
✉️ SEÇÃO DE CONTATO (CONTACT)
=====================================================
*/
.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding: 100px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-section p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #222;
    border-radius: 8px;
    background-color: #1a1a1f;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    outline: none;
}

.btn-contato{
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
   
/* Ícones sociais */
.social-links {
    margin-top: 40px;
}

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

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/*
=====================================================
📜 RODAPÉ (FOOTER)
=====================================================
*/
footer {
    background-color: var(--bg-dark);
    color: var(--text-color);
    text-align: center;
    padding: 30px 15px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

footer p {
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

footer i {
    color: var(--primary-color);
    animation: pulse 1.8s infinite;
    margin: 0 4px;
}

/* Efeito suave no ícone de coração */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

#hero-star-mobile {
    width: 100%;
    height: 100dvh;
    position: absolute;
    left: 0;
    margin-top: 0;
    z-index: 10000;
    display: none;
}

/*
=====================================================
📱 RESPONSIVIDADE (MEDIA QUERIES)
=====================================================
*/

/* --- Tablet / Telas Médias (max-width: 992px) --- */
@media (max-width: 992px) {

    #nav-links a{
        height: 3rem !important;
        border-bottom: 1px solid gray !important;
    }

    .a-templete{
        border-top: none !important;
        border-left: none !important;
    }

    #hero-star-mobile {
        width: 100%;
        height: 100dvh;
        position: absolute;
        left: 0;
        margin-top: 0;
        z-index: 10000;
        display: flex;
    }

    #hero-canvas {
        display: none;
        /* Oculta o canvas */
    }

    /* Opcional: Ocultar o contador e o tempo também, se eles estiverem em elementos separados */
    #game-ui {
        /* Se você tiver um container para sua UI de jogo */
        display: none;
    }

    #ship-counter,
    #time {
        /* Se eles estiverem soltos */
        display: none;
    }

    /* E quaisquer outros elementos da UI do jogo que não devam aparecer */
    #start-button,
    #restart-button,
    .gameOver,
    .mundoSalvo {
        display: none !important;
        /* !important pode ser necessário se houver outras regras */
    }

    #texto-info {
        display: block !important;
        /* Certifique-se que o texto de info ainda aparece, se houver */
        text-align: center;
        padding: 20px;
        color: var(--text-color-light);
    }

    #container-btn-game {
        /* Seção do contador/botão não exibida aqui */
        display: none;
    }

    /* --- GERAL --- */
    section {
        padding: 60px 0;
    }

    /* --- NAVEGAÇÃO --- */
    .navbar .container {
        flex-direction: row;
    }
    .navbar{
        height: 4rem;
    }
    .menu-toggle {
        display: flex !important;
        position: absolute;
        top: 1rem;
        left: 1rem;
    }

.nav-links  {
        /* Configuração inicial para o menu mobile (fechado) */
        position: absolute;
        top: 60px; /* Alinhe com a altura da sua navbar */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        flex-direction: column; /* Links em coluna */
        align-items: center; /* Centraliza links */
        max-height: 0; /* Começa fechado, sem altura visível */
        overflow: hidden; /* Esconde o conteúdo que excede o max-height */
        padding: 0; /* Começa sem padding interno */
        opacity: 0; /* Começa invisível */
        pointer-events: none; /* Desativa cliques quando invisível */
        transition: max-height 0.5s ease-out, opacity 0.4s ease-out, padding 0.5s ease-out;
    }

    .nav-links.active { /* Usei .active para corresponder ao seu JS */
        max-height: 700px; /* Altura máxima quando aberto (AJUSTE CONFORME NECESSÁRIO) */                        
        padding: 15px 0; /* Restaura o padding quando aberto */
        opacity: 1; /* Torna-o visível */
        pointer-events: auto; /* Ativa cliques */
      
    }

    .nav-links a {
        /* Estilos para os links dentro do menu mobile */
        text-decoration: none;
        color: #ddd;
        margin: 10px 0; /* Espaçamento vertical para links em mobile */
        font-size: 1.2em;
        width: 100%; /* Links ocupam toda a largura */
        text-align: left;
        padding-bottom: .5rem !important;
        padding-left: .5rem !important;
    }

    .nav-links a:hover {
        background-color: rgba(var(--primary-color-rgb), 0.1); 
    }
    /* --- HERO SECTION --- */
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }

    /* Ordem 1: Texto e Botões (Fica EM CIMA) */
    .hero-text-area {
        order: 1;
        text-align: center;
        max-width: 100%;
    }

    .hero-text-area h1 {
        font-size: 2.5em;
        text-align: center;
    }

    .subtitle {
        font-size: 1.2em;
        text-align: center;
    }

    .drag-info,
    .cta-group {
        text-align: center;
    }

    /* Ordem 2: Robô (Fica EMBAIXO) */
    .hero-visual-area {
        order: 2;
        min-height: 250px;
        width: 100%;
        margin-top: 40px;
        display: none;
        /* Robô deve estar ausente em telas menores */
    }

    /* --- GAME STATS --- */
    #container-btn-game {
        /* Seção do contador/botão não exibida aqui */
        display: none;
    }

    /* --- ABOUT ME --- */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .mission-vision {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .about-me h2 {
        font-size: 2.2em;
    }
}
 /* --- GERAL --- */
    .about-me {
        padding: 60px 0;
        border-top: 3px solid #00F6FF !important;
        border-bottom: 3px solid #00F6FF !important;
    }
/* --- Mobile / Telas Pequenas (max-width: 768px) --- */
@media (max-width: 768px) {

    /* --- GERAL --- */
    .about-me {
        padding: 60px 0;
        border-top: 3px solid #00F6FF !important;
    }

    /* --- HERO SECTION --- */
    .hero-text-area h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.0em;
    }

    /* --- ABOUT ME / IMAGEM --- */
    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    /* --- EDUCATION CARD --- */
    .education-card {
        padding: 20px;
    }

    .education-card h3 {
        font-size: 1.5em;
    }

    .education-card i {
        font-size: 2em;
    }
}

/* --- Mobile / Telas Muito Pequenas (max-width: 600px) --- */
@media (max-width: 600px) {
    footer {
        font-size: 0.85rem;
        padding: 25px 10px;
    }
}

/* --- ANIMAÇÕES AOS: Adicionando classes CSS para os efeitos --- */
.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}