/* Definição de Cores e Variáveis */
:root {
    --navy: #004080;
    --royal-yellow: #FFBD1B;
    --black: #000000;
    --white: #ffffff;
    --grey-apple: #1d1d1fb0;
    --glass: rgba(0, 0, 128, 0.25);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at center, #001529 0%, #000000 100%);
    background-attachment: fixed; /* O fundo não rola, dando um efeito de profundidade */
}

/* --- Animação de Fundo (Global) --- */
.bg-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 128, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1; pointer-events: none;
    animation: pulse-bg 12s infinite alternate ease-in-out;
}

@keyframes pulse-bg {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.2) translate(-2%, 2%); opacity: 0.8; }
    100% { transform: scale(1.5) translate(2%, -2%); opacity: 1; }
}

/* --- Navegação Apple Style --- */
.apple-nav {
    position: fixed; top: 0; width: 100%; height: 48px;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000; border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1000px; margin: 0 auto; display: flex; 
    justify-content: space-between; align-items: center; height: 100%; padding: 0 20px;
}

.logo { color: var(--royal-yellow); font-weight: 700; text-decoration: none; font-size: 18px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 13px; opacity: 0.8; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--royal-yellow); }

.lang-switcher { display: flex; gap: 5px; }
.lang-switcher button {
    background: none; border: none; cursor: pointer; padding: 0; transition: 0.3s; display: flex; align-items: center;
}
.lang-switcher button img { width: 20px; border-radius: 2px; }

/* --- Hero Section (Cyberpunk/Matrix) --- */
.hero {
    position: relative; height: 80vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at center, var(--navy) 0%, var(--black) 80%);
    text-align: center; padding: 0 20px; overflow: hidden;
}

#matrixCanvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.2; pointer-events: none;
}

/* --- Desktop (Aumentando de 160px para 200px) --- */
.profile-container {
    width: 175px;  /* Ajuste aqui */
    height: 175px; /* Ajuste aqui */
    margin: 0 auto 30px;
    border-radius: 50%; 
    border: 4px solid var(--royal-yellow);
    box-shadow: 0 0 30px var(--navy); 
    overflow: hidden;
    animation: floating 3s ease-in-out infinite;
}

.profile-pic { width: 100%; height: 100%; object-fit: cover; }

.cyber-title { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; 
    letter-spacing: -2px; margin-bottom: 10px; text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.hero h2 { color: var(--royal-yellow); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 5px rgba(0,0,0,0.8); }

/* --- Botões Hero --- */
.btn-email {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--royal-yellow); color: var(--black);
    padding: 12px 35px; border-radius: 50px; font-weight: 700;
    text-decoration: none; margin-top: 20px; transition: 0.3s;
}
.btn-email:hover { transform: scale(1.05); }

.hero-socials {
    display: flex; justify-content: center; gap: 15px; margin-top: 25px; flex-wrap: wrap;
}

.btn-social {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; color: var(--white); border: none; cursor: pointer;
    transition: 0.3s;
}

.btn-linkedin { background-color: #0A66C2; }
.btn-linkedin:hover { background-color: #004182; transform: translateY(-3px); }

.btn-github { background-color: #24292e; }
.btn-github:hover { background-color: #000000; transform: translateY(-3px); }

.btn-discord { background-color: #5865F2; font-family: inherit; }
.btn-discord:hover { background-color: #4752C4; transform: translateY(-3px); }


/* --- Seções e Containers --- */
.section { padding: 100px 20px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1;}
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 50px; border-left: 5px solid var(--royal-yellow); padding-left: 20px; }

/* --- Sobre e Educação --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.edu-card { background: var(--grey-apple); padding: 30px; border-radius: 20px; border: 1px solid var(--glass); }
.edu-card h3 { color: var(--royal-yellow); margin-bottom: 20px; }

/* --- Timeline Profissional Alternada --- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; 
    width: 2px; background: var(--navy); transform: translateX(-50%);
}
.timeline-item { width: 50%; position: relative; margin-bottom: 40px; opacity: 0; transition: var(--transition); }
.timeline-item:nth-child(odd) { left: 0; padding-right: 40px; transform: translateX(-50px); }
.timeline-item:nth-child(even) { left: 50%; padding-left: 40px; transform: translateX(50px); }
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-item::after {
    content: ''; position: absolute; top: 20px; width: 16px; height: 16px;
    background: var(--royal-yellow); border-radius: 50%; border: 4px solid var(--black);
}
.timeline-item:nth-child(odd)::after { right: -10px; }
.timeline-item:nth-child(even)::after { left: -10px; }

.exp-card { background: var(--grey-apple); padding: 30px; border-radius: 24px; transition: 0.3s; }
.exp-card:hover { transform: scale(1.02); border: 1px solid var(--royal-yellow); box-shadow: 0 0 15px var(--glass); }
.exp-card h3 { font-size: 1.5rem; margin-bottom: 5px; }
.company-name { color: var(--royal-yellow); font-weight: 600; display: block; margin-bottom: 15px; }

/* --- Skills com Ícones --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.skills-category h3 { margin-bottom: 20px; color: var(--white); opacity: 0.9; }
.skill-card { 
    background: var(--grey-apple); padding: 20px; border-radius: 15px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    border-bottom: 3px solid var(--navy); transition: 0.3s;
}
.skill-card:hover { border-bottom-color: var(--royal-yellow); transform: translateY(-5px); }
.skill-card img { width: 50px; height: 50px; }

/* --- Footer --- */
footer { background: #0a0a0a; padding: 60px 20px; text-align: center; border-top: 1px solid var(--navy); position: relative; z-index: 1; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a, .discord-btn { color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.8; transition: 0.3s; }
.footer-links a:hover, .discord-btn:hover { opacity: 1; color: var(--royal-yellow); }
.discord-btn { background: none; border: none; cursor: pointer; font-family: inherit; }


/* --- Animações --- */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Hero Content Ajustado --- */
.hero-content { 
    position: relative; 
    z-index: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Container que agrupa Logo + Títulos */
.exp-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

/* Estilo da Logo Quadrada */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px; /* Bordas levemente arredondadas como no LinkedIn */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: white; /* Garante visibilidade se a logo tiver transparência */
    flex-shrink: 0; /* Impede a logo de amassar em telas menores */
}

.exp-info h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.exp-info .date {
    display: block;
    margin-bottom: 4px;
}

/* --- Responsividade Refatorada --- */
@media (max-width: 768px) {

    .company-logo {
        width: 50px;
        height: 50px;
    }
    .exp-info h3 {
        font-size: 1.1rem;
    }

    .hero {
        height: auto; /* Permite que o fundo cresça se o conteúdo for grande */
        min-height: 80vh; /* Garante que cubra a tela inteira */
        padding: 80px 20px 40px; /* Dá espaço para a navbar no topo */
    }

    #about.section {
        padding-top: 30px !important; /* Força a redução do espaço de entrada */
    }

    .hero-content {
        padding-top: 20px; /* Afasta a foto da navbar */
    }

    .section {
        padding: 40px 20px;
    }

    .profile-container {
        width: 175px;  /* Ajuste aqui */
        height: 175px; /* Ajuste aqui */
        margin-bottom: 20px;
    }

    .cyber-title { 
        font-size: 2.2rem; /* Menor para não empurrar o resto para baixo */
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-socials {
        gap: 10px; /* Compacta os botões sociais no mobile */
    }

    .btn-social {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Manutenção das outras regras mobile */
    .about-grid { grid-template-columns: 1fr; }
    .nav-links > a { display: none; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px !important; padding-right: 0 !important; left: 0 !important; transform: translateX(-20px) !important; }
    .timeline-item.visible { opacity: 1; transform: translateX(0) !important; }
    .timeline-item::after { left: 10px !important; right: auto !important; }
}