/* General Styling & Variables */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: rgb(53, 53, 53);
    --secondary-color: rgb(250, 250, 250);
    --border-color: rgb(163, 163, 163);
    --text-color: rgb(85, 85, 85);
    --main-transition: all 300ms ease;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    background-color: white;
}

p {
    color: var(--text-color);
}

/* TRANSITION & LINKS */
a, .btn {
    transition: var(--main-transition);
}

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

a:hover {
    color: gray;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--border-color);
}

/* CARDS (Geral) */
.card {
    border-radius: 1.5rem;
    border: 0.1rem solid var(--border-color);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--card-shadow);
    transition: var(--main-transition);
}

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

/* NAVIGATION */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.25rem;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    cursor: default;
}

/* HAMBURGUER MENU (Sem alterações significativas, pois já estava funcional) */
#hamburguer-nav {
    display: none;
}
/* ... código do hamburguer-menu ... */

/* SECTIONS (Ajustada altura e padding) */
section {
    padding: 8vh 0 4vh; /* Ajuste o padding para cima/baixo */
    margin: 0 10%; /* Ajuste a margem lateral */
    box-sizing: border-box;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-padding {
    padding-top: 8vh;
}

.title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* HERO SECTION */
#hero {
    flex-direction: row;
    justify-content: center;
    gap: 5rem;
    padding-top: 10vh;
    min-height: 80vh;
}

.profile-pic-container {
    height: 350px;
    width: 350px;
}

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

.section__text {
    align-self: center;
    text-align: center;
}

.section__text__p1 {
    font-weight: 500;
}

.section__text__p2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1.5rem;
}

.icon-social {
    cursor: pointer;
    font-size: 2.5rem; /* Usando Font Awesome para tamanho e cor */
    color: var(--primary-color);
}

/* BUTTONS */
.btn-cont {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    border: 0.1rem solid var(--primary-color);
    text-align: center;
    white-space: nowrap; /* Evita quebras de linha em botões */
}

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

.btn-primary:hover {
    background: black;
}

.btn-secondary {
    background: none;
    color: var(--primary-color);
}

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

/* ABOUT SECTION */
.about-container {
    gap: 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: 1200px;
}

.about-pic-container {
    height: 350px;
    width: 300px;
    margin: 0;
}

.about-pic {
    border-radius: 2rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-details-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.about-containers {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-card {
    flex: 1;
    text-align: center;
}

.icon-card {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.text-container {
    text-align: justify;
}

/* EXPERIENCE SECTION (CORREÇÃO DE RESPONSIVIDADE APLICADA AQUI) */
.experience-details-container {
    max-width: 1000px;
    width: 100%;
}

.experience-containers {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.experience-card {
    flex: 1;
}

.experience-sub-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Correção principal: permite que as habilidades quebrem a linha */
    gap: 1rem;
    padding: 0 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 12rem; /* Permite o encolhimento, mas define um limite */
    gap: 0.5rem;
}

.icon-skill {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.skill-item h3 {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.skill-item p {
    font-size: 0.8rem;
    margin: 0;
}

/* PROJECTS SECTIONS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Layout flexível com cards */
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.project-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-color);
}

.project-img {
    border-radius: 1.5rem;
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    min-height: 40px;
}

.tech-stack {
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin: 0 0.2rem 0.4rem 0;
}

/* CONTACT */
#contact {
    min-height: 50vh;
}

.contact-info-upper-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    padding: 1rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.icon-contact {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info-container p a {
    font-size: 1.1rem;
}

/* FOOTER */
footer {
    padding: 2vh 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer nav {
    height: fit-content;
    margin-bottom: 1rem;
}

footer p {
    font-size: 0.8rem;
    margin: 0.2rem 0;
}