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

:root {
  --bg: #000000;
  --bg2: #000000;
  --bg3: #000000;
  --red: #e30000;
  --red-bright: #ff1a1a;
  --red-glow: rgba(227,0,0,0.22);
  --red-glow-strong: rgba(255,26,26,0.4);
  --red-neon: 0 0 6px #ff1a1a, 0 0 18px rgba(255,0,0,0.5), 0 0 40px rgba(200,0,0,0.25);
  --white: #ffffff;
  --gray: rgba(255,255,255,0.45);
  --gray-light: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.07);
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.72) 8%,
    rgba(0,0,0,0.18) 18%,
    transparent 30%,
    transparent 70%,
    rgba(0,0,0,0.18) 82%,
    rgba(0,0,0,0.72) 92%,
    rgba(0,0,0,0.96) 100%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ===== NOISE OVERLAY (apenas nas seções abaixo do hero) ===== */
.noise {
  position: fixed;
  left: 0;
  right: 0;
  top: 100vh;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.section { padding: 100px 0; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8,0,0,0.55);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,26,26,0.15);
  box-shadow: 0 0 30px rgba(200,0,0,0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
  position: relative;
  text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; right: 50%;
  height: 1px;
  background: var(--red-bright);
  box-shadow: 0 0 6px var(--red-bright);
  transition: left 0.25s, right 0.25s;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,1), 0 0 24px rgba(0,0,0,0.6);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  left: 0; right: 0;
}

.audio-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 120;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255,0,0,0.22);
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.audio-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 26px rgba(255,0,0,0.34);
}

.audio-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.audio-toggle svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.audio-toggle .sound-wave {
  display: none;
}

.audio-toggle .muted-line {
  display: block;
}

.audio-toggle.is-playing .sound-wave {
  display: block;
}

.audio-toggle.is-playing .muted-line {
  display: none;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 62px;
  background: var(--bg);
}

/* ---- BACKGROUND IMAGE ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  display: block;
  z-index: 0;
  filter: none;
  transform: none;
}

.hero-bg-fade-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.7) 20%,
    rgba(0,0,0,0.1) 40%,
    transparent 55%
  );
}

.hero-bg-fade-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.7) 20%,
    rgba(0,0,0,0.1) 40%,
    transparent 55%
  );
}

.hero-bg-fade-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    transparent 15%
  );
}

.hero-bg-fade-bottom {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ---- CONTEÚDO CENTRALIZADO ---- */
.hero-center-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px 20px;
  position: relative;
  z-index: 2;
  align-self: center;
  transform: none;
}

.hero-ola {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  padding: 2px 14px;
  text-shadow: none;
}

.hero-ola::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: skewX(-6deg);
  z-index: -1;
  box-shadow: 0 0 14px rgba(255,0,0,0.6), 0 0 30px rgba(200,0,0,0.3);
  /* efeito tinta irregular */
  clip-path: polygon(2% 0%, 98% 3%, 100% 85%, 97% 100%, 1% 97%);
}

.hero-name-wrap {
  position: relative;
  margin-top: 10px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-crown {
  position: absolute;
  top: -20px;
  left: 4px;
  width: 44px;
}

.hero-name {
  font-family: 'Bebas Neue', var(--font-title);
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--white);
  position: relative;
  text-shadow:
    0 0 40px rgba(255,26,26,0.15),
    2px 3px 0 rgba(120,80,55,0.24);
}

.hero-brush {
  height: 7px;
  background: linear-gradient(to right, var(--red), var(--red-bright), var(--red));
  width: 100%;
  margin: 10px auto 0;
  clip-path: polygon(0 0, 99% 0, 100% 100%, 0% 100%);
  box-shadow: 0 0 14px var(--red), 0 0 32px rgba(255,0,0,0.45);
  opacity: 1;
}

.hero-role {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.2;
  margin: 20px 0 18px;
  text-transform: uppercase;
  white-space: normal;
  text-shadow: none;
}

.hero-role .red {
  color: var(--red-bright);
  text-shadow: none;
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
  text-align: center;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border-color: var(--red-bright);
  color: #fff;
  text-shadow: 0 0 10px rgba(255,26,26,0.7);
  box-shadow: 0 0 16px rgba(255,0,0,0.35), inset 0 0 16px rgba(255,0,0,0.06);
  animation: btnGlowPulse 2.5s ease-in-out infinite;
  transition: background 0.25s, box-shadow 0.25s, text-shadow 0.25s;
}

.btn-hero:hover,
.btn-hero:active {
  background: var(--red);
  box-shadow: 0 0 30px rgba(255,0,0,0.8), inset 0 0 30px rgba(255,40,40,0.3);
  text-shadow: 0 0 16px rgba(255,255,255,0.9);
  animation-play-state: paused;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,0,0,0.3), inset 0 0 10px rgba(255,0,0,0.04); }
  50%      { box-shadow: 0 0 28px rgba(255,26,26,0.65), inset 0 0 20px rgba(255,0,0,0.1); }
}

/* sweep de luz contínuo */
.btn-hero .sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,60,60,0.2) 50%, transparent 80%);
  pointer-events: none;
  animation: sweepLoop 2.2s ease-in-out infinite;
}

@keyframes sweepLoop {
  0%   { transform: translateX(-110%); }
  60%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

/* barra inferior */
.btn-hero .charge-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, #e30000, #ff1a1a, #ff6060);
  box-shadow: 0 0 8px #ff1a1a, 0 0 18px rgba(255,0,0,0.5);
  pointer-events: none;
  animation: barLoop 2.2s ease-in-out infinite;
}

@keyframes barLoop {
  0%        { width: 0%;    left: 0; }
  50%       { width: 100%;  left: 0; }
  50.001%   { width: 100%;  left: 0; right: 0; }
  100%      { width: 0%;    left: 100%; }
}

/* cantos sempre visíveis pulsando */
.charge-corner {
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--red-bright);
  border-style: solid;
  pointer-events: none;
  animation: cornerGlow 1.4s ease-in-out infinite alternate;
}
.charge-corner.tl { top: 0; left: 0;   border-width: 2px 0 0 2px; }
.charge-corner.tr { top: 0; right: 0;  border-width: 2px 2px 0 0; }
.charge-corner.bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.charge-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.charge-corner.tr, .charge-corner.bl { animation-delay: 0.35s; }
.charge-corner.br { animation-delay: 0.7s; }

@keyframes cornerGlow {
  from { opacity: 0.4; box-shadow: 0 0 4px var(--red); }
  to   { opacity: 1;   box-shadow: 0 0 10px var(--red-bright), 0 0 20px rgba(255,0,0,0.4); }
}


/* ---- SCROLL INDICATOR ---- */

.projetos-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---- TAGLINE STRIP ---- */
.tagline-strip {
  grid-area: strip;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.95);
  position: relative;
  z-index: 2;
}

.tagline-strip span {
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.tagline-strip .dot {
  color: var(--red);
  font-size: 0.5rem;
  letter-spacing: 0;
}

/* ===== BUTTONS (other sections) ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-full { width: 100%; text-align: center; }

/* ===== SECTION COMMON ===== */
.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.accent-text { color: var(--red); }

.red-line {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 32px;
}

/* ===== SOBRE ===== */
.sobre-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  background: #f5f1ea;
  margin-top: 0;
}

.sobre-section::before {
  content: none;
}

.sobre-section::after {
  content: none;
}

.sobre-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sobre-center {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sobre-center .red-line {
  margin: 16px auto 32px;
}

.sobre-text {
  color: var(--red);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.sobre-ink {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  padding: 24px 32px;
  background: var(--red);
  border: none;
  border-radius: 2px 8px 4px 6px / 6px 2px 8px 3px;
  box-shadow: 0 0 24px rgba(227,0,0,0.25), 0 0 50px rgba(0,0,0,0.12);
  transform: rotate(-0.5deg);
  margin-left: auto;
  margin-right: auto;
}

.sobre-section .section-title {
  color: var(--red);
}

.sobre-ink span { transform: rotate(0.5deg); display: block; }

.sobre-links {
  display: flex;
  gap: 18px;
  margin-top: 42px;
  justify-content: center;
  align-items: center;
  width: auto;
}

.sobre-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--red);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 50%;
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
  animation: iconFloat 3.6s ease-in-out infinite;
}

.sobre-link svg {
  width: 26px;
  height: 26px;
  display: block;
}

.sobre-links .sobre-link:first-child {
  color: #000000;
}

.sobre-links .sobre-link:last-child {
  color: #e1306c;
}

.sobre-link:hover {
  color: var(--red-bright);
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255,26,26,0.22));
}

.sobre-links .sobre-link:nth-child(2) {
  animation-delay: 0.18s;
}

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

/* ===== PROJETOS ===== */
.projetos-section {
  position: relative;
  background: url('background2.png') center center / cover no-repeat;
}

.projetos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 0;
}

.projetos-section .container {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
  gap: 20px;
}

.ver-todos {
  color: var(--red);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: color 0.2s;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.ver-todos:hover { color: var(--red-bright); }

.projetos-grid {
  overflow: hidden;
  overflow-y: hidden;
  width: 100%;
  will-change: transform;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  contain: layout paint;
}

.projetos-grid::-webkit-scrollbar { display: none; }

.projetos-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 24px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.projetos-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

.projeto-card,
.servico-card {
  position: relative;
  border: 1px solid rgba(227,0,0,0.18);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.projeto-card {
  flex: 0 0 320px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.projeto-card::before,
.servico-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(227,0,0,0.035) 0px,
    rgba(227,0,0,0.035) 1px,
    transparent 1px,
    transparent 72px
  );
  pointer-events: none;
  z-index: 0;
}

.projeto-card::after,
.servico-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(227,0,0,0.06) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.projeto-card:hover,
.servico-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227,0,0,0.45);
}

.projeto-info {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.projeto-info h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--red);
}

.projeto-info p {
  color: rgba(227,0,0,0.8);
  font-size: 0.84rem;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.projeto-tags span {
  padding: 3px 10px;
  background: rgba(227,0,0,0.06);
  border: 1px solid rgba(227,0,0,0.22);
  font-size: 0.68rem;
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  color: var(--red);
}

.btn-projeto,
.btn-servico {
  position: relative;
  margin-top: auto;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-title);
  letter-spacing: 0.18em;
  overflow: hidden;
  animation: btnGlowPulse 2.5s ease-in-out infinite;
}

.btn-projeto {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.72rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-projeto:hover,
.btn-servico:hover {
  background: var(--red);
  color: #fff;
}

/* ===== STATS ===== */
.stats-section {
  padding: 60px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(227,0,0,0.05) 0px,
    rgba(227,0,0,0.05) 1px,
    transparent 1px,
    transparent 80px
  );
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  gap: 8px;
}

.stat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  min-width: 1.5ch;
  transition: transform 0.2s ease;
  text-shadow: 0 0 18px rgba(227,0,0,0.08);
  font-variant-numeric: tabular-nums;
}

.stat-num.is-infinity {
  display: inline-block;
  transform: scale(1.35);
  transform-origin: center;
  min-width: 1.8ch;
  margin-bottom: 0;
}

.stat-label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(227,0,0,0.78);
  text-align: center;
  min-height: 2.25em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ===== FRASE ===== */
.frase-section {
  padding: 48px 0;
  background: var(--bg2);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.frase-marquee-wrap {
  overflow: hidden;
  width: 100%;
}

.frase-marquee {
  display: flex;
  width: max-content;
  animation: fraseScroll 22s linear infinite;
}

.frase-marquee span {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
  padding-right: 0;
}

.frase-marquee span .accent-text,
.frase-marquee span em {
  color: var(--red-bright);
}

@keyframes fraseScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== QUOTE ===== */
.quote-section {
  padding: 80px 0;
  background: var(--bg2);
}

.quote-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.quote-text {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--white);
  font-style: normal;
  max-width: 680px;
}

.quote-deco {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  opacity: 0.4;
  animation: rotateSlow 20s linear infinite;
}

.quote-deco.right { animation-direction: reverse; }

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

/* ===== SERVIÇOS ===== */
.servicos-section {
  position: relative;
  z-index: 1;
  background: url('background2.png') center center / cover no-repeat;
}

.servicos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 0;
}

.servicos-section .container {
  position: relative;
  z-index: 1;
}

.servicos-header {
  text-align: center;
}

.servicos-line {
  margin: 16px auto 40px;
}

.servicos-sub {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 56px;
  letter-spacing: 0.02em;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.servico-card {
  padding: 30px 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.servico-card h3 {
  font-family: var(--font-title);
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: var(--red);
  position: relative;
  z-index: 1;
}

.servico-card p {
  color: rgba(227,0,0,0.8);
  font-size: 0.85rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.btn-servico {
  margin-top: 24px;
  padding: 12px 24px;
  font-size: 0.78rem;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.btn-projeto .charge-corner,
.btn-servico .charge-corner {
  position: absolute;
  width: 8px;
  height: 8px;
}

.btn-projeto .charge-corner.tl,
.btn-servico .charge-corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--red-bright);
  border-left: 2px solid var(--red-bright);
  animation: cornerGlow 1.4s ease-in-out infinite alternate;
}

.btn-projeto .charge-corner.tr,
.btn-servico .charge-corner.tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--red-bright);
  border-right: 2px solid var(--red-bright);
  animation: cornerGlow 1.4s ease-in-out infinite alternate 0.35s;
}

.btn-projeto .charge-corner.bl,
.btn-servico .charge-corner.bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--red-bright);
  border-left: 2px solid var(--red-bright);
  animation: cornerGlow 1.4s ease-in-out infinite alternate 0.7s;
}

.btn-projeto .charge-corner.br,
.btn-servico .charge-corner.br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--red-bright);
  border-right: 2px solid var(--red-bright);
  animation: cornerGlow 1.4s ease-in-out infinite alternate 1.05s;
}

.btn-projeto .charge-bar,
.btn-servico .charge-bar {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  animation: barLoop 2.2s ease-in-out infinite;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid rgba(192,57,43,0.3);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(200,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-box .section-title {
  color: var(--red);
}

.modal-box .accent-text {
  color: #000000;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--red); }

/* ===== CONTATO ===== */
.contato-section { background: var(--bg); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contato-sub {
  color: rgba(0,0,0,0.72);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contato-infos { display: flex; flex-direction: column; gap: 24px; }

.contato-item { display: flex; flex-direction: column; gap: 4px; }

.ci-label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
}

.ci-val {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.ci-val:hover { color: var(--red-bright); }

/* ===== FORM ===== */
.contato-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(0,0,0,0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(227,0,0,0.18);
  color: #000000;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0,0,0,0.3);
}

.form-success {
  display: none;
  padding: 18px 20px;
  border: 1px solid rgba(227,0,0,0.28);
  background: rgba(227,0,0,0.08);
  color: var(--red);
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-success.visible { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  width: 100%;
  padding: 24px 0;
  background: #f5f1ea;
  border-top: 1px solid rgba(227,0,0,0.18);
  text-align: center;
  position: relative;
  z-index: 9999;
}

.site-footer-copy {
  color: rgba(227,0,0,0.72);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-weight: 700;
  text-shadow: none;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 60px; }
  .stats-grid .stat-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  .nav-inner {
    padding: 0 16px;
    justify-content: center;
  }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: center;
  }
  .audio-toggle {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-center-content {
    padding: 48px 24px 20px;
  }
  .hero-ola {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    padding: 3px 10px;
  }
  .hero-name {
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }
  .hero-role {
    max-width: 320px;
    margin: 18px auto 18px;
    line-height: 1.35;
  }
  .btn-hero {
    width: 100%;
    max-width: 320px;
    padding: 14px 22px;
    letter-spacing: 0.12em;
  }

  .sobre-ink {
    padding: 20px 18px;
    line-height: 1.7;
  }
  .sobre-links {
    flex-direction: row;
    gap: 14px;
    justify-content: center;
  }
  .sobre-link {
    width: auto;
  }

  .contato-grid { grid-template-columns: 1fr; gap: 48px; }

  .servicos-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .projetos-track,
  .projetos-group {
    gap: 18px;
  }
  .projeto-card,
  .servico-card {
    min-width: 0;
  }
  .projeto-info,
  .servico-card {
    padding-left: 20px;
    padding-right: 20px;
  }
  .projeto-thumb {
    height: 148px;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .modal-box {
    padding: 28px 20px 20px;
    max-height: 88svh;
  }
  .contato-form {
    gap: 16px;
  }

  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header .section-title {
    width: 100%;
  }

  .quote-wrap { flex-direction: column; gap: 24px; }
  .quote-deco { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .nav-inner {
    height: auto;
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nav-links {
    gap: 10px 14px;
  }
  .audio-toggle {
    bottom: 14px;
    right: 14px;
  }
  .hero {
    padding-top: 70px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-name { font-size: clamp(4rem, 22vw, 7rem); }
  .hero-role {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
  }
  .section-title {
    margin-bottom: 12px;
  }
  .projeto-tags span {
    font-size: 0.62rem;
    padding: 3px 8px;
  }
  .btn-projeto,
  .btn-servico {
    width: 100%;
    text-align: center;
  }
  .stat-num {
    font-size: 2.1rem;
  }
  .stat-label {
    letter-spacing: 0.12em;
    font-size: 0.6rem;
  }
  .site-footer-copy {
    font-size: 0.72rem;
  }
}
