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

/* ===== TOKENS ===== */
:root {
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.82);
  --text: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.10);
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --accent-hover: #1d4ed8;
  --dark: #0f172a;
  --green: #16a34a;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 32px 90px rgba(15, 23, 42, 0.13);
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.10), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* ===== FOCO ACESSÍVEL ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.navbar {
  width: min(1160px, 92%);
  height: var(--nav-h);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.60);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.nav-link.active {
  color: var(--accent);
}

/* Hamburger */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -6px; }
.menu-icon::after  { top:  6px; }

.menu-btn[aria-expanded="true"] .menu-icon {
  background: transparent;
}
.menu-btn[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  width: min(1160px, 92%);
  min-height: 100vh;
  margin: auto;
  padding: calc(var(--nav-h) + 50px) 0 70px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15);
  flex-shrink: 0;
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15); }
  50%       { box-shadow: 0 0 0 9px rgba(20, 184, 166, 0.06); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== BOTÕES ===== */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transition: transform 0.52s ease;
}

.btn:hover::after {
  transform: translateX(110%);
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

.primary:hover {
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.30);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.secondary:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.18);
}

.small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.inline-btn {
  margin-top: 28px;
}

/* ===== STATS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 560px;
}

.stat-item {
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-item strong {
  display: block;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* ===== HERO CARD ===== */
.hero-card {
  position: relative;
  min-height: 430px;
  padding: 34px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -90px;
  right: -80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.18));
  pointer-events: none;
}

.profile-circle {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: auto;
  background: var(--dark);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 24px;
  margin-bottom: 8px;
}

.hero-card h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.13);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== SECTIONS BASE ===== */
.section {
  width: min(1160px, 92%);
  margin: auto;
  padding: 96px 0;
}

.section-eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.section-title {
  margin-bottom: 48px;
}

.section-title.center {
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-top: 6px;
}

.section-title.center h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

/* ===== SOBRE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.about-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 16px;
}

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

.skills-box {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.skills-box h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 700;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.13);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ===== PROJETOS ===== */
.projects-grid {
  display: grid;
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 340px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
}

.project-image-link {
  display: block;
  overflow: hidden;
  background: #e8edf5;
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.62s ease, filter 0.62s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.project-info {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.project-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-info h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.project-info > p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.project-list {
  margin: 14px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-list li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}

.project-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ===== SERVIÇOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
}

.service-number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ===== CTA ===== */
.cta {
  width: min(1060px, 92%);
  margin: 16px auto 16px;
  padding: clamp(44px, 7vw, 76px) 32px;
  border-radius: 40px;
  text-align: center;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.97) 0%, rgba(22, 34, 60, 0.96) 100%);
  color: #ffffff;
  box-shadow: 0 36px 96px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  position: relative;
}

.cta-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 68%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta-eyebrow {
  color: var(--accent-2);
  margin-bottom: 12px;
}

.cta h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin-bottom: 14px;
}

.cta-sub {
  display: block;
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ===== CONTATO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
}

.contact-card--highlight {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(240, 253, 244, 0.72);
}

.contact-card--highlight:hover {
  border-color: rgba(22, 163, 74, 0.40);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.contact-card--highlight .contact-card-icon {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.18);
  color: var(--green);
}

.contact-card-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.contact-card-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.contact-card--highlight:hover .contact-arrow {
  color: var(--green);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 44px rgba(22, 163, 74, 0.30);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 22px 56px rgba(22, 163, 74, 0.40);
}

/* ===== ANIMAÇÕES / REVEAL ===== */
.reveal,
.reveal-item,
.reveal-delay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.show,
.reveal-item.show,
.reveal-delay.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.18s; }
.reveal-item:nth-child(2) { transition-delay: 0.10s; }
.reveal-item:nth-child(3) { transition-delay: 0.20s; }
.reveal-item:nth-child(4) { transition-delay: 0.30s; }

/* Float do hero card */
.float-card.show {
  animation: cardFloat 5.4s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    right: 4%;
    width: min(260px, 88vw);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    justify-content: center;
    padding: 11px 14px;
  }

  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-card {
    min-height: 320px;
    animation: none !important;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image,
  .project-image-link {
    min-height: 240px;
    max-height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .cta {
    width: min(100% - 28px, 1160px);
  }

  .logo img { height: 38px; }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item strong { font-size: 1.45rem; }

  .hero-card {
    min-height: 280px;
    padding: 24px;
  }

  .profile-circle {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-radius: 24px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-item,
  .reveal-delay {
    opacity: 1;
    transform: none;
  }

  .tag-dot {
    animation: none;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15);
  }
}
