:root {
    --primary-color: #0077B6; /* Deep Blue */
    --secondary-color: #00B4D8; /* Bright Cyan */
    --accent-color: #90BE6D; /* Professional Green */
    --text-color: #1f2937;
    --light-gray: #6b7280;
    --lighter-gray: #f3f4f6;
    --white: #ffffff;
    --bg-gradient: linear-gradient(90deg, #0077B6 0%, #00B4D8 100%);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9fafb;
    transition: background-color 0.3s, color 0.3s;
}

/* Tema escuro */
.dark-theme {
    --text-color: #f3f4f6;
    --light-gray: #9ca3af;
    --lighter-gray: #1f2937;
    --white: #111827;
    background-color: #0f172a;
}

/* Seções */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.8rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CABEÇALHO --- */
.header {
    background: var(--bg-gradient);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.profile span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

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

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    background: #ffffff;
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark-theme .hero {
    background: #111827;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: var(--bg-gradient);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.2);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    display: block;
}

.tag {
    background: var(--bg-gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-color);
}

.hero .highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid #e5e7eb;
}

.dark-theme .btn-secondary {
    border-color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- PROJETOS --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.dark-theme .project-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.project-header {
    background: rgba(79, 70, 229, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-theme .project-header {
    background: rgba(255, 255, 255, 0.03);
}

.project-header i.fa-folder {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.project-links a {
    color: var(--light-gray);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.project-content p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-gray);
}

.dark-theme .project-footer {
    background: rgba(255, 255, 255, 0.01);
}

.project-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

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

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

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

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

.skill-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.skill-item {
    background: rgba(0, 180, 216, 0.05);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.skill-item:hover {
    background: var(--bg-gradient);
    color: white;
    transform: scale(1.05);
}

.skill-item i {
    font-size: 0.8rem;
}

/* --- DOCUMENTOS E LISTAS --- */
.documentos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.documento-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 20px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--card-shadow);
    position: relative;
}

.documento-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.documento-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.2);
}

.documento-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.documento-content p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.documento-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.documento-tipo {
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.documento-data {
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- FORMAÇÕES --- */
.formacoes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formacao-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    gap: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.formacao-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.formacao-card:hover {
    transform: translateX(10px);
    box-shadow: var(--card-hover-shadow);
}

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

.formacao-icon {
    font-size: 2.2rem;
    background: var(--bg-gradient);
    color: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.formacao-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.formacao-instituicao {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.formacao-footer {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* --- CONTATO --- */
.contato-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

.contato-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--lighter-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    font-family: inherit;
    transition: all 0.3s;
}

.dark-theme .form-group input, .dark-theme .form-group textarea {
    background: #1f2937;
    border-color: #374151;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
    .contato-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .formacao-card {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        display: none; /* Menu hambúrguer seria ideal aqui */
    }
}
