/* ============================================================
   Design Maker LLC — Main Stylesheet
   designmakerllc.com
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #04040a;
  --bg2:      #080810;
  --bg3:      #0d0d1a;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --purple:   #7c3aed;
  --purple2:  #a855f7;
  --cyan:     #06b6d4;
  --cyan2:    #22d3ee;
  --green:    #10b981;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --dim:      #64748b;
  --r:        12px;
  --r2:       20px;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* prevent iOS font scaling */
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overscroll-behavior-x: none; /* stop horizontal rubber-band on mobile */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;          /* allow vertical scroll, block horizontal drift */
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
section { position: relative; }

/* ─── NOISE OVERLAY ─────────────────────────────────────── */
body::before {
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  width: 100%; height: 100%; /* explicit size — no overflow */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ─── UTILITY ────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: linear-gradient(135deg, var(--cyan2) 0%, var(--purple2) 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(124,58,237,.55); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--purple2); color: var(--purple2); background: rgba(124,58,237,.08); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  color: var(--purple2); padding: 5px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.tag::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--cyan); display:block; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ─── GLOW BLOBS ─────────────────────────────────────────── */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob-purple { background: rgba(124,58,237,.18); }
.blob-cyan   { background: rgba(6,182,212,.14); }

/* Contain blobs so they never cause horizontal scroll */
section { overflow: hidden; }

/* Extra paint containment — clips filter:blur bleed at section edge */
section { contain: paint; }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .3s;
}
nav.scrolled {
  background: rgba(4,4,10,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span.accent { color: var(--cyan2); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content:''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--cyan2); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; overflow: hidden;
}
.lang-toggle button {
  padding: 6px 14px; border: none; background: transparent;
  color: var(--muted); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s; letter-spacing: .05em;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(4,4,10,.97); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px); padding: 24px; z-index: 99;
  flex-direction: column; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2);
  border-radius: 50px; padding: 8px 16px; margin-bottom: 28px;
  font-size: .82rem; color: var(--cyan2); font-weight: 500;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800; margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-sub {
  color: var(--muted); font-size: 1.1rem;
  margin-bottom: 40px; max-width: 480px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  margin-top: 48px; color: var(--dim); font-size: .85rem;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  margin-left: -8px;
}
.trust-avatars span:first-child { margin-left: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-wrap { position: relative; width: 100%; max-width: 480px; }
.hero-mockup {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 80px rgba(124,58,237,.15);
}
.mockup-bar {
  background: rgba(255,255,255,.04);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.mockup-url {
  flex: 1; background: rgba(255,255,255,.06); border-radius: 50px;
  padding: 4px 12px; font-size: .75rem; color: var(--dim); text-align: center;
}
.mockup-body { padding: 28px; }
.mockup-headline {
  height: 20px; background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  border-radius: 4px; margin-bottom: 12px;
  animation: shimmer 2.5s infinite;
}
.mockup-sub  { height: 12px; background: rgba(255,255,255,.08); border-radius: 4px; margin-bottom: 8px; width: 75%; }
.mockup-sub2 { height: 12px; background: rgba(255,255,255,.05); border-radius: 4px; margin-bottom: 24px; width: 50%; }
.mockup-btn  { height: 36px; width: 140px; background: linear-gradient(90deg, var(--purple), var(--cyan)); border-radius: 50px; }
.mockup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.mockup-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
}
.mockup-card-icon { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 10px; }
.ic1 { background: linear-gradient(135deg, var(--purple), var(--purple2)); }
.ic2 { background: linear-gradient(135deg, var(--cyan), var(--cyan2)); }
.ic3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ic4 { background: linear-gradient(135deg, var(--green), #34d399); }
.mockup-card-line { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; margin-bottom: 6px; }
.mockup-card-line.short { width: 60%; }
.float-badge {
  position: absolute;
  background: rgba(13,13,26,.9); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 16px;
  backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,.3);
  font-size: .82rem;
}
.float-badge .badge-val { font-weight: 700; font-size: 1.1rem; }
.float-badge .badge-lbl { color: var(--muted); font-size: .73rem; }
.fb-top { top: -20px; right: -20px; animation: float1 4s ease-in-out infinite; }
.fb-bot { bottom: -20px; left: -24px; animation: float2 5s ease-in-out infinite; }

@keyframes float1  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes shimmer { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ─── LOGOS ──────────────────────────────────────────────── */
#logos {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label { text-align:center; color:var(--dim); font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:32px; }
.logos-row { display:flex; justify-content:center; align-items:center; gap:48px; flex-wrap:wrap; }
.logo-item { color:var(--dim); font-size:.9rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; transition:color .2s; }
.logo-item:hover { color: var(--purple2); }

/* ─── SERVICES ───────────────────────────────────────────── */
#services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 36px 32px;
  transition: all .3s; position: relative; overflow: hidden;
}
.service-card::before {
  content:''; position:absolute; inset:0; opacity:0;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(6,182,212,.05) 100%);
  transition: opacity .3s;
}
.service-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.service-card:hover::before { opacity: 1; }
.service-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:24px; }
.si-web   { background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(168,85,247,.1)); border:1px solid rgba(124,58,237,.2); }
.si-app   { background:linear-gradient(135deg,rgba(6,182,212,.2),rgba(34,211,238,.1)); border:1px solid rgba(6,182,212,.2); }
.si-soft  { background:linear-gradient(135deg,rgba(16,185,129,.2),rgba(52,211,153,.1)); border:1px solid rgba(16,185,129,.2); }
.si-design{ background:linear-gradient(135deg,rgba(245,158,11,.2),rgba(251,191,36,.1)); border:1px solid rgba(245,158,11,.2); }
.si-mkt   { background:linear-gradient(135deg,rgba(239,68,68,.2),rgba(248,113,113,.1)); border:1px solid rgba(239,68,68,.2); }
.si-seo   { background:linear-gradient(135deg,rgba(99,102,241,.2),rgba(139,92,246,.1)); border:1px solid rgba(99,102,241,.2); }
.service-card h3 { font-size:1.2rem; margin-bottom:12px; }
.service-card p  { color:var(--muted); font-size:.9rem; line-height:1.7; margin-bottom:24px; }
.service-list { list-style:none; display:flex; flex-direction:column; gap:8px; }
.service-list li { font-size:.85rem; color:var(--muted); display:flex; align-items:center; gap:8px; }
.service-list li::before { content:'✓'; color:var(--cyan2); font-weight:700; flex-shrink:0; }
.services-bottom { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:24px; }

/* ─── STATS ──────────────────────────────────────────────── */
#stats { padding: 80px 0; }
.stats-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat-item { padding:48px 32px; text-align:center; border-right:1px solid var(--border); position:relative; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family:'Space Grotesk',sans-serif; font-size:3.2rem; font-weight:700; line-height:1;
  background:linear-gradient(135deg,var(--cyan2),var(--purple2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  margin-bottom:10px;
}
.stat-label { color:var(--muted); font-size:.9rem; }

/* ─── WHY US ─────────────────────────────────────────────── */
#why { padding: 100px 0; }
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.why-features { display:flex; flex-direction:column; gap:28px; }
.why-item { display:flex; gap:18px; }
.why-icon { width:44px; height:44px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.wi1 { background:rgba(124,58,237,.15); }
.wi2 { background:rgba(6,182,212,.15); }
.wi3 { background:rgba(16,185,129,.15); }
.wi4 { background:rgba(245,158,11,.15); }
.wi5 { background:rgba(239,68,68,.15); }
.why-item h4 { font-size:1rem; margin-bottom:6px; }
.why-item p  { color:var(--muted); font-size:.88rem; line-height:1.65; }
.why-card-big {
  background:var(--bg3); border:1px solid var(--border);
  border-radius:var(--r2); padding:32px;
  box-shadow:0 40px 80px rgba(0,0,0,.4);
}
.review-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.review-avatar {
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg,var(--purple),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  font-weight:700; color:#fff;
}
.review-name { font-weight:600; font-size:.95rem; }
.review-role { color:var(--muted); font-size:.8rem; }
.stars { color:#f59e0b; font-size:.9rem; margin-bottom:14px; }
.review-text { color:var(--muted); font-size:.88rem; line-height:1.7; }
.tech-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.tech-pill {
  background:var(--surface); border:1px solid var(--border);
  border-radius:50px; padding:4px 12px;
  font-size:.75rem; color:var(--dim); font-weight:500;
}

/* ─── PROCESS ────────────────────────────────────────────── */
#process { padding: 100px 0; }
.process-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process-steps::before {
  content:''; position:absolute; top:36px; left:12.5%; right:12.5%;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--purple),var(--cyan),transparent);
}
.process-step { text-align:center; padding:0 24px; }
.step-num {
  width:72px; height:72px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 24px;
  font-family:'Space Grotesk',sans-serif; font-size:1.3rem; font-weight:700;
  position:relative; z-index:1;
}
.sn1 { background:linear-gradient(135deg,var(--purple),var(--purple2)); box-shadow:0 0 30px rgba(124,58,237,.4); }
.sn2 { background:linear-gradient(135deg,#6366f1,var(--purple)); box-shadow:0 0 30px rgba(99,102,241,.4); }
.sn3 { background:linear-gradient(135deg,var(--cyan),#6366f1); box-shadow:0 0 30px rgba(6,182,212,.3); }
.sn4 { background:linear-gradient(135deg,var(--green),var(--cyan)); box-shadow:0 0 30px rgba(16,185,129,.4); }
.process-step h4 { font-size:1rem; margin-bottom:10px; }
.process-step p  { color:var(--muted); font-size:.85rem; line-height:1.65; }

/* ─── PORTFOLIO ──────────────────────────────────────────── */
#portfolio { padding: 100px 0; }
.portfolio-filter { display:flex; justify-content:center; gap:10px; margin-bottom:48px; flex-wrap:wrap; }
.filter-btn {
  padding:8px 20px; border-radius:50px; border:1px solid var(--border);
  background:transparent; color:var(--muted); font-size:.85rem;
  cursor:pointer; transition:all .2s; font-weight:500;
}
.filter-btn.active { background:linear-gradient(135deg,var(--purple),var(--cyan)); color:#fff; border-color:transparent; }
.portfolio-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.portfolio-item {
  border-radius:var(--r2); overflow:hidden;
  border:1px solid var(--border); transition:all .3s; cursor:pointer;
}
.portfolio-item:hover { transform:translateY(-4px); border-color:rgba(124,58,237,.4); box-shadow:0 20px 60px rgba(0,0,0,.3); }
.portfolio-thumb {
  height:200px; display:flex; align-items:center; justify-content:center;
  font-size:3rem; position:relative; overflow:hidden;
}
.pt1 { background:linear-gradient(135deg,#1e1b4b,#312e81); }
.pt2 { background:linear-gradient(135deg,#0c4a6e,#075985); }
.pt3 { background:linear-gradient(135deg,#14532d,#166534); }
.pt4 { background:linear-gradient(135deg,#4c1d95,#6d28d9); }
.pt5 { background:linear-gradient(135deg,#1e3a5f,#0369a1); }
.pt6 { background:linear-gradient(135deg,#431407,#9a3412); }
.portfolio-info { padding:20px 24px; background:var(--bg3); }
.portfolio-info h4 { font-size:1rem; margin-bottom:6px; }
.portfolio-info p  { color:var(--muted); font-size:.82rem; }
.portfolio-tag {
  display:inline-block; margin-top:10px;
  background:rgba(124,58,237,.15); color:var(--purple2);
  border-radius:50px; padding:2px 10px; font-size:.72rem; font-weight:600;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
#testimonials { padding: 100px 0; }
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r2); padding:32px; transition:all .3s;
}
.testi-card:hover { border-color:rgba(124,58,237,.3); transform:translateY(-2px); }
.testi-quote { font-size:2rem; color:var(--purple2); line-height:1; margin-bottom:16px; }
.testi-text  { color:var(--muted); font-size:.88rem; line-height:1.75; margin-bottom:24px; }
.testi-author { display:flex; align-items:center; gap:12px; }
.testi-av {
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.9rem; color:#fff; flex-shrink:0;
}
.av1 { background:linear-gradient(135deg,#7c3aed,#a855f7); }
.av2 { background:linear-gradient(135deg,#06b6d4,#0891b2); }
.av3 { background:linear-gradient(135deg,#10b981,#059669); }
.testi-name { font-weight:600; font-size:.9rem; }
.testi-role { color:var(--dim); font-size:.78rem; }

/* ─── CTA BANNER ─────────────────────────────────────────── */
#cta { padding: 100px 0; }
.cta-box {
  background:linear-gradient(135deg,rgba(124,58,237,.15) 0%,rgba(6,182,212,.1) 100%);
  border:1px solid rgba(124,58,237,.25);
  border-radius:28px; padding:80px 60px;
  text-align:center; position:relative; overflow:hidden;
}
.cta-box::before {
  content:''; position:absolute; top:-100px; left:50%; transform:translateX(-50%);
  width:400px; height:400px;
  background:radial-gradient(circle,rgba(124,58,237,.2) 0%,transparent 70%);
  pointer-events:none;
}
.cta-box h2 { font-size:clamp(1.8rem,4vw,2.8rem); margin-bottom:16px; }
.cta-box p  { color:var(--muted); font-size:1.05rem; margin-bottom:40px; max-width:520px; margin-left:auto; margin-right:auto; }
.cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn-wa {
  background:#25d366; color:#fff;
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:50px; font-weight:600; font-size:.95rem;
  transition:all .25s;
}
.btn-wa:hover { transform:translateY(-2px); box-shadow:0 0 30px rgba(37,211,102,.35); }

/* ─── CONTACT ────────────────────────────────────────────── */
#contact { padding: 100px 0; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.contact-info { display:flex; flex-direction:column; gap:28px; }
.contact-item { display:flex; gap:16px; align-items:flex-start; }
.contact-icon {
  width:44px; height:44px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  background:var(--surface); border:1px solid var(--border);
}
.contact-item h4 { font-size:.9rem; margin-bottom:4px; color:var(--muted); font-weight:500; }
.contact-item p  { font-size:.95rem; font-weight:500; }
.contact-form {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r2); padding:40px;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.form-group label { font-size:.85rem; color:var(--muted); font-weight:500; }
.form-group input,
.form-group textarea,
.form-group select {
  background:rgba(255,255,255,.04); border:1px solid var(--border);
  border-radius:var(--r); padding:12px 16px;
  color:var(--text); font-size:.9rem; font-family:inherit;
  transition:border-color .2s; outline:none; appearance:none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color:var(--purple); }
.form-group textarea { min-height:120px; resize:vertical; }
.form-group select option { background:var(--bg3); }
.form-submit { width:100%; padding:14px; font-size:1rem; margin-top:8px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { border-top:1px solid var(--border); padding:60px 0 32px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand p { color:var(--muted); font-size:.88rem; line-height:1.7; margin-top:16px; margin-bottom:24px; max-width:280px; }
.social-row { display:flex; gap:10px; }
.social-btn {
  width:36px; height:36px; border-radius:8px;
  background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:.85rem; transition:all .2s;
}
.social-btn:hover { border-color:var(--purple2); background:rgba(124,58,237,.1); }
.footer-col h5 { font-size:.9rem; font-weight:600; margin-bottom:20px; color:var(--text); }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { color:var(--muted); font-size:.85rem; transition:color .2s; }
.footer-links a:hover { color:var(--cyan2); }
.footer-bottom {
  border-top:1px solid var(--border); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
}
.footer-bottom p { color:var(--dim); font-size:.82rem; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
.fade-up { opacity:0; transform:translateY(30px); transition:all .7s cubic-bezier(.16,1,.3,1); }
.fade-up.visible { opacity:1; transform:translateY(0); }
.fade-up:nth-child(2) { transition-delay:.1s; }
.fade-up:nth-child(3) { transition-delay:.2s; }
.fade-up:nth-child(4) { transition-delay:.3s; }
.fade-up:nth-child(5) { transition-delay:.4s; }
.fade-up:nth-child(6) { transition-delay:.5s; }

/* ─── BACK TO TOP ────────────────────────────────────────── */
#back-top {
  position:fixed; bottom:28px; right:28px; z-index:90;
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg,var(--purple),var(--cyan));
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; opacity:0; transform:translateY(20px);
  transition:all .3s; font-size:1.1rem; color:#fff;
  border:none; box-shadow:0 4px 20px rgba(124,58,237,.4);
}
#back-top.visible { opacity:1; transform:translateY(0); }
#back-top:hover { transform:translateY(-4px); }

/* ─── WHATSAPP FLOATING WIDGET ───────────────────────────── */
#wa-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;         /* left side so it doesn't clash with back-to-top */
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* FAB button */
#wa-fab {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  flex-shrink: 0;
}
#wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,.65); }
#wa-icon-close { display: none; }
#wa-widget.open #wa-icon-open  { display: none; }
#wa-widget.open #wa-icon-close { display: block; }

/* Pulse ring animation */
#wa-fab::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 1; }
  80%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
#wa-widget.open #wa-fab::before { display: none; } /* stop pulse when open */

/* Notification dot */
#wa-notif {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  animation: wa-bounce 1s ease infinite alternate;
}
#wa-widget.open #wa-notif { display: none; }
@keyframes wa-bounce { from { transform: scale(1); } to { transform: scale(1.3); } }

/* Popup */
#wa-popup {
  background: #fff;
  border-radius: 16px;
  width: 300px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  overflow: hidden;
  transform-origin: bottom left;
  transform: scale(0.85) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .25s;
}
#wa-widget.open #wa-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Popup header */
#wa-popup-header {
  background: #25d366;
  padding: 16px 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
#wa-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
#wa-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
#wa-status {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; opacity: .9; margin-top: 2px;
}
.wa-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: wa-blink 2s ease infinite;
}
@keyframes wa-blink { 0%,100%{opacity:1} 50%{opacity:.4} }
#wa-close {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.8); cursor: pointer;
  font-size: 1rem; padding: 4px; line-height: 1;
  transition: color .2s;
}
#wa-close:hover { color: #fff; }

/* Chat bubble area */
#wa-bubble-wrap {
  background: #ece5dd;   /* WhatsApp chat background */
  padding: 20px 16px;
}
#wa-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  display: inline-block;
  max-width: 90%;
  position: relative;
  animation: wa-pop .4s cubic-bezier(.16,1,.3,1) .15s both;
}
@keyframes wa-pop { from{opacity:0;transform:scale(.85) translateY(8px)} to{opacity:1;transform:none} }
#wa-bubble::before {
  content: '';
  position: absolute; top: 0; left: -8px;
  border: 8px solid transparent;
  border-right-color: #fff;
  border-top-color: #fff;
}
#wa-bubble p { font-size: .88rem; color: #111; line-height: 1.5; margin: 0 0 4px; font-family: 'Inter', sans-serif; }
#wa-time { font-size: .7rem; color: #999; float: right; margin-top: 2px; }

/* Start chat button */
#wa-start {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366;
  color: #fff; font-weight: 600; font-size: .9rem;
  padding: 14px;
  text-decoration: none;
  transition: background .2s;
}
#wa-start:hover { background: #1ebe5d; }

/* Mobile tweaks */
@media (max-width: 480px) {
  #wa-widget { bottom: 16px; left: 16px; }
  #wa-fab    { width: 54px; height: 54px; }
  #wa-popup  { width: 272px; }
  #back-top  { bottom: 16px; right: 16px; }
}

/* ─── RESPONSIVE — TABLET (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(2,1fr); }
  .services-bottom  { grid-template-columns: repeat(2,1fr); }
  .stats-wrap       { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .testi-grid       { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid   { grid-template-columns: repeat(2,1fr); }
}

/* ─── RESPONSIVE — MOBILE (≤768px) ──────────────────────── */
@media (max-width: 768px) {

  /* ══ ROOT FIX 1: ocultar blobs — filter:blur sangra fuera del clip ══ */
  /* En móvil son decorativos y causan scroll horizontal  */
  .blob { display: none !important; }

  /* ══ ROOT FIX 2: min-width:0 permite que celdas de grid se encojan ══ */
  .services-grid > *, .services-bottom > *,
  .stats-wrap > *, .portfolio-grid > *,
  .testi-grid > *, .process-steps > *,
  .why-grid > *, .contact-grid > *,
  .footer-grid > *, .hero-grid > * { min-width: 0; }

  /* ══ ROOT FIX 3: contención total en secciones ══════════ */
  section { overflow: hidden; contain: paint; }

  /* Container: full width, safe padding */
  .container { width: 100%; padding: 0 16px; }

  /* All grids collapse to single column and stay contained */
  .services-grid, .services-bottom,
  .portfolio-grid, .testi-grid,
  .why-grid, .contact-grid, .footer-grid,
  .hero-grid { grid-template-columns: 1fr !important; width: 100%; }

  /* ── Nav ─────────────────────────────────────────────── */
  .nav-links      { display: none; }
  .nav-right .btn { display: none; }
  .hamburger      { display: flex; }
  .nav-logo       { font-size: 1rem; }

  /* ── Hero ────────────────────────────────────────────── */
  #hero         { padding: 100px 0 56px; }
  .hero-sub     { margin: 0 auto 32px; }
  .hero-cta     { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn{ flex: 1; min-width: 130px; justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-visual  { display: none; }

  /* ── Section spacing ─────────────────────────────────── */
  #services, #why, #process, #portfolio,
  #testimonials, #cta, #contact { padding: 60px 0; }
  #stats        { padding: 40px 0; }
  .section-head { margin-bottom: 36px; }

  /* ── Services ────────────────────────────────────────── */
  .service-card { padding: 24px 18px; box-sizing: border-box; width: 100%; }

  /* ── Stats ───────────────────────────────────────────── */
  .stats-wrap { grid-template-columns: 1fr 1fr !important; width: 100%; }
  .stat-item  { padding: 28px 12px; }

  /* ── Why ─────────────────────────────────────────────── */
  .why-visual { display: none; }

  /* ── Process ─────────────────────────────────────────── */
  .process-steps         { grid-template-columns: 1fr 1fr !important; gap: 32px; width: 100%; }
  .process-steps::before { display: none; }
  .process-step          { padding: 0 4px; }

  /* ── Testimonials ────────────────────────────────────── */
  .testi-card { padding: 24px 18px; width: 100%; box-sizing: border-box; }

  /* ── CTA ─────────────────────────────────────────────── */
  .cta-box  { padding: 44px 18px; width: 100%; box-sizing: border-box; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-primary,
  .btn-wa   { width: 100%; max-width: 280px; justify-content: center; }

  /* ── Contact ─────────────────────────────────────────── */
  .contact-form { padding: 24px 18px; width: 100%; box-sizing: border-box; }
  .form-row     { grid-template-columns: 1fr; }

  /* ── Footer ──────────────────────────────────────────── */
  .footer-bottom  { flex-direction: column; text-align: center; }
  .footer-brand p { max-width: 100%; }

  /* ── iOS: prevent font zoom on inputs ───────────────── */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}

/* ─── RESPONSIVE — SMALL PHONE (≤480px) ─────────────────── */
@media (max-width: 480px) {

  .container { padding: 0 12px; }

  /* Stats — single column */
  .stats-wrap { grid-template-columns: 1fr !important; }
  .stat-item {
    border-right: none !important;
    border-top:   none !important;
    border-bottom: 1px solid var(--border);
    padding: 24px 12px;
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: 2.4rem; }

  /* Process — single column */
  .process-steps { grid-template-columns: 1fr !important; gap: 28px; }

  /* Hero CTA — stacked */
  .hero-cta      { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Filter buttons */
  .portfolio-filter { gap: 6px; }
  .filter-btn       { padding: 6px 12px; font-size: .78rem; }

  /* CTA */
  .cta-box { padding: 36px 14px; border-radius: 16px; }

  /* Cards */
  .service-card { padding: 22px 14px; }
  .testi-card   { padding: 20px 14px; }
  .contact-form { padding: 20px 14px; }

  /* WA widget */
  #wa-widget { bottom: 14px; left: 14px; }
  #wa-fab    { width: 52px; height: 52px; }
  #wa-popup  { width: calc(100vw - 28px); max-width: 300px; }

  /* Back to top */
  #back-top { bottom:16px; right:16px; width:40px; height:40px; }
}
