:root {
    --cor-menu-claro: #f4f4f4;
    --cor-menu-escuro: #0F1319;
    --cor-texto-claro: #4d4d4d;
    --cor-hover-claro: #5281e0;
    --cor-texto-escuro: #e0e0e0;
    --cor-hover-escuro: #5281e0;
    --margem-lateral: 20%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #222a39;
    padding-top: 60px;
    transition: all 0.3s ease;
}

/* Menu */
.menu-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--margem-lateral);
    background-color: var(--cor-menu-claro);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cor-texto-claro);
    margin-right: auto;
}

.menu-itens {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.menu-itens a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-itens a:hover {
    color: var(--cor-texto-claro);
}

.menu-itens a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cor-hover-claro);
    transition: width 0.3s ease;
}

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

#botao-tema {
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--cor-texto-claro);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 2rem;
}

#botao-tema:hover {
    transform: scale(1.1);
    color: var(--cor-hover-claro);
}

/* Seção Hero */
.hero {
    padding: 4rem var(--margem-lateral);
    margin-top: 60px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex-shrink: 0;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #5281e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: #5281e0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.hero-expertise {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-contact-button {
    background: none;
    color: #5281e0;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-contact-button:hover {
    color: #3a6bc8;
    transform: translateX(5px);
}

.hero-contact-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.hero-contact-button:hover i {
    transform: translateX(3px);
}

/* Seção Expertise */
.expertise {
    padding: 4rem var(--margem-lateral);
    background-color: #f8f9fa;
}

.expertise-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-title {
    font-size: 2rem;
    color: #222a39;
    margin-bottom: 1rem;
}

.expertise-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    font-size: 1.8rem;
    color: #5281e0;
    margin-bottom: 1rem;
}

.expertise-item h3 {
    font-size: 1.2rem;
    color: #222a39;
    margin-bottom: 1rem;
}

.expertise-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Seção Experiência */
.experiencia {
    padding: 4rem var(--margem-lateral);
    background-color: white;
}

.experiencia-header {
    text-align: center;
    margin-bottom: 3rem;
}

.experiencia-title {
    font-size: 2rem;
    color: #222a39;
    margin-bottom: 1rem;
}

.experiencia-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.timeline-line {
    position: absolute;
    width: 2px;
    background-color: #5281e0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    padding-right: 50px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 50px;
}

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

.timeline-point {
    width: 15px;
    height: 15px;
    background-color: #5281e0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item.left .timeline-point {
    right: -10px;
}

.timeline-item.right .timeline-point {
    left: -10px;
}

.timeline-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-card h3 {
    font-size: 1.1rem;
    color: #222a39;
    margin-bottom: 0.5rem;
}

.timeline-card .empresa {
    display: block;
    font-weight: 600;
    color: #5281e0;
    margin-bottom: 0.3rem;
}

.timeline-card .periodo {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.timeline-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Modo escuro */
body.modo-escuro {
    background-color: #0F1319;
    color: #f4f4f4;
}

body.modo-escuro .menu-topo {
    background-color: var(--cor-menu-escuro);
}

body.modo-escuro .menu-itens a {
    color: #8a8a8a;
}

body.modo-escuro .menu-itens a:hover {
    color: var(--cor-texto-escuro);
}

body.modo-escuro .menu-itens a::after {
    background-color: var(--cor-hover-escuro);
}

body.modo-escuro #botao-tema {
    color: var(--cor-texto-escuro);
}

body.modo-escuro #botao-tema:hover {
    color: var(--cor-hover-escuro);
}

body.modo-escuro .hero-title {
    color: #f4f4f4;
}

body.modo-escuro .hero-description,
body.modo-escuro .hero-expertise {
    color: #d0d0d0;
}

body.modo-escuro .hero-contact-button {
    color: #5281e0;
}

body.modo-escuro .hero-contact-button:hover {
    color: #3a6bc8;
}

body.modo-escuro .expertise {
    background-color: #1a202c;
}

body.modo-escuro .expertise-title {
    color: #f4f4f4;
}

body.modo-escuro .expertise-subtitle {
    color: #d0d0d0;
}

body.modo-escuro .expertise-item {
    background-color: #222a39;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.modo-escuro .expertise-item h3 {
    color: #f4f4f4;
}

body.modo-escuro .expertise-item p {
    color: #d0d0d0;
}

body.modo-escuro .experiencia {
    background-color: #1a202c;
}

body.modo-escuro .experiencia-title {
    color: #f4f4f4;
}

body.modo-escuro .experiencia-subtitle {
    color: #d0d0d0;
}

body.modo-escuro .timeline-card {
    background-color: #222a39;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.modo-escuro .timeline-card h3 {
    color: #f4f4f4;
}

body.modo-escuro .timeline-card p {
    color: #d0d0d0;
}

/* Responsivo */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-right: 0 !important;
        padding-left: 70px !important;
    }

    .timeline-point {
        left: 10px !important;
        right: auto !important;
    }

    .hero-content {
        flex-direction: column;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }
}

/* Seção Projetos */
.projetos {
    padding: 4rem var(--margem-lateral);
    background-color: #f8f9fa;
}

.projetos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projetos-title {
    font-size: 2rem;
    color: #222a39;
    margin-bottom: 1rem;
}

.projetos-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.projeto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.projeto-imagem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.projeto-conteudo {
    padding: 1.5rem;
}

.projeto-conteudo h3 {
    font-size: 1.2rem;
    color: #222a39;
    margin-bottom: 0.8rem;
}

.projeto-descricao {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.projeto-tags span {
    background-color: #e0e8f9;
    color: #5281e0;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modo escuro */
body.modo-escuro .projetos {
    background-color: #1a202c;
}

body.modo-escuro .projetos-title {
    color: #f4f4f4;
}

body.modo-escuro .projetos-subtitle {
    color: #d0d0d0;
}

body.modo-escuro .projeto-card {
    background-color: #222a39;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.modo-escuro .projeto-conteudo h3 {
    color: #f4f4f4;
}

body.modo-escuro .projeto-descricao {
    color: #d0d0d0;
}

body.modo-escuro .projeto-tags span {
    background-color: #2d3748;
    color: #7f9cf5;
}

/* Responsivo */
@media (max-width: 768px) {
    .projetos-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção Contato - Layout em 4 colunas */
.contato {
    padding: 4rem var(--margem-lateral);
    background-color: white;
}

.contato-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contato-title {
    font-size: 2rem;
    color: #222a39;
    margin-bottom: 1rem;
}

.contato-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contato-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contato-coluna {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contato-icon {
    width: 60px;
    height: 60px;
    background-color: #1A202C;
    color: #5281e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.contato-coluna h3 {
    font-size: 1rem;
    color: #222a39;
    margin-bottom: 0.8rem;
}

.contato-coluna a {
    color: #5281e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    word-break: break-word;
}

.contato-coluna a:hover {
    color: #3a6bc8;
    text-decoration: underline;
}

/* Modo escuro */
body.modo-escuro .contato {
    background-color: #1a202c;
}

body.modo-escuro .contato-title {
    color: #f4f4f4;
}

body.modo-escuro .contato-subtitle {
    color: #d0d0d0;
}

body.modo-escuro .contato-card {
    background-color: #222a39;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.modo-escuro .contato-coluna h3 {
    color: #f4f4f4;
}

body.modo-escuro .contato-coluna a {
    color: #7f9cf5;
}

body.modo-escuro .contato-coluna a:hover {
    color: #5b7bd9;
}

/* Responsivo */
@media (max-width: 900px) {
    .contato-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contato-card {
        padding: 1.5rem;
    }

    .contato-coluna {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .contato-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* Rodapé */
.rodape {
    background-color: #222a39;
    color: #f4f4f4;
    padding: 2rem var(--margem-lateral);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rodape-conteudo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.rodape-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4f4f4;
}

.rodape-direitos p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
}

.rodape-redes {
    display: flex;
    gap: 1.5rem;
}

.rodape-redes a {
    color: #f4f4f4;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.rodape-redes a:hover {
    color: #5281e0;
    transform: translateY(-3px);
}

/* Modo escuro */
body.modo-escuro .rodape {
    background-color: #0F1319;
    border-top-color: rgba(255, 255, 255, 0.05);
}

body.modo-escuro .rodape-redes a:hover {
    color: #7f9cf5;
}

/* Responsivo */
@media (max-width: 768px) {
    .rodape {
        padding: 2rem 1rem;
    }

    .rodape-conteudo {
        gap: 1rem;
    }

    .rodape-redes {
        gap: 1rem;
    }
}

/* Menu Hamburguer e ações */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.menu-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--cor-texto-claro);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.menu-hamburger:hover {
    color: var(--cor-hover-claro);
}

.menu-hamburger[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.menu-hamburger i {
    transition: transform 0.3s ease;
}

/* Modo escuro */
body.modo-escuro .menu-hamburger {
    color: var(--cor-texto-escuro);
}

body.modo-escuro .menu-hamburger:hover {
    color: var(--cor-hover-escuro);
}

/* Estilos para o menu mobile aberto */
@media (max-width: 768px) {
    .menu-hamburger {
        display: block;
    }

    .menu-itens {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--cor-menu-claro);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    .menu-itens.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .menu-itens a {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    /* Modo escuro para menu mobile */
    body.modo-escuro .menu-itens {
        background-color: var(--cor-menu-escuro);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Seção Experiência - Responsivo */
@media (max-width: 768px) {
    .experiencia {
        padding: 2rem 1rem;
    }

    /* Remove a linha do tempo */
    .timeline-line,
    .timeline-point {
        display: none;
    }

    /* Ajusta os itens da timeline */
    .timeline {
        padding: 0;
    }

    .timeline-item {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    /* Ajusta os cards */
    .timeline-card {
        width: 100%;
        margin: 0;
        padding: 1.2rem;
    }

    .timeline-card h3 {
        font-size: 1.1rem;
    }

    .timeline-card .empresa {
        font-size: 0.9rem;
    }

    .timeline-card .periodo {
        font-size: 0.8rem;
    }

    .timeline-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .timeline-card {
        border-left: 3px solid #5281e0;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    body.modo-escuro .timeline-card {
        background-color: #222a39;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}


@media (max-width: 768px) {
    :root {
        --margem-lateral: 2rem;
    }
}

/* Seção Contato - Responsivo */
@media (max-width: 900px) {
    .contato {
        padding: 2rem 1rem;
    }

    .contato-card {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .contato-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contato-coluna {
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contato-coluna {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem;
        background-color: rgba(82, 129, 224, 0.1);
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .contato-coluna:hover {
        transform: translateY(-3px);
    }

    .contato-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0;
        flex-shrink: 0;
        background-color: #5281e0;
        color: white;
    }

    .contato-coluna h3 {
        margin-bottom: 0.2rem;
        font-size: 0.95rem;
    }

    .contato-coluna a {
        font-size: 0.85rem;
    }

    /* Modo escuro */
    body.modo-escuro .contato-coluna {
        background-color: rgba(127, 156, 245, 0.1);
    }

    body.modo-escuro .contato-icon {
        background-color: #7f9cf5;
    }
}