/* =========================
   Variáveis e Reset Global
   ========================= */
:root {
    --text-color: #e0e0e0;
    --link-color: #4f8a8b;
    --background-color: #23272a;
    --section-alt-bg: #2c2f34;
    --highlight-color: #3a506b;
    font-size: 17px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}



/* =========================
   Estilo Geral do Body
   ========================= */
body {
    font-family: 'Press Start 2P', "Monaco", Arial, Helvetica, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* =========================
   Navegação Fixa no Topo
   ========================= */
nav {
    background-color: #00000052;
    display: flex;
    justify-content: space-between;
    padding: 0 3.125rem;
    height: 5rem;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav .left a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.625rem;
}

nav .right a:hover {
    color: var(--link-color);
    transition: color 0.3s ease-in-out;
}

/* =========================
   Seções Gerais
   ========================= */
section {
    padding: 8rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: var(--background-color);
}


/* =========================
   Títulos das Seções
   ========================= */
section h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    /* Removido o pseudo-elemento que criava a barra colorida */
}

/* =========================
   Sobre (About Section)
   ========================= */
#about-section {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

#about-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#about-section .headshot {
    width: 20rem;
    height: 20rem;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 37px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#about-section .headshot img:hover {
    transform: scale(1.2);
}

#about-section .bio {
    margin-bottom: 2rem;
    padding: 0 2rem;
    max-width: 56.25rem;
}

#about-section .bio p {
    font-size: 1.3rem;
    font-weight: 300;
}

#about-section .social-links {
    font-size: 2.25rem;
}

#about-section .social-links a {
    padding: 0;
    margin: 0 0.75rem;
}

#about-section .social-links a i {
    transition: transform 0.3s, color 0.3s;
}

#about-section .social-links a:hover i {
    color: #a5d6b0;
    transform: scale(1.2);
}

#about-section .social-links i {
    color: #588061;
    font-weight: 500;
}

/* =========================
   Projetos (Projects Section)
   ========================= */
#projects-section {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    background: #588061;
    box-shadow: none;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

/* Carrossel de projetos */
.projetos-carousel {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
}

.projeto-card {
    min-width: 320px;
    max-width: 340px;
    background: #23272a;
    border-radius: 1rem;
    box-shadow: 0 4px 16px #00000030;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    transition: transform 0.2s;
    box-sizing: border-box;
}

.projeto-futuro {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #23272a99;
}
.projeto-futuro h3 {
    color: #bfd6c4;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.spinner {
    width: 38px;
    height: 38px;
    border: 5px solid #bfd6c4;
    border-top: 5px solid #4f8a8b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
}
.projeto-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px #00000040;
}
.projeto-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    margin-top: 0.2rem;
    line-height: 1.3;
    color: #a5d6b0;
}
.projeto-card p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #e0e0e0;
}
.btn-projeto {
    background: #4f8a8b;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    align-self: center;
}
.btn-projeto:hover {
    background: #3a506b;
}

@media (max-width: 768px) {
    #projects-section {
        max-width: 100vw;
        padding: 6rem 0.5rem;
    }
    .projetos-carousel {
        gap: 1rem;
        padding: 1rem 0 0.5rem 0;
        max-width: 100vw;
    }
    .projeto-card {
        min-width: 85vw;
        max-width: 90vw;
        padding: 1.2rem 0.7rem;
    }
    .projeto-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
        margin-top: 0.2rem;
        line-height: 1.3;
    }
    .projeto-card p {
        font-size: 0.95rem;
    }
    .btn-projeto {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
    }
}

#projects-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.project-subsection {
    width: 100%;
    margin-bottom: 4rem;
}

.projetos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.projetos-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ccc;
    border-top: 4px solid #5b2f37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 8px 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#projects-section,
#projects-section h2,
#projects-section h3,
#projects-section p,
#projects-section em {
    color: #e0e0e0;
}

/* =========================
   Habilidades (Skills Section)
   ========================= */
#skills-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#skills-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#skills-section .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#skills-section i {
    font-size: 3rem;
    color: #457450;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem 0;
}

#skills-section i:hover {
    transform: scale(1.2);
    color: #a5d6b0;
}

/* =========================
   Responsividade
   ========================= */
@media (max-width: 992px) {
    nav .left a {
        font-size: 1.25rem;
    }
    nav .right a {
        font-size: 1rem;
        margin: 0 0.5rem;
    }
    #about-section .headshot {
        width: 18rem;
        height: 18rem;
    }
    #skills-section i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    nav .left a {
        font-size: 1.1rem;
    }
    nav .right a {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }
    #about-section .social-links {
        font-size: 1.75rem;
    }
    #about-section h2 {
        font-size: 2.4rem;
    }
    #about-section .headshot {
        width: 12rem;
        height: 12rem;
    }
    #skills-section i {
        font-size: 1.5rem;
    }
    #skills-section .skills-container {
        gap: 1rem;
    }
    section {
        padding: 6rem 1rem;
    }
    #projects-section {
        padding: 6rem 1rem;
    }
}

/* Fim do arquivo style.css */
