/* ============================================
   TOBI STUDIO — Portfolio
   Palette: #0432BC (blue) · #0FF29F (mint) · #010440 (navy)
   Type: Poppins (body) + IvyPresto Display Italic
   (IvyPresto is a licensed font — Playfair Display Italic
   is loaded as a free visual fallback.)
   ============================================ */

:root {
  --blue: #0432BC;
  --mint: #0FF29F;
  --navy: #010440;
  --bg: #F5F7FF;
  --ink: #0A0E2A;
  --muted: #5A6080;
  --line: #E3E8F8;
  --surface: #FFFFFF;
  --tag-border: #D6DCF2;
  --brand-ink: var(--blue);
  --font-body: 'Poppins', sans-serif;
  --font-display: 'IvyPresto Display', 'Playfair Display', serif;
  --container: 1200px;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
:root[data-theme='dark'] {
  --bg: #05082B;
  --ink: #EDEFFF;
  --muted: #A3AACF;
  --line: #262D57;
  --surface: #0C1239;
  --tag-border: #343C6E;
  --brand-ink: #93A9FF;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

::selection { background: var(--mint); color: var(--navy); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 8px; }

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

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 18px;
}
.eyebrow::before { content: '✳'; color: var(--mint); font-size: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid var(--mint);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 242, 159, .35); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; border-color: #fff; }

.btn-sm { padding: 10px 22px; font-size: 14px; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
}
.btn-whatsapp:hover { background: #1EBE5A; border-color: #1EBE5A; box-shadow: 0 14px 30px rgba(37, 211, 102, .35); }

/* ---------- Scribble circle ---------- */
.scribble { position: relative; white-space: nowrap; display: inline-block; padding: 0.15em 0.3em; }
.scribble svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 140%; height: 160%; overflow: visible; pointer-events: none; }
.scribble ellipse {
  fill: none;
  stroke: var(--mint);
  stroke-width: 3;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
.visible .scribble ellipse, .hero .scribble ellipse { animation: drawCircle 1.4s .9s var(--ease) forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: var(--mint);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
  mix-blend-mode: difference;
}
.cursor.grow { width: 52px; height: 52px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ============================================
   THEME TOGGLE (dark / light mode)
   ============================================ */
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .2s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.theme-toggle:active { transform: scale(.88); }
.theme-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.theme-toggle svg { width: 21px; height: 21px; overflow: visible; }

/* Sun <-> moon morph */
.theme-toggle .sun-core,
.theme-toggle .mask-circle,
.theme-toggle .rays { transform-origin: 12px 12px; }
.theme-toggle .sun-core,
.theme-toggle .mask-circle { transition: transform .55s var(--ease); }
.theme-toggle .rays { transition: transform .55s var(--ease), opacity .25s ease; }

[data-theme='dark'] .theme-toggle .mask-circle { transform: translate(5px, -5px); }
[data-theme='dark'] .theme-toggle .rays { transform: rotate(45deg) scale(.35); opacity: 0; }

/* Confirmation "ping" ring on toggle */
.theme-toggle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  opacity: 0;
  transform: scale(.7);
  pointer-events: none;
}
.theme-toggle.ping::after { animation: toggle-ping .55s var(--ease); }
@keyframes toggle-ping {
  0%   { opacity: .9; transform: scale(.7); }
  100% { opacity: 0;  transform: scale(1.5); }
}

/* Brief crossfade of theme colors when switching (added/removed by JS) */
html.theme-fade,
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease,
              fill .4s ease, stroke .4s ease, box-shadow .4s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-fade,
  html.theme-fade *,
  html.theme-fade *::before,
  html.theme-fade *::after { transition: none !important; }
  .theme-toggle.ping::after { animation: none; }
  .theme-toggle .sun-core,
  .theme-toggle .mask-circle,
  .theme-toggle .rays { transition: none; }
}
/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: padding .35s, background .35s, box-shadow .35s;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(1, 4, 64, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(1, 4, 64, .25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { color: #fff; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; z-index: 101; }
.logo span { color: var(--mint); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, .75);
  font-size: 14.5px;
  position: relative;
  transition: color .25s;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--mint);
  transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 101;
  padding: 6px;
}
.hamburger span {
  width: 28px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease);
}
.nav.open .hamburger span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav.open .hamburger span:last-child  { transform: translateY(-4.75px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--blue);
  color: #fff;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(15, 242, 159, .22), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(1, 4, 64, .65), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 9px 18px;
  margin-bottom: 28px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 242, 159, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(15, 242, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 242, 159, 0); }
}

.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); max-width: 13ch; margin-bottom: 26px; }
.hl { color: var(--mint); }
.hero-sub { color: rgba(255, 255, 255, .75); max-width: 520px; font-weight: 300; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }

/* hero image stack */
.hero-visual { position: relative; }
.hero-stack { position: relative; height: 540px; }
.stack-img {
  position: absolute;
  width: 68%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(1, 4, 64, .45);
}
.stack-img-1 { top: 6%; right: 4%; transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
.stack-img-2 { bottom: 4%; left: 0; width: 58%; transform: rotate(-5deg); animation: float 7s ease-in-out 1.2s infinite; }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
.hero-chip {
  position: absolute;
  bottom: 8%; right: 8%;
  background: var(--mint);
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
  padding: 18px 22px;
  border-radius: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(1, 4, 64, .35);
}
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  writing-mode: vertical-rl;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--mint);
  color: var(--navy);
  padding: 20px 0;
  overflow: hidden;
  transform: rotate(-1.3deg) scale(1.03);
  margin: -26px 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scrollX 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
}
.marquee-track i { font-style: normal; font-size: 1rem; margin: 0 18px; vertical-align: middle; }
@keyframes scrollX { to { transform: translateX(-50%); } }
/* ============================================
   ABOUT / BIO
   ============================================ */
.about { padding: 130px 0 110px; }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.about-img { position: relative; }
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(1, 4, 64, .18);
}
.about-img::after {
  content: '';
  position: absolute;
  top: 28px; left: 28px; right: -28px; bottom: -28px;
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 16px 22px;
  border-radius: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(1, 4, 64, .25);
}
.about-badge strong { color: var(--mint); font-family: var(--font-display); font-style: italic; font-size: 1.6rem; display: block; line-height: 1.1; }

.about h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 26px; }
.about p { color: var(--muted); font-weight: 300; margin-bottom: 18px; max-width: 56ch; }
.about-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-ink);
  margin-top: 26px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-ink);
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   SKILLS — toolkit cards + beyond-the-canvas pills
   ============================================ */
.skills {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0 120px;
}
.skills-head { max-width: 640px; margin-bottom: 60px; }
.skills-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.skills-head p { color: var(--muted); font-weight: 300; margin-top: 16px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.app-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
/* Brand hairline, revealed on hover — echoes the service cards */
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(1, 4, 64, .12);
  border-color: var(--brand-ink);
}
.app-card:hover::before { opacity: .85; }

.app-suite {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand-ink);
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border: 1px solid var(--tag-border);
  border-radius: 50%;
  margin: 18px 0;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.app-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.app-card:hover .app-mark {
  border-color: var(--mint);
  transform: scale(1.08);
}
.app-card h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.app-card p { font-size: 13px; line-height: 1.55; color: var(--muted); font-weight: 300; }

.skills-extra {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 76px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.skills-extra h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}
.skills-extra-copy p { color: var(--muted); font-weight: 300; max-width: 34ch; }

.skills-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 22px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  cursor: default;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.skill-pill::before { content: '✳'; color: var(--mint); font-size: .95em; }
.skill-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}
.skill-pill:hover::before { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .app-card, .skill-pill { transition: none; }
  .app-card:hover, .skill-pill:hover { transform: none; }
}

/* ============================================
   SERVICES — sticky card stack (scroll-driven
   scale + brightness + blur, like a deck that
   gets covered by the next panel)
   ============================================ */
.services { padding: 120px 0 140px; }
.services-head { max-width: 640px; margin-bottom: 72px; }
.services-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

.services-stack { --nav-h: 74px; --peek: 18px; }

.service-card {
  position: sticky;
  top: calc(var(--nav-h) + 14px + var(--card-index, 0) * var(--peek));
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto 36px;
  transform-origin: center top;
  transform: scale(calc(1 - 0.1 * var(--p, 0)));
  filter: brightness(calc(100% - 7% * var(--p, 0)))
          contrast(calc(100% + 5% * var(--p, 0)))
          blur(calc(4px * var(--p, 0)));
  will-change: transform, filter;
}

.service-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 5vw, 64px);
  min-height: min(480px, 72vh);
  box-shadow: 0 30px 80px rgba(1, 4, 64, .10);
  overflow: hidden;
}

/* Brand hairline across the top of each panel */
.service-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  opacity: .85;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

.service-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--muted);
  font-weight: 300;
  max-width: 42ch;
  margin-bottom: 26px;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 15px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .4s, color .4s;
}

.service-arrow {
  font-size: 1.6rem;
  color: var(--brand-ink);
  transition: transform .4s var(--ease);
}

.service-card-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 60px rgba(1, 4, 64, .16);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.service-card:hover .service-arrow { transform: translateX(8px); }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card:hover .tag { border-color: var(--brand-ink); color: var(--ink); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card {
    position: relative;
    top: auto;
    transform: none !important;
    filter: none !important;
  }
}
/* ============================================
   WORK / PORTFOLIO
   ============================================ */
.work { padding: 120px 0; }
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
}
.work-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.work-head p { color: var(--muted); font-weight: 300; max-width: 46ch; margin-top: 14px; }
.work-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand-ink);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 4px;
  transition: color .25s;
}
.work-link:hover { color: var(--navy); }

.work-grid { columns: 3; column-gap: 26px; }
.work-item {
  position: relative;
  margin-bottom: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
}
.work-item img { width: 100%; transition: transform .7s var(--ease); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 4, 64, .88) 8%, transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.work-meta {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.work-meta h4 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.work-meta span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.work-item:hover img, .work-item:focus img { transform: scale(1.06); }
.work-item:hover .work-overlay, .work-item:focus .work-overlay { opacity: 1; }
.work-item:hover .work-meta, .work-item:focus .work-meta { opacity: 1; transform: translateY(0); }

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(4, 50, 188, .55), transparent 55%),
              radial-gradient(circle at 90% 0%, rgba(15, 242, 159, .12), transparent 40%);
}
.cta .container { position: relative; }
.cta h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 18ch; margin: 0 auto 34px; }
.cta h2 em { color: var(--mint); }
.cta .btn { margin-bottom: 26px; }
.cta-note { font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #010438; color: #fff; padding: 90px 0 34px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-email {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  transition: color .25s;
}
.footer-email:hover { color: var(--mint); }
.footer-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); display: block; margin-bottom: 12px; }
.socials { display: flex; gap: 14px; }
.socials a {
  font-size: 13px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
.socials a:hover { background: var(--mint); color: var(--navy); border-color: var(--mint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); transition: color .25s; }
.footer-bottom a:hover { color: var(--mint); }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(1, 4, 64, .93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.lightbox-caption { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.lightbox-close {
  position: absolute;
  top: 26px; right: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.lightbox-close:hover { background: var(--mint); color: var(--navy); border-color: var(--mint); }
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { display: none; }
  .hero h1 { max-width: 20ch; }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-img { max-width: 480px; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-extra { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { columns: 2; }
  .service-card { width: calc(100% - 64px); }
  .service-card-inner { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .service-card-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(340px, 82vw);
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 44px;
    gap: 28px;
    transition: right .45s var(--ease);
  }
  .nav.open .nav-links { right: 0; }
  .nav-links a:not(.btn) { font-size: 1.25rem; color: #fff; }
}

@media (max-width: 640px) {
  .container { padding: 0 35px; }
  .hero { padding: 140px 0 90px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .about { padding: 100px 0 90px; }
  .about-img { max-width: 70%; margin: 0 auto 40px; }
  .about-img::after { display: none; }
  .about-badge { display: none; }
  .stats { gap: 34px; }
  .stat-num { font-size: 2.3rem; }
  .skills { padding: 90px 0; }
  .apps-grid { grid-template-columns: repeat(1, 1fr); gap: 14px; }
  .app-card:last-child:nth-child(odd) { grid-column: span 1; }
  .services { padding: 90px 0; }
  .services-stack { --nav-h: 66px; --peek: 10px; }
  .service-card { width: calc(100% - 40px); margin-bottom: 24px; }
  .service-card-inner { padding: 30px 24px; border-radius: 16px; }
  .service-card h3 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .service-num { display: none; }
  .work { padding: 90px 0; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-grid { columns: 2; column-gap: 16px; }
  .cta { padding: 110px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 120px 0 130px; scroll-margin-top: 80px; }

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 44px;
}
.pricing-head-copy { max-width: 640px; }
.pricing-head-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.pricing-head-copy p { color: var(--muted); font-weight: 300; margin-top: 16px; max-width: 52ch; }

/* Currency switch (local naira / international dollar) */
.currency-box { max-width: 320px; }
.currency-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.currency-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.currency-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.currency-btn:hover { color: var(--ink); }
.currency-btn.active { background: var(--blue); color: #fff; }
.currency-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.currency-note { font-size: 12.5px; color: var(--muted); font-weight: 300; margin-top: 12px; line-height: 1.6; }

/* Category pills */
.pricing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 76px;
}
.pricing-nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 22px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  color: var(--muted);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.pricing-nav a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}

/* Pricing groups */
.pricing-group { margin-bottom: 96px; scroll-margin-top: 90px; }
.pricing-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 40px;
  margin-bottom: 40px;
}
.pricing-group-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}
.pricing-group-head p {
  color: var(--muted);
  font-weight: 300;
  font-size: 14.5px;
  max-width: 44ch;
}

/* Tier cards */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: visible;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(1, 4, 64, .12);
  border-color: var(--brand-ink);
}
.price-card:hover::before { opacity: .85; }

.price-card.featured { border-color: var(--mint); box-shadow: 0 18px 44px rgba(1, 4, 64, .10); }
.price-card.featured::before { opacity: 1; }

.flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--mint);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 242, 159, .35);
}

.price-card-top { margin-bottom: 18px; }
.price-card h4 { font-size: 1.05rem; font-weight: 600; }
.price-tagline {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 3px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.price-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--brand-ink);
}
.price-per { font-size: 12.5px; color: var(--muted); }

.price-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
}
.price-list .check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--mint);
}

/* Card CTA */
.btn-card {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn-card:hover {
  background: var(--bg);
  border-color: var(--brand-ink);
  transform: translateY(-2px);
}
.price-card.featured .btn-card {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}
.price-card.featured .btn-card:hover {
  box-shadow: 0 14px 30px rgba(15, 242, 159, .35);
  transform: translateY(-2px);
}

/* Quick hits menu */
.quick-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
}
.quick-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.quick-list li:hover {
  transform: translateY(-3px);
  border-color: var(--brand-ink);
  box-shadow: 0 16px 34px rgba(1, 4, 64, .10);
}
.quick-info h4 { font-size: 14.5px; font-weight: 600; }
.quick-info p { font-size: 12.5px; color: var(--muted); font-weight: 300; margin-top: 2px; }
.quick-price {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brand-ink);
}

.pricing-addons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 300;
}
.pricing-addons > span {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pricing-addons strong { font-weight: 500; color: var(--ink); }
.pricing-addons .addon-price {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand-ink);
}

/* Terms strip */
.pricing-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin-top: 10px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.pricing-terms span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pricing-terms span::before { content: '✳'; color: var(--mint); font-size: .95em; }

@media (prefers-reduced-motion: reduce) {
  .price-card, .quick-list li, .pricing-nav a, .btn-card, .currency-btn { transition: none; }
  .price-card:hover, .quick-list li:hover, .pricing-nav a:hover, .btn-card:hover { transform: none; }
}

/* Pricing — responsive */
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .quick-list { grid-template-columns: 1fr; }
  .pricing-head { flex-direction: column; align-items: flex-start; }
}




