/* ============================================
   ShamimX Digital — Design Tokens
   ============================================ */
:root {
  --bg: #0B0F1F;
  --bg-elevated: #131829;
  --bg-elevated-2: #1A2036;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(139, 92, 246, 0.35);

  --blue: #4F7DF9;
  --purple: #8B5CF6;
  --cyan: #22D3EE;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79,125,249,0.15) 0%, rgba(139,92,246,0.15) 100%);

  --text-primary: #F5F7FF;
  --text-muted: #97A0C3;
  --text-dim: #5C6690;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(79,125,249,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(139,92,246,0.14), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,125,249,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139,92,246,0.45); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-bright); background: rgba(139,92,246,0.08); }
.btn-block { width: 100%; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 31, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text-primary); background: var(--gradient-soft); border: 1px solid var(--border-bright); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
}

/* ============================================
   Hero + Pipeline signature element
   ============================================ */
.hero {
  padding: 160px 0 96px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 56px; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 18px 0 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.pipeline {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 40px;
  position: relative;
  overflow: hidden;
}
.pipeline::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  pointer-events: none;
}
.pipeline-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.pipeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 8px;
}
.pipeline-track::before {
  content: "";
  position: absolute;
  top: 50%; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  opacity: 0.35;
  transform: translateY(-50%);
}
.pipeline-node {
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
}
.pipeline-pulse {
  position: absolute;
  top: 50%; left: 22px;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 3px rgba(34,211,238,0.7);
  animation: pulseMove 4s linear infinite;
}
@keyframes pulseMove {
  0% { left: 22px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 32px); opacity: 0; }
}
.pipeline-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.pipeline-steps span {
  font-size: 0.72rem;
  color: var(--text-dim);
  width: 46px;
  text-align: center;
}
.pipeline-readout {
  margin-top: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pipeline-readout .line { display: flex; gap: 8px; margin-bottom: 6px; }
.pipeline-readout .line:last-child { margin-bottom: 0; }
.pipeline-readout .ok { color: #4ADE80; }
.pipeline-readout .tag { color: var(--purple); }

/* divider used between sections, echoes the pipeline motif */
.flow-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 56px;
  max-width: 320px;
  opacity: 0.6;
}
.flow-divider .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.flow-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); }

/* ============================================
   Section headers
   ============================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

/* ============================================
   Cards / Grids
   ============================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}
.stat .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ============================================
   Service page — category blocks
   ============================================ */
.service-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 36px;
  margin-bottom: 28px;
}
.service-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.service-block-head .tag-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 4px 12px;
}
.service-block-head h3 { font-size: 1.4rem; }
.service-block-desc { color: var(--text-muted); margin-bottom: 22px; max-width: 760px; }
.service-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .service-items { grid-template-columns: 1fr; } }
.service-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.service-item h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text-primary); }
.service-item p { font-size: 0.88rem; color: var(--text-muted); }

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.process-step {
  flex: 1 1 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.process-step .n {
  font-family: var(--font-mono);
  color: var(--purple);
  font-size: 0.8rem;
}
.process-step h4 { margin: 8px 0 6px; font-size: 1rem; }
.process-step p { font-size: 0.86rem; color: var(--text-muted); }

/* ============================================
   Testimonials / Portfolio
   ============================================ */
.quote-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.quote-card p.quote { font-size: 1rem; color: var(--text-primary); margin-bottom: 18px; }
.quote-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 0.9rem;
}
.quote-person .name { font-weight: 600; font-size: 0.92rem; }
.quote-person .role { font-size: 0.8rem; color: var(--text-muted); }

.badge-sample {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px dashed var(--border-bright);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.portfolio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-thumb {
  height: 160px;
  background: var(--gradient-soft);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.portfolio-body { padding: 24px; }
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.portfolio-tags span {
  font-size: 0.75rem;
  color: var(--purple);
  background: rgba(139,92,246,0.12);
  border-radius: 999px;
  padding: 4px 10px;
}
.portfolio-result { font-size: 0.85rem; color: var(--cyan); font-family: var(--font-mono); }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; }

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-primary); }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-icon:hover { border-color: var(--border-bright); background: rgba(139,92,246,0.1); transform: translateY(-2px); }
.social-icon svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   WhatsApp floating button
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 300;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 32px rgba(37,211,102,0.7); }
}

/* ============================================
   Reveal-on-scroll utility
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline-pulse, .whatsapp-float { animation: none; }
}

/* ============================================
   Forms (Contact page)
   ============================================ */
.form-grid { display: grid; gap: 18px; }
label { font-size: 0.88rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--purple);
}
textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
}
.contact-info-card .eyebrow { margin-bottom: 10px; }
.contact-info-card a, .contact-info-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-card a:hover { color: var(--cyan); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
