*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --cream:   #fdf6f0;
  --cream2:  #faf0e8;
  --peach:   #f7c5a8;
  --coral:   #e8957a;
  --terra:   #c96d54;
  --rose:    #e8a598;
  --text:    #2d1f1a;
  --muted:   #7a5c54;
  --border:  rgba(200,120,90,0.15);
  --white:   #ffffff;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}


nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: rgba(253,246,240,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 24px rgba(200,109,84,0.08); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-style: italic;
  color: var(--terra); text-decoration: none;
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none;
  transition: color 0.3s; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--coral);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--terra); }

.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-toggle:hover {
  border-color: var(--coral);
  background: rgba(232,149,122,0.06);
}

.lang-option {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s;
}

.lang-option.active { color: var(--terra); }

.lang-divider { font-size: 11px; color: var(--border); }

.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 120px 60px 80px; gap: 60px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 580px; height: 580px;
  background: radial-gradient(ellipse, rgba(247,197,168,0.45) 0%, rgba(232,149,122,0.15) 50%, transparent 75%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: morphBlob 12s ease-in-out infinite; pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,165,152,0.3) 0%, transparent 70%);
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  animation: morphBlob 16s ease-in-out infinite reverse; pointer-events: none;
}

@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%      { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
  66%      { border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%; }
}

.hero-text { z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-eyebrow span:first-child {
  display: block;
  width: 28px;
  min-width: 28px;
  height: 1px;
  background: var(--coral);
  flex-shrink: 0;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 5.5vw, 76px); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero-name em {
  font-style: italic;
  background: linear-gradient(135deg, var(--coral) 0%, var(--terra) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-role {
  font-size: 14px; font-weight: 400; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-desc {
  font-size: 15px; font-weight: 300; color: var(--muted);
  line-height: 1.85; max-width: 420px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--terra) 100%);
  color: white; box-shadow: 0 6px 24px rgba(201,109,84,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,109,84,0.4); }

.btn-ghost {
  background: transparent; color: var(--terra);
  border: 1.5px solid rgba(201,109,84,0.35);
}

.btn-ghost:hover { background: rgba(201,109,84,0.06); border-color: var(--terra); transform: translateY(-2px); }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 2;
  opacity: 0; animation: fadeIn 1s ease 0.5s forwards;
}

.photo-wrapper { position: relative; width: 360px; height: 420px; }

.photo-wrapper::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 100%; height: 100%;
  border: 1.5px solid rgba(201,109,84,0.2);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: morphBlob 14s ease-in-out infinite;
}

.photo-wrapper::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--peach) 0%, var(--rose) 100%);
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  animation: morphBlob 10s ease-in-out infinite reverse; z-index: 0;
}

.photo-img {
  position: absolute; inset: 8px; z-index: 1;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  animation: morphBlob 10s ease-in-out infinite reverse; overflow: hidden;
}

.photo-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.tag-float {
  position: absolute; z-index: 3; background: white; border-radius: 50px;
  padding: 8px 16px; font-size: 12px; font-weight: 500; color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}

.tag-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.tag-float-1 { top: 30px; left: -20px; animation: float 4s ease-in-out infinite; }

.tag-float-2 { bottom: 60px; right: -30px; animation: float 5s ease-in-out infinite 1s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


section { padding: 100px 60px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
  white-space: nowrap;
}

.section-eyebrow span:first-child {
  display: block;
  width: 24px;
  min-width: 24px;
  height: 1px;
  background: var(--coral);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 48px;
}

.section-title em { font-style: italic; color: var(--coral); }

#sobre { background: var(--white); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.about-text p { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.9; margin-bottom: 18px; }

.contact-cards { display: flex; flex-direction: column; gap: 12px; }

.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--cream);
  border-radius: 14px; border: 1px solid var(--border);
  text-decoration: none; transition: all 0.3s;
}

.contact-card:hover { background: rgba(232,149,122,0.06); border-color: rgba(201,109,84,0.3); transform: translateX(4px); }

.contact-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.contact-icon svg { width: 16px; height: 16px; stroke: var(--terra); fill: none; stroke-width: 1.8; }

.contact-info { display: flex; flex-direction: column; }

.contact-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }

.contact-value { font-size: 13px; font-weight: 400; color: var(--text); }


#habilidades { background: var(--cream2); }

.skills-categories { display: flex; flex-direction: column; gap: 36px; }

.skill-cat-title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.skills-row { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-pill {
  padding: 9px 18px; background: white;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 400; color: var(--text); transition: all 0.3s; cursor: default;
}

.skill-pill:hover { border-color: var(--coral); color: var(--terra); background: rgba(232,149,122,0.06); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201,109,84,0.12); }


#projetos { background: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.project-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; transition: all 0.4s ease;
  position: relative; overflow: hidden;
}

.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--coral), var(--terra));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}

.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(200,109,84,0.12); border-color: rgba(201,109,84,0.25); }

.project-card:hover::before { transform: scaleX(1); }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

.project-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--peach), var(--rose)); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.project-link-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; transition: all 0.3s; }
.project-link-icon:hover { border-color: var(--coral); color: var(--terra); }
.project-link-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.project-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.project-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tag { font-size: 11px; font-weight: 500; color: var(--terra); padding: 4px 11px; background: rgba(201,109,84,0.08); border-radius: 100px; }

/* CONTACT */
#contato { background: linear-gradient(160deg, var(--cream2) 0%, #fce8de 100%); text-align: center; }
.contact-cta { max-width: 520px; margin: 0 auto; }
.contact-cta .section-eyebrow { justify-content: center; }
.contact-cta .section-title { margin-bottom: 20px; }
.contact-cta p { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.8; margin-bottom: 36px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 60px; display: flex; align-items: center; justify-content: space-between; background: var(--white); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; font-style: italic; color: var(--terra); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

@media (max-width: 768px) {
  nav { padding: 16px 24px; gap: 12px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; gap: 40px; }
  .hero-visual { order: -1; }
  .photo-wrapper { width: 260px; height: 310px; }
  .tag-float { display: none; }
  section { padding: 70px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}