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

body {
    font-family: 'Exo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .company, .project-title, .role {
    font-family: 'Share Tech Mono', sans-serif;
    }

body.menu-open {
    overflow: hidden;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 50px;
    z-index: 1003;
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.lang-option {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9em;
    position: relative;
    color: #808080;
}

.lang-option.active {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.lang-option:not(.active):hover {
    color: #00ff88;
}

[data-lang], [data-lang-inline] {
    display: none;
}

body.lang-pt [data-lang="pt"],
body.lang-pt [data-lang-inline="pt"] {
    display: initial;
}

body.lang-en [data-lang="en"],
body.lang-en [data-lang-inline="en"] {
    display: initial;
}

body.lang-pt .experience-grid[data-lang="pt"],
body.lang-en .experience-grid[data-lang="en"],
body.lang-pt .skills-container[data-lang="pt"],
body.lang-en .skills-container[data-lang="en"],
body.lang-pt .cert-grid[data-lang="pt"],
body.lang-en .cert-grid[data-lang="en"],
body.lang-pt .project-grid,
body.lang-en .project-grid {
    display: grid;
}

body.lang-pt .contact-links[data-lang="pt"],
body.lang-en .contact-links[data-lang="en"] {
    display: flex;
}

#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bio-circuit {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 136, 0.05) 25%, rgba(0, 255, 136, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.05) 75%, rgba(0, 255, 136, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 136, 0.05) 25%, rgba(0, 255, 136, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.05) 75%, rgba(0, 255, 136, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
    animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding: 10px 0;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.6), transparent);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

nav a:hover::before {
    width: 100%;
    height: 100%;
}

nav a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

#menu-toggle, #menu-close {
    display: none; 
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-robot {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.bio-robot svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 204, 255, 0.8)); }
}

.subtitle {
    font-size: 1.8em;
    color: #00ff88;
    margin-bottom: 30px;
    opacity: 0.9;
}

.bio-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #b0b0b0;
    min-height: 100px; 
}

section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 2px;
}

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

.exp-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00ccff, #00ff88);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

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

.exp-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 20, 20, 0.95);
}

.company {
    color: #00ff88;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.role {
    color: #00ccff;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.period {
    color: #808080;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.description {
    color: #b0b0b0;
    line-height: 1.6;
}

/* ----- ESTILOS PARA PROJETOS ----- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.project-title {
    color: #00ff88;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.project-description {
    color: #b0b0b0;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-links a {
    color: #00ccff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.project-links a:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* ----- ESTILOS PARA YOUTUBE ----- */
.youtube-section {
    text-align: center;
    padding: 80px 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 255, 0.05));
    border-radius: 20px;
    margin: 50px auto;
}

.youtube-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.youtube-text {
    flex: 1;
    max-width: 500px;
    text-align: center; /* Alterado de 'left' para 'center' */
}

.youtube-text p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 30px;
}

.youtube-button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #ff0000;
    border-radius: 30px;
    color: #ff0000;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 1.1em;
}

.youtube-button:hover {
    background: #ff0000;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.youtube-visual {
    flex: 0 0 180px;
    max-width: 180px;
}

.youtube-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover; 
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.youtube-visual img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    border-color: #ff0000;
}

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

.skill-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-item:hover {
    transform: scale(1.05);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.skill-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #00ff88;
}

.education-timeline {
    position: relative;
    padding: 20px 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff88, #00ccff);
    transform: translateX(-50%);
}

.edu-item {
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.edu-content {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 25px;
    width: 45%;
    transition: all 0.3s;
}

.edu-item:nth-child(odd) .edu-content {
    margin-left: auto;
}

.edu-content:hover {
    transform: scale(1.02);
    border-color: #00ff88;
}

.edu-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cert-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-item::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00ff88;
    font-size: 1.5em;
    opacity: 0.7;
}

.cert-item:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.contact {
    text-align: center;
    padding: 80px 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 255, 0.05));
    border-radius: 20px;
    margin: 50px auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-links a {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #00ff88;
    border-radius: 30px;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.contact-links a:hover {
    background: #00ff88;
    color: #0a0a0a;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.dna-strand {
    position: fixed;
    width: 2px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, #00ff88, transparent);
    opacity: 0.3;
    animation: dnaFloat 10s infinite linear;
    z-index: -2;
}

.dna-strand:nth-child(1) { left: 10%; animation-delay: 0s; }
.dna-strand:nth-child(2) { left: 30%; animation-delay: 2s; }
.dna-strand:nth-child(3) { left: 70%; animation-delay: 4s; }
.dna-strand:nth-child(4) { left: 90%; animation-delay: 6s; }

@keyframes dnaFloat {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

@media (max-width: 768px) {
    .language-switcher {
        right: 75px;
        top: 20px;
    }
    
    nav {
        padding: 0;
        background: none;
        backdrop-filter: none;
        border-bottom: none;
    }

    #menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        position: fixed;
        top: 25px;
        right: 25px;
    }

    #menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #00ff88;
        border-radius: 3px;
        transition: all 0.3s linear;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        
        padding: 0;
        border-radius: 0;
        border-bottom: none;
        
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    body.menu-open nav ul {
        transform: translateX(0);
    }

    nav ul a {
        font-size: 1.8em;
        font-weight: 500;
        padding: 10px 30px;
    }

    #menu-close {
        display: block;
        position: absolute;
        top: 15px;
        left: 25px;
        color: #00ff88;
        font-size: 3em;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
    }

    h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.3em;
    }

    section {
        padding: 60px 20px;
    }

    .education-timeline::before {
        left: 20px;
    }

    .edu-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .edu-dot {
        left: 20px;
    }

    .youtube-content {
        flex-direction: column;
    }
    /* A regra para centralizar em mobile já existia, agora o desktop também centraliza. */
    .youtube-text {
        text-align: center;
    }
}