
/* ============================================================
   iUptimize Digital — style.css
   https://iuptimize.com
   Step 2: Complete stylesheet — all sections
   ============================================================ */


/* ═══════════════════════════════════════════════════════════
   1. CSS VARIABLES & DESIGN TOKENS
═══════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --indigo:        #6366f1;
  --indigo-light:  #a5b4fc;
  --indigo-deep:   #4f46e5;
  --indigo-glow:   rgba(99, 102, 241, 0.14);
  --indigo-border: rgba(99, 102, 241, 0.32);

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

  /* Font scale (fluid where it matters) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing scale */
  --s1:  0.25rem;   /* 4px  */
  --s2:  0.5rem;    /* 8px  */
  --s3:  0.75rem;   /* 12px */
  --s4:  1rem;      /* 16px */
  --s5:  1.25rem;   /* 20px */
  --s6:  1.5rem;    /* 24px */
  --s8:  2rem;      /* 32px */
  --s10: 2.5rem;    /* 40px */
  --s12: 3rem;      /* 48px */
  --s16: 4rem;      /* 64px */
  --s20: 5rem;      /* 80px */
  --s24: 6rem;      /* 96px */

  /* Layout */
  --max-w:       1200px;
  --max-w-text:  640px;
  --nav-h:       72px;

  /* Borders */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast:  150ms;
  --base:  260ms;
  --slow:  420ms;
}

/* Dark theme (default — html[data-theme="dark"]) */
[data-theme="dark"] {
  --bg:            #080910;
  --bg-2:          #0c0d1a;
  --bg-card:       rgba(255, 255, 255, 0.034);
  --bg-card-hover: rgba(255, 255, 255, 0.058);
  --bg-glass:      rgba(8, 9, 16, 0.84);
  --bg-input:      rgba(255, 255, 255, 0.055);

  --t1:  #ffffff;
  --t2:  rgba(255, 255, 255, 0.74);
  --t3:  rgba(255, 255, 255, 0.46);
  --t4:  rgba(255, 255, 255, 0.26);
  --ta:  var(--indigo-light);   /* accent text */

  --b1:  rgba(255, 255, 255, 0.07);  /* subtle border */
  --b2:  rgba(255, 255, 255, 0.14);  /* visible border */
  --ba:  var(--indigo-border);        /* accent border */

  --sh-sm:     0 2px 8px  rgba(0, 0, 0, 0.32);
  --sh-md:     0 4px 24px rgba(0, 0, 0, 0.48);
  --sh-lg:     0 8px 48px rgba(0, 0, 0, 0.68);
  --sh-indigo: 0 0  60px  rgba(99, 102, 241, 0.22);

  --nav-bg:  rgba(8, 9, 16, 0.9);
  --pill-bg: rgba(99, 102, 241, 0.12);
  --pill-t:  var(--indigo-light);
}

/* Light theme */
[data-theme="light"] {
  --bg:            #f4f5fb;
  --bg-2:          #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f1fc;
  --bg-glass:      rgba(244, 245, 251, 0.92);
  --bg-input:      #eef0f8;

  --t1:  #0a0b14;
  --t2:  #2d3148;
  --t3:  #6b7280;
  --t4:  #9ca3af;
  --ta:  var(--indigo-deep);

  --b1:  rgba(0, 0, 0, 0.07);
  --b2:  rgba(0, 0, 0, 0.14);
  --ba:  rgba(99, 102, 241, 0.3);

  --sh-sm:     0 2px 8px  rgba(0, 0, 0, 0.06);
  --sh-md:     0 4px 24px rgba(0, 0, 0, 0.09);
  --sh-lg:     0 8px 48px rgba(0, 0, 0, 0.14);
  --sh-indigo: 0 0  60px  rgba(99, 102, 241, 0.12);

  --nav-bg:  rgba(244, 245, 251, 0.92);
  --pill-bg: rgba(99, 102, 241, 0.09);
  --pill-t:  var(--indigo-deep);
}


/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--t2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--slow) var(--ease),
              color var(--slow) var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--indigo); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  color: var(--t1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }

p { color: var(--t2); line-height: 1.76; }

/* Gradient headline text */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-light) 55%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }


/* ═══════════════════════════════════════════════════════════
   4. LAYOUT
═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s6);
}

/* Section base */
.section {
  padding-block: var(--s24);
  position: relative;
}
.section--alt { background: var(--bg-2); }

/* Section header */
.section__hd {
  text-align: center;
  max-width: var(--max-w-text);
  margin-inline: auto;
  margin-bottom: var(--s16);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pill-t);
  background: var(--pill-bg);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  border: 1px solid var(--ba);
  margin-bottom: var(--s5);
}

.section__title { margin-bottom: var(--s4); }

.section__desc {
  font-size: var(--text-lg);
  color: var(--t3);
  line-height: 1.76;
}

/* Grids */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }


/* ═══════════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm  { padding: var(--s2)  var(--s4);  font-size: var(--text-sm);  }
.btn-md  { padding: var(--s3)  var(--s6);  font-size: var(--text-sm);  }
.btn-lg  { padding: var(--s4)  var(--s8);  font-size: var(--text-base); }
.btn-xl  { padding: var(--s5)  var(--s10); font-size: var(--text-lg);   }

/* Primary — solid indigo */
.btn-primary {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.42);
}
.btn-primary:active { transform: translateY(0); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--t1);
  border-color: var(--b2);
}
.btn-outline:hover {
  border-color: var(--indigo);
  color: var(--indigo-light);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  background: var(--bg-card);
  color: var(--t2);
  border-color: var(--b1);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--b2);
}


/* ═══════════════════════════════════════════════════════════
   6. BADGE / PILL / TAG
═══════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  background: var(--pill-bg);
  border: 1px solid var(--ba);
  color: var(--pill-t);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--s3);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  color: var(--t3);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   7. CARD (Glassmorphism)
═══════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: var(--s8);
  position: relative;
  overflow: hidden;
  transition: background var(--base) var(--ease),
              border-color var(--base) var(--ease),
              transform var(--base) var(--ease),
              box-shadow var(--base) var(--ease);
}

[data-theme="dark"] .card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Top highlight line on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--indigo-border) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--base) var(--ease);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--b2);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.card:hover::before { opacity: 1; }

.card--indigo:hover {
  border-color: var(--indigo-border);
  box-shadow: var(--sh-indigo);
}


/* ═══════════════════════════════════════════════════════════
   8. NAVBAR
═══════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background var(--slow) var(--ease),
              border-color var(--slow) var(--ease),
              box-shadow var(--slow) var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--b1);
  box-shadow: var(--sh-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 34px; width: auto; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.navbar__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--t3);
  position: relative;
  transition: color var(--fast) var(--ease);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--indigo);
  border-radius: 2px;
  transition: width var(--base) var(--ease);
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--t1); }

.navbar__links a:hover::after,
.navbar__links a.active::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  color: var(--t3);
  font-size: 1.05rem;
  transition: all var(--fast) var(--ease);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--t1);
  border-color: var(--b2);
}

/* Hamburger (mobile only) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  color: var(--t2);
  font-size: 1.2rem;
  transition: all var(--fast) var(--ease);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--b1);
  box-shadow: var(--sh-md);
  padding: var(--s8) var(--s6);
  flex-direction: column;
  gap: var(--s6);
  z-index: 999;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--t2);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--b1);
  transition: color var(--fast) var(--ease);
}

.nav-drawer a:hover { color: var(--t1); }


/* ═══════════════════════════════════════════════════════════
   9. HERO
═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Canvas fills the full hero background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Vignette — fades canvas into page background at edges */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 0%, var(--bg) 72%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: var(--s24) var(--s20);
  padding-top: calc(var(--nav-h) + var(--s16));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s8);
}

.hero__headline {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  max-width: 880px;
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--t3);
  max-width: 520px;
  line-height: 1.76;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Stats strip */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--s10);
  margin-top: var(--s4);
  padding: var(--s5) var(--s10);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat { text-align: center; }

.stat__n {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__l {
  display: block;
  font-size: var(--text-xs);
  color: var(--t3);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--b1);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--s8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: var(--t4);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2.4s var(--ease) infinite;
  pointer-events: none;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}


/* ═══════════════════════════════════════════════════════════
   10. SERVICES
═══════════════════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s6);
}

.svc-card { padding: var(--s8); }

.svc-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--indigo-glow);
  border: 1px solid var(--indigo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--indigo-light);
  margin-bottom: var(--s5);
  transition: all var(--base) var(--ease);
}

.svc-card:hover .svc-card__icon {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.svc-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: var(--s3);
}

.svc-card__desc {
  font-size: var(--text-sm);
  color: var(--t3);
  line-height: 1.72;
  margin-bottom: var(--s5);
}

.svc-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pill-t);
}

/* Coming soon card */
.svc-card--soon {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
}

.svc-card--soon .svc-card__price::before {
  content: 'Coming Soon · ';
  color: var(--t4);
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════
   11. PORTFOLIO
═══════════════════════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s6);
}

.port-card {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.port-card__img-wrap {
  overflow: hidden;
  height: 210px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.port-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}

.port-card:hover .port-card__img { transform: scale(1.05); }

.port-card__body { padding: var(--s6); }

.port-card__niche {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--pill-t);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s2);
}

.port-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: var(--s3);
}

.port-card__desc {
  font-size: var(--text-sm);
  color: var(--t3);
  line-height: 1.7;
  margin-bottom: var(--s5);
}

.port-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--indigo-light);
  transition: gap var(--base) var(--ease), color var(--base) var(--ease);
}

.port-card__link:hover {
  gap: var(--s3);
  color: var(--t1);
}

/* Placeholder slot (dashed) */
.port-placeholder {
  border: 1.5px dashed var(--b1);
  border-radius: var(--r-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  color: var(--t4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--base) var(--ease);
}

.port-placeholder:hover {
  border-color: var(--b2);
  color: var(--t3);
  background: var(--bg-card);
}


/* ═══════════════════════════════════════════════════════════
   12. ABOUT
═══════════════════════════════════════════════════════════ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s16);
  align-items: center;
}

.about__img-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.about__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Inset border overlay */
.about__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--b1);
  pointer-events: none;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.about__bio {
  font-size: var(--text-lg);
  color: var(--t2);
  line-height: 1.82;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--t2);
}

.skill-item i { color: var(--indigo-light); font-size: 1rem; flex-shrink: 0; }

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.stack-chip {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--t3);
  font-weight: 500;
  transition: all var(--fast) var(--ease);
}

.stack-chip:hover { color: var(--t1); border-color: var(--b2); }
.stack-chip i { color: var(--indigo-light); font-size: 1rem; }


/* ═══════════════════════════════════════════════════════════
   13. PROCESS
═══════════════════════════════════════════════════════════ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s4);
  position: relative;
}

/* Connector line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 31px; /* center of the number circle */
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--indigo-border) 15%,
    var(--indigo-border) 85%,
    transparent 100%);
}

.proc-step {
  text-align: center;
  position: relative;
}

.proc-step__num {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--ba);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pill-t);
  backdrop-filter: blur(8px);
  transition: all var(--base) var(--ease-spring);
}

.proc-step:hover .proc-step__num {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.45);
  transform: scale(1.08);
}

.proc-step__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: var(--s2);
}

.proc-step__desc {
  font-size: var(--text-sm);
  color: var(--t3);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════
   14. TESTIMONIALS
═══════════════════════════════════════════════════════════ */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.testi-card {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.testi-card__stars {
  color: #f59e0b;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

.testi-card__quote {
  font-size: var(--text-base);
  color: var(--t2);
  line-height: 1.82;
  font-style: italic;
  flex: 1;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--b1);
  flex-shrink: 0;
}

.testi-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--t1);
}

.testi-card__role {
  font-size: var(--text-xs);
  color: var(--t3);
  font-family: var(--font-mono);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   15. CONTACT
═══════════════════════════════════════════════════════════ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s16);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
}

.contact__headline {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--s4);
}

.contact__desc {
  font-size: var(--text-lg);
  color: var(--t3);
  line-height: 1.76;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.contact__detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--indigo-glow);
  border: 1px solid var(--indigo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact__detail-lbl {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact__detail-val {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--t1);
}

/* Form container */
.contact__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: var(--s10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact__form-wrap h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s2);
}

.contact__form-wrap p {
  font-size: var(--text-sm);
  color: var(--t3);
  margin-bottom: var(--s8);
}

/* Form elements */
.form { display: flex; flex-direction: column; gap: var(--s5); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.form__group { display: flex; flex-direction: column; gap: var(--s2); }

.form__label {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--t3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--s4);
  background: var(--bg-input);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--t4); }

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.form__textarea { min-height: 130px; resize: vertical; }

.form__select option { background: var(--bg-2); color: var(--t1); }

.form__submit { width: 100%; justify-content: center; padding-block: var(--s4); }

/* Success message */
.form__success {
  display: none;
  text-align: center;
  padding: var(--s10);
}
.form__success.show { display: block; }

.form__success-icon {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: var(--s4);
}

.form__success h3 { margin-bottom: var(--s2); }
.form__success p  { color: var(--t3); }

/* Error message */
.form__error-msg {
  display: none;
  color: #f87171;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  padding: var(--s3) var(--s4);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--r-md);
}
.form__error-msg.show { display: block; }

/* Tally fallback iframe */
.tally-frame {
  width: 100%;
  min-height: 540px;
  border: none;
  border-radius: var(--r-md);
}


/* ═══════════════════════════════════════════════════════════
   16. FOOTER
═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--b1);
  padding-block: var(--s16) var(--s8);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s12);
  margin-bottom: var(--s12);
}

.footer__logo { height: 30px; margin-bottom: var(--s4); }

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--t3);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: var(--s5);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: var(--s5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--t3);
  transition: color var(--fast) var(--ease);
}

.footer__links a:hover { color: var(--t1); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s8);
  border-top: 1px solid var(--b1);
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--t4);
  font-family: var(--font-mono);
}

.footer__legal {
  display: flex;
  gap: var(--s6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--t4);
  font-family: var(--font-mono);
  transition: color var(--fast) var(--ease);
}

.footer__legal a:hover { color: var(--t2); }


/* ═══════════════════════════════════════════════════════════
   17. DIVIDER / DECORATIVE
═══════════════════════════════════════════════════════════ */

.sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b1), transparent);
}

.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), transparent);
  border-radius: 2px;
}
.divider--c { margin-inline: auto; }


/* ═══════════════════════════════════════════════════════════
   18. UTILITIES
═══════════════════════════════════════════════════════════ */

.t-center  { text-align: center; }
.t-left    { text-align: left; }
.t-c1      { color: var(--t1); }
.t-c2      { color: var(--t2); }
.t-c3      { color: var(--t3); }
.t-accent  { color: var(--ta); }
.hidden    { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2       { gap: var(--s2); }
.gap-4       { gap: var(--s4); }
.gap-6       { gap: var(--s6); }

/* GSAP scroll-reveal targets (start visible; JS adds initial state) */
.js-reveal { will-change: transform, opacity; }


/* ═══════════════════════════════════════════════════════════
   19. RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-steps::before { display: none; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--s10);
  }
  .about__img { height: 320px; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .navbar__links { display: none; }
  .navbar__actions .btn-md { display: none; }
  .nav-hamburger { display: flex; }

  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s6);
    padding: var(--s4) var(--s6);
  }
  .stat-div { display: none; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; max-width: 360px; justify-content: center; }

  .services-grid,
  .portfolio-grid,
  .testi-grid,
  .g2, .g3, .g4 {
    grid-template-columns: 1fr;
  }

  .contact__grid { grid-template-columns: 1fr; gap: var(--s10); }

  .process-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .footer__top { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .section { padding-block: var(--s16); }

  .contact__form-wrap { padding: var(--s6); }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding-inline: var(--s4); }

  .hero__stats { padding: var(--s4); }
  .card { padding: var(--s6); }
}



/* Hero fallback gradient — visible before canvas animation loads */
.hero {
  background:
    radial-gradient(ellipse 55% 70% at 18% 55%, rgba(99, 102, 241, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 82% 22%, rgba(165, 180, 252, 0.06) 0%, transparent 65%),
    var(--bg);
}


/* Contrast fix — bump muted text opacity */
[data-theme="dark"] {
  --t3: rgba(255, 255, 255, 0.62);
}

/* Services grid — explicit 3 columns, center lone last card */
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}
.services-grid > article:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
@media (max-width: 768px) {
  .services-grid > article:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}


/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.55rem;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.52);
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 48px; height: 48px; font-size: 1.35rem; }
}