:root {
  --bg: #0b1220;
  --card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-contrast: #ffffff;
  --radius: 1rem;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #050b13 0%, #10182a 100%);
  color: var(--text);
}

.app-shell { min-height: 100vh; }
.topbar {
  position: fixed; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(4, 10, 20, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  z-index: 99;
}
.brand { display: flex; align-items: center; gap: 0.65rem; border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.brand-logo { width: 40px; height: auto; border-radius: 0.45rem; }
.brand-title { letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 0.6rem; }
.nav-link { border: 0; background: rgba(255,255,255,0.05); color: var(--text); padding: 0.45rem 0.8rem; border-radius: 0.55rem; cursor: pointer; font-weight: 600; letter-spacing: 0.01em; transition: all 0.22s ease; }
.nav-link:hover { background: rgba(59, 130, 246, 0.25); }
.nav-link.active { color: white; background: rgba(59, 130, 246, 0.5); }

.snap-container {
  overflow-y: auto;
  min-height: 100vh;
  padding-top: 76px;
}
.snap-section {
  padding: 1.5rem 1.2rem 2rem;
  display: grid;
  place-items: center;
}
.section-inner { width: min(1100px, 92vw); }
section h2 { margin-top: 0; font-size: clamp(1.8rem, 2.3vw, 3rem); }
section p { color: var(--muted); max-width: 40rem; font-size: 1.1rem; }

.hero { width: min(1100px, 92vw); display: grid; gap: 1.2rem; align-items: center; }
.hero-img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,0.5); }
.hero-content { display: grid; gap: 0.65rem; }
.hero-content h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.8rem); }
.hero-content p { margin: 0; }

.cards-grid { margin-top: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: rgba(17, 24, 39, 0.85); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 12px 28px rgba(0,0,0,0.28); }
.card h3 { margin: 0 0 0.6rem; }

.gallery-grid { margin-top: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gallery-grid img { width: 100%; border-radius: 0.75rem; object-fit: cover; height: 180px; }

.before-after-slider {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: ew-resize;
}
.before-img, .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.after-img {
  clip-path: inset(0 0 0 50%);
}
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}
.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.form-grid { margin-top: 1rem; display: grid; gap: 1rem; max-width: 700px; }
.form-grid label { display: grid; gap: 0.5rem; font-weight: 600; }
.form-grid input,
.form-grid textarea { border-radius: 0.65rem; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(15, 23, 42, 0.8); color: var(--text); padding: 0.72rem 0.85rem; outline: 0; }
.form-grid input:focus,
.form-grid textarea:focus { border-color: rgba(59, 130, 246, 0.7); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }

.actions { display: flex; align-items: center; gap: 0.7rem; justify-content: flex-end; }
.full-width { width: 100%; }

.btn { border: 0; border-radius: 0.65rem; padding: 0.65rem 1rem; font-weight: 700; letter-spacing: 0.02em; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); }
.btn:hover { opacity: 0.95; }

.feedback { margin-top: 0.8rem; color: #34d399; font-weight: 600; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.modal.hidden { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  position: relative;
  width: min(500px, 90vw);
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-radius: 0.9rem;
  padding: 1.35rem;
  z-index: 2;
}
.modal-service { color: #e2e8f0; margin: 0 0 0.9rem; }

@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; gap: 0.7rem; }
  .site-nav { width: 100%; justify-content: space-around; }
  .snap-section { padding-left: 0.8rem; padding-right: 0.8rem; }
  .gallery-grid img { height: 150px; }
}
