/* =========================================================
   ROGER FERNANDO — DESIGN & WEB STUDIO
   Reverse-Engineered Visual System (High Fidelity)
   ========================================================= */

:root {
  --bg-hero: #060608;
  --bg-card-dark: #08080a;
  --bg-lime: #c4ff00;
  --bg-light: #efEFEA;
  --bg-card-cream: #f6f6f2;

  --accent-lime: #c8ff00;
  --accent-magenta: #ff2e93;
  --accent-pink: #ff3b9a;
  --accent-purple: #6e00ff;

  --text-white: #ffffff;
  --text-muted: #a6a6b3;
  --text-black: #0a0a0c;
  --text-dark-muted: #2c2c32;

  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1280px;
  --radius-pill: 999px;
  --radius-card: 18px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-hero);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =========================================================
   SHARED BUTTONS & BADGES
   ========================================================= */
.circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.circle-icon--outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-white);
}

.circle-icon--dark {
  background: var(--bg-hero);
  color: var(--accent-lime);
}

.circle-icon--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
}

.circle-icon--lime {
  background: var(--accent-lime);
  color: var(--text-black);
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-outline-pill:hover {
  border-color: var(--accent-lime);
  background: rgba(200, 255, 0, 0.06);
}

.btn-outline-pill:hover .circle-icon {
  transform: translateX(2px);
}

.btn-outline-pill--wa {
  padding: 12px 22px;
  gap: 10px;
}

.btn-lime-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--text-black);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-lime-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 255, 0, 0.28);
}

.btn-lime-pill:hover .circle-icon {
  transform: translateX(2px);
}

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-ghost-link:hover {
  color: var(--accent-lime);
}

.btn-ghost-link:hover .circle-icon {
  border-color: var(--accent-lime);
  transform: translate(2px, 2px);
}

.btn-light-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 10, 12, 0.16);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-black);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-light-pill:hover {
  transform: translateY(-2px);
  border-color: var(--text-black);
  background: #ffffff;
}

/* =========================================================
   SEÇÃO 01: HEADER + HERO
   ========================================================= */
.hero-section {
  position: relative;
  background-color: var(--bg-hero);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 96px 0 48px;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: 8%;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(110, 0, 255, 0.42) 0%,
    rgba(180, 0, 140, 0.16) 40%,
    rgba(6, 6, 8, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

.deco-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
}
.deco-sparkle--hero-1 { top: 132px; left: 26px; }
.deco-sparkle--hero-2 { top: 158px; left: 530px; color: var(--accent-lime); font-size: 14px; }
.deco-sparkle--hero-3 { bottom: 96px; left: 380px; color: rgba(255, 255, 255, 0.45); }

/* Header (somente no topo do Hero) */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-mark-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.45));
}

.brand-wordmark {
  position: relative;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--text-white);
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  margin-left: 3px;
  vertical-align: top;
  margin-top: 2px;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.mobile-menu-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--text-white);
}

.mobile-drawer {
  position: absolute;
  top: 76px;
  left: 20px;
  right: 20px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero Container & Grid */
.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 12px;
}

.margin-index {
  position: absolute;
  left: 20px;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

.margin-plus {
  font-size: 14px;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 7.2vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline .line {
  display: block;
}

.line--white { color: var(--text-white); }
.line--lime { color: var(--accent-lime); }
.line--magenta { color: var(--accent-magenta); }

.hero-subtitle {
  max-width: 390px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #b4b4c0;
  margin-bottom: 34px;
}

.inline-sparkle {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* Hero Visual Column */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-orbit-ring {
  position: absolute;
  inset: -12px;
  pointer-events: none;
}

.hero-orbit-ring svg {
  width: 100%;
  height: 100%;
}

.hero-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.hero-3d-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: heroFloat3D 6s ease-in-out infinite;
  will-change: transform;
}

.hero-3d-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-3d-back-glow {
  inset: 12% 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(200, 255, 0, 0.32) 0%,
    rgba(123, 44, 191, 0.55) 42%,
    rgba(255, 46, 147, 0.25) 70%,
    transparent 85%
  );
  filter: blur(26px);
  transform: translateZ(-55px);
}

.hero-3d-ring {
  inset: 6% 4%;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 255, 0, 0.35);
  box-shadow: 0 0 36px rgba(123, 44, 191, 0.45), inset 0 0 28px rgba(255, 46, 147, 0.22);
  transform: translateZ(-25px) rotateX(62deg) rotateY(-14deg);
}

.hero-3d-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: translateZ(36px);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 28px rgba(123, 44, 191, 0.5));
}

@keyframes heroFloat3D {
  0%, 100% {
    transform: translateY(0px) rotateX(2deg) rotateY(-4deg);
  }
  50% {
    transform: translateY(-12px) rotateX(-2deg) rotateY(4deg);
  }
}

.floating-pill {
  position: absolute;
  left: -18px;
  top: 34%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3;
}

.floating-pill::after {
  content: '+';
  position: absolute;
  top: -6px;
  right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.floating-pill-text {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
}

.social-proof {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-hero);
  background: linear-gradient(135deg, #3a3a45, #18181e);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
}

.avatar-circle:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #5a189a, #240046);
}

.avatar-circle:nth-child(2) {
  background: linear-gradient(135deg, #ff2e93, #590030);
}

.social-proof-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-proof-text strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-white);
}

.social-proof-text span {
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--text-muted);
}

.vertical-ticker {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  z-index: 2;
}

/* =========================================================
   SEÇÃO 02: O QUE FAZEMOS (ELECTRIC LIME #C4FF00)
   ========================================================= */
.services-section {
  position: relative;
  background-color: var(--bg-lime);
  color: var(--text-black);
  padding: 78px 0 88px;
  overflow: hidden;
}

.liquid-edge {
  position: absolute;
  top: 60px;
  width: 150px;
  pointer-events: none;
  z-index: 0;
}

.liquid-edge--left { left: -20px; }
.liquid-edge--right { right: -20px; }

.services-section .container {
  position: relative;
  z-index: 2;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.section-num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(10, 10, 12, 0.85);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.pink-asterisk {
  color: var(--accent-magenta);
  font-size: 0.52em;
  vertical-align: super;
  margin-left: 4px;
}

.section-desc-box {
  max-width: 340px;
}

.section-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dark-muted);
}

.squiggle-line {
  margin-top: 10px;
}

/* 4-Column Service Cards with Chamfered Top-Right Corner */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  background-color: var(--bg-card-dark);
  color: var(--text-white);
  border-radius: 16px 0 16px 16px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.25);
}

.service-card-top {
  padding: 24px 22px 12px;
  position: relative;
  z-index: 2;
}

.service-index-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.service-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-lime);
}

.service-index--magenta {
  color: var(--accent-magenta);
}

.service-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-text {
  font-size: 13px;
  line-height: 1.48;
  color: #b4b4c0;
}

.service-visual {
  position: relative;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.service-3d-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-3d-svg {
  transform: scale(1.06);
}

.card-arrow-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 10, 0.72);
  color: var(--accent-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  z-index: 3;
}

.card-arrow-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent-lime);
  background: var(--bg-hero);
}

.card-arrow-btn--magenta {
  background: var(--accent-magenta);
  border-color: var(--accent-magenta);
  color: var(--bg-hero);
}

.card-arrow-btn--magenta:hover {
  background: #ff52a7;
  border-color: #ff52a7;
}

/* =========================================================
   SEÇÃO 03: PROJETOS QUE NOS ORGULHAM (#EFEFEA)
   ========================================================= */
.projects-section {
  position: relative;
  background-color: var(--bg-light);
  color: var(--text-black);
  padding: 84px 0 104px;
  overflow: hidden;
}

.projects-margin-deco {
  position: absolute;
  left: 20px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0.7;
  pointer-events: none;
}

.barcode-strip {
  width: 20px;
  height: 76px;
  background: repeating-linear-gradient(
    to bottom,
    #18181b 0px,
    #18181b 2px,
    transparent 2px,
    transparent 4px,
    #18181b 4px,
    #18181b 5px,
    transparent 5px,
    transparent 8px
  );
}

.projects-header-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 54px;
}

.dot-grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
}

.dot-grid-icon i {
  display: block;
  width: 4px;
  height: 4px;
  background: #141418;
  border-radius: 1px;
}

.projects-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.p-line {
  display: block;
}

.p-line--pink {
  color: var(--accent-pink);
}

.double-squiggle {
  margin-top: 10px;
}

/* 3 Tilted Portfolio Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 12px 6px;
}

.project-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.project-card--dark {
  background: #0a0a0e;
  color: var(--text-white);
  box-shadow: 0 22px 44px rgba(10, 10, 15, 0.18);
}

.project-card--cream {
  background: var(--bg-card-cream);
  color: var(--text-black);
  border: 1px solid rgba(10, 10, 12, 0.08);
  box-shadow: 0 22px 44px rgba(10, 10, 15, 0.1);
}

.project-card--tilt-left { transform: rotate(-3deg); }
.project-card--tilt-right { transform: rotate(1.6deg) translateY(-6px); }
.project-card--tilt-left-2 { transform: rotate(-2.5deg); }

.project-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.015);
  box-shadow: 0 28px 56px rgba(10, 10, 15, 0.24);
  z-index: 4;
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.project-sub {
  font-size: 13px;
  opacity: 0.72;
}

.project-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.project-stamp-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px dashed rgba(130, 190, 0, 0.8);
  color: #7ab800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.project-media {
  margin: 18px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
}

.project-art-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.tag-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.tag-pill--dark {
  border-color: rgba(10, 10, 12, 0.16);
  background: #141418;
  color: var(--text-white);
}

/* =========================================================
   SEÇÃO SOBRE: ROGER FERNANDO
   ========================================================= */
.about-section {
  background-color: var(--bg-hero);
  color: var(--text-white);
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-left .margin-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
  margin-bottom: 10px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-magenta);
  text-transform: uppercase;
}

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

.about-text {
  font-size: 15px;
  line-height: 1.65;
  color: #c8c8d4;
}

.about-text strong {
  color: var(--text-white);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-lime);
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   SEÇÃO 04: PROCESSO & FOOTER / CONTATO
   ========================================================= */
.footer-section {
  background-color: var(--bg-hero);
  color: var(--text-white);
  padding: 72px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.process-header .margin-num {
  display: block;
  font-size: 12px;
  color: var(--accent-lime);
  margin-bottom: 8px;
}

.process-heading {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-idx {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 10px;
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-cta-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 56px 0;
  align-items: center;
}

.footer-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-magenta);
  margin-bottom: 12px;
}

.footer-big-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  line-height: 0.94;
  margin-bottom: 28px;
}

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

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 18px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: var(--accent-lime);
}

.social-links-row {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.social-links-row a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0f0f14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 32px 28px;
  color: var(--text-white);
}

.modal-card--project {
  max-width: 560px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.modal-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #060608;
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-lime);
}

.modal-alt-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-alt-link:hover {
  color: var(--accent-lime);
}

.project-modal-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #060608;
  margin-bottom: 16px;
  max-height: 240px;
}

.project-modal-desc {
  font-size: 14px;
  color: #c8c8d2;
  margin-bottom: 14px;
}

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

/* Image-Only Dynamic Portfolio Cards (5 cols desktop, 2 cols mobile, no scrollbar) */
.projects-grid--images {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
  padding: 16px 6px;
  width: 100%;
  max-height: none;
  overflow: visible;
}

.portfolio-image-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0e;
  aspect-ratio: 4 / 5;
  padding: 0;
  box-shadow: 0 18px 36px rgba(10, 10, 15, 0.16);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.portfolio-image-card:nth-child(5n + 1) { transform: rotate(-2deg); }
.portfolio-image-card:nth-child(5n + 2) { transform: rotate(1.4deg) translateY(-4px); }
.portfolio-image-card:nth-child(5n + 3) { transform: rotate(-1.5deg); }
.portfolio-image-card:nth-child(5n + 4) { transform: rotate(1.6deg) translateY(-4px); }
.portfolio-image-card:nth-child(5n + 5) { transform: rotate(-1.8deg); }

.portfolio-image-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.02);
  box-shadow: 0 28px 56px rgba(10, 10, 15, 0.24);
  z-index: 4;
}

.portfolio-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-empty-state {
  grid-column: 1 / -1;
  border: 1.5px dashed rgba(10, 10, 12, 0.22);
  border-radius: 20px;
  padding: 54px 24px;
  text-align: center;
  color: rgba(10, 10, 12, 0.65);
  font-size: 14px;
}

.portfolio-empty-state code {
  background: rgba(10, 10, 12, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--text-black);
}

.modal-card--lightbox {
  max-width: min(94vw, 1020px);
  padding: 16px;
  background: #0a0a0e;
}

.modal-card--lightbox .modal-close {
  top: 24px;
  right: 24px;
  background: rgba(6, 6, 8, 0.84);
  z-index: 4;
}

.lightbox-controls {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 6, 8, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.lightbox-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-btn--text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding-left: 10px;
}

.lightbox-btn:hover {
  background: var(--accent-lime);
  color: var(--text-black);
}

.lightbox-zoom-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-lime);
  min-width: 44px;
  text-align: center;
}

.lightbox-viewport {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060608;
  touch-action: none;
  user-select: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  cursor: zoom-in;
}

.lightbox-img.is-zoomed {
  cursor: grab;
}

.lightbox-img.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 1080px) {
  .container {
    padding: 0 32px;
  }

  .margin-index,
  .vertical-ticker,
  .projects-margin-deco {
    display: none;
  }

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

  .projects-header-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .projects-grid--images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 12px 0;
  }

  .project-card--tilt-left,
  .project-card--tilt-right,
  .project-card--tilt-left-2,
  .portfolio-image-card:nth-child(n) {
    transform: none;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cta-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav,
  .header-actions .btn-outline-pill {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 12px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-3d-wrap {
    max-width: 340px;
  }

  .floating-pill {
    left: 6px;
    top: 18%;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }

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

  .hero-headline {
    font-size: 56px;
  }

  .projects-grid--images {
    gap: 12px;
  }

  .portfolio-image-card {
    border-radius: 16px;
  }
}

/* =========================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--text-black);
  border: 2px solid var(--bg-hero);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  background: #d9ff3b;
}

@media (max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   ERROR PAGES (403 / 404 / 500)
   ========================================================= */
.error-page {
  position: relative;
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0;
}

.error-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.error-box {
  max-width: 640px;
}

.error-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
  border: 1px solid rgba(200, 255, 0, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.error-code--magenta {
  color: var(--accent-magenta);
  border-color: rgba(255, 46, 147, 0.4);
}

.error-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 32px;
}

@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;
  }
}
