@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Inter:wght@100..900&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --yggra: #99f773;
  --yggra-dim: #6bd94e;
  --dark: #070708;
  --dark-card: #0f0f12;
  --dark-border: #1a1a1d;
  --light: #fcfcfb;
  --light-card: #ffffff;
  --light-border: #e6e6e2;
  --radius: 1.5rem;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: #d1d1cc;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
}

body.light {
  background: var(--light);
  color: #333333;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}


/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-transform: none;
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5 {
  color: #000;
}

.text-gradient {
  background: linear-gradient(135deg, var(--yggra) 0%, #4ade80 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── FAN SLIDER (LEQUE) ─── */
.fan-slider-section {
  padding: 8rem 0;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--dark) 0%, #0d0d0f 100%);
}

body.light .fan-slider-section {
  background: linear-gradient(to bottom, var(--light) 0%, #f4f4f2 100%);
}


.fan-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
}

.fan-card {
  position: absolute;
  width: 420px;
  height: 540px;
  background: var(--dark-card);
  border-radius: 2rem;
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: all 0.7s var(--ease-out-expo);
  transform-origin: center 120%;
  cursor: pointer;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

body.light .fan-card {
  background: var(--light-card);
  border-color: var(--light-border);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.05);
}


.fan-card:nth-child(1) {
  transform: rotate(-12deg) translateX(-180px);
  z-index: 1;
}

.fan-card:nth-child(2) {
  transform: rotate(-4deg) translateX(-60px);
  z-index: 2;
}

.fan-card:nth-child(3) {
  transform: rotate(4deg) translateX(60px);
  z-index: 3;
}

.fan-card:nth-child(4) {
  transform: rotate(12deg) translateX(180px);
  z-index: 4;
}

@media (max-width: 1024px) {
  .fan-container {
    height: auto;
    margin: 4rem 0;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .fan-card {
    position: relative;
    transform: none !important;
    width: 100%;
    max-width: 500px;
  }
}

.fan-card:hover {
  z-index: 10 !important;
  transform: rotate(0deg) translateX(0) translateY(-60px) scale(1.08) !important;
  border-color: var(--yggra);
  box-shadow: 0 50px 120px -20px rgba(153, 247, 115, 0.25);
}

.fan-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--dark-border);
  transition: transform 0.8s var(--ease-out-expo);
}

.fan-card:hover .fan-img {
  transform: scale(1.05);
}

.fan-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fan-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.fan-desc {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.fan-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
}

.fan-stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--yggra);
  font-family: var(--font-display);
}

.fan-stat-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}

/* ─── PROCESS SECTION ─── */
.process-section {
  padding: 10rem 0;
  background: var(--dark);
  position: relative;
}

body.light .process-section {
  background: var(--light);
}


.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 968px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .process-visual {
    order: -1;
  }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-step {
  display: flex;
  gap: 2rem;
  opacity: 0.4;
  transition: all 0.5s;
}

.process-step.active {
  opacity: 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
  line-height: 0.8;
}

.process-step.active .step-num {
  -webkit-text-stroke-color: var(--yggra);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #888;
  font-size: 1rem;
}

.process-visual {
  position: relative;
}

.process-main-img {
  width: 100%;
  border-radius: 3rem;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}

.process-badge {
  position: absolute;
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pb-aws {
  top: -5%;
  right: -5%;
}

.pb-ai {
  bottom: 10%;
  left: -10%;
}

.pb-icon {
  width: 48px;
  height: 48px;
  background: #222;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pb-text strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.pb-text span {
  font-size: 0.8rem;
  color: var(--yggra);
}

/* Global overrides */
h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(153, 247, 115, 0.1);
  color: var(--yggra);
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ─── FLOATING 3D NAV ─── */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  pointer-events: none;
  transition: padding 0.4s var(--ease-out-expo);
}

.nav-wrap.scrolled {
  padding: 0.5rem 1.5rem;
}

.nav-bar {
  max-width: 72rem;
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(153, 247, 115, 0.1), 0 8px 32px -8px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(153, 247, 115, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--ease-out-expo);
  transform: perspective(600px) rotateX(1deg);
  transform-style: preserve-3d;
}

.nav-bar:hover {
  box-shadow: 0 0 0 1px rgba(153, 247, 115, 0.2), 0 12px 48px -8px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(153, 247, 115, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: perspective(600px) rotateX(0deg) translateY(-1px);
}

body.light .nav-bar {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(153, 247, 115, 0.15), 0 8px 32px -8px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(153, 247, 115, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light .nav-bar:hover {
  box-shadow: 0 0 0 1px rgba(153, 247, 115, 0.3), 0 12px 48px -8px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(153, 247, 115, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 2rem;
  width: 2rem;
}

.nav-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

body.light .nav-logo span {
  color: #000;
}

.nav-logo .brace {
  color: #555;
}


body.light .nav-logo .brace {
  color: #bbb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: all 0.3s;
  position: relative;
  color: #fff;
}

body.light .nav-links a {
  color: #000;
}


.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yggra);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.5rem;
  background: var(--yggra);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 20px rgba(153, 247, 115, 0.2);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(153, 247, 115, 0.4);
  color: #000 !important;
}

.theme-toggle {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  opacity: 0.7;
  font-size: 1rem;
}

.theme-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

body.light .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobile-toggle {
  display: none;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(153, 247, 115, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: float 12s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle, rgba(153, 247, 115, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  animation: float 15s ease-in-out infinite alternate-reverse;
}

.hero .grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
}

body.light .hero .grid-overlay {
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(153, 247, 115, 0.1);
  border: 1px solid rgba(153, 247, 115, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yggra);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yggra);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.6;
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1rem 2rem;
  background: var(--yggra);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(153, 247, 115, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(153, 247, 115, 0.35);
}

.btn-outline {
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--yggra);
  color: var(--yggra);
}

body.light .btn-outline {
  border-color: rgba(0, 0, 0, 0.12);
}

body.light .btn-outline:hover {
  border-color: var(--yggra-dim);
  color: var(--yggra-dim);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── HERO CODE SCENE ─── */
.hero-code-scene {
  position: relative;
  width: 100%;
  max-width: 28rem;
  min-height: 20rem;
}

/* Code Editor */
.hero-editor {
  position: relative;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 32px 80px -16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px -20px rgba(153, 247, 115, 0.1);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out-expo);
  animation: editorFloat 8s ease-in-out infinite;
  z-index: 2;
}

.hero-editor:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

body.light .hero-editor {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 32px 80px -16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 0 60px -20px rgba(153, 247, 115, 0.06);
}

.editor-titlebar {
  height: 2.25rem;
  background: rgba(30, 30, 35, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
}

body.light .editor-titlebar {
  background: #f0f0f0;
}

.editor-titlebar .ed {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ed.r {
  background: #ff5f57;
}

.ed.y {
  background: #febc2e;
}

.ed.g {
  background: #28c840;
}

.editor-filename {
  margin-left: 0.75rem;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.65rem;
  opacity: 0.4;
}

.editor-body {
  padding: 1rem 0;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.65;
}

.code-line {
  padding: 0.05rem 1.25rem 0.05rem 0;
  display: flex;
  gap: 0;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.2s;
}

.code-line.active {
  background: rgba(153, 247, 115, 0.05);
  border-left-color: var(--yggra);
}

body.light .code-line.active {
  background: rgba(153, 247, 115, 0.08);
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.light .code-line:hover {
  background: rgba(0, 0, 0, 0.02);
}

.code-line .ln {
  display: inline-block;
  width: 2.5rem;
  text-align: right;
  padding-right: 1rem;
  opacity: 0.2;
  user-select: none;
  flex-shrink: 0;
}

.code-line .kw {
  color: #c678dd;
}

.code-line .fn {
  color: #61afef;
}

.code-line .str {
  color: var(--yggra);
}

.code-line .num {
  color: #d19a66;
}

body.light .code-line .kw {
  color: #a626a4;
}

body.light .code-line .fn {
  color: #4078f2;
}

body.light .code-line .str {
  color: #50a14f;
}

body.light .code-line .num {
  color: #986801;
}

/* Floating Tech Badges */
.float-badge {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 15, 18, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
  animation: badgeFloat 6s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

body.light .float-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

.fb-icon {
  font-size: 1rem;
}

/* Status Card */
.hero-status-card {
  position: absolute;
  bottom: 8%;
  right: -10%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 15, 18, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(153, 247, 115, 0.15);
  border-radius: 0.75rem;
  z-index: 4;
  animation: badgeFloat 7s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px -8px rgba(153, 247, 115, 0.1);
}

body.light .hero-status-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(153, 247, 115, 0.2);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

.hero-status-card strong {
  font-size: 0.8rem;
  display: block;
}

.hero-status-card span {
  font-size: 0.65rem;
  opacity: 0.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yggra);
  flex-shrink: 0;
}

.status-dot.pulse {
  animation: statusPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(153, 247, 115, 0.5);
}

/* Metric Card */
.hero-metric-card {
  position: absolute;
  top: 15%;
  right: -8%;
  padding: 0.75rem 1.1rem;
  background: rgba(15, 15, 18, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  text-align: center;
  z-index: 4;
  animation: badgeFloat 5s ease-in-out infinite reverse;
  animation-delay: var(--delay);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

body.light .hero-metric-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yggra);
}

.metric-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-top: 0.1rem;
}

@keyframes editorFloat {

  0%,
  100% {
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(800px) rotateY(-3deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(153, 247, 115, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(153, 247, 115, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(153, 247, 115, 0);
  }
}

/* ─── SECTION COMMON ─── */
section {
  position: relative;
}

.section-pad {
  padding: 8rem 1.5rem;
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yggra);
  margin-bottom: 1rem;
}

.section-label .line {
  width: 2rem;
  height: 2px;
  background: var(--yggra);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  opacity: 0.5;
  max-width: 36rem;
}

/* ─── CLIENT MARQUEE ─── */
.clients-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

body.light .clients-section {
  border-color: rgba(0, 0, 0, 0.06);
}

.clients-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.4;
  margin-bottom: 2rem;
}

.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  --speed: 35s;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--dark) 0%, transparent 100%);
}

body.light .marquee::before {
  background: linear-gradient(to right, var(--light) 0%, transparent 100%);
}

body.light .marquee::after {
  background: linear-gradient(to left, var(--light) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  animation: marquee var(--speed) linear infinite;
  will-change: transform;
}

.marquee-track .logo-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
}

.marquee-track .logo-item img {
  height: 2rem;
  max-width: 140px;
  object-fit: contain;
  transition: all 0.4s;
}

/* SVG logos: WHITE in dark mode, BLACK in light mode */
.marquee-track .logo-item img.svg-logo {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

body.light .marquee-track .logo-item img.svg-logo {
  filter: brightness(0);
  opacity: 0.35;
}

/* PNG logos: grayscale both modes */
.marquee-track .logo-item img.png-logo {
  filter: grayscale(1);
  opacity: 0.4;
}

body.light .marquee-track .logo-item img.png-logo {
  filter: grayscale(1);
  opacity: 0.35;
}

/* Hover: full color */
.marquee-track .logo-item img:hover {
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.1);
}

/* ─── SERVICES BENTO ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  /* slightly more padding for square-ish feel */
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yggra), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(153, 247, 115, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.4);
}

body.light .service-card {
  background: var(--light-card);
  border-color: var(--light-border);
  color: #333;
}


body.light .service-card:hover {
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.1);
}

.service-card.wide {
  grid-column: span 2;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(153, 247, 115, 0.08);
  border: 1px solid rgba(153, 247, 115, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(153, 247, 115, 0.15);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--yggra);
}

.service-card p {
  opacity: 0.5;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ─── PORTFOLIO SLIDER ─── */
.portfolio-section {
  background: rgba(255, 255, 255, 0.02);
}

body.light .portfolio-section {
  background: rgba(0, 0, 0, 0.02);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.portfolio-controls {
  display: flex;
  gap: 0.75rem;
}

.portfolio-controls button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.portfolio-controls button:hover {
  border-color: var(--yggra);
  color: var(--yggra);
  box-shadow: 0 0 16px rgba(153, 247, 115, 0.15);
}

body.light .portfolio-controls button {
  border-color: var(--light-border);
  background: var(--light-card);
}

.slider-viewport {
  overflow: hidden;
  border-radius: 2rem;
}

.slider-track {
  display: flex;
  transition: transform 0.7s var(--ease-out-expo);
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 24px 80px -16px rgba(0, 0, 0, 0.4);
}

body.light .slide {
  background: var(--light-card);
  border-color: var(--light-border);
  box-shadow: 0 24px 80px -16px rgba(0, 0, 0, 0.06);
}

.slide-content {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(153, 247, 115, 0.1);
  border: 1px solid rgba(153, 247, 115, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--yggra);
  margin-bottom: 1.5rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.slide-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.slide-content p {
  opacity: 0.55;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.slide-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
}

body.light .slide-stats {
  border-color: var(--light-border);
}

.slide-stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yggra);
}

.slide-stat .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-top: 0.15rem;
}

.slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.3s;
}

.slide-link:hover {
  color: var(--yggra);
}

.slide-link .arrow {
  transition: transform 0.3s;
}

.slide-link:hover .arrow {
  transform: translateX(6px);
}

.slide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
  min-height: 24rem;
}

.slide-visual.gradient-1 {
  background: linear-gradient(160deg, #0a1a0e 0%, #0d2614 50%, #0a0a0c 100%);
}

.slide-visual.gradient-2 {
  background: linear-gradient(160deg, #0a0a0c 0%, #111118 50%, #0e0e14 100%);
}

.slide-visual.gradient-3 {
  background: linear-gradient(160deg, #0a0e0c 0%, #0d140d 50%, #0a0a0c 100%);
}

body.light .slide-visual.gradient-1 {
  background: linear-gradient(160deg, #f0faf0 0%, #e8f5e8 50%, #f5f5f5 100%);
}

body.light .slide-visual.gradient-2 {
  background: linear-gradient(160deg, #f5f5f8 0%, #eeeff5 50%, #f0f0f4 100%);
}

body.light .slide-visual.gradient-3 {
  background: linear-gradient(160deg, #f0f5f0 0%, #eaf0ea 50%, #f5f5f5 100%);
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slide-dot {
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.4s;
  cursor: pointer;
}

.slide-dot.active {
  background: var(--yggra);
  width: 3.5rem;
}

body.light .slide-dot {
  background: rgba(0, 0, 0, 0.1);
}

body.light .slide-dot.active {
  background: var(--yggra-dim);
}

/* Phone Mockup — Premium 3D perspective */
.phone-mock {
  width: 45%;
  max-width: 220px;
  aspect-ratio: 9/19;
  background: #0d0d0d;
  border-radius: 2.5rem;
  border: 3px solid #2a2a2a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out-expo);
}

.slide:hover .phone-mock {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 1.5rem;
  background: #0d0d0d;
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 3px;
  border-radius: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #111 0%, #0a0a0c 100%);
  overflow: hidden;
}

.phone-screen .app-ui {
  width: 100%;
  padding: 2.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-screen .app-header {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--yggra);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.phone-screen .app-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-screen .app-card .label {
  font-size: 0.6rem;
  opacity: 0.5;
}

.phone-screen .app-card .val {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--yggra);
}

/* Dashboard Mockup — Browser frame with sidebar */
.dash-mock {
  width: 100%;
  max-width: 26rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(800px) rotateY(5deg) rotateX(-2deg);
  transition: transform 0.5s var(--ease-out-expo);
}

.slide:hover .dash-mock {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

body.light .dash-mock {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.1);
}

.dash-titlebar {
  height: 2.25rem;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
}

body.light .dash-titlebar {
  background: #f5f5f5;
}

.dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dash-dot.r {
  background: #ff5f57;
}

.dash-dot.y {
  background: #febc2e;
}

.dash-dot.g {
  background: #28c840;
}

.dash-url {
  margin-left: 0.75rem;
  font-size: 0.65rem;
  font-family: monospace;
  opacity: 0.3;
}

.dash-body {
  padding: 1.5rem;
}

.dash-stats-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

body.light .dash-stat-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.dash-stat-card .sv {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--yggra);
}

.dash-stat-card .sl {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.35;
  margin-top: 0.2rem;
}

.dash-table {
  width: 100%;
}

.dash-table .tr {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.7rem;
}

body.light .dash-table .tr {
  border-color: rgba(0, 0, 0, 0.04);
}

.dash-table .tr .td {
  flex: 1;
  opacity: 0.5;
}

.dash-table .tr .td.highlight {
  color: var(--yggra);
  opacity: 1;
  font-weight: 700;
}

.dash-table .td-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.55rem;
  font-weight: 700;
}

.td-badge.green {
  background: rgba(153, 247, 115, 0.15);
  color: var(--yggra);
}

.td-badge.yellow {
  background: rgba(254, 188, 46, 0.15);
  color: #febc2e;
}

/* Terminal Mockup — Premium */
.terminal-mock {
  width: 100%;
  max-width: 24rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  transform: perspective(800px) rotateY(-3deg);
  transition: transform 0.5s var(--ease-out-expo);
}

.slide:hover .terminal-mock {
  transform: perspective(800px) rotateY(0deg);
}

.terminal-header {
  height: 2rem;
  background: #151515;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem;
}

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.6rem;
  opacity: 0.3;
  font-family: monospace;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  color: var(--yggra);
  line-height: 1.7;
}

.terminal-body .dim {
  color: #444;
}

.terminal-body .white {
  color: #bbb;
}

.terminal-body .success {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: rgba(153, 247, 115, 0.1);
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

/* ─── PRODUCTS & CASES GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(153, 247, 115, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.4);
}

body.light .product-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

body.light .product-card:hover {
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.08);
}

.product-thumb {
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-border);
}

body.light .product-thumb {
  background: #f5f5f5;
  border-color: var(--light-border);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.browser-frame {
  width: 90%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #222;
  background: #0d0d0d;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease-out-expo);
}

body.light .browser-frame {
  border-color: #ddd;
  background: #fff;
}

.product-card:hover .browser-frame {
  transform: scale(1.03);
}

.browser-bar {
  height: 1.5rem;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

body.light .browser-bar {
  background: #eee;
}

.browser-bar .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.browser-bar .d.r {
  background: #ff5f57;
}

.browser-bar .d.y {
  background: #febc2e;
}

.browser-bar .d.g {
  background: #28c840;
}

.browser-frame img {
  width: 100%;
  display: block;
}

.product-info {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yggra);
  margin-bottom: 0.75rem;
}

.product-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.product-info p {
  opacity: 0.5;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

/* Projects list */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.project-item:hover {
  border-color: rgba(153, 247, 115, 0.2);
}

body.light .project-item {
  background: var(--light-card);
  border-color: var(--light-border);
}

.project-item .p-indicator {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yggra);
  flex-shrink: 0;
}

.project-item .p-name {
  font-weight: 600;
  flex: 1;
}

.project-item .p-type {
  font-size: 0.75rem;
  opacity: 0.4;
  font-weight: 500;
}

/* ─── ABOUT ─── */
.about-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 2rem;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body.light .about-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(153, 247, 115, 0.06) 0%, transparent 70%);
  filter: blur(40px);
}

.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-wrap img {
  width: 100%;
  max-width: 20rem;
  border-radius: 1.5rem;
  filter: grayscale(0.5);
  transition: filter 0.5s;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
}

.about-img-wrap:hover img {
  filter: grayscale(0);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-text p {
  opacity: 0.6;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.about-checks {
  list-style: none;
  margin-bottom: 2rem;
}

.about-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.about-checks li .check {
  color: var(--yggra);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ─── FOOTER ─── */
footer {
  padding: 5rem 1.5rem 3rem;
  background: rgba(0, 0, 0, 0.3);
}

body.light footer {
  background: rgba(0, 0, 0, 0.02);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  opacity: 0.5;
  line-height: 1.7;
  margin: 1.25rem 0 1.5rem;
  max-width: 24rem;
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

body.light .footer-socials a {
  background: var(--light-card);
  border-color: var(--light-border);
}

.footer-socials a:hover {
  background: var(--yggra);
  color: #000;
  border-color: transparent;
}

.footer-socials a svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 0.4rem 0;
}

.footer-col ul li a,
.footer-col ul li {
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity 0.3s;
  color: #d1d1cc;
}

body.light .footer-col ul li a,
body.light .footer-col ul li {
  color: #555;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--yggra);
}


.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.4;
}

body.light .footer-bottom {
  border-color: var(--light-border);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  transition: opacity 0.3s;
  color: #d1d1cc;
}

body.light .footer-bottom-links a {
  color: #333;
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--yggra);
}


/* ─── SCROLL REVEAL ─── */
[data-scroll] {
  opacity: 0;
  transition: all 0.9s var(--ease-out-expo);
}

[data-scroll="up"] {
  transform: translateY(60px);
}

[data-scroll="down"] {
  transform: translateY(-60px);
}

[data-scroll="left"] {
  transform: translateX(80px);
}

[data-scroll="right"] {
  transform: translateX(-80px);
}

[data-scroll="scale"] {
  transform: scale(0.9);
}

[data-scroll="fade"] {
  transform: none;
}

[data-scroll].in-view {
  opacity: 1;
  transform: none;
}

[data-scroll-stagger]>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out-expo);
}

[data-scroll-stagger].in-view>*:nth-child(1) {
  transition-delay: 0ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(2) {
  transition-delay: 80ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(3) {
  transition-delay: 160ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(4) {
  transition-delay: 240ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(5) {
  transition-delay: 320ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(6) {
  transition-delay: 400ms;
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(n+7) {
  transition-delay: 480ms;
  opacity: 1;
  transform: none;
}

[data-parallax] {
  will-change: transform;
  transition: none;
}

/* ─── ANIMATIONS ─── */
@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(30px, 40px)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Super high z-index to stay above everything */
  background: var(--dark);
  backdrop-filter: blur(32px);
  display: none;
  /* Change to none by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

body.light .mobile-menu {
  background: rgba(248, 248, 246, 0.95);
}

.mobile-menu.open {
  display: flex;
  /* Show when open */
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  transition: color 0.3s;
  color: #fff;
}

body.light .mobile-menu a {
  color: #000;
}

.mobile-menu a:hover {
  color: var(--yggra);
}


.mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

body.light .mobile-close {
  color: #000;
}

/* ─── RESPONSIVE ─── */
@media (max-width:1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-code-scene {
    max-width: 22rem;
  }

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

  .service-card.wide {
    grid-column: span 2;
  }

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

  .slide-content {
    padding: 2.5rem;
  }

  .slide-visual {
    min-height: 16rem;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2.5rem;
  }

  .about-img-wrap {
    order: -1;
  }

  .about-img-wrap img {
    max-width: 16rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width:768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }

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

  .service-card.wide {
    grid-column: span 1;
  }

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

  .projects-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width:480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-card {
    padding: 1.75rem;
  }

  .slide-content {
    padding: 2rem;
  }

  .slide-content h3 {
    font-size: 1.75rem;
  }
}

/* ─── ENGENHARIA DE RESULTADOS (Screenshots inspired) ─── */

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}

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

.status-label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.status-label .code-sym {
  color: var(--yggra);
  opacity: 0.6;
}

.icon-box {
  position: absolute;
  inset: 0;
  background: rgba(153, 247, 115, 0.05);
  border: 1px solid rgba(153, 247, 115, 0.1);
  border-radius: inherit;
  z-index: -1;
}

/* Architecture & Models */
.architecture-section {
  background: linear-gradient(to bottom, transparent, rgba(153, 247, 115, 0.02));
}

.tech-ticker {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 6rem;
  opacity: 0.6;
}

.tech-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  opacity: 0.3;
}

.tech-name.php {
  color: #777bb4;
}

.tech-name.mysql {
  color: #f29111;
}

.tech-name.vue {
  color: #42b883;
}

.tech-name.react {
  color: #61dafb;
}

.tech-name.python {
  color: #3776ab;
}

.tech-name.ia {
  color: #99f773;
}

.tech-name.aws {
  color: #ff9900;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.model-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

.model-card.featured {
  border-color: rgba(153, 247, 115, 0.4);
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(153, 247, 115, 0.05) 100%);
  transform: scale(1.05);
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yggra);
  color: #000;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
}

.model-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.model-tag {
  color: var(--yggra);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.model-list {
  list-style: none;
  margin-bottom: 3rem;
  text-align: left;
  display: inline-block;
}

.model-list li {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #888;
  position: relative;
  padding-left: 1.5rem;
}

.model-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yggra);
  font-weight: 900;
}

/* CTA */
.cta-section {
  padding: 12rem 0;
}

.cta-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 40rem;
  margin: 0 auto 4rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #25d366;
  color: #fff;
  padding: 1.5rem 3rem;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2);
  transition: all 0.3s var(--ease-spring);
}

.btn-whatsapp:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .header-right {
    text-align: left;
  }

  .tech-ticker {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .tech-name {
    font-size: 1.5rem;
  }

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

  .model-card.featured {
    transform: none;
  }
}

/* ─── SCROLL REVEAL REFINEMENTS (Elementor style) ─── */
[data-scroll] {
  opacity: 0;
  transition: all 1s var(--ease-out-expo);
}

[data-scroll="up"] {
  transform: translateY(40px);
}

[data-scroll="scale"] {
  transform: scale(0.9);
}

[data-scroll].in-view {
  opacity: 1;
  transform: none;
}

[data-scroll-stagger]>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

[data-scroll-stagger].in-view>* {
  opacity: 1;
  transform: none;
}

[data-scroll-stagger].in-view>*:nth-child(1) {
  transition-delay: 0.1s;
}

[data-scroll-stagger].in-view>*:nth-child(2) {
  transition-delay: 0.2s;
}

[data-scroll-stagger].in-view>*:nth-child(3) {
  transition-delay: 0.3s;
}

[data-scroll-stagger].in-view>*:nth-child(4) {
  transition-delay: 0.4s;
}

[data-scroll-stagger].in-view>*:nth-child(5) {
  transition-delay: 0.5s;
}

/* ─── THEME OVERRIDES FOR NEW SECTIONS ─── */
body.light .model-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

body.light .model-card.featured {
  background: linear-gradient(135deg, #fff 0%, rgba(153, 247, 115, 0.1) 100%);
  border-color: var(--yggra-dim);
}

body.light .model-list li {
  color: #444;
}

body.light .tech-ticker {
  opacity: 0.8;
}

body.light .cta-subtitle {
  color: #555;
}

body.light .status-label {
  color: #666;
}

/* Fix for nav-cta in dark mode (menu button) */
.nav-cta {
  background: var(--yggra);
  color: #000 !important;
}

/* CTA Spacing Fix - Balanced professional spacing */
.cta-section {
  padding: 10rem 0 !important;
  display: block !important;
}

/* Button display inside models */
.model-card .btn-primary,
.model-card .btn-outline {
  display: inline-block;
  width: 100%;
}

/* ─── CASES MISSION SECTION ─── */
.cases-mission-section {
  padding: 10rem 0;
  overflow: hidden;
}

.case-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 12rem;
}

.case-row:last-child {
  margin-bottom: 0;
}

.case-row.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.case-row.reverse .case-visual {
  order: 2;
}

.case-row.reverse .case-info {
  order: 1;
}

.case-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease-out-expo);
}

body.light .case-visual {
  background: #fff;
  border-color: var(--light-border);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
}

.case-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

.case-visual:hover img {
  transform: scale(1.02);
}

.case-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(153, 247, 115, 0.1);
  color: var(--yggra);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.case-info h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-item {
  display: flex;
  gap: 1.25rem;
  opacity: 0.8;
}

.mission-check {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--yggra);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.mission-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

body.light .mission-text strong {
  color: #000;
}

.mission-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #888;
}

@media (max-width: 1024px) {

  .case-row,
  .case-row.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 8rem;
  }

  .case-visual,
  .case-info {
    order: unset !important;
  }

  .case-info h3 {
    font-size: 2.25rem;
  }
}

/* ─── FULLPAGE SCROLL MOCKUP ─── */
.case-visual.scroll-mockup {
  height: 500px; /* Fixed height container */
  align-items: flex-start;
  display: flex;
}

.case-visual.scroll-mockup img {
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform 5s ease-in-out; 
}

.case-visual.scroll-mockup:hover img {
  /* Scroll down until the bottom. Calculation: Full height - container height */
  transform: translateY(calc(-100% + 500px));
}

@media (max-width: 1024px) {
  .case-visual.scroll-mockup {
    height: 350px;
  }
  .case-visual.scroll-mockup:hover img {
    transform: translateY(calc(-100% + 350px));
  }
}

/* Play Overlay for Video cases */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}

.open-video-modal {
  display: block; /* For a tags */
  cursor: pointer;
}

.open-video-modal:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--yggra);
  border-radius: 50%;
  padding: 1.25rem;
  color: #000;
  fill: currentColor;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(153, 247, 115, 0.4);
}

.open-video-modal:hover .play-overlay svg {
  transform: scale(1);
}

/* ─── VIDEO MODAL ─── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  outline: none;
  background: #000;
}

.video-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.video-modal-close-btn:hover {
  background: var(--yggra);
  color: #000;
  transform: scale(1.1);
}