/* ==================== RESET E VARIÁVEIS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00b4d8;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* ==================== NAVEGAÇÃO ==================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0.25rem;
    background-color: var(--bg-light);
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== MAIN CONTENT ==================== */
main {
    margin-top: 80px;
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    object-fit: cover;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero .title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ==================== SEÇÕES ==================== */
section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* ==================== ABOUT ==================== */
#about {
    padding: 3rem 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-sm);
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
}

/* ==================== EDUCAÇÃO ==================== */
.education-item {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.education-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.education-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.education-institution {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== EXPERIÊNCIA ==================== */
.experience-timeline {
    position: relative;
    padding: 2rem 0;
}

.experience-item {
    background-color: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.experience-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 2.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid var(--bg-light);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-position {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.experience-period {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.experience-company {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.experience-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

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

.skill-category {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ==================== INFORMAÇÕES ADICIONAIS ==================== */
.additional-info {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 4rem;
}

.info-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

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

.soft-skill-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.soft-skill-item:hover {
    border-color: var(--primary-color);
    background-color: white;
}

.soft-skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.soft-skill-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================== RODAPÉ ==================== */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .logo {
        font-size: 1rem;
    }

    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .title {
        font-size: 1.2rem;
    }

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

    .hero-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .education-header,
    .experience-header {
        flex-direction: column;
    }

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

    .soft-skills {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 4rem 2rem;
    }

    #about {
        padding: 2rem;
    }

    .experience-item {
        padding: 1.5rem;
        padding-left: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .contact-info {
        gap: 0.75rem;
        flex-direction: column;
    }

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

    .language-selector {
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .nav-right {
        gap: 0.5rem;
    }
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== UTILITÁRIOS ==================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
