/* ==========================================================================
   1. VARIÁVEIS E DEFINIÇÕES GERAIS
   ========================================================================== */
:root {
    --bg-color: #0b0f1a;
    --card-bg: rgba(30, 41, 59, 0.4); 
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #f59e0b; 
    --accent-blue: #38bdf8;  
    --accent-linkedin: #0077b5;
    --glass: rgba(11, 15, 26, 0.9);
    --container-width: 1100px;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(to bottom, rgba(11, 15, 26, 0.92), rgba(11, 15, 26, 0.98)),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Garante que fique atrás de ícones e textos */
  background-color: transparent; /* Permite que a cor do seu site apareça */
  pointer-events: none; /* Evita que o efeito bloqueie cliques em botões */
}

/* Opcional: Melhora o contraste das letras sobre o efeito */
body {
  position: relative;
  z-index: 1;
}
/* ==========================================================================
   2. HEADER & NAVEGAÇÃO
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 20px; 
}

.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span { color: var(--accent-color); text-shadow: 0 0 15px var(--accent-color); }

.menu { display: flex; list-style: none; gap: 25px; }
.menu a { 
    text-decoration: none; 
    color: var(--text-secondary); 
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    transition: 0.3s;
    text-transform: uppercase;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.5s ease;
}
.menu a:hover::after { width: 100%; }
.menu a:hover { color: var(--accent-blue); text-shadow: 0 0 8px var(--accent-blue); }

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero { padding: 180px 20px 100px; text-align: center; }

h1 { 
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem); 
    margin: 30px 0; 
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h1 .highlight { color: var(--accent-blue); text-shadow: 0 0 25px rgba(56, 189, 248, 0.4); }

.hover-char {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}
.hover-char:hover {
    color: var(--accent-color);
    transform: scale(1.02);
    text-shadow: 0 0 20px var(--accent-color);
    letter-spacing: 2px;
}

.hero p { 
    max-width: 700px; 
    margin: 0 auto; 
    font-size: 1.1rem; 
    color: var(--text-secondary);
}

/* BADGE & BOTÕES */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    color: #22c55e;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.badge-tech:hover { 
    transform: scale(1.05) translateY(-2px); 
    background: rgba(34, 197, 94, 0.15); 
    border-color: #22c55e;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
}

.glow-point {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 40px; }
.btn-tech {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--text-primary); color: #000; }
.btn-primary:hover { background: var(--accent-color); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2); }

/* ==========================================================================
   4. ESTRUTURA DE SEÇÕES E TÍTULOS
   ========================================================================== */
.section-spacer { padding: 80px 0; }

.section-title { 
    font-family: 'Orbitron', sans-serif; 
    margin-bottom: 25px;
    color: var(--accent-blue); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    position: relative; 
    display: block; 
    text-align: center;
    width: 100%;
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 2px; 
    background: var(--accent-blue); 
    box-shadow: 0 0 10px var(--accent-blue); 
}

.section-header-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 15px;
}

/* ==========================================================================
   5. CARROSSEIS (FORMAÇÃO E PROJETOS)
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.cert-wrapper, .projects-wrapper, .testimonials-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.cert-track, .projects-track, .testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* CARDS FORMAÇÃO */
.cert-card {
    min-width: calc(33.333% - 14px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 40px 25px;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
}

.cert-card:hover::before { opacity: 1; }

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-icon { transform: scale(1.2) rotate(5deg); }

.cert-card h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
}

.institution {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cert-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* CARDS PROJETOS */
.repo-card {
    min-width: calc(33.333% - 14px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.1);
    padding: 35px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    transition: height 0.4s ease;
}

.repo-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.repo-card:hover::before { height: 100%; }

.repo-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.repo-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

.repo-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.repo-card:hover .repo-link { gap: 15px; color: #fff; }

/* PROJETOS COMBO */
.repo-card.combo .combo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.repo-card.combo .combo-links a {
    text-decoration: none;
    font-size: 0.7rem;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-blue);
    border-radius: 4px;
    transition: 0.3s;
    font-weight: bold;
}

/* ==========================================================================
   6. SEÇÃO TECNOLOGIAS (TESTIMONIALS)
   ========================================================================== */
.testimonials { padding: 100px 0; background: rgba(255,255,255,0.02); }

.testimonial-card { 
    min-width: 100%; 
    height: 520px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px; 
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.1); 
    backdrop-filter: blur(15px); 
    border-radius: 24px;
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}
.tech-stack-header {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #00d4ff; /* Azul Ciano Tech */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.tech-stack-header::before {
    content: "";
    width: 4px;
    height: 18px;
    background: #00d4ff;
    margin-right: 12px;
    box-shadow: 0 0 8px #00d4ff;
}

.tech-icons-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    justify-items: center;
    width: 100%;
    max-width: 500px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.tech-item span {
    font-family: 'Inter', sans-serif; /* Fonte limpa e moderna */
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0a0b0; /* Cinza azulado */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: color 0.3s ease;
}

.tech-item:hover img { 
    transform: scale(1.25) translateY(-5px); 
    filter: drop-shadow(0 0 12px var(--accent-blue)); 
}

.tech-item:hover span {
    color: #ffffff;
}

.quality-list-alt { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    width: 100%;
    max-width: 650px;
    list-style: none;
}

.quality-list-alt li { 
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    padding: 18px; 
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.quality-list-alt li::before {
    content: "◈"; /* Detalhe tecnológico */
    color: #00d4ff;
    margin-right: 12px;
    font-size: 0.7rem;
}
/* ==========================================================================
   7. CONTROLES DO SLIDER
   ========================================================================== */
.slider-controls { display: flex; justify-content: center; gap: 40px; margin-top: 50px; }

.nav-arrow, .prev-btn, .next-btn {
    background: rgba(11, 15, 26, 0.6);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover, .prev-btn:hover, .next-btn:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 15px var(--accent-blue);
}

/* ==========================================================================
   8. FOOTER & CONTATO
   ========================================================================== */
.footer {
    padding: 120px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "CONTATOS";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: 20px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(56, 191, 248, 0.048);
    z-index: 0;
    pointer-events: none;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.contact-icons img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.7) grayscale(0.3);
}

.contact-icons a:hover img {
    transform: translateY(-10px) scale(1.2);
    filter: brightness(1) grayscale(0) drop-shadow(0 0 15px var(--accent-blue));
}

/* ==========================================================================
   9. ESTILIZAÇÃO AVANÇADA SOBRE MIM
   ========================================================================== */
.about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px !important;
    margin-bottom: 120px; /* Espaço extra para a próxima sessão */
}

.about-lead {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-text-terminal {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.1);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Efeito de destaque nas métricas */
.tech-highlight {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Palavras Interativas (Tech-Words) */
.tech-word {
    color: var(--accent-blue);
    cursor: help;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
}

.tech-word:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
}

/* Tooltip tecnológico (opcional, aparece ao passar o mouse) */
.tech-word::after {
    content: attr(data-info);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--accent-blue);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tech-word:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.about-footer-line {
    margin-top: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0.6;
}
#sobre {
    /* Gradiente sutil para dar profundidade ao canvas */
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.2) 0%, transparent 70%);
}

.about-text-terminal {
    /* Aumentar um pouco o blur para destacar as partículas passando atrás */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   10. ANIMAÇÃO MÁQUINA DE ESCREVER
   ========================================================================== */
.typewriter {
    display: inline-block;
}

.type-text {
    position: relative;
    white-space: nowrap; /* Garante que o texto não quebre durante a digitação */
    border-right: 3px solid var(--accent-color); /* O cursor piscante */
    width: 0;
    overflow: hidden; /* Esconde o texto que ainda não foi "digitado" */
    display: inline-block;
    vertical-align: bottom;
    animation: 
        typing 3.5s steps(30, end) forwards,
        blink-caret 0.75s step-end infinite;
    animation-delay: 1s; /* Espera o usuário rolar ou a página carregar */
}

/* Animação para "escrever" o texto */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Animação para o cursor piscar */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

/* ==========================================================================
   11. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .cert-card, .repo-card { min-width: calc(50% - 10px); }
}

@media (max-width: 768px) {
    .menu { display: none; }
    .nav { justify-content: center; }
    .hero { padding: 120px 20px 60px; }
    .section-spacer { padding: 50px 0; }
    
    .testimonial-card { height: auto; min-height: 500px; padding: 40px 20px; }
    .tech-icons-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .quality-list-alt { grid-template-columns: 1fr; }
    
    .footer::before { letter-spacing: 10px; font-size: 4rem; opacity: 0.1; }
    .contact-icons { gap: 25px; flex-wrap: wrap; }
    .contact-icons img { width: 35px; }
}

@media (max-width: 480px) {
    .cert-card, .repo-card { min-width: 100%; }
    .btns { flex-direction: column; width: 100%; }
    .btn-tech { width: 100%; justify-content: center; }
    .section-header-flex .slider-controls { gap: 20px; }
}

@media (max-width: 768px) {
    .about-text-terminal {
        padding: 25px 15px;
    }
    .about-lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .type-text {
        white-space: normal; /* Permite quebra se o texto for muito longo no mobile */
        border-right: none;
        width: auto;
        animation: fade-in 2s ease forwards; /* Fallback simples para telas muito pequenas */
    }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}