:root {
  --bg: #f7f5f2;
  --bg2: #f0ede8;
  --text: #1a1a1a;
  --muted: #888880;
  --accent: #2d5a3d;
  --border: #e0dbd4;
  --card: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5rem;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('/img/main.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: var(--text);
  font-style: normal;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.7;
}

.hero-socials {
  display: flex;
  gap: 1.25rem;
}

.hero-socials a {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-socials a:hover {
  color: var(--text);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

section {
  padding: 7rem 5rem;
}

.section-num {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
}

#sobre {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 7rem;
  align-items: center;
}

.sobre-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.sobre-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sobre-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#formacao {
  background: var(--bg);
}

.formacao-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.formacao-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 10px;
  padding: 5px;
}

.formacao-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.formacao-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  background: var(--card);
}

#tecnologias {
  background: var(--bg2);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
}

#contato {
  background: var(--text);
  color: white;
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contato-link {
  display: block;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
}

footer {
  background: var(--text);
  color: rgba(255,255,255,0.3);
  padding: 2rem;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 5rem 1.5rem;
  }

  #sobre {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    padding: 0 1.5rem 5rem;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contato-inner {
    grid-template-columns: 1fr;
  }
}