/* ===================================================================
   VARIÁVEIS DE CUSTOMIZAÇÃO
   As cores e fontes principais sem tocar no resto do CSS.
   =================================================================== */
:root {
  --color-bg: #FAFAF7;           /* fundo off-white */
  --color-text: #1A1A1A;         /* texto principal (cinza-carvão) */
  --color-text-muted: #555555;   /* texto secundário */
  --color-border: #A3A3A3;       /* bordas discretas */
  --color-accent: #1A1A1A;       /* cor de destaque (botões primários) */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

html { scroll-behavior: smooth; }

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

a, .btn { transition: all 300ms ease; }

/* ===================================================================
   NAV DESKTOP
   =================================================================== */
nav, .nav-links { display: flex; }

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

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

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

.nav-links a:hover {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===================================================================
   NAV MOBILE (hamburger)
   =================================================================== */
#hamburger-nav { display: none; }

.hamburger-menu { position: relative; display: inline-block; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--color-text);
}

.menu-links li { list-style: none; }
.menu-links.open { max-height: 300px; }

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* ===================================================================
   SEÇÕES (base geral)
   =================================================================== */
section {
  padding-top: 4vh;
  min-height: 80vh;
  margin: 0 10rem;
}

/* ===================================================================
   HERO (#profile)
   =================================================================== */
#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  height: 85vh;
  margin: 0 10rem;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  flex-shrink: 0;
}

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

.section__text {
  align-self: center;
  max-width: 550px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.headline-primary {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.headline-secondary {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ===================================================================
   BOTÕES
   =================================================================== */
.btn-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: 1px solid var(--color-text);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ===================================================================
   ÍCONES SOCIAIS
   =================================================================== */
#socials-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon { height: 1.75rem; cursor: pointer; }

/* ===================================================================
   SEÇÃO SOBRE (#about)
   =================================================================== */
#about {
  padding: 6rem 0;
  min-height: auto;
  border-top: none;         /* remove a borda que era só dos placeholders */
  display: block;           /* sobrescreve o flex do placeholder */
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-pic-container {
  flex-shrink: 0;
  width: 340px;
  height: 440px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
}

.about-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;   /* mantém o rosto na parte alta do crop */
  display: block;
}

.about-text {
  flex: 1;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-text em {
  font-style: italic;
  color: var(--color-text-muted);
}
/* ===================================================================
   SEÇÃO EXPERIÊNCIA (#experience)
   =================================================================== */
#experience {
  padding: 6rem 0;
  min-height: auto;
  border-top: none;
  display: block;
}

.experience-container {
  max-width: 900px;
  margin: 0 auto;
}

.experience-container .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.experience-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-header {
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.job-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.experience-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.tech-line {
  font-size: 0.95rem;
}

.tech-label {
  color: var(--color-text);
  font-weight: 600;
}

.sub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.tools-developed ul {
  list-style: none;
  padding-left: 0;
}

.tools-developed li {
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.tools-developed li strong {
  color: var(--color-text);
  font-weight: 600;
}

.sub-experience {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-border);
}

.sub-experience p {
  margin-bottom: 0;
}
/* ===================================================================
   SEÇÃO PROJETOS (#projects)
   =================================================================== */
#projects {
  padding: 6rem 0;
  min-height: auto;
  border-top: none;
  display: block;
}

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

.projects-container .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: all 300ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.project-img-container {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0a; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-img-placeholder {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  flex-direction: column;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.project-tag {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-btn-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.project-img-placeholder svg {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.lock-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===================================================================
   SEÇÃO ESCREVO (#writing)
   =================================================================== */
#writing {
  padding: 6rem 0;
  min-height: auto;
  border-top: none;
  display: block;
}

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

.writing-container .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.writing-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: #fff;
  text-decoration: none;
  transition: all 300ms ease;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--color-text);
  text-decoration: none;
}

.article-tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 300ms ease;
}

.article-card:hover .article-link {
  color: var(--color-text);
}

.writing-cta {
  text-align: center;
}
/* ===================================================================
   SEÇÃO CONTATO (#contact)
   =================================================================== */
#contact {
  padding: 6rem 0;
  min-height: auto;
  border-top: none;
  display: block;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.contact-container .section-title {
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  padding: 1.25rem 2rem;
  margin: 0 auto 2.5rem;
  max-width: fit-content;
  background: #fff;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: opacity 300ms ease;
}

.contact-info-container:hover {
  opacity: 0.6;
  text-decoration: none;
}

.contact-icon {
  height: 1.75rem;
  width: 1.75rem;
  object-fit: contain;
}

.contact-cv {
  margin-top: 1rem;
}

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

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 300ms ease;
}

.footer-nav a:hover {
  color: var(--color-text);
}

footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}