/* ============================================================
   TecSchmiede Berlin V3 — Dark Orange Noir Design System
   ============================================================ */

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

:root {
  /* Noir Color Palette */
  --bg-darker: #000000;
  --bg-main: #050505;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --bg-nav: rgba(10, 10, 10, 1);

  /* Accents */
  --cyan: #FF5500;
  --blue: #FF2A00;
  --accent-gradient: linear-gradient(135deg, var(--cyan), var(--blue));
  --cyan-glow: rgba(255, 85, 0, 0.4);
  --blue-glow: rgba(255, 42, 0, 0.4);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Borders / Lines */
  --border-light: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 85, 0, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing — tighter */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
  --nav-height: 88px; /* topbar ~28px + navbar 56px + accent 3px */
}

/* === Global Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* === Geometric Background Animation — Enhanced === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,85,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,85,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 25%, rgba(255,85,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 75%, rgba(255,42,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(255,85,0,0.05) 0%, transparent 70%);
  animation: glowPulse 10s ease-in-out infinite alternate;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

@keyframes glowPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Floating geometric shapes */
.geo-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-shapes .shape {
  position: absolute;
  border: 1.5px solid rgba(255, 85, 0, 0.15);
  border-radius: 2px;
}

/* Large diamond — slow orbit */
.geo-shapes .shape:nth-child(1) {
  width: 250px; height: 250px; top: 8%; left: 3%;
  animation: orbitSpin 45s linear infinite;
  border-color: rgba(255, 85, 0, 0.12);
}

/* Circle — pulsing */
.geo-shapes .shape:nth-child(2) {
  width: 180px; height: 180px; top: 55%; right: 8%;
  border-radius: 50%;
  animation: pulseScale 8s ease-in-out infinite alternate, driftY 25s ease-in-out infinite;
  border-color: rgba(255, 85, 0, 0.1);
}

/* Large square — slow drift */
.geo-shapes .shape:nth-child(3) {
  width: 350px; height: 350px; bottom: 10%; left: 35%;
  animation: orbitSpin 55s linear infinite reverse;
  border-color: rgba(255, 42, 0, 0.08);
}

/* Small diamond — fast */
.geo-shapes .shape:nth-child(4) {
  width: 60px; height: 60px; top: 25%; right: 20%;
  animation: orbitSpin 15s linear infinite, pulseScale 6s ease-in-out infinite alternate;
  border-color: rgba(255, 85, 0, 0.2);
}

/* Medium circle — drift horizontal */
.geo-shapes .shape:nth-child(5) {
  width: 140px; height: 140px; top: 40%; left: 65%;
  border-radius: 50%;
  animation: driftX 30s ease-in-out infinite, pulseScale 10s ease-in-out infinite alternate-reverse;
  border-color: rgba(255, 42, 0, 0.1);
}

/* Small accent square */
.geo-shapes .shape:nth-child(6) {
  width: 40px; height: 40px; top: 12%; right: 35%;
  animation: orbitSpin 12s linear infinite;
  border-color: rgba(255, 85, 0, 0.25);
  border-width: 2px;
}

/* Diagonal scan line */
.geo-shapes::after {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 200%; height: 200%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 45%,
    rgba(255, 85, 0, 0.03) 49%,
    rgba(255, 85, 0, 0.06) 50%,
    rgba(255, 85, 0, 0.03) 51%,
    transparent 55%,
    transparent 100%
  );
  animation: scanDiag 8s linear infinite;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseScale {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 1; }
}

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

@keyframes driftX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(40px); }
}

@keyframes scanDiag {
  0% { transform: translateX(-30%) translateY(-30%); }
  100% { transform: translateX(30%) translateY(30%); }
}

/* All content above bg — ensure animations stay behind everything */
.geo-shapes { z-index: -1; }
body::before, body::after { z-index: -1; }

body > *:not(.geo-shapes) {
  position: relative;
  z-index: 1;
}

.section, .footer, .hero, .page-header, .marquee-banner {
  position: relative;
  z-index: 2;
}

.card, .pricing-card, .portfolio-item {
  position: relative;
  z-index: 3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 700;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

::selection {
  background: rgba(255, 85, 0, 0.2);
  color: var(--cyan);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Typography Utilities === */
.text-cyan { color: var(--cyan); }
.text-white { color: var(--text-primary); }
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* === Layout & Containers === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-main);
}

.btn-primary:hover {
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ============================
   NAVBAR — Multi-Tier Stacked Header
   ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

/* Tier 1: Top Info Bar */
.nav-topbar {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border-light);
  padding: 0.4rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-topbar-left,
.nav-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-topbar a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-topbar a:hover {
  color: var(--cyan);
}

.nav-topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-topbar-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

/* Tier 2: Main Navigation */
.navbar {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 56px;
  display: flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

/* Tier 3: Bottom accent strip */
.nav-accent {
  height: 3px;
  background: var(--accent-gradient);
  position: relative;
}

/* Scrolled state — collapse top bar */
.site-header.scrolled .nav-topbar {
  margin-top: -30px;
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .navbar {
  background: #050505;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-toggle svg { width: 24px; height: 24px; }

/* ============================
   SCROLLING MARQUEE BANNER
   ============================ */
.marquee-banner {
  background: var(--cyan);
  color: #000;
  padding: 0.6rem 0;
  margin-top: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 2;
}

/* Ensure hero/page-header always has bottom padding before marquee */
.hero + .marquee-banner,
.page-header + .marquee-banner {
  margin-top: 0;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding: 0 3rem;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Hero Section === */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  padding-bottom: 3rem;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: blur(1.5px);
  transform: scale(1.02); /* Prevent blur bleed at edges */
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5,5,5,0.65) 0%, rgba(5,5,5,0.95) 75%, var(--bg-main) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

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

.hero-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* === Bento Grids / Cards === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(min-content, max-content);
  gap: var(--spacing-sm);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Bento Variants */
.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

/* === Pricing Cards === */
.pricing-card {
  text-align: left;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  color: var(--text-primary);
  flex-shrink: 0;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #160b0a 0%, var(--bg-card) 100%);
  border-color: rgba(255, 85, 0, 0.2);
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

/* === Section Headers === */
.section-header {
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

/* === Portfolio Grid === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.portfolio-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 60%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-tag {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 1rem;
}

/* === Forms === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(255, 85, 0, 0.02);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  background: var(--bg-darker);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-h {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === Utilities & Animations === */
.glow-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--cyan);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Document specific styling additions */
.page-header {
  padding: var(--nav-height) 0 1rem;
  background: var(--bg-main);
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.pt-0 { padding-top: 0 !important; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Responsive Layout === */

/* Tablet */
@media (max-width: 1024px) {
  .bento-col-4, .bento-col-6, .bento-col-8 { grid-column: span 12; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Inline grid overrides for tablet */
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .hero-title { font-size: clamp(2.5rem, 5vw, 4rem); }
  .section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1rem;
    --nav-height: 60px;
    --container-width: 100%;
  }

  .container { padding: 0 1rem; }

  /* Nav */
  .nav-topbar { display: none; }
  .nav-accent { height: 2px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .nav-name { font-size: 0.95rem; }

  body.mobile-menu-active .site-header {
    background: var(--bg-main);
  }
  body.mobile-menu-active .navbar {
    height: auto;
    padding: 0.5rem 0;
  }
  body.mobile-menu-active .navbar > .container {
    flex-wrap: wrap;
  }
  body.mobile-menu-active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem 0 1rem 0;
    align-items: flex-start;
    gap: 1.5rem;
  }
  body.mobile-menu-active .nav-cta {
    display: block;
    width: 100%;
    padding-bottom: 1.5rem;
  }
  body.mobile-menu-active .nav-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero { min-height: 60vh; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  /* Page headers */
  .page-header { padding: calc(var(--nav-height) + 0.2rem) 0 1rem; }
  .page-title { font-size: clamp(2rem, 7vw, 3rem) !important; margin-bottom: 1rem; }
  .page-desc { font-size: 1rem; }

  /* Marquee */
  .marquee-banner { font-size: 0.7rem; padding: 0.5rem 0; }

  /* Section headers */
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }

  /* All inline grids → single column on mobile */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 1rem; }

  /* Cards */
  .card { padding: 1.5rem; }
  .card-title { font-size: 1.25rem; }

  /* Pricing */
  .pricing-price { font-size: 2.5rem; }
  .pricing-card { padding: 1.5rem; }

  /* Stats grid → 2x2 */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  [style*="grid-template-columns: repeat(4, 1fr)"] h3 {
    font-size: 2.5rem !important;
  }

  /* Service cards on homepage */
  [style*="display: grid"][style*="repeat(3, 1fr)"][style*="gap: 2rem"] {
    grid-template-columns: 1fr !important;
    margin-top: 2rem !important;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-desc { max-width: 100%; }

  /* Portfolio items */
  .portfolio-item .portfolio-overlay { padding: 1.5rem; }
  .portfolio-item h2 { font-size: 1.5rem !important; }
  .portfolio-img { height: 300px; }

  /* About page hero bg */
  [style*="width: 60%"] { width: 100% !important; opacity: 0.4 !important; }

  /* Reduce background animation on mobile for performance */
  .geo-shapes .shape:nth-child(3),
  .geo-shapes .shape:nth-child(5) { display: none; }
  .geo-shapes::after { display: none; }
  body::before { background-size: 80px 80px; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --nav-height: 56px;
  }
  .hero { min-height: 55vh; }
  .hero-title { font-size: 1.8rem !important; }
  .section-title { font-size: 1.4rem !important; }
  .pricing-price { font-size: 2rem; }
  .card { padding: 1.25rem; border-radius: var(--radius-md); }
  .nav-logo { width: 28px; height: 28px; font-size: 0.8rem; }

  /* Stats → single column on very small screens */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer { padding: var(--spacing-lg) 0 var(--spacing-sm); }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr !important;
  }
}
