:root {
  --bg: #dadfd6;          /* fundo geral */
  --surface: #ffffff;     /* cartões / secções */
  --text-main: #1f2522;
  --text-muted: #5f6762;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #3b5d50;      /* verde profissional/apelativo */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #eef2ea, var(--bg));
  color: var(--text-main);
}

/* NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(218, 223, 214, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  animation: headerSlideDown 0.7s ease-out forwards;
}

.header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(59, 93, 80, 0.06);
  animation: softPulse 2.6s ease-in-out infinite;
}

.brand-initials {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* NAV LINKS */
.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav a {
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 2px;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}

.main-nav a::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after {
  width: 100%;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.12s ease;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 93, 80, 0.06);
  transform: translateY(-1px);
}

.lang-btn.active {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

/* responsivo */
@media (max-width: 900px) {
  .header-right {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
}


/* LAYOUT GERAL */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* HERO SPLIT */
.hero {
  padding: 28px 0 0;
}

.hero-inner {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px 22px 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.hero-inner::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(59, 93, 80, 0.13), transparent 58%);
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
  animation: heroGlow 3.3s ease-out 0.4s forwards;
}

.hero-left { z-index: 1; }

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero-accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

/* hero right */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-mockup {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  background: #f6f8f5;
  animation: floatMockup 4s ease-in-out infinite;
}

.hero-mockup img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-mockup-label {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line);
}

/* STATS */
.stats {
  margin-top: 16px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 93, 80, 0.6);
}

.stat-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
}

/* etiqueta FANCY na stat da brand */
.stats-inner .stat:nth-child(3) {
  position: relative;
}

.stats-inner .stat:nth-child(3)::after {
  content: "FANCY";
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(59, 93, 80, 0.7);
}

/* BOTÕES */
.btn {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(59, 93, 80, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 26px rgba(59, 93, 80, 0.35);
}

.btn.ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn.ghost:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
}

.btn.btn-outline {
  border-style: dashed;
  opacity: 0.9;
}

.btn.btn-outline:hover {
  opacity: 1;
}

/* SEÇÕES GERAIS */
.section {
  margin-top: 22px;
}

.section-header {
  margin-bottom: 10px;
}

.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-title {
  font-size: 19px;
  position: relative;
  padding-bottom: 4px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: rgba(59, 93, 80, 0.7);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.section.in-view .section-title::after {
  transform: scaleX(1);
}

.section-body {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.section-body p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 8px;
  color: var(--text-main);
}

/* WHAT I DO */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f5 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 93, 80, 0.7);
}

.service-ico {
  font-size: 20px;
  margin-bottom: 6px;
}

.service-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 4px;
}

.skill-column h3 {
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.skill-column ul {
  list-style: none;
}

.skill-column li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* PROJECTS */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.card {
  padding: 14px 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fdfefd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 93, 80, 0.55);
  background: #ffffff;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.card-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* EXPERIENCE TIMELINE */
.exp-timeline {
  position: relative;
  padding: 10px 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 28px;
}

.exp-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(59, 93, 80, 0),
    rgba(59, 93, 80, 0.6),
    rgba(59, 93, 80, 0)
  );
  opacity: 0.85;
}

.exp-item {
  position: relative;
  min-height: 80px;
}

.exp-item.left {
  grid-column: 1 / 2;
  padding-right: 26px;
}

.exp-item.right {
  grid-column: 2 / 3;
  padding-left: 26px;
}

.exp-dot {
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(59, 93, 80, 0.4);
  animation: dotPulse 1.8s ease-out infinite;
}

.exp-item.left .exp-dot {
  right: -7px;
}

.exp-item.right .exp-dot {
  left: -7px;
}

.exp-card {
  background: #fdfefd;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px 16px 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 93, 80, 0.55);
  background: #ffffff;
}

.exp-ico {
  font-size: 16px;
  margin-right: 6px;
  vertical-align: -2px;
  opacity: 0.9;
}

.exp-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.exp-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.exp-role {
  font-size: 15px;
  margin-bottom: 4px;
}

.exp-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* EDUCATION */
.edu-list {
  list-style: none;
}

.edu-list li {
  margin-bottom: 12px;
}

.edu-list h3 {
  font-size: 14px;
}

.edu-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.edu-ico {
  font-size: 15px;
  margin-right: 6px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-grid a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.contact-grid a:hover {
  color: #263129;
  border-color: #263129;
  transform: translateY(-1px);
}

/* UPWORK / PLATFORM CARD */
.platform-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f5f7f3 100%);
  padding: 12px 14px 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 93, 80, 0.6);
}

.platform-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.platform-ico {
  font-size: 20px;
}

.platform-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.platform-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.platform-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.platform-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.platform-link::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 93, 80, 0.4);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.platform-card:hover .platform-link {
  transform: translateY(-1px);
}

.platform-link:hover {
  color: #263129;
  border-color: #263129;
}

.platform-link:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(2px, -2px);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 22px 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

/* ANIMAÇÕES SCROLL / REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.reveal.in-view {
  animation: floatUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* KEYFRAMES */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes headerSlideDown {
  0% {
    transform: translateY(-40%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 93, 80, 0.0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 93, 80, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 93, 80, 0.0);
  }
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 93, 80, 0.4);
    transform: scale(1);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(59, 93, 80, 0);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 93, 80, 0);
    transform: scale(1);
  }
}

@keyframes heroGlow {
  0% {
    opacity: 0;
    transform: translateX(-40%);
  }
  60% {
    opacity: 1;
    transform: translateX(10%);
  }
  100% {
    opacity: 0;
    transform: translateX(40%);
  }
}

@keyframes floatMockup {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* FOCUS STATES (acessibilidade + vibe pro) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(59, 93, 80, 0.8);
  outline-offset: 3px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page {
    padding: 22px 14px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 27px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .exp-timeline {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .exp-line {
    left: 6px;
  }

  .exp-item,
  .exp-item.left,
  .exp-item.right {
    grid-column: 1 / 2;
    padding-left: 26px;
    padding-right: 0;
  }

  .exp-dot {
    left: -1px;
  }
}

@media (max-width: 480px) {
  .hero-lead {
    font-size: 13px;
  }

  .section-body {
    padding: 14px 14px 16px;
  }

  .card p,
  .service-card p {
    font-size: 13px;
  }
}
