/* ================================================================
   THE DIGITECH SOLUTIONS · Portfolio
   Professional design system — Light & Dark themes
   Typography: Inter (UI) + Instrument Serif (accents)
   ================================================================ */

/* ------------  DESIGN TOKENS  ------------ */
:root {
  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme (default) — premium deep navy + emerald accent */
:root[data-theme="dark"] {
  --bg: #070B16;
  --bg-2: #0B1220;
  --surface: #0F182B;
  --surface-2: #13203A;
  --surface-3: #182A4A;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);

  --text: #F1F5F9;
  --text-dim: #CBD5E1;
  --text-muted: #8A99B5;

  --brand: #5EEAD4;          /* teal */
  --brand-2: #38BDF8;         /* sky */
  --accent: #A78BFA;          /* soft violet */
  --gold: #F5D78E;

  --success: #34D399;
  --warn: #FBBF24;

  --gradient-brand: linear-gradient(135deg, #5EEAD4 0%, #38BDF8 50%, #A78BFA 100%);
  --gradient-hero: radial-gradient(ellipse at top left, rgba(94, 234, 212, 0.12), transparent 55%),
                   radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.12), transparent 60%);
  --grid-color: rgba(148, 163, 184, 0.06);

  color-scheme: dark;
}

/* Light theme — professional slate + indigo */
:root[data-theme="light"] {
  --bg: #F7F8FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F5F9;
  --surface-3: #E8ECF3;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --text: #0B1220;
  --text-dim: #334155;
  --text-muted: #64748B;

  --brand: #0E7490;          /* deep teal */
  --brand-2: #1D4ED8;         /* indigo */
  --accent: #7C3AED;
  --gold: #B45309;

  --success: #059669;
  --warn: #B45309;

  --gradient-brand: linear-gradient(135deg, #0E7490 0%, #1D4ED8 50%, #7C3AED 100%);
  --gradient-hero: radial-gradient(ellipse at top left, rgba(14, 116, 144, 0.08), transparent 55%),
                   radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.08), transparent 60%);
  --grid-color: rgba(15, 23, 42, 0.05);

  color-scheme: light;
}

/* ------------  RESET & BASE  ------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--gradient-hero),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

::selection {
  background: var(--brand);
  color: #0B1220;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 14px;
  background: var(--brand);
  color: #0B1220;
  border-radius: var(--radius-xs);
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}

/* ------------  HEADER / NAV  ------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

/* The real Digitech Solutions logo, loaded as an <img> so it renders
   exactly as provided — no graphics on top, no gradients, no decoration. */
.brand-logo-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo-img {
  transform: scale(1.02);
}
.brand-logo-img--footer {
  height: 52px;
}
@media (max-width: 720px) {
  .brand-logo-img { height: 48px; }
  .brand-logo-img--footer { height: 44px; }
}

.primary-nav {
  display: flex;
  gap: 4px;
}
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
}
.primary-nav a.is-active {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* ------------  BUTTONS  ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 15px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #0B1220;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--brand) 55%, transparent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--brand) 65%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand);
}

/* ------------  HERO  ------------ */
.hero {
  padding: clamp(56px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
}

.hero-inner {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent);
}

.hero-title {
  font-size: clamp(40px, 6.2vw, 80px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
.hero-stats div { margin: 0; }
.hero-stats dt {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ------------  SECTIONS  ------------ */
section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
}
.section-label.light { color: var(--text-muted); }
.section-label.light::before { background: var(--text-muted); }

.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--text);
}

.section-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

/* ------------  ABOUT  ------------ */
.about {
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-head {
  margin-bottom: 0;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  margin-bottom: 16px;
}
.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pillar-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .about-pillars { grid-template-columns: 1fr; }
}

/* ------------  REELS / SOCIAL IMPACT  ------------ */
.reels {
  background:
    radial-gradient(1200px 500px at 85% 10%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 60%),
    var(--bg);
}
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.reel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}
.reel-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}
.reel-media {
  display: block;
  position: relative;
  text-decoration: none;
  aspect-ratio: 9 / 12;
  overflow: hidden;
}
.reel-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
}
.reel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(0,0,0,0.45), transparent 60%);
  pointer-events: none;
}
.reel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reel-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.reel-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #0B1220;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.reel-card:hover .reel-play {
  transform: scale(1.06);
}
.reel-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0.22;
  padding: 8px 0;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.reel-visual svg {
  width: 58%;
  max-width: 140px;
  height: auto;
}
.reel-card:hover .reel-visual {
  opacity: 0.32;
  transform: scale(1.04);
}
.reel-caption {
  position: relative;
  z-index: 1;
}
.reel-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.reel-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.reel-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reel-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}
.reel-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}
.reel-body .live-link { margin-top: auto; }

.reel-grad-1 { background: linear-gradient(155deg, #831843 0%, #9D174D 50%, #500724 100%); }
.reel-grad-2 { background: linear-gradient(155deg, #0C4A6E 0%, #075985 50%, #082F49 100%); }
.reel-grad-3 { background: linear-gradient(155deg, #1E3A8A 0%, #1E40AF 50%, #172554 100%); }
.reel-grad-4 { background: linear-gradient(155deg, #6D28D9 0%, #7C3AED 50%, #3B0764 100%); }
.reel-grad-5 { background: linear-gradient(155deg, #065F46 0%, #047857 50%, #022C22 100%); }
.reel-grad-6 { background: linear-gradient(155deg, #0F766E 0%, #0D9488 50%, #042F2E 100%); }
.reel-grad-7 { background: linear-gradient(155deg, #9F1239 0%, #BE123C 50%, #4C0519 100%); }
.reel-grad-8 { background: linear-gradient(155deg, #334155 0%, #1E293B 50%, #0B1220 100%); }
.reel-grad-9 { background: linear-gradient(155deg, #115E59 0%, #0F766E 50%, #134E4A 100%); }

/* ------------  WORK GRID  ------------ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.browser-chrome {
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
.browser-chrome > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.browser-chrome > span:nth-child(1) { background: #ff5f57; }
.browser-chrome > span:nth-child(2) { background: #febc2e; }
.browser-chrome > span:nth-child(3) { background: #28c840; }

.live-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
  width: auto !important;
  height: auto !important;
  border-radius: 999px !important;
}

.preview-canvas {
  position: absolute;
  inset: 36px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: #fff;
  font-weight: 600;
}
.preview-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.25), transparent 55%);
  pointer-events: none;
}

/* ---- Polished "logo lockup" frame used by every client preview ---- */
.preview-logo,
.preview-logo-soft {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 28px 20px;
  border-radius: 14px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.04)
    );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.preview-logo::before,
.preview-logo-soft::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5EEAD4, #38BDF8, #A78BFA);
  margin-bottom: 4px;
  opacity: 0.9;
}
.preview-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.preview-logo small {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  font-weight: 600;
  display: block;
  opacity: 0.92;
  margin-top: 2px;
}
.preview-logo-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  z-index: 1;
}
.preview-logo-soft {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.preview-logo-soft em {
  font-style: italic;
  opacity: 0.9;
}

.preview-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 280px;
  opacity: 0.95;
  z-index: 1;
}

.preview-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  z-index: 1;
}

/* Distinct gradient palette for each card */
.gradient-1 { background: linear-gradient(135deg, #0E7490 0%, #155E75 50%, #0B3D5C 100%); }
.gradient-2 { background: linear-gradient(135deg, #1E3A8A 0%, #312E81 50%, #4C1D95 100%); }
.gradient-3 { background: linear-gradient(135deg, #7C2D12 0%, #9A3412 50%, #B45309 100%); }
.gradient-4 { background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%); }
.gradient-5 { background: linear-gradient(135deg, #831843 0%, #9D174D 50%, #BE185D 100%); }
.gradient-6 { background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%); }
.gradient-7 { background: linear-gradient(135deg, #BE123C 0%, #881337 50%, #4C0519 100%); }
.gradient-8 { background: linear-gradient(135deg, #115E59 0%, #0F766E 50%, #134E4A 100%); }
.gradient-9 { background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #1E3A8A 100%); }
.gradient-10 { background: linear-gradient(135deg, #365314 0%, #4D7C0F 45%, #166534 100%); }
.gradient-11 { background: linear-gradient(135deg, #7C2D12 0%, #9A3412 45%, #1F2937 100%); }

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand);
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.project-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.tag-row {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-row li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.project-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.live-link:hover {
  color: var(--brand);
  gap: 10px;
}
.counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ------------  SERVICES (360° marketing)  ------------ */
.services {
  position: relative;
}

.orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 64px;
  aspect-ratio: 1 / 1;
  display: none;  /* Desktop decoration only — optional */
}
.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--brand) 45%, transparent);
}
.orbit-core-inner {
  text-align: center;
  color: #0B1220;
}
.orbit-core-label {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}
.orbit-core-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 6px;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-md);
}
.service-card:hover::before {
  opacity: 0.04;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}

.service-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.service-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brand);
  flex: 0 0 14px;
}

/* ------------  PROCESS  ------------ */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.process-list .step-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  color: transparent;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
}
.process-list h3 {
  margin: 14px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.process-list p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ------------  REVIEWS  ------------ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 0;
  position: relative;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.review-card blockquote {
  margin: 26px 0 20px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.005em;
}
.review-card figcaption {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-card figcaption strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.review-card figcaption span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ------------  CONTACT  ------------ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-list a:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ------------  FLOATING QUICK-CONTACT RAIL  ------------ */
.quick-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.qc-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.qc-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}
.qc-whatsapp { background: linear-gradient(135deg, #22C55E, #16A34A); }
.qc-call     { background: linear-gradient(135deg, #38BDF8, #0EA5E9); }
.qc-mail     { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.qc-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0B1220;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.qc-btn:hover .qc-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.footer-site-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.footer-site-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .quick-contact { right: 14px; bottom: 14px; gap: 10px; }
  .qc-btn { width: 48px; height: 48px; }
  .qc-tip { display: none; }
}
@media (max-width: 820px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ------------  FOOTER  ------------ */
.site-footer {
  margin-top: 40px;
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-cols a,
.footer-cols span {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ================================================================
   MOBILE NAV TOGGLE
   ================================================================ */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}
body.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop behind the mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 22, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 45;
}
body.is-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   TABLET & BELOW  ≤ 960px
   ================================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav-inner {
    height: 64px;
    gap: 14px;
  }

  .nav-quote-btn { display: none; }

  /* Turn the nav into a slide-down drawer */
  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter) 28px;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.32s var(--ease),
      opacity 0.28s var(--ease);
    z-index: 50;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35);
  }
  body.is-nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a:last-of-type {
    border-bottom: 0;
  }

  /* Layout */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ================================================================
   SMALL TABLET / LARGE PHONE  ≤ 820px
   ================================================================ */
@media (max-width: 820px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }

  /* Tighten vertical rhythm */
  section { padding: clamp(56px, 9vw, 96px) 0; }
  .section-head { margin-bottom: 40px; }

  /* Project + reel cards: single column, wider cards */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .reels-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* ================================================================
   PHONE  ≤ 640px
   ================================================================ */
@media (max-width: 640px) {
  .nav-inner { height: 60px; gap: 10px; }
  .primary-nav { top: 60px; max-height: calc(100vh - 60px); }

  .brand-logo-img { height: 38px; }

  /* Header actions — smaller theme toggle */
  .theme-toggle { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; height: 38px; }

  /* Hero */
  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-sub { font-size: 15.5px; margin-bottom: 28px; }
  .hero-cta { margin-bottom: 40px; gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
    padding-top: 22px;
  }
  .hero-stats dd { font-size: 30px; }
  .hero-stats dt { font-size: 11px; }

  /* Section headers */
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 14.5px; }
  .section-head { margin-bottom: 32px; }

  /* About pillars already handled at 520px, but tighten padding */
  .pillar-card { padding: 20px; }
  .about-badges { gap: 8px; }
  .badge { font-size: 11px; padding: 6px 12px; }

  /* Work grid — already 1 col at 820; shrink paddings */
  .project-body { padding: 22px; gap: 12px; }
  .project-body h3 { font-size: 21px; }
  .project-body p { font-size: 14px; }
  .project-foot { flex-wrap: wrap; row-gap: 8px; }

  .preview-canvas { padding: 20px; gap: 10px; }
  .preview-logo,
  .preview-logo-soft {
    padding: 14px 20px 16px;
    font-size: 22px;
  }
  .preview-logo small { font-size: 9.5px; letter-spacing: 0.22em; }

  /* Reels — single column on phone */
  .reels-grid { grid-template-columns: 1fr; gap: 20px; }
  .reel-headline { font-size: 19px; }
  .reel-body { padding: 20px; gap: 12px; }
  .reel-body p { font-size: 13px; }
  .reel-visual svg { width: 46%; max-width: 110px; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 22px; gap: 12px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 13.5px; }

  /* Process — single column */
  .process-list { grid-template-columns: 1fr; gap: 16px; }
  .process-list li { padding: 22px; }
  .process-list .step-num { font-size: 36px; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 26px 22px; }
  .review-card blockquote { font-size: 18px; margin: 22px 0 18px; }
  .review-card::before { font-size: 64px; top: 10px; left: 18px; }

  /* Contact */
  .contact-card { padding: 26px 22px; border-radius: var(--radius-lg); }
  .contact-list { margin-top: 22px; gap: 12px; }
  .contact-list a { font-size: 14px; word-break: break-all; }
  .contact-icon { width: 32px; height: 32px; }

  /* Footer */
  .site-footer { padding: 56px 0 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ================================================================
   SMALL PHONE  ≤ 460px  (iPhone SE, small Androids)
   ================================================================ */
@media (max-width: 460px) {
  :root { --gutter: 16px; }

  .brand-logo-img { height: 34px; }
  .nav-inner { gap: 8px; }

  .hero-title { font-size: clamp(30px, 10vw, 40px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats dd { font-size: 26px; }

  .about-pillars { grid-template-columns: 1fr; }

  .footer-cols { grid-template-columns: 1fr; gap: 24px; }

  /* Reviews — the big quote glyph was overlapping on very small screens */
  .review-card::before { font-size: 54px; top: 6px; left: 14px; }
  .review-card blockquote { font-size: 17px; }

  /* Quick contact rail — make smaller so it doesn't steal space */
  .quick-contact { right: 12px; bottom: 12px; gap: 10px; }
  .qc-btn { width: 46px; height: 46px; }

  /* Reel play button smaller */
  .reel-play { width: 38px; height: 38px; }
  .reel-play svg { width: 18px; height: 18px; }
  .reel-platform { font-size: 9px; padding: 5px 8px; }
}

/* ================================================================
   NAV DRAWER — disable body scroll when open
   ================================================================ */
body.is-nav-open {
  overflow: hidden;
}

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

/* Simple reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
