/* Reset e configurações base */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

/* Container principal */

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

/* Header */

.header {
    background-color: #1e1e1e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4CAF50;
}

/* Botão de alternância de idioma */

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    border-color: #555;
    background-color: #2a2a2a;
}

.lang-option {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-option.active {
    color: #4CAF50;
    font-weight: 600;
}

.lang-separator {
    margin: 0 0.5rem;
    color: #666;
}

/* Navegação */

.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #4CAF50;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Seções principais */

.section {
    padding: 6rem 0;
    margin-top: 80px;
}

.section:first-of-type {
    margin-top: 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #e0e0e0;
    font-weight: 600;
}

/* Seção Sobre */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #b0b0b0;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #333;
}

/* Botão de Currículo */

.cv-btn {
    text-decoration: none;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    border: none;
    border-radius: 200px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cv-btn:hover {
    background-color: #45a049;
}

/* Seção Experiência */

.xp {
    background-color: #1e1e1e;
}

/* Seção Formação */

.education-card {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.education-card p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.education-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.education-link:hover {
    color: #66BB6A;
}

/* Seção Projetos */

.projects {
    background-color: #1e1e1e;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.project-card p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: #333;
    color: #e0e0e0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #66BB6A;
}

/* Seção Habilidades */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #4CAF50;
    font-weight: 600;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 0.5rem 0;
    color: #b0b0b0;
    border-bottom: 1px solid #333;
    transition: color 0.3s ease;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:hover {
    color: #e0e0e0;
}

/* Seção Contato */

.contact {
    background-color: #1e1e1e;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

.success-message {
    display: none;
    background-color: #2e7d32;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
}

.success-message.show {
    display: block;
}

/* Footer */

.footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #888;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #888;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
}

/* Responsividade */

@media (max-width: 768px) {

    .container {
        padding: 0 15px;
    }

    .logo {
        order: 1;
        white-space: nowrap;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    .language-toggle {
        position: static;
        order: 2;
        margin-left: 0;
        margin-right: 1rem;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .nav-toggle {
        order: 2;
        margin-left: auto;
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        border-top: 1px solid #333;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 0.5rem 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Animações de entrada */

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

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

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de foco para acessibilidade */

button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Melhorias de contraste */

::selection {
    background-color: #4CAF50;
    color: white;
}