/* ==========================================================================
   VERTEX ZIMBABWE - DESIGN SYSTEM & STYLESHEET
   Clean Light Mode with Signature Deep-Purple Interactive Network Banners
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --ac: #1a0548;          /* Deep midnight purple */
  --ac2: #2b0f6b;         /* Royal purple */
  --ink: #17132b;         /* Deepest ink for headings */
  --tx: #4a475c;          /* Neutral dark slate for reading */
  --tx-muted: #78748d;    /* Muted text */
  --ln: #e6e4f0;          /* Subtle light border */
  --ln-light: #f0edf8;
  
  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-alt: #f3f0ff;       /* Signature soft lavender alternate */
  --bg-soft: #faf9fd;
  
  /* Brand Vibrant Accents */
  --c1: #6c3cff;          /* Electric violet */
  --c2: #00b8f0;          /* Cyan */
  --c3: #ff3d9a;          /* Hot pink */
  --c4: #ff8a1f;          /* Amber orange */
  --c-green: #10b981;     /* Emerald */
  
  /* Brand Gradient from official logo: Electric Violet -> Vivid Crimson/Ruby -> Sunset Orange */
  --grad-primary: linear-gradient(135deg, #6111bf 0%, #d50065 52%, #fe5417 100%);
  --grad-primary-hover: linear-gradient(135deg, #7417e3 0%, #eb006f 52%, #ff6929 100%);
  --grad-cyan: linear-gradient(135deg, var(--c2) 0%, var(--c1) 100%);
  
  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 9999px;

  /* Consistent, classic interaction timing */
  --transition-classic: 0.3s ease-in-out;
  
  --nav-height: 74px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background-color: var(--bg-white);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tx);
  background-color: var(--bg-white);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.15rem; }

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  max-width: 65ch;
}

a {
  color: var(--c1);
  text-decoration: none;
  transition: color var(--transition-classic);
}

a:hover {
  color: var(--ac);
}

:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--tx);
  font-weight: 400;
  line-height: 1.65;
}

/* ==========================================================================
   NAVIGATION BAR (PERMANENT DARK GLASS WITH SCROLL HIDE/SHOW)
   Always stays dark midnight-purple glass with logoWhite.svg
   ========================================================================== */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 4, 38, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  will-change: transform;
  display: flex;
  align-items: center;
}

/* Auto-hide on scroll down, show on scroll up */
.hd.hd-hidden {
  transform: translateY(-100%);
}

.hd .navbar {
  padding: 0;
  width: 100%;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: translateY(-1px);
}

.hd .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.hd .nav-link:hover,
.hd .nav-link.on {
  color: #ffffff !important;
}

.hd .nav-link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 4px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd .nav-link:hover::after,
.hd .nav-link.on::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.4rem 0.65rem;
  border-radius: var(--r-sm);
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--c1);
}

/* ==========================================================================
   BUTTONS — SMOOTH GRADIENT SYSTEM
   Light bg: gradient default → dark on hover (white text always)
   Dark bg (.net / .hd): white default → gradient on hover
   Classic smooth ease-in-out transitions throughout
   ========================================================================== */

/* BASE BUTTON */
.btn-v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  background: var(--grad-primary);   /* gradient base */
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -4px rgba(97, 17, 191, 0.35);
  transition: transform var(--transition-classic),
              box-shadow var(--transition-classic),
              color var(--transition-classic),
              border-color var(--transition-classic);
  isolation: isolate;
  z-index: 0;
}

/* Dark overlay — fades IN on hover on light bg */
.btn-v::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ac);          /* deep midnight purple */
  opacity: 0;
  transition: opacity var(--transition-classic);
  z-index: 1;
  pointer-events: none;
}

/* Children always sit above the overlay */
.btn-v > * {
  position: relative;
  z-index: 2;
}

/* Keep button labels and icons tied to the button's contrast color. */
.btn-v span,
.btn-v i,
.btn-v svg,
.fil button span,
.fil button i,
.fil button svg,
.est-option-btn span,
.est-option-btn i,
.est-option-btn svg {
  color: inherit !important;
}

.btn-v svg,
.fil button svg,
.est-option-btn svg {
  fill: currentColor;
  stroke: currentColor;
}

/* LIGHT BACKGROUND: gradient default → dark hover (white text maintained) */
.btn-v:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(26, 5, 72, 0.38);
  color: #ffffff !important;
}
.btn-v:hover::after {
  opacity: 1;   /* dark overlay slides in over gradient */
}

/* ─── DARK BACKGROUND VARIANT (.net / .hd context) ─── */
/* Starts WHITE, gradient appears on hover */
.net .btn-v,
.page-hero .btn-v {
  background: #ffffff;
  color: var(--ac) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.net .btn-v::after,
.page-hero .btn-v::after {
  background: var(--grad-primary);   /* gradient fades in */
  opacity: 0;
}
.net .btn-v:hover,
.page-hero .btn-v:hover {
  color: #ffffff !important;
  box-shadow: 0 12px 30px -6px rgba(213, 0, 101, 0.5);
}
.net .btn-v:hover::after,
.page-hero .btn-v:hover::after {
  opacity: 1;
}

/* ─── GHOST / OUTLINE BUTTON on LIGHT backgrounds ─── */
.btn-v.btn-o {
  background: #ffffff;
  color: var(--ac) !important;
  border: 1.5px solid var(--ln);
  box-shadow: 0 2px 8px rgba(23, 19, 43, 0.05);
}
.btn-v.btn-o::after {
  background: var(--ac);   /* dark hover fill */
}
.btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--ac);
  box-shadow: 0 10px 24px -6px rgba(26, 5, 72, 0.3);
}
.btn-v.btn-o:hover::after { opacity: 1; }

/* ─── GHOST BUTTON inside .net (dark bg) ─── */
.net .btn-v.btn-o {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.net .btn-v.btn-o::after {
  background: rgba(255, 255, 255, 0.2);
}
.net .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85);
}
.net .btn-v.btn-o:hover::after { opacity: 1; }

/* ─── SERVICE CARD BUTTON ─── */
.tech-card .btn-v.btn-o {
  background: rgba(108, 60, 255, 0.06) !important;
  color: var(--c1) !important;
  border: 1.5px solid rgba(108, 60, 255, 0.25) !important;
  font-weight: 600;
}
.tech-card .btn-v.btn-o::after {
  background: var(--ac);   /* dark brand on hover */
}
.tech-card .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--ac) !important;
  box-shadow: 0 8px 20px -4px rgba(26, 5, 72, 0.3);
}
.tech-card .btn-v.btn-o:hover::after { opacity: 1; }

/* SMALL SIZE */
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  border-radius: 8px;
}

/* FOOTER btn-o (light bg — same as standard light btn-o) */
.ft .btn-v.btn-o {
  background: #ffffff;
  color: var(--ac) !important;
  border: 1.5px solid var(--ln);
}

.ft .btn-v.btn-o:hover {
  color: #ffffff !important;
  border-color: var(--ac);
}

.ft .btn-v.btn-o:hover > span,
.ft .btn-v.btn-o:hover > i,
body[data-page="contact"] .contact-box .btn-v:hover > span,
body[data-page="contact"] .contact-box .btn-v:hover > i {
  color: #ffffff !important;
}

/* NAVBAR BUTTON (.hd is dark) — white default, gradient on hover */
.hd .btn-v {
  background: #ffffff;
  color: var(--ac) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.hd .btn-v::after {
  background: var(--grad-primary);
  opacity: 0;
}
.hd .btn-v:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 22px -5px rgba(213, 0, 101, 0.5);
}
.hd .btn-v:hover::after {
  opacity: 1;
}

/* ==========================================================================
   NETWORK BACKGROUND (THE ATTACHED SIGNATURE BANNER THEME)
   Deep midnight purple with glowing radial violet & cyan, plus motion network
   ========================================================================== */
.net {
  position: relative;
  overflow: hidden;
  color: #cfc8ea;
  background: radial-gradient(circle at 85% 15%, rgba(108, 60, 255, 0.7), transparent 48%),
              radial-gradient(circle at 5% 95%, rgba(0, 184, 240, 0.32), transparent 42%),
              #0d0426;
}

.net canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.net > .container,
.net > * {
  position: relative;
  z-index: 1;
}

.net h1, .net h2, .net h3 {
  color: #ffffff;
}

.net .lead {
  color: #d7d1f2;
}

.net .btn-o {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.net .btn-o:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   HERO SECTION (BANNER WITH ATTACHED NETWORK THEME)
   ========================================================================== */
.hero {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--ln);
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero .lead {
  margin-bottom: 2rem;
  color: #d7d1f2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item:nth-child(1) b { color: #7de3ff; }
.stat-item:nth-child(2) b { color: #ff8fc4; }
.stat-item:nth-child(3) b { color: #ffc27a; }

.stat-item span {
  font-size: 0.88rem;
  color: #a99fd0;
  font-weight: 500;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 35px 70px -15px rgba(13, 4, 38, 0.8);
  backdrop-filter: blur(14px);
}

.hero-screen-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #120738;
}

.hero-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-screen-wrap img {
  transform: scale(1.03);
}

/* Floating Glass Telemetry Chips */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--ln);
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  color: var(--tx);
  font-size: 0.82rem;
  line-height: 1.3;
  z-index: 5;
  animation: floatChip 5s ease-in-out infinite;
}

.floating-chip i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.floating-chip b {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.chip-1 {
  top: -16px;
  right: -14px;
}
.chip-1 i {
  background: var(--c1);
}

.chip-2 {
  bottom: 18px;
  left: -20px;
  animation-delay: -2.5s;
}
.chip-2 i {
  background: var(--c3);
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   TECH MARQUEE / TICKER STRIP (LIGHT THEME)
   ========================================================================== */
.tech-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--ln);
  padding: 20px 0;
}

.tech-ticker-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tech-item:hover {
  color: var(--c1);
  transform: translateY(-2px);
}

.tech-item i {
  font-size: 1.3rem;
}

/* ==========================================================================
   SECTIONS & CLEAN LIGHT CARDS
   Spacious, comfortable viewable height, no crowding
   ========================================================================== */
.sec {
  padding: 76px 0;
  position: relative;
}

.sec.alt {
  background-color: var(--bg-alt);
}

.sec-header {
  margin-bottom: 3rem;
}

.sec-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.sec-title-tag {
  color: var(--c1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: block;
}

/* Animated logo-gradient ring shared by the site's main card containers. */
@property --card-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .hero-visual-card,
  .terminal-window
) {
  position: relative;
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .hero-visual-card,
  .terminal-window
)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--card-border-angle),
    #6111bf 0% 24%,
    #d50065 39% 57%,
    #fe5417 72% 88%,
    #6111bf 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: card-border-circulate 2.4s linear infinite;
  animation-play-state: paused;
  transition: opacity var(--transition-classic);
}

:where(
  .tech-card,
  .work-item,
  .process-step,
  .estimator-card,
  .contact-box,
  .info-card,
  .hero-visual-card,
  .terminal-window
):hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes card-border-circulate {
  to { --card-border-angle: 360deg; }
}

/* Keep these two landing-page containers visually static on hover. */
body[data-page="index"] .estimator-card::before,
body[data-page="index"] .hero-visual-card::before {
  display: none;
}

body[data-page="index"] .hero-visual-card:hover .hero-screen-wrap img {
  transform: none;
}

/* Services and Contact containers stay static; their controls remain interactive. */
body[data-page="services"] .tech-card::before,
body[data-page="contact"] .contact-box::before,
body[data-page="contact"] .info-card::before {
  display: none;
}

body[data-page="services"] .tech-card:hover {
  border-color: var(--ln);
  transform: none;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

body[data-page="services"] .tech-card:hover .card-icon-box,
body[data-page="services"] .tech-card:hover .card-img-wrap img {
  transform: none;
}

/* Clean White Tech Card */
.tech-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  border-color: var(--c1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(108, 60, 255, 0.16);
}

.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.tech-card:hover .card-icon-box {
  transform: scale(1.08);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

.card-title-row .card-icon-box {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.tech-card .card-title-row h3 {
  margin: 0;
}

.icon-cyan { background: var(--c2); }
.icon-violet { background: var(--c1); }
.icon-pink { background: var(--c3); }
.icon-amber { background: var(--c4); }
.icon-emerald { background: var(--c-green); }

.tech-card h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.tech-card p {
  color: var(--tx);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tech-card .card-short-description {
  color: var(--tx-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 4.05rem;
  margin-bottom: 1rem;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--ln-light);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ac2);
  font-weight: 500;
  border: 1px solid rgba(108, 60, 255, 0.12);
}

/* ==========================================================================
   PORTFOLIO / WORK SHOWCASE (CLEAN LIGHT CARDS)
   ========================================================================== */
.work-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ln);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-item:hover {
  border-color: var(--c1);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(108, 60, 255, 0.18);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover .work-thumb img {
  transform: scale(1.08);
}

.work-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ln);
  color: var(--ac);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.work-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.work-body p {
  font-size: 0.92rem;
  color: var(--tx);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Portfolio Filters */
.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.2rem;
}

.fil button {
  background: #ffffff;
  border: 1px solid var(--ln);
  color: var(--ink);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-classic),
              border-color var(--transition-classic),
              color var(--transition-classic),
              box-shadow var(--transition-classic),
              transform var(--transition-classic);
}

.fil button:hover {
  background: var(--ac);
  color: #ffffff;
  border-color: var(--ac);
  box-shadow: 0 8px 18px -7px rgba(26, 5, 72, 0.5);
  transform: translateY(-1px);
}

.fil button.on {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(213, 0, 101, 0.35);
}

.fil button.on:hover {
  background: var(--ac);
  border-color: var(--ac);
}

/* ==========================================================================
   INTERACTIVE ESTIMATOR (CLEAN LIGHT CONTAINER)
   ========================================================================== */
.estimator-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(23, 19, 43, 0.08);
}

.est-option-btn {
  background: var(--bg-soft);
  border: 1px solid var(--ln);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-classic),
              border-color var(--transition-classic),
              color var(--transition-classic),
              box-shadow var(--transition-classic),
              transform var(--transition-classic);
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.est-option-btn:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #ffffff;
  box-shadow: 0 8px 18px -7px rgba(26, 5, 72, 0.45);
  transform: translateY(-1px);
}

.est-option-btn.selected {
  background: var(--bg-alt);
  border-color: var(--c1);
  color: var(--c1);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(108, 60, 255, 0.2);
}

.est-option-btn.selected:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #ffffff;
  box-shadow: 0 8px 18px -7px rgba(26, 5, 72, 0.45);
}

.est-summary-box {
  background: var(--bg-alt);
  border: 1px solid rgba(108, 60, 255, 0.18);
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   SIMULATED TERMINAL (CLEAN SLATE & DEEP PURPLE CONTRAST)
   ========================================================================== */
.terminal-window {
  background: var(--ac);
  border-radius: 14px;
  box-shadow: 0 25px 60px -20px rgba(26, 5, 72, 0.5);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.75;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-red { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green { background: #27c93f; }

.terminal-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin-left: 8px;
}

.terminal-body {
  padding: 18px 20px;
  color: #e9e4fb;
  min-height: 240px;
  white-space: pre-wrap;
}

.terminal-body .cmd { color: #b9a6ff; font-weight: 600; }
.terminal-body .success { color: #9be7b0; font-weight: 600; }
.terminal-body .info { color: #7de3ff; }

.cur {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #ffffff;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   4-STAGE DELIVERY TIMELINE (CLEAN LIGHT CARDS)
   ========================================================================== */
.process-step {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

.process-step:hover {
  border-color: var(--c1);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(108, 60, 255, 0.12);
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

.process-step h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--tx);
}

/* ==========================================================================
   SUBPAGE HEADER HERO (ATTACHED BANNER THEME)
   ========================================================================== */
.page-hero {
  padding: 115px 0 65px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.page-hero .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 58ch;
  color: #d7d1f2;
}

/* ==========================================================================
   CONTACT FORM & PREVIEWS
   ========================================================================== */
.contact-box {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(23, 19, 43, 0.06);
}

.form-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  background: #ffffff;
  border: 1px solid #cfcddb;
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background: #ffffff;
  border-color: var(--c1);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: var(--tx-muted);
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--ln);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(23, 19, 43, 0.04);
}

.info-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.4rem;
}

.info-card-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--c1);
}

/* ==========================================================================
   CALL TO ACTION BANNER (EXACT ATTACHED SCREENSHOT THEME)
   ========================================================================== */
.cta-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.cta-banner p.lead {
  color: #cfc8ea;
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER (CLEAN LIGHT THEME WITH UPDATED LINKS)
   ========================================================================== */
.ft {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--ln);
  padding: 68px 0 28px;
  font-size: 0.95rem;
}

.ft .logo-wrap img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.ft h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.ft ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft li {
  margin-bottom: 0.65rem;
}

.ft a {
  color: var(--tx);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ft a:not(.btn-v):hover {
  color: var(--c1);
  padding-left: 4px;
}

.ft-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  color: var(--tx);
}

.ft-contact-item i {
  color: var(--c1);
  font-size: 1.1rem;
}

.ft-bottom {
  border-top: 1px solid var(--ln);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--tx-muted);
}

.ft-bottom a {
  color: var(--tx);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-bottom a:hover {
  color: var(--c1);
}

/* Floating WhatsApp Button */
.wa-floating-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.wa-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: waPing 2.2s infinite;
  z-index: -1;
}

@keyframes waPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Reveal motion on scroll */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .hd .container {
    position: relative;
  }

  .hd .navbar {
    min-height: var(--nav-height);
  }

  .hd .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    max-height: calc(100dvh - var(--nav-height) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(13, 4, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .hd .navbar-nav {
    width: 100%;
    margin: 0 0 0.75rem !important;
  }

  .hd .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
  }

  .hd .nav-link:hover,
  .hd .nav-link.on {
    background: rgba(255, 255, 255, 0.08);
  }

  .hd .navbar-collapse > .d-flex,
  .hd .navbar-collapse .btn-v {
    width: 100%;
  }

  .hero-visual-card {
    margin-top: 2rem;
  }
  .floating-chip {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  .floating-chip i {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .chip-1 { right: 0; top: -10px; }
  .chip-2 { left: 0; bottom: -10px; }
  .hero-stats {
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .sec {
    padding: 54px 0;
  }
  .estimator-card, .contact-box {
    padding: 1.5rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Landing page: compact, content-first mobile presentation. */
  body[data-page="index"] .hero {
    padding: calc(var(--nav-height) + 2rem) 0 3rem;
    text-align: center;
  }

  body[data-page="index"] .hero > .container > .row {
    --bs-gutter-y: 1.75rem;
  }

  body[data-page="index"] .hero h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }

  body[data-page="index"] .hero .lead {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  body[data-page="index"] .hero .d-flex.flex-wrap {
    flex-direction: column;
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
  }

  body[data-page="index"] .hero .btn-v {
    width: 100%;
  }

  body[data-page="index"] .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  body[data-page="index"] .stat-item {
    min-width: 0;
    padding: 0 0.2rem;
  }

  body[data-page="index"] .stat-item b {
    font-size: 1.35rem;
  }

  body[data-page="index"] .stat-item span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
  }

  body[data-page="index"] .hero-visual-card {
    margin-top: 0;
    padding: 6px;
    border-radius: 14px;
  }

  body[data-page="index"] .hero-screen-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
  }

  body[data-page="index"] .floating-chip,
  body[data-page="index"] .tech-ribbon {
    display: none;
  }

  body[data-page="index"] .sec {
    padding: 44px 0;
  }

  body[data-page="index"] .sec-header {
    margin-bottom: 1.75rem;
  }

  body[data-page="index"] .sec-header p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  body[data-page="index"] .sec-title-tag {
    font-size: 0.76rem;
  }

  body[data-page="index"] .sec h2 {
    font-size: 1.65rem;
  }

  body[data-page="index"] .home-services .row {
    --bs-gutter-y: 1rem;
  }

  body[data-page="index"] .home-services .card-img-wrap {
    display: none;
  }

  body[data-page="index"] .home-services .tech-card {
    padding: 1.15rem;
  }

  body[data-page="index"] .home-services .card-title-row {
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }

  body[data-page="index"] .home-services .card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
  }

  body[data-page="index"] .home-services .card-title-row h3 {
    font-size: 1.05rem;
  }

  body[data-page="index"] .home-services .card-short-description {
    min-height: 0;
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
  }

  body[data-page="index"] .home-services .tag-list {
    gap: 5px;
  }

  body[data-page="index"] .home-services .tag-pill {
    padding: 2px 7px;
    font-size: 0.73rem;
  }

  body[data-page="index"] .home-services .mt-5 {
    margin-top: 1.5rem !important;
  }

  body[data-page="index"] .home-services .btn-v {
    width: 100%;
  }

  body[data-page="index"] .home-estimator .estimator-card {
    padding: 1rem;
    border-radius: 14px;
  }

  body[data-page="index"] .home-estimator .estimator-card > .row {
    --bs-gutter-y: 1.25rem;
  }

  body[data-page="index"] .home-estimator h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem !important;
  }

  body[data-page="index"] .home-estimator .est-option-btn {
    min-height: 48px;
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }

  body[data-page="index"] .home-estimator .est-summary-box {
    padding: 1.15rem;
  }

  body[data-page="index"] .home-work .sec-header {
    align-items: stretch !important;
    gap: 1rem !important;
  }

  body[data-page="index"] .home-work .sec-header .btn-v {
    width: 100%;
  }

  body[data-page="index"] .home-work .row {
    --bs-gutter-y: 1rem;
  }

  body[data-page="index"] .home-work .row > .rv:nth-child(3) {
    display: none;
  }

  body[data-page="index"] .home-work .work-thumb {
    aspect-ratio: 16 / 9;
  }

  body[data-page="index"] .home-work .work-body {
    padding: 1.1rem;
  }

  body[data-page="index"] .home-work .work-body p {
    display: none;
  }

  body[data-page="index"] .home-process .row {
    --bs-gutter-y: 0.75rem;
  }

  body[data-page="index"] .home-process .process-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 1rem;
  }

  body[data-page="index"] .home-process .step-num {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1.5rem;
  }

  body[data-page="index"] .home-process .process-step h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  body[data-page="index"] .home-process .process-step p {
    grid-column: 2;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  body[data-page="index"] .home-advantages > .container > .row {
    --bs-gutter-y: 0;
  }

  body[data-page="index"] .home-advantages .col-lg-6:last-child {
    display: none;
  }

  body[data-page="index"] .home-advantages .col-lg-6:first-child > p {
    margin-bottom: 1.25rem !important;
  }

  body[data-page="index"] .home-advantages .row.g-3 {
    --bs-gutter-y: 1rem;
  }

  body[data-page="index"] .home-cta {
    padding: 48px 0;
    text-align: center;
  }

  body[data-page="index"] .home-cta .lead {
    margin: 0 auto;
    font-size: 1rem;
  }

  body[data-page="index"] .home-cta .btn-v {
    width: 100%;
  }

  body[data-page="index"] .ft .col-lg-5 > .d-flex {
    flex-direction: column;
  }

  body[data-page="index"] .ft .col-lg-5 > .d-flex .btn-v {
    width: 100%;
  }

  body[data-page="index"] .wa-floating-btn {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }
}
