/* ============================================================
   DESIGN TOKENS — Light Theme
   ============================================================ */
:root {
  /* Background */
  --bg:          #f4f6f9;
  --bg-white:    #ffffff;
  --bg-light:    #f0f2f5;
  --bg-dark:     #111827;
  --bg-dark2:    #1e2a3a;

  /* Text */
  --text:        #0f1923;
  --text-2:      #374151;
  --text-3:      #6b7280;
  --text-4:      #9ca3af;
  --text-inv:    #ffffff;

  /* Brand */
  --blue:        #2563eb;
  --blue-dk:     #1d4ed8;
  --blue-lt:     #eff6ff;
  --blue-border: #bfdbfe;
  --green:       #10b981;
  --green-lt:    #ecfdf5;
  --amber:       #f59e0b;

  /* Domain accent colors */
  --hc-bg:       #eff6ff;
  --hc-border:   #bfdbfe;
  --hc-icon:     #2563eb;
  --re-bg:       #f0fdf4;
  --re-border:   #bbf7d0;
  --re-icon:     #16a34a;
  --legal-bg:    #faf5ff;
  --legal-border:#e9d5ff;
  --legal-icon:  #9333ea;
  --food-bg:     #fff7ed;
  --food-border: #fed7aa;
  --food-icon:   #ea580c;
  --startup-bg:  #fefce8;
  --startup-border:#fde68a;
  --startup-icon:#d97706;
  --fin-bg:      #ecfdf5;
  --fin-border:  #a7f3d0;
  --fin-icon:    #059669;
  --edu-bg:      #fdf4ff;
  --edu-border:  #f5d0fe;
  --edu-icon:    #c026d3;

  /* Borders & shadows */
  --border:      #e5e7eb;
  --border-2:    #d1d5db;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* Typography */
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --trans:  0.25s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #bfdbfe; color: #1e3a8a; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 112px 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal-left  { transform: translateX(-40px); opacity: 0; }
.reveal-right { transform: translateX(40px);  opacity: 0; }
.revealed { opacity: 1 !important; transform: none !important; }

/* Grid stagger */
.svc-card:nth-child(1),  .proj-card:nth-child(1),  .domain-card:nth-child(1) { transition-delay: 0.05s; }
.svc-card:nth-child(2),  .proj-card:nth-child(2),  .domain-card:nth-child(2) { transition-delay: 0.10s; }
.svc-card:nth-child(3),  .proj-card:nth-child(3),  .domain-card:nth-child(3) { transition-delay: 0.15s; }
.svc-card:nth-child(4),  .proj-card:nth-child(4),  .domain-card:nth-child(4) { transition-delay: 0.20s; }
.svc-card:nth-child(5),  .proj-card:nth-child(5),  .domain-card:nth-child(5) { transition-delay: 0.25s; }
.svc-card:nth-child(6),  .proj-card:nth-child(6),  .domain-card:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-ghost {
  background: var(--bg-white);
  color: var(--text-2);
  border: 1.5px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--blue-lt);
  border: 1px solid var(--blue-border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-3);
  transition: var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-light); }
.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--trans);
}
.nav-cta:hover { background: var(--blue-dk); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-3); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--text); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle grid background (Jacob Ralph style) */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 40px;
}

/* HERO LEFT */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-accent {
  font-style: normal;
  color: var(--blue);
}

/* Word-swap animation */
.word-swap-wrap {
  display: inline-block;
  position: relative;
}
.word-swap {
  display: inline-block;
  color: var(--blue);
  position: relative;
}
.word-swap::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 0.3;
}

/* fade transition class controlled by JS */
.word-swap.fade-out { animation: wordFadeOut 0.25s forwards; }
.word-swap.fade-in  { animation: wordFadeIn  0.35s forwards; }

@keyframes wordFadeOut {
  0%   { opacity:1; transform: translateY(0); }
  100% { opacity:0; transform: translateY(-12px); }
}
@keyframes wordFadeIn {
  0%   { opacity:0; transform: translateY(14px); }
  100% { opacity:1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-micro {
  font-size: 0.8rem;
  color: var(--text-4);
  margin-top: 4px;
}

/* HERO RIGHT — floating code card */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  animation: float-card 5s ease-in-out infinite;
}
@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.card-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.traffic-lights { display: flex; gap: 6px; }
.tl {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.tl.red    { background: #ff5f57; }
.tl.yellow { background: #ffbd2e; }
.tl.green  { background: #28ca41; }
.card-filename {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

.code-block {
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
}
.code-line { white-space: nowrap; }
.code-line.indent { padding-left: 20px; }
.ck { color: #8b5cf6; font-weight: 500; }   /* keyword / key */
.cv { color: var(--text); }                  /* variable name */
.cs { color: #16a34a; }                      /* string value */

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}
.float-badge svg { color: var(--blue); }

.badge-top    { top: -20px; right: -16px; animation: float-badge-t 4s ease-in-out infinite; }
.badge-bottom { bottom: -16px; left: -12px; animation: float-badge-b 4.5s ease-in-out infinite; }

@keyframes float-badge-t {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes float-badge-b {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* STATS BAR (dark bar below hero, like Jacob Ralph) */
.hero-stats-bar {
  background: var(--bg-dark);
  padding: 36px 0;
  flex-shrink: 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-inv);
  line-height: 1;
}
.stat-suf { font-size: 1.3rem; font-weight: 700; color: #60a5fa; }
.stat-pre { font-size: 1.3rem; font-weight: 700; color: #60a5fa; }
.stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.stat-sep { width: 1px; height: 56px; background: rgba(255,255,255,0.1); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--trans);
  position: relative;
  display: flex;
  flex-direction: column;
}
.svc-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.svc-featured {
  border-color: var(--blue-border);
  background: var(--blue-lt);
}
.svc-featured:hover { border-color: var(--blue); }

.svc-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid var(--blue-border);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.svc-icon-wrap { margin-bottom: 18px; }
.svc-icon {
  width: 50px; height: 50px;
  background: var(--blue-lt);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  transition: var(--trans);
}
.svc-card:hover .svc-icon {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.svc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.svc-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.svc-list {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-list li {
  font-size: 0.82rem;
  color: var(--text-3);
  padding-left: 14px;
  position: relative;
}
.svc-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.svc-price {
  font-size: 0.83rem;
  color: var(--text-3);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.svc-price strong { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.svc-price small  { font-size: 0.78rem; color: var(--text-4); }

.svc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: var(--trans);
}
.svc-link:hover { gap: 8px; opacity: 0.8; }

/* ============================================================
   INDUSTRIES / DOMAINS
   ============================================================ */
.domains { background: var(--bg); }

/* Featured healthcare card */
.domain-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg-white);
  border: 1.5px solid var(--hc-border);
  border-radius: var(--r-2xl);
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.domain-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.domain-icon-wrap.healthcare { background: var(--hc-bg); color: var(--hc-icon); border: 1.5px solid var(--hc-border); }
.domain-icon-wrap.realestate { background: var(--re-bg);    color: var(--re-icon);    border: 1.5px solid var(--re-border); }
.domain-icon-wrap.legal      { background: var(--legal-bg); color: var(--legal-icon); border: 1.5px solid var(--legal-border); }
.domain-icon-wrap.food       { background: var(--food-bg);  color: var(--food-icon);  border: 1.5px solid var(--food-border); }
.domain-icon-wrap.startup    { background: var(--startup-bg); color: var(--startup-icon); border: 1.5px solid var(--startup-border); }
.domain-icon-wrap.finance    { background: var(--fin-bg);   color: var(--fin-icon);   border: 1.5px solid var(--fin-border); }
.domain-icon-wrap.education  { background: var(--edu-bg);   color: var(--edu-icon);   border: 1.5px solid var(--edu-border); }

.domain-feat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.domain-feat-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.domain-feat-desc {
  font-size: 0.97rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 24px;
}
.domain-feat-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.dp {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.dp::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* Pipeline visualization */
.pipeline-viz {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.pv-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 10px;
  min-width: 72px;
  text-align: center;
  transition: var(--trans);
}
.pv-step:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.pv-ai {
  border-color: var(--blue-border);
  background: var(--blue-lt);
}
.pv-output {
  border-color: #bbf7d0;
  background: var(--green-lt);
}
.pv-icon { font-size: 1.4rem; }
.pv-label { font-size: 0.7rem; font-weight: 600; color: var(--text-2); line-height: 1.4; }
.pv-label small { color: var(--text-4); font-weight: 400; }
.pv-arrow { font-size: 1rem; color: var(--text-4); font-weight: 700; flex-shrink: 0; }

.pipeline-caption {
  font-size: 0.78rem;
  color: var(--text-4);
  text-align: center;
  margin-bottom: 20px;
}

.hc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid var(--blue-border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Domain cards grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.domain-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.domain-card:nth-child(1):hover { border-color: var(--re-icon); }
.domain-card:nth-child(2):hover { border-color: var(--legal-icon); }
.domain-card:nth-child(3):hover { border-color: var(--food-icon); }
.domain-card:nth-child(4):hover { border-color: var(--startup-icon); }
.domain-card:nth-child(5):hover { border-color: var(--fin-icon); }
.domain-card:nth-child(6):hover { border-color: var(--edu-icon); }

.domain-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.domain-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.domain-list {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.domain-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
}
.domain-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: 0.75rem; }

.domain-example {
  font-size: 0.8rem;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  line-height: 1.55;
  margin-top: auto;
}
.de-label {
  font-weight: 700;
  color: var(--text-2);
  margin-right: 4px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proj-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  position: relative;
}
.proj-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.proj-main {
  grid-column: span 2;
  background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%);
  border-color: var(--blue-border);
}

.proj-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-4);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ptag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid var(--blue-border);
  padding: 3px 10px;
  border-radius: 100px;
}

.proj-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.proj-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pm {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pm span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  font-weight: 600;
}
.pm {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }

.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.about-p {
  font-size: 0.97rem;
  color: var(--text-3);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-creds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--trans);
}
.cred-item svg { color: var(--blue); flex-shrink: 0; }
.cred-item:hover { border-color: var(--blue); color: var(--blue); }

/* Avatar card */
.about-avatar-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.avc-avatar {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avc-initials {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
}
.avc-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed #bfdbfe;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.avc-status {
  position: absolute;
  bottom: 2px; right: 2px;
  background: var(--green-lt);
  border: 1.5px solid #a7f3d0;
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.avc-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.avc-info h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.avc-info p  { font-size: 0.85rem; color: var(--text-3); }
.avc-loc     { font-size: 0.78rem !important; color: var(--text-4) !important; margin-top: 4px; }

/* Skills cloud */
.skills-cloud {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.sc-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.sc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  transition: var(--trans);
}
.sc-tag.strong {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: var(--blue-border);
  font-weight: 600;
}
.sc-tag:hover { border-color: var(--blue); color: var(--blue); }

/* Testimonials mini */
.testimonials-mini { display: flex; flex-direction: column; gap: 14px; }
.tm-item {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: var(--trans);
}
.tm-item:hover { border-color: var(--blue-border); box-shadow: var(--shadow-sm); }
.tm-featured {
  border-color: var(--blue-border);
  background: var(--blue-lt);
}
.tm-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 8px; }
.tm-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}
.tm-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-white); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 14px;
}
.contact-desc {
  font-size: 0.97rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--trans);
}
.cm-item:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
  transform: translateX(4px);
}
.cm-icon {
  width: 42px; height: 42px;
  background: var(--blue-lt);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.cm-icon.upwork { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.cm-item div { display: flex; flex-direction: column; gap: 1px; }
.cm-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-4); font-weight: 600; }
.cm-val   { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.contact-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-3);
}
.ca-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; animation: pulse-green 2s infinite; }

/* Form */
.contact-form {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--text);
  transition: var(--trans);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-4); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
select { appearance: none; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }

.form-micro {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-4);
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.f-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-inv);
  margin-bottom: 4px;
}
.footer-brand p { font-size: 0.82rem; color: #64748b; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.86rem; color: #94a3b8; transition: var(--trans); }
.footer-nav a:hover { color: #60a5fa; }
.footer-copy { font-size: 0.78rem; color: #4b5563; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--trans);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover   { background: var(--blue-dk); transform: translateY(-2px); }

/* Form success */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg { color: var(--green); margin: 0 auto 16px; }
.form-success h3  { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }
.form-success p   { font-size: 0.9rem; color: var(--text-3); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 100vw);
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 2px;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; padding: 12px 0; width: 100%; }
  .nav-cta  { margin: 12px 0 0; width: 100%; text-align: center; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .hero-container { gap: 40px; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .proj-main      { grid-column: span 2; }
  .domain-featured { grid-template-columns: 1fr; gap: 36px; }
  .domains-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap   { grid-template-columns: 1fr; gap: 48px; }
  .about-wrap     { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section        { padding: 80px 0; }
  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 20px;
  }
  .hero-right { display: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .proj-main      { grid-column: span 1; }
  .domains-grid   { grid-template-columns: 1fr; }
  .stats-inner    { gap: 0; flex-wrap: wrap; }
  .stat-item      { padding: 16px 24px; flex: 1 1 50%; }
  .stat-sep       { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .pipeline-viz   { flex-direction: column; gap: 8px; }
  .pv-arrow       { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form  { padding: 24px 16px; }
  .domain-featured { padding: 28px 20px; }
  .back-to-top   { bottom: 16px; right: 16px; }
}
