/* ==========================================================================
   MAIN STYLESHEET — PROFESSORA CAMILA DA COSTA MELO
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Vetorial Topográfico (Curvas de Nível da Geografia) */
.topography-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1100px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
  will-change: opacity;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 100%);
}

.topography-bg-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Container Global */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
  padding: 80px 0;
}

/* Eyebrow & Badges */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.section-head {
  margin-bottom: 42px;
  max-width: 62ch;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* --- HEADER & NAVIGATION --- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-normal);
}

header.site.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 251, 242, 0.96);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--lavender));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(46, 196, 182, 0.3);
  transition: transform var(--transition-bounce);
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: var(--bg);
}

.navlinks {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.navlinks a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--coral);
}

.navlinks a:hover::after,
.navlinks a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  font-size: 1.5rem;
  border-radius: 8px;
}

.nav-toggle:hover {
  background: rgba(27, 58, 75, 0.06);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 85px 0 100px;
  overflow: visible;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.hero-blob.b1 {
  width: 320px;
  height: 320px;
  background: var(--yellow);
  top: -90px;
  right: -60px;
  opacity: 0.5;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.hero-blob.b2 {
  width: 200px;
  height: 200px;
  background: var(--lavender);
  bottom: 24px;
  right: 220px;
  opacity: 0.45;
  animation: blobBounce 7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 20px) scale(1.05); }
  100% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes blobBounce {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  45% {
    transform: translateY(-42px) scale(0.96, 1.04);
  }
  85% {
    transform: translateY(6px) scale(1.05, 0.93);
  }
  100% {
    transform: translateY(-16px) scale(0.95, 1.05);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--teal-deep);
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(46, 196, 182, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero-role {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 26px;
  line-height: 1.6;
}

.tagpills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(27, 58, 75, 0.04);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 14px rgba(27, 58, 75, 0.08);
}

.pill.p1 { border-color: var(--teal-deep); color: var(--teal-deep); background: rgba(46, 196, 182, 0.08); }
.pill.p2 { border-color: var(--coral); color: var(--coral); background: rgba(255, 107, 107, 0.08); }
.pill.p3 { border-color: var(--lavender-deep); color: var(--lavender-deep); background: rgba(167, 139, 250, 0.12); }

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- HERO VISUAL PORTRAIT & ORBIT NODES --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(160deg, var(--teal), var(--lavender) 120%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blobshift 9s ease-in-out infinite;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease-out;
}

@keyframes blobshift {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; }
}

.portrait-inner {
  width: 88%;
  height: 88%;
  border-radius: inherit;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(27, 58, 75, 0.06);
}

.portrait-inner span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.6rem;
  color: var(--ink);
  user-select: none;
  background: linear-gradient(135deg, var(--ink), var(--teal-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform var(--transition-bounce);
  cursor: pointer;
}

.orbit-node:hover {
  transform: scale(1.2) rotate(10deg);
}

.orbit-node.n1 { top: -8px; left: -8px; background: var(--yellow); }
.orbit-node.n2 { bottom: 10px; right: -18px; background: var(--coral); border-radius: 50%; }
.orbit-node.n3 { bottom: -14px; left: 40px; background: var(--paper); }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1), transform 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .navlinks {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 24px 28px;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    opacity: 0;
  }

  .navlinks.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: block;
  }
}
