/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
  /* Cores de fundo */
  --bg: #05060a;
  --bg-elevated: rgba(13, 16, 24, 0.9);
  --bg-card: rgba(13, 16, 24, 0.92);
  
  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Texto */
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --text-softer: #6b7280;

  /* Cores de destaque (ajustadas para tons azul/verde) */
  --accent-orange: #0ea5a0; /* antigo "laranja" agora teal */
  --accent-blue: #00b4d8;   /* azul-ciano */
  --accent-green: #38b000;  /* verde vivo */

  /* Border radius */
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Glass effect */
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Layout */
  --container-width: 1120px;

  /* Transições */
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;

  /* Outros */
  --progress-height: 4px;
  --header-height: 60px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, 
body {
  background: radial-gradient(circle at top, #111827 0%, #05060a 45%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* New: green gradients for h1-h3 site-wide (except hero/banner which are restored below) */
h1, h2, h3 {
  background: linear-gradient(120deg, #1b5e20 0%, #2e7d32 35%, #66bb6a 70%, #b9f6ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin-bottom: 1em;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible para melhor acessibilidade */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ocultar apenas visualmente (manter para screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.page-gradient {
  position: fixed;
  inset: -40%;
  background: 
    radial-gradient(circle at 10% 0%, rgba(255, 99, 71, 0.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(30, 144, 255, 0.16), transparent 55%),
    radial-gradient(circle at 50% 95%, rgba(50, 205, 50, 0.14), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
  z-index: -2;
  filter: blur(24px);
  will-change: opacity;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 96px 0;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}

.section::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-blue), var(--accent-green));
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  transform-origin: top;
}

.section:hover::before,
.section:focus-within::before {
  opacity: 0.14;
  transform: scaleY(1.02);
}

.section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.008);
}

.section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.01);
}

.section-highlight {
  padding: 112px 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(5, 6, 10, 1));
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: inline-block;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--progress-height);
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 252, 0.02), transparent);
}

.scroll-progress__bar {
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue), var(--accent-green));
  will-change: transform;
  transition: transform 220ms linear;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 10, 0.92),
    rgba(5, 6, 10, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: var(--header-height);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #7ee6d6, var(--accent-orange));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #020617;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 160, 0.25);
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Navegação */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
  border-radius: 999px;
  transition: width var(--transition-med);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.2), rgba(30, 144, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  transition: transform 220ms ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: block;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.1);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   BANNER
   ============================================ */
.banner-section {
  position: relative;
  background-image: url('/banner_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 52vh;
  padding: 64px 0;
  display: flex;
  align-items: center;
  z-index: 0;
  overflow: visible;
}

.banner-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 14, 0.64), rgba(6, 10, 14, 0.38));
  pointer-events: none;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.banner-text {
  text-align: right;
}

.banner-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-weight: 600;
}

.banner-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #ffffff, #9ff3e6, var(--accent-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-logo {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* SVG Divider animado */
.banner-svg-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -70px;
  
  width: 100%;
  pointer-events: none;
  z-index: 10;
  display: block;
  overflow: visible;
  height: 140px;
  will-change: transform, opacity;
  opacity: 1;
  animation: divider-fall 680ms cubic-bezier(0.22, 0.9, 0.25, 1) 120ms forwards;
}

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

@keyframes divider-fall {
  0% {
    transform: translateY(20px);
    opacity: 0;
    filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, 0.35));
  }
  65% {
    transform: translateY(-8px);
    opacity: 1;
    filter: drop-shadow(0 -22px 48px rgba(0, 0, 0, 0.6));
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: drop-shadow(0 -18px 40px rgba(0, 0, 0, 0.55));
  }
}

.banner-section + .section {
  margin-top: 0;
  padding-top: 96px;
  position: relative;
  z-index: 1;
}

/* CONTINUA NA PARTE 2... */
/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  opacity: 1;
  transform: none;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 4px 0 14px;
}

.gradient-text {
  background: linear-gradient(120deg, #ffffff, #9ff3e6, var(--accent-orange), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--text-soft);
  max-width: 380px;
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-orange);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transition-med), 
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  will-change: transform;
}

/* New: Enhanced interactive states for buttons, links and fabs */
.btn,
.btn-link,
.fab,
.nav-link {
  transition: transform 160ms cubic-bezier(0.2,0.9,0.2,1), box-shadow 200ms ease, opacity 160ms ease;
  will-change: transform, box-shadow, opacity;
  touch-action: manipulation;
}

/* Hover / focus-visible - subtle lift and glow */
.btn:hover,
.btn:focus-visible,
.btn-link:hover,
.btn-link:focus-visible,
.fab:hover,
.fab:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-4px) scale(1.02);
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 6px 18px rgba(14,165,160,0.06);
}

/* Pressed/Active - quick tactile feedback */
.btn:active,
.btn-link:active,
.fab:active,
.nav-link:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 80ms;
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
  opacity: 0.98;
}

/* Small focus ring enhancement for keyboard users */
.btn:focus-visible,
.fab:focus-visible,
.btn-link:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(30,144,255,0.14);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Provide a subtle hover underline animation for btn-link using transform (non-layout) */
.btn-link {
  position: relative;
  transition: color 160ms ease, transform 160ms ease;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 180ms cubic-bezier(0.2,0.9,0.2,1);
  border-radius: 999px;
}
.btn-link:hover::after,
.btn-link:focus-visible::after {
  transform: scaleX(1);
}

/* Reduce motion considerations: disable transform animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-link,
  .fab,
  .nav-link {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
  border-color: rgba(255, 255, 255, 0.08);
  color: #020617;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-full {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  font-size: 0.78rem;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-soft);
}

/* Hero Aside */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.avatar-wrapper {
  position: relative;
  width: 190px;
  aspect-ratio: 1/1;
}

.avatar-glow {
  position: absolute;
  inset: 10%;
  background: conic-gradient(
    from 120deg,
    rgba(14,165,160,0.65),
    rgba(0,180,216,0.8),
    rgba(56,176,0,0.55),
    rgba(14,165,160,0.65)
  );
  filter: blur(26px);
  opacity: 0.9;
  animation: avatar-rotate 9s linear infinite;
}

@keyframes avatar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  padding: 2px;
  background: radial-gradient(circle at 20% 0%, #ffffff, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 1));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, #111827, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatarimage {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 999px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
}

.stat-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-softer);
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-badges span {
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ============================================
   SOBRE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.about-photo {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transform: translateY(-28px);
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: block;
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.about-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.skills h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--text-soft);
  transition: background 220ms, border-color 220ms, transform 220ms;
}

.chip:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-1px);
}

/* ============================================
   PROJETOS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(10, 12, 20, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms ease;
  will-change: transform;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.project-media {
  position: relative;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(248, 250, 252, 0.07), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.3);
  min-height: 150px;
  overflow: hidden;
}

.project-tag {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  z-index: 2;
}

.project-tag--orange {
  color: var(--accent-orange);
}

.project-tag--blue {
  color: var(--accent-blue);
}

.project-tag--green {
  color: var(--accent-green);
}

.project-glow {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 140% 140%;
  pointer-events: none;
}

.project-glow--orange {
  background-image: radial-gradient(circle at 10% 0%, rgba(14,165,160,0.8), transparent 55%);
}

.project-glow--blue {
  background-image: radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.8), transparent 55%);
}

.project-glow--green {
  background-image: radial-gradient(circle at 10% 10%, rgba(56,176,0,0.8), transparent 55%);
}

.project-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.project-content p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech li {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-soft);
}

.btn-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent-blue);
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  font-weight: 600;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.btn-link:hover::after,
.btn-link:focus-visible::after {
  transform: scaleX(1);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn 260ms ease-out;
}

.modal-overlay.is-open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(10, 12, 20, 1));
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  animation: slideUp 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms, transform 220ms;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

#modalBody h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

#modalBody p {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 12px 0;
}

#modalBody ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-soft);
}

#modalBody ul li {
  margin: 6px 0;
}

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

.service-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.service-card h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-icon--orange {
  background: radial-gradient(circle at 20% 0%, rgba(255, 237, 213, 0.5), rgba(255, 99, 71, 0.35));
}

.service-icon--blue {
  background: radial-gradient(circle at 20% 0%, rgba(219, 234, 254, 0.5), rgba(30, 144, 255, 0.36));
}

.service-icon--green {
  background: radial-gradient(circle at 20% 0%, rgba(220, 252, 231, 0.5), rgba(50, 205, 50, 0.35));
}

.icon-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
}

/* ============================================
   CONTATO
   ============================================ */
.section-contact {
  padding-bottom: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-text {
  margin: 12px 0 20px;
  color: var(--text-soft);
  max-width: 420px;
  line-height: 1.7;
}

.contact-details {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-softer);
  font-weight: 600;
}

.contact-value {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-value:hover,
.contact-value:focus-visible {
  color: var(--accent-blue);
}

.contact-form-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(10, 12, 20, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

.field input,
.field textarea {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 9px 11px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), 
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              transform var(--transition-fast);
  resize: vertical;
  font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-softer);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.field input.has-value,
.field textarea.has-value {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(14,165,160,0.9);
  box-shadow: 0 6px 18px rgba(14,165,160,0.12);
}

.field-error {
  font-size: 0.78rem;
  color: var(--accent-orange);
  min-height: 1.2em;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-softer);
  line-height: 1.4;
}

/* Estados do botão */
button.is-loading {
  position: relative;
  opacity: 0.8;
  pointer-events: none;
}

button.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button.is-success {
  background: linear-gradient(135deg, #32cd32, #1e90ff);
  color: #030712;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px 0 18px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(5, 6, 10, 1));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-softer);
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.fab-group {
  position: fixed;
  right: 18px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 80;
  pointer-events: none;
}

.fab {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(14,165,160,0.95), rgba(0,180,216,0.95));
  color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease, opacity 220ms ease;
  text-decoration: none;
  will-change: transform;
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
}

.fab:active {
  transform: translateY(-2px) scale(0.985);
}

.fab-whatsapp {
  background: linear-gradient(135deg, rgba(56,176,0,0.95), rgba(0,180,216,0.12));
  color: #04120a;
}

.fab-whatsapp .whatsapp-ico {
  width: 35px;
  height: 35px;
  display: block;
  flex-shrink: 0;
}

/* ensure path inherits color from parent (keeps existing fab color scheme) */
.fab-whatsapp .whatsapp-ico path {
  fill: currentColor;
}

/* keep the fab-whatsapp color as defined, but make sure svg shows up crisp */
.fab-whatsapp {
  color: #ffffff; /* icon color now white */
}

.fab-top.hidden {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
}

/* ============================================
   ANIMAÇÕES DE SCROLL
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  will-change: transform, opacity;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="slide-up"] {
  transform: translateY(24px);
}

[data-animate="fade-in"] {
  transform: translateY(0) scale(0.97);
}

[data-animate="fade-in"].is-visible {
  transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 24px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-photo {
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 12px;
  }

  .nav {
    position: fixed;
    inset: 54px 12px auto;
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(10, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.4);
    flex-direction: column;
    gap: 8px;
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-link {
    padding: 8px 8px;
    width: 100%;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section,
  .section-highlight {
    padding: 72px 0;
  }

  .banner-section {
    padding: 48px 0;
    min-height: 42vh;
  }

  .banner-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .banner-text {
    text-align: center;
  }

  .banner-logo {
    max-width: 200px;
  }

  .banner-svg-overlay {
    height: 100px;
    bottom: -50px;
    animation: divider-fall-mobile 560ms cubic-bezier(0.22, 0.9, 0.25, 1) 100ms forwards;
  }

  @keyframes divider-fall-mobile {
    0% {
      transform: translateY(28px);
      opacity: 0;
    }
    70% {
      transform: translateY(-4px);
      opacity: 1;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

   .hero {
padding-top: 56px;
}
.hero-grid {
grid-template-columns: minmax(0, 1fr);
}
.hero-aside {
order: -1;
}
.avatar-wrapper {
margin-inline: auto;
width: 150px;
}
.hero-stats {
max-width: 100%;
}
.services-grid {
grid-template-columns: minmax(0, 1fr);
}
.projects-grid {
gap: 20px;
}
.project-card {
padding: 16px;
border-radius: 18px;
}
.project-media {
min-height: 130px;
}
.contact-grid {
gap: 24px;
}
.footer-inner {
flex-direction: column;
align-items: flex-start;
}
.modal-content {
max-height: 90vh;
padding: 20px;
}
.section::before {
left: 8px;
top: 12px;
bottom: 12px;
width: 5px;
}
.section-header {
padding: 10px 12px;
border-radius: 10px;
}
}
@media (max-width: 420px) {
.hero-actions {
flex-direction: column;
align-items: stretch;
}
.btn {
width: 100%;
justify-content: center;
}
.fab {
width: 48px;
height: 48px;
font-size: 18px;
border-radius: 12px;
}
.fab-group {
right: 12px;
bottom: 14px;
gap: 10px;
}
}
/* ============================================
PREFERS 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;
}
.avatar-glow {
animation: none;
}
}
/* ============================================
PRINT STYLES
============================================ */
@media print {
.site-header,
.scroll-progress,
.fab-group,
.nav-toggle,
.modal-overlay {
display: none !important;
}
body {
background: white;
color: black;
}
.section {
page-break-inside: avoid;
}