/* =============================================
   DigitalLanka.lk – Premium CSS (v3)
   Mobile-first, GPU-accelerated, zero layout shift
   ============================================= */

/* ── Design Tokens ───────────────────────────────── */
:root {
  --bg: #040814;
  --bg2: #0a1024;
  --bg-glass: rgba(10, 16, 36, 0.7);
  --cyan: #FFC107;
  --purple: #FFE082;
  --violet: #FFB300;
  --white: #ffffff;
  --t1: rgba(255, 255, 255, 0.95);
  --t2: rgba(255, 255, 255, 0.65);
  --t3: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-h: rgba(255, 255, 255, 0.05);
  --cyan-glow: 0 0 24px rgba(0, 240, 255, 0.25);
  --font-h: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --r: 16px;
  --r-lg: 24px;
}

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

html {
  scroll-behavior: auto;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Progress Bar ─────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  z-index: 10001;
  will-change: width;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ── Custom Cursor ───────────────────────────────── */
#cursor,
#cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate3d(-9999px, -9999px, 0) translate(-50%, -50%);
  will-change: transform;
}

#cursor {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

#cursor-follower {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  transition: width .25s var(--ease), height .25s var(--ease),
    background .25s, border-color .25s;
}

body.cursor-hover #cursor {
  width: 0;
  height: 0;
}

body.cursor-hover #cursor-follower {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.7);
}

@media (max-width: 768px),
(pointer: coarse) {

  #cursor,
  #cursor-follower {
    display: none;
  }
}

/* ── Noise Overlay ───────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Canvas ──────────────────────────────────────── */
#three-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: #040814;
}

#globe-labels {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.globe-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9), 0px 0px 8px rgba(0, 0, 0, 1);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: crosshair;
}

.globe-label.sri-lanka {
  color: var(--cyan);
  font-size: 0.8rem;
  text-shadow: 0px 0px 10px rgba(0, 240, 255, 0.5), 0px 2px 4px rgba(0, 0, 0, 0.9);
}

.globe-label .label-name {
  display: block;
}

/* ── Cinematic Text Overlay ───────────────────────── */
.cinematic-text {
  position: fixed;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-h);
  width: 90%;
  max-width: 400px;
}

.cine-line {
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
}

.cine-line.phase {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0px 0px 10px rgba(0, 240, 255, 0.5), 0px 2px 4px rgba(0, 0, 0, 0.9);
}

.cine-line.desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--t1);
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9), 0px 0px 8px rgba(0, 0, 0, 1);
  line-height: 1.4;
}

.globe-label.visible {
  opacity: 1;
}

/* ── Preloader ───────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.preloader-content {
  text-align: center;
  width: min(90vw, 320px);
}

.loader-logo {
  font-family: var(--font-h);
  font-size: 2rc;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.loader-logo span {
  color: var(--t3);
  font-weight: 400;
}

.loader-num {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.loader-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--t3);
  margin-bottom: 1.5rem;
}

.loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.06s linear;
  will-change: width;
}

/* ── Typography ──────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

::selection {
  background: var(--cyan);
  color: #000;
}

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

img,
svg {
  display: block;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
}

.sec-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.sec-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
}

/* ── Reveal Animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scard,
.pcard,
.tech-pill {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.scard.card-in,
.pcard.card-in,
.tech-pill.card-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ─────────────────────────────────────── */

/* --- PRIMARY BUTTON WITH SHIMMER --- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  background: var(--cyan);
  color: #000;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
  white-space: nowrap;
}

.btn-shimmer-light {
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shimmer-sweep 2.8s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.45);
}

.btn-primary.full {
  width: 100%;
  justify-content: center;
}

/* --- SECONDARY CTA WRAPPER --- */
.cta-secondary-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

/* --- URGENCY BADGE --- */
.cta-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 100px;
  padding: 0.28rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ff6b6b;
  text-transform: uppercase;
}

.urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  flex-shrink: 0;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* --- PROJECT BUTTON (the star) --- */
.btn-project {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-project-text {
  font-family: var(--font-b);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.btn-project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  margin-left: 0.75rem;
  color: #fff;
  transition: all 0.35s var(--ease);
  position: relative;
}

/* pulsing ring */
.btn-project-arrow::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

.btn-project:hover .btn-project-text {
  color: var(--cyan);
}

.btn-project:hover .btn-project-arrow {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
  transform: translateX(4px);
}

.btn-project:hover .btn-project-arrow::before {
  border-color: var(--cyan);
}

/* --- SOCIAL PROOF MICRO-COPY --- */
.cta-proof {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  margin: 0;
  padding-left: 0.1rem;
}

/* --- HERO-CTAS LAYOUT --- */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* --- GHOST BUTTON (for other sections) --- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  background: transparent;
  color: var(--t1);
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-h);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}

/* --- MOBILE HERO CTAS --- */
@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .cta-secondary-wrap {
    width: 100%;
  }

  .btn-project-text {
    font-size: 1rem;
  }
}

/* ── Navbar ──────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  will-change: transform, backdrop-filter;
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  /* blend white/yellow background away against dark navbar */
  mix-blend-mode: lighten;
  filter: brightness(1.1) contrast(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.logo-img--footer {
  height: 44px;
  mix-blend-mode: lighten;
  filter: brightness(1.08);
  opacity: 0.9;
}

.logo:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.03);
}

/* Mobile: slightly smaller */
@media (max-width: 480px) {
  .logo-img {
    height: 30px;
    max-width: 120px;
  }
  .logo-img--footer {
    height: 36px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t2);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--cyan) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  box-shadow: var(--cyan-glow) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 600;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: 0.4s var(--ease);
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform, backdrop-filter;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 550;
  }

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

  .nav-links a {
    font-size: 1.4rem;
  }

  .nav-cta {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
  }
}

/* ── Hero ────────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 5rem);
  max-width: 1380px;
  margin: 0 auto;
}

.hero-content {
  max-width: 820px;
  padding-top: 8vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  margin-bottom: 1.75rem;
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--t2);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  align-items: center;
}

.stat {
  padding: 0 2rem;
  text-align: center;
}

.stat:first-child {
  padding-left: 0;
}

.stat .snum {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat .plus {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cyan);
}

.stat small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
  margin-top: 0.4rem;
}

.stat-line {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--border);
}

.scroll-ind {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.4;
}

.mouse {
  width: 18px;
  height: 28px;
  border: 1px solid var(--t2);
  border-radius: 9px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.wheel {
  width: 2px;
  height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scroll-wheel 1.6s ease infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.scroll-ind span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--t2);
}

.phase-label {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1rem, 5vw, 5rem);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--t2);
}

@media (max-width: 600px) {
  .stat-line {
    display: none;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat {
    padding: 0;
  }

  .scroll-ind,
  .phase-label {
    display: none;
  }
}

/* ── Services Section ────────────────────────────── */
#services {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 11rem) 0;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 10, 0.7) 15%, var(--bg) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.scard {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
  will-change: transform;
}

.scard-border {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .scard:hover {
    border-color: transparent;
    transform: translateY(-4px);
  }

  .scard:hover .scard-border {
    opacity: 1;
    background: linear-gradient(135deg, var(--cyan), transparent 60%);
  }
}

.scard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.1);
}

.scard.featured {
  border-color: rgba(139, 92, 246, 0.3);
}

.scard-content {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.scard-num {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.scard-icon-wrap {
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.scard.featured .scard-icon-wrap {
  color: var(--violet);
}

.scard h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
  color: var(--white);
}

.scard p {
  color: var(--t2);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.scard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.scard-tags li {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--glass);
}

/* ── About Section ───────────────────────────────── */
#about {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.about-left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

.about-left .lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-family: var(--font-h);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.about-left p {
  color: var(--t2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pillar-ring {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pillar-ring::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.2;
}

.pillar strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.pillar small {
  color: var(--t3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Growth Hologram Dashboard ────────────────────── */
.growth-hologram {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-card {
  background: rgba(11, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Exact premium thin border */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  /* Deep true shadow, no glow */
}

/* Premium Top Highlight line from reference */
.holo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.4), transparent);
}

.main-card {
  position: relative;
  width: 260px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.holo-metric {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 6;
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.05);
  /* Very faint background track */
}

.ring-prog {
  stroke: #ffc107;
  /* Bright premium gold */
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
  will-change: stroke-dashoffset;
}

/* Revealed via JS intersection observer class */
.about-right.revealed .ring-prog {
  /* target 6.2x out of 10 max visually: roughly 62% progress... 283 * 0.38 = 107 */
  stroke-dashoffset: 107;
}

.metric-text {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  /* Removed messy text shadow for crisp premium look */
}

.main-card h4 {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: var(--white);
  margin-bottom: 0.25rem;
}

.main-card p {
  font-family: var(--font-b);
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.float-card {
  position: absolute;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  z-index: 6;
}

.p1 {
  top: 15%;
  right: -5%;
  animation: float 5s ease-in-out infinite 1s;
}

.p2 {
  bottom: 20%;
  left: -5%;
  animation: float 7s ease-in-out infinite 2s;
}

.f-metric {
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 700;
  color: #ffc107;
  /* Exact gold map */
  line-height: 1;
  margin-bottom: 0.2rem;
}

.float-card small {
  font-size: clamp(0.55rem, 2vw, 0.65rem);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    /* Better vertical breathing room */
  }

  .about-left {
    text-align: center;
  }

  .about-left p,
  .about-left .lead {
    text-align: left;
  }

  /* Make sure the hologram has full width centered space */
  .growth-hologram {
    max-width: 320px;
    margin: 2rem auto 2rem auto;
  }

  .main-card {
    padding: 1.5rem;
    width: 260px;
  }

  .holo-metric {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  /* Re-align floating cards to hug the center core tightly so they don't break width bounds */
  .p1 {
    right: -10px;
    top: 5%;
    padding: 0.75rem 1rem;
  }

  .p2 {
    left: -10px;
    bottom: 5%;
    padding: 0.75rem 1rem;
  }

  #about {
    padding: clamp(4rem, 10vw, 11rem) 0;
  }
}

@media (max-width: 400px) {
  .growth-hologram {
    transform: scale(0.9);
    margin: 1rem auto;
  }
}

/* ── Tech Stack ──────────────────────────────────── */
#tech {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

/* ── Marquee ─────────────────────────────────────── */
#marquee-sec {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-wrap {
  display: flex;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 2rem;
  animation: marquee-anim 22s linear infinite;
  will-change: transform;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee span {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  color: transparent;
}

@keyframes marquee-anim {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
}

/* ── Portfolio Bento Box ─────────────────────────── */
#portfolio {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.port-bento-grid {
  display: grid;
  /* 4-column base grid for desktop bento layout */
  grid-template-columns: repeat(4, 1fr);
  /* Use auto rows to allow cards to define their height naturally based on aspect ratio */
  grid-auto-rows: minmax(min-content, max-content);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Base Card Styling */
.bcard {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  text-decoration: none;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform, border-color, box-shadow;
}

.bcard:hover {
  border-color: rgba(255, 193, 7, 0.4);
  /* Subtle cyan/gold tint on border */
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 193, 7, 0.1);
  z-index: 10;
}

/* Bento Layout Placements (Desktop) */
.card-xl {
  grid-column: span 2;
  grid-row: span 2;
}

.card-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.card-box {
  grid-column: span 2;
  grid-row: span 1;
}

.bimg-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Provide default aspect ratios */
  aspect-ratio: 16/9;
}

/* Specific aspect ratios for the layout */
.card-xl .bimg-wrap {
  aspect-ratio: 16/10;
}

.card-tall .bimg-wrap {
  aspect-ratio: 4/3;
}

.card-wide .bimg-wrap {
  aspect-ratio: 21/9;
}

.card-box .bimg-wrap {
  aspect-ratio: 16/9;
}

.bimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Fallback color/gradient is inlined in HTML, background-size needed to cover */
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  will-change: transform, filter;
  filter: saturate(0.8) brightness(0.9);
}

.bcard:hover .bimg {
  transform: scale(1.08);
  filter: saturate(1.2) brightness(1.1);
}

/* Glass Overlay Effect on Image */
.bimg-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg2) 0%, transparent 60%);
  opacity: 0.8;
  transition: opacity 0.5s var(--ease), background 0.5s var(--ease);
  z-index: 1;
}

.bcard:hover .bimg-glass {
  opacity: 0.4;
  background: linear-gradient(to top, var(--bg) 0%, transparent 80%);
}

.binfo {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Push content to fill space */
  /* Combine with the glass gradient for a seamless transition */
  background: linear-gradient(to bottom, var(--bg2) 0%, var(--bg) 100%);
}

.btag-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.05);
  /* very subtle cyan bg */
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: background 0.3s, border-color 0.3s;
}

.bcard:hover .btag {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.binfo h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
  color: var(--t1);
  transition: color 0.3s var(--ease);
}

.bcard:hover .binfo h3 {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.bdesc {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  /* Pushes the view link/stats to the bottom */
}

.b-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bs-item {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bs-item span {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.bview {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--t1);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.bview::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.bcard:hover .bview {
  color: var(--cyan);
}

.bcard:hover .bview::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Tablet Layout (2 Columns) */
@media (max-width: 1024px) {
  .port-bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-xl,
  .card-tall,
  .card-wide,
  .card-box {
    grid-column: span 1;
    grid-row: auto;
  }

  .bimg-wrap {
    aspect-ratio: 16/10 !important;
    /* Uniform ratio for tablet */
  }
}

/* Mobile Layout (Stack, full width) */
@media (max-width: 768px) {
  .port-bento-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    /* More breathing room between stacked cards */
  }

  .card-xl,
  .card-tall,
  .card-wide,
  .card-box {
    grid-column: span 1;
    grid-row: auto;
  }

  .bimg-wrap {
    aspect-ratio: 4/3 !important;
    /* Taller images on mobile look more cinematic */
  }

  .bcard {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    /* Keep subtle border on mobile */
  }

  .bcard::before {
    display: none;
    /* Disable edge-to-edge bleed if container has padding, relying on standard padding */
  }

  .binfo {
    background: var(--bg2);
    /* Solid dark background for readability on mobile */
  }

  .binfo h3 {
    font-size: 1.6rem;
  }

  .bdesc {
    font-size: 1rem;
  }

  /* Disable hover effects to prevent sticky touch states */
  .bcard:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .bcard:hover .bimg {
    transform: none;
    filter: saturate(0.8) brightness(0.9);
  }
}

/* ── Case Study Modal ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.85);
  /* Deep dark blue overlay */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  /* Max height to fit in screen */
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Hide scrollbar outside, scroll inner area */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--t2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-scroll-area {
  overflow-y: auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  /* Custom Scrollbar for Modal */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* Modal Content Styling */
.m-img-wrap {
  width: 100%;
  height: clamp(200px, 30vh, 400px);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.m-img {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 1s var(--ease);
}

.modal-content:hover .m-img {
  transform: scale(1.05);
}

.m-hero {
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.m-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.m-tags span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

#m-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--t1);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#m-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--t2);
  line-height: 1.6;
}

.m-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.m-stat-item {
  display: flex;
  flex-direction: column;
}

.m-stat-item strong {
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--purple);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.m-stat-item span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
}

.m-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.m-section h3 {
  font-size: 1.5rem;
  color: var(--t1);
  margin-bottom: 1rem;
}

.m-section p {
  font-size: 1.05rem;
  color: var(--t2);
  line-height: 1.8;
}

.highlight-sec {
  background: rgba(255, 193, 7, 0.03);
  /* Subtle gold tint */
  border-left: 2px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.highlight-sec h3 {
  color: var(--gold);
}

.m-cta {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: var(--r-lg);
  text-align: center;
}

.m-cta h4 {
  font-size: 1.5rem;
  color: var(--t1);
  margin-bottom: 1.5rem;
}


/* ── Contact ─────────────────────────────────────── */
#contact {
  padding: clamp(4rem, 10vw, 11rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.contact-box {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: clamp(16px, 3vw, 36px);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-glass);
}

.c-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(ellipse at 60% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 5.5rem) clamp(1.2rem, 4vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.c-left {
  display: flex;
  flex-direction: column;
}

.c-left .tag {
  margin-bottom: 1rem;
  align-self: flex-start;
}

.c-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.c-left>p {
  color: var(--t2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.c-infos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ci {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ci-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
}

.ci-val {
  font-family: var(--font-h);
  font-size: 0.95rem;
  color: var(--t1);
  font-weight: 500;
}

a.ci-val {
  transition: color 0.2s;
}

a.ci-val:hover {
  color: var(--cyan);
}

/* Form */
.inp-g {
  position: relative;
  margin-bottom: 2rem;
}

.custom-inp {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.custom-inp:focus {
  outline: none;
  border-color: var(--cyan);
}

.custom-inp.invalid {
  border-color: #f87171;
}

.custom-select {
  cursor: pointer;
}

.custom-select option {
  background: var(--bg2);
  color: var(--t1);
}

.inp-g label {
  position: absolute;
  left: 0;
  top: 0.875rem;
  color: var(--t3);
  font-size: 0.95rem;
  pointer-events: none;
  transition: 0.3s var(--ease);
}

.custom-inp:focus~label,
.custom-inp:not(:placeholder-shown)~label {
  top: -1.1rem;
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.f-msg-status {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
}

.f-msg-status.success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.f-msg-status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--bg2);
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.foot-brand .logo {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.foot-brand p {
  color: var(--t3);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.foot-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
  margin-bottom: 1.25rem;
}

.foot-col a {
  display: block;
  color: var(--t2);
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--white);
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--t3);
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-right {
  display: flex;
  gap: 1.5rem;
}

.foot-right a {
  color: var(--t3);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.foot-right a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .foot-cols {
    grid-template-columns: 1fr;
  }

  .foot-bot {
    flex-direction: column;
    text-align: center;
  }
}

}

/* ── Loaded state (Hero reveal) ──────────────────── */
body:not(.loaded) .hero-content {
  opacity: 0;
}

body.loaded .hero-content {
  animation: hero-enter 1s var(--ease) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Text Scramble (applied to h1 by JS) ─────────── */
.scramble-char {
  display: inline;
}

/* ── Magnetic Button (applied via JS) ───────────── */
.btn-primary,
.btn-ghost {
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.3s;
}

/* ── Client Logos ─────────────────────────────────── */
#clients {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.logos-track-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Dark fade on edges to blend with background */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  padding: 1rem 0;
}

.logos-track.reverse {
  animation: scroll-logos-reverse 40s linear infinite;
  margin-top: clamp(1rem, 3vw, 2rem);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-logos-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.llogo {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--t3);
  opacity: 0.6;
  white-space: nowrap;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  cursor: default;
}

.llogo.trusted {
  /* Give the global brands a bit more visual weight to build trust silently */
  color: var(--t2);
  opacity: 0.8;
}

.llogo:hover {
  opacity: 1;
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {

  .logos-track,
  .logos-track.reverse {
    animation: none;
  }
}

/* ── Process Timeline ─────────────────────────────── */
#process {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.pstep {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.pstep-num-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.pstep-num {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--bg);
  padding-right: 1rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.pstep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(139, 92, 246, 0.3));
  position: relative;
}

.pstep-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.pstep-body {
  padding-right: 2rem;
}

.pstep-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--glass);
  transition: border-color 0.3s, background 0.3s;
}

.pstep:hover .pstep-icon {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

.pstep-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.pstep-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.pstep-body p {
  color: var(--t2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pstep-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pstep-tags li {
  font-size: 0.68rem;
  color: var(--t3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 0.75rem;
  position: relative;
}

.pstep-tags li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .pstep-line {
    display: none;
  }

  .pstep-body {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  #process {
    padding: clamp(4rem, 10vw, 11rem) 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Testimonials ─────────────────────────────────── */
#testimonials {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.5rem;
}

.tcard {
  padding: clamp(2rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}

.tcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 240, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.tcard:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.tquote {
  font-family: 'Georgia', serif;
  font-size: 6rem;
  line-height: 0.7;
  color: var(--cyan);
  opacity: 0.2;
  margin-bottom: 1.25rem;
  pointer-events: none;
  user-select: none;
}

.ttext {
  color: var(--t2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-style: italic;
}

.tauthor {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.tavatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.tauthor strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.tauthor small {
  color: var(--t3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── FAQ Accordion ────────────────────────────────── */
#faq {
  padding: clamp(4rem, 12vw, 11rem) 0;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.faq-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.faq-left p {
  color: var(--t2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-link {
  color: var(--cyan);
  transition: opacity 0.2s;
}

.faq-link:hover {
  opacity: 0.7;
}

.faqs {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item.open {
  border-color: rgba(0, 240, 255, 0.2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--t1);
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.faq-q:hover span {
  color: var(--cyan);
}

.faq-q span {
  transition: color 0.25s;
  flex: 1;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
  color: var(--t3);
}

.faq-item.open .faq-chevron {
  transform: rotate(-180deg);
  color: var(--cyan);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  color: var(--t2);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-bottom: 0;
  transition: padding-bottom 0.4s var(--ease);
}

.faq-item.open .faq-a-inner {
  padding-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq-q {
    font-size: 0.95rem;
    padding: 1.25rem 0;
  }

  #faq {
    padding: clamp(4rem, 10vw, 11rem) 0;
  }
}

/* ── WhatsApp Float ───────────────────────────────── */
.wa-bubble {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: clamp(48px, 12vw, 56px);
  height: clamp(48px, 12vw, 56px);
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.6s 0.6s, visibility 0.6s 0.6s;
  will-change: transform;
  /* Hidden until intro done */
  opacity: 0;
  visibility: hidden;
}

body.loaded .wa-bubble {
  opacity: 1;
  visibility: visible;
}

.wa-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.wa-bubble svg {
  width: 28px;
  height: 28px;
}

.wa-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wa-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  75% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .wa-bubble {
    bottom: calc(1rem + 74px + env(safe-area-inset-bottom, 0px)); /* always above pill nav */
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}


/* ════════════════════════════════════════════════════
   FLOATING BOTTOM PILL NAV (Mobile only)
   ════════════════════════════════════════════════════ */

/* Hide by default — only shown on mobile */
#bottom-nav {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

body.loaded #bottom-nav {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {

  /* ── Kill the hamburger + overlay — replaced by pill nav ── */
  .burger {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  /* ── The pill container ─────────────────────────── */
  #bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;

    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 2rem), 420px);

    background: rgba(12, 16, 28, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.55rem 0.8rem;
    z-index: 700;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(0, 240, 255, 0.04) inset;

    /* Slide in from bottom on load */
    animation: pill-enter 0.5s 0.3s var(--ease) both;
  }

  @keyframes pill-enter {
    from { opacity: 0; transform: translateX(-50%) translateY(24px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }

  /* ── Nav Items ──────────────────────────────────── */
  .bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.45rem 0.6rem;
    border-radius: 80px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s, background 0.25s;
    min-width: 48px;
    position: relative;
  }

  .bnav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.25s, transform 0.25s;
  }

  .bnav-item span {
    font-family: var(--font-b);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s;
  }

  /* Active state */
  .bnav-item.active,
  .bnav-item:hover {
    color: #fff;
  }

  .bnav-item.active .bnav-icon,
  .bnav-item:hover .bnav-icon {
    transform: translateY(-2px);
    stroke: var(--cyan);
  }

  .bnav-item.active span,
  .bnav-item:hover span {
    color: var(--cyan);
  }

  /* Active dot indicator */
  .bnav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
  }

  /* ── Central CTA pill (yellow "Start") ─────────── */
  .bnav-cta {
    background: var(--cyan);
    color: #000 !important;
    padding: 0.6rem 1.1rem;
    border-radius: 80px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
    position: relative;
    overflow: hidden;
  }

  .bnav-cta .bnav-icon {
    stroke: #000;
    transform: none !important;
  }

  .bnav-cta span {
    color: #000 !important;
    font-weight: 700;
  }

  .bnav-cta:hover {
    color: #000 !important;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
  }

  .bnav-cta.active::after {
    display: none; /* no dot on CTA */
  }

  /* Give pages breathing room so content not hidden behind pill nav */
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* ── iOS Safari specific hardening ─────────────── */

  /* Force GPU layer — prevents iOS fixed-position flicker */
  #bottom-nav {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
    /* Fallback if backdrop-filter not supported (old iOS) */
    background: rgba(10, 14, 26, 0.95);
  }

  /* Restore glassmorphism for browsers that support it */
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    #bottom-nav {
      background: rgba(12, 16, 28, 0.82);
    }
  }

  /* Touch optimisation — makes taps snappy on iOS (no 300ms delay) */
  .bnav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
  }

  /* Smooth momentum scrolling — allows body scroll to work under the pill on iOS */
  html {
    -webkit-overflow-scrolling: touch;
  }
}