/* =============================================
   VARIÁVEIS GLOBAIS E RESET
   ============================================= */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --light: #ecf0f1;
    --dark: #1a252f;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilos gerais do corpo */
body {
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* =============================================
   ANIMAÇÕES
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scroll-animation {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-40%, -60%) rotate(5deg); }
    50% { transform: translate(-60%, -40%) rotate(-5deg); }
    75% { transform: translate(-40%, -50%) rotate(5deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* =============================================
   HEADER (CABEÇALHO)
   ============================================= */

header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

/* Efeito de partículas no background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: all;
}

/* Overlay para melhor contraste */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.7) 100%);
    z-index: 2;
}

/* Elementos decorativos "Hello World" */
.hello-world {
    position: absolute;
    font-size: 15vw;
    font-weight: bold;
    opacity: 0.18;
    z-index: 1;
    animation: float 13s infinite linear;
    pointer-events: none;
    user-select: none;
    color: #4cc9f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    
}


/* Conteúdo principal do header */
.hero-content {
    position: relative;
    z-index: 4;
    padding: 2rem;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #f72585, #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 1.5s ease;
}

/* Efeito de gradiente animado no título */
.title-gradient {
    background: linear-gradient(45deg, #f72585, #4cc9f0, #7209b7, #3a0ca3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

/* Tagline com efeito de digitação */
.tagline {
    font-style: italic;
    margin: 1rem auto;
    max-width: 600px;
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeIn 2s ease 0.5s forwards;
}

/* Container da foto de perfil */
.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #f72585, #4cc9f0);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.scroll-indicator:hover i {
    color: var(--secondary);
    transform: scale(1.2);
}

/* Efeito de mouse scroll */
.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

/* Degradé no final do header */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, var(--primary) 70%);
    z-index: 5;
}

/* =============================================
   NAVEGAÇÃO
   ============================================= */

nav {
    background: var(--dark);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

nav ul li a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    font-weight: 700;
}

/* =============================================
   SEÇÕES PRINCIPAIS
   ============================================= */

main {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Borda lateral animada */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f72585, #4cc9f0);
    transition: all 0.4s ease;
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

section:hover::before {
    width: 6px;
}

/* Estilos para títulos das seções */
h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), #f72585);
    transition: width 0.4s ease;
}

section:hover h2::after {
    width: 100%;
}

/* =============================================
   SEÇÃO DE HABILIDADES
   ============================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.skill-card:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

/* =============================================
   SEÇÃO DE IDIOMAS
   ============================================= */

#idiomas {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.language-container {
    max-width: 500px;
    margin: 0 auto;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.language-item:last-child {
    border-bottom: none;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-icon {
    font-size: 1.5rem;
}

.language-name {
    font-weight: 600;
    color: #2c3e50;
}

.language-level {
    display: flex;
    align-items: center;
    gap: 5px;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
}

.level-dot.active {
    background: #3498db;
}

.level-text {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Ícone no título */
#idiomas h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* =============================================
   SEÇÃO DE PROJETOS
   ============================================= */

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #f72585, #4cc9f0);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-content {
    padding: 2rem;
    position: relative;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.project-card:hover .project-content h3::after {
    width: 80px;
}

.tech-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.tech-tag:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =============================================
   TIMELINE DE EXPERIÊNCIA
   ============================================= */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary), #f72585);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    padding: 15px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    perspective: 1000px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 4px solid var(--secondary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    transition: all 0.4s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.2);
}

.timeline-content {
    text-align: left;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    top: 20px;
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.left .timeline-content::before {
    right: -10px;
}

.right .timeline-content::before {
    left: -10px;
}

.left {
    left: 0;
    padding-right: 60px;
    text-align: left;
}

.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

/* =============================================
   SEÇÃO DE CONTATO
   ============================================= */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.social-link i {
    transition: all 0.3s ease;
}

/* =============================================
   RODAPÉ
   ============================================= */

footer {
    background: linear-gradient(135deg, var(--dark), #16213e);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #f72585, #4cc9f0);
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary);
}

.contact-info a:hover::after {
    width: 100%;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =============================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ============================================= */

@media (max-width: 768px) {
    /* ========== CORREÇÕES GERAIS ========== */
    html {
        scroll-padding-top: 100px;
        scroll-behavior: smooth;
    }
    
    :target {
        scroll-margin-top: 70px;
    }
    
    /* ========== HEADER ========== */
    header {
        min-height: 70vh;
        padding: 3rem 1rem 6rem;
        position: relative;
    }
    
    .hello-world {
        font-size: 12vw;
        opacity: 0.1;
    }
    
    header h1 {
        font-size: 2rem;
        margin-top: 0.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin: 0.5rem auto 2rem;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    /* ========== MENU DE NAVEGAÇÃO CORRIGIDO ========== */
    nav {
        position: sticky;
        top: 0;
        background: var(--dark);
        z-index: 1000;
        padding: 0.8rem;
        box-shadow: 0 2px 15px rgba(0,0,0,0.3);
        background: rgba(26, 37, 47, 0.9);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
         transition: all 0.4s ease;
    }
    
    nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem 0.6rem;
        padding: 0.5rem 1rem;
        justify-items: center;
        align-items: center;
    }

    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 0.6rem 0.3rem;
        font-size: 0.88rem;
        text-align: center;
        border-radius: 8px;
        background-color: rgba(255,255,255,0.03);
        color: white;
        box-shadow: inset 0 0 0 0 rgba(52, 152, 219, 0.3);
        transition: all 0.3s ease;
    }
    
    /* REMOVIDO: seleção fixa do terceiro item */
    nav ul li:nth-child(3) a {
        color: white;
        border-bottom: 2px solid transparent;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background-color: rgba(52, 152, 219, 0.1);
        color: var(--secondary);
        box-shadow: inset 0 -2px 0 0 var(--secondary);
    }
    
    /* ========== SEÇÕES ========== */
    main {
        padding: 1.5rem;
    }
    
    section {
        scroll-margin-top: 100px;
        padding: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* ========== TIMELINE ========== */
    .timeline {
        margin: 2rem auto;
        padding: 0 25px;
    }
    
    .timeline::after {
        left: 21px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 12px;
        top: 25px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* ========== PROJETOS ========== */
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* ========== HABILIDADES ========== */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

