/* ══════════════════════════════════════════════════════════════
   service.css — shared design system for all service pages
   Each page sets its own --accent / --accent2 in an inline :root
   Sachin Raut · getwebdeveloper.online
══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #06060f; --bg2: #0d0d1f; --bg3: #111128;
  --surface: rgba(255,255,255,0.04);
  --border:  rgba(255,255,255,0.08);
  --purple: #7c3aed; --purple2: #a855f7;
  --cyan: #06b6d4; --cyan2: #22d3ee;
  --green: #10b981; --yellow: #f59e0b; --red: #ef4444;
  --text: #f1f5f9; --muted: #94a3b8;
  --grad: linear-gradient(135deg, #7c3aed, #a855f7, #06b6d4);
  --navbar-bg: rgba(6,6,15,0.85);
  --accent: #a855f7; --accent2: #06b6d4;   /* overridden per page */
  --radius: 16px;
}
html[data-theme="light"] {
  --bg: #f0f4ff; --bg2: #e8eeff; --bg3: #dde4f8;
  --surface: rgba(255,255,255,0.75);
  --border: rgba(100,80,200,0.15);
  --text: #0f172a; --muted: #4b5563;
  --navbar-bg: rgba(240,244,255,0.88);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text);
  overflow-x: hidden; line-height: 1.7;
  transition: background .4s, color .4s;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; }

.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 99px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: all .3s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ─── SECTION FURNITURE ─── */
.section { padding: 92px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 16.5px; line-height: 1.85; max-width: 640px; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO ─── */
.page-hero {
  padding: 78px 0 62px; margin-top: 72px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; z-index: 1;
}
.page-hero::before {
  content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  filter: blur(110px); top: -220px; right: -120px; pointer-events: none;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent); margin-bottom: 20px;
}
.page-hero h1 { font-size: clamp(31px, 4.8vw, 54px); font-weight: 800; margin-bottom: 20px; }
.page-hero .lede { color: var(--muted); font-size: 17.5px; line-height: 1.8; max-width: 640px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stat-num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ─── PROSE ─── */
.prose p { color: var(--muted); font-size: 16.5px; line-height: 1.9; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; }

/* ─── SPLIT GRID ─── */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: start; margin-top: 56px; }
.split.reverse { grid-template-columns: 1fr 1.35fr; }

/* ─── PROCESS STEPS ─── */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .3s ease;
}
.step:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(8px); }
.step-num {
  min-width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.step h4 { font-size: 16.5px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

/* ─── STICKY VISUAL CARD ─── */
.visual-card {
  background: var(--bg3);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 8%, transparent);
  position: sticky; top: 100px;
}
.vc-title {
  font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.vc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.vc-row:last-of-type { border-bottom: none; }
.vc-row span:first-child { color: var(--muted); }
.vc-row strong { color: var(--text); font-weight: 600; text-align: right; }
.vc-note {
  margin-top: 18px; padding: 14px; border-radius: 11px; font-size: 13px; color: var(--muted);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.vc-note strong { color: var(--text); }

/* ─── CHECK LIST ─── */
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.check-item {
  display: flex; gap: 11px; align-items: flex-start; font-size: 14px;
  padding: 12px 15px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.check-item .tick { color: var(--accent); font-weight: 800; flex-shrink: 0; }

/* ─── CARD GRID ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; margin-top: 50px; }
.s-card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.s-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity .3s;
}
.s-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.s-card:hover::before { opacity: 1; }
.s-card .ico { font-size: 26px; margin-bottom: 14px; display: block; }
.s-card h4 { font-size: 16px; margin-bottom: 8px; }
.s-card p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ─── COMPARISON TABLE ─── */
.cmp-wrap { margin-top: 46px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; border-collapse: collapse; min-width: 640px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.cmp th, .cmp td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.cmp thead th {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text); font-weight: 700; font-size: 13.5px;
  letter-spacing: .4px; font-family: 'Space Grotesk', sans-serif;
}
.cmp td { color: var(--muted); }
.cmp td:first-child { color: var(--text); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── TECH PILLS ─── */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; margin-top: 44px; }
.tech-card {
  padding: 20px 14px; text-align: center;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: all .3s;
}
.tech-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.tech-card .icon { font-size: 26px; margin-bottom: 8px; }
.tech-card .name { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ─── FAQ ─── */
.faq-list { max-width: 860px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.faq-q {
  width: 100%; padding: 20px 24px; background: var(--surface); border: none;
  color: var(--text); font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .3s; line-height: 1.4;
}
.faq-item.open .faq-q { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.faq-chevron { font-size: 19px; transition: transform .3s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
  color: var(--muted); font-size: 15px; line-height: 1.8; padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 640px; padding: 18px 24px 22px; }

/* ─── RELATED SERVICES ─── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.related-card {
  display: block; padding: 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); transition: all .3s;
}
.related-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.related-card .rc-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.related-card h4 { font-size: 16px; margin: 8px 0 6px; }
.related-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.related-card .rc-go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ─── CTA ─── */
.cta-section { padding: 92px 0; text-align: center; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.cta-box { max-width: 660px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-box p { color: var(--muted); font-size: 16px; margin-bottom: 32px; line-height: 1.8; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── BACKGROUND CANVAS ─── */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
html[data-theme="light"] #bg-canvas { opacity: 0.65; }
footer { position: relative; z-index: 10; }

/* ─── LIGHT THEME PATCHES ─── */
html[data-theme="light"] .step,
html[data-theme="light"] .s-card,
html[data-theme="light"] .check-item,
html[data-theme="light"] .tech-card,
html[data-theme="light"] .faq-q,
html[data-theme="light"] .related-card,
html[data-theme="light"] .cmp,
html[data-theme="light"] .visual-card { background: rgba(255,255,255,0.82); }
html[data-theme="light"] .navbar { background: var(--navbar-bg); }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
  .visual-card { position: static; }
}
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 58px 0 48px; }
  .hero-stats { gap: 22px; }
  .hero-stat-num { font-size: 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .step { padding: 17px; }
  .faq-q { font-size: 14.5px; padding: 17px 18px; }
  .faq-item.open .faq-a { padding: 15px 18px 19px; font-size: 14.5px; }
}
