/* Vyana Technologies - site styles */
:root {
  --teal: #0f766e;        /* buttons / text on white (good contrast) */
  --teal-dark: #115e59;
  --teal-bright: #2dd4bf; /* accents on dark backgrounds */
  --ink: #0f172a;
  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-base); overflow-x: hidden; }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

/* Header */
.nav-link { position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-link:hover { color: var(--teal); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal); transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn-primary {
  display: inline-block; text-align: center; background: var(--teal); color: #fff;
  font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn-ghost {
  display: inline-block; text-align: center; color: #e2e8f0; font-weight: 600; font-size: 14px;
  border: 1px solid rgba(226, 232, 240, 0.3); border-radius: 8px; padding: 10px 20px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #0b1220 0%, #16243a 100%); }
.hero-section { border-bottom-left-radius: clamp(40px, 9vw, 150px); }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.typed {
  background: linear-gradient(90deg, #5eead4, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret {
  display: inline-block; width: 3px; height: 0.85em; margin: 0 2px 0 1px; vertical-align: -0.05em;
  background: #5eead4; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 300;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #2dd4bf, #818cf8);
}

/* Visibility section: floating tilted cards */
.vis-section {
  background:
    radial-gradient(800px 480px at 85% 45%, rgba(129, 140, 248, 0.2), transparent 60%),
    radial-gradient(640px 380px at 15% 85%, rgba(45, 212, 191, 0.16), transparent 60%),
    #fff;
}
.tick-dark {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 9999px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.link-arrow { display: inline-block; margin-top: 28px; font-weight: 700; color: var(--teal); }
.link-arrow span { display: inline-block; transition: transform 0.25s; }
.link-arrow:hover span { transform: translateX(5px); }
.float-stage { display: grid; gap: 16px; }
.float-card {
  background: rgba(255, 255, 255, 0.92); border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px;
  box-shadow: 0 24px 50px -16px rgba(79, 70, 229, 0.25), 0 8px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}
.float-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.fc-line { font-size: 13px; color: #475569; padding: 6px 0 6px 24px; position: relative; }
.fc-line::before {
  content: '✓'; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 9999px;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  background: #ccfbf1; color: var(--teal);
}
.fc-line.next::before { content: '→'; background: #e0e7ff; color: #4f46e5; }
.bar-row { margin-top: 12px; font-size: 12px; color: #475569; }
.bar-row i { display: block; height: 8px; margin-top: 6px; border-radius: 9999px; background: #e2e8f0; position: relative; overflow: hidden; }
.bar-row i::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 9999px;
  background: linear-gradient(90deg, #14b8a6, #6366f1);
}
@media (min-width: 768px) {
  .float-stage { display: block; position: relative; height: 430px; perspective: 1400px; }
  .float-card { position: absolute; width: 300px; animation: floaty 6s ease-in-out infinite; }
  .fc-1 { left: 0; top: 50px; transform: rotateX(8deg) rotateY(-16deg) rotateZ(-2deg); }
  .fc-2 { left: 52%; top: 0; transform: rotateX(8deg) rotateY(-16deg) rotateZ(-2deg); animation-delay: -2s; }
  .fc-3 { left: 22%; top: 235px; width: 320px; transform: rotateX(8deg) rotateY(-16deg) rotateZ(-2deg); animation-delay: -4s; }
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Card spotlight (follows the mouse) */
.pain-card:hover, .service-card:hover, .tech-group:hover {
  background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, 0.16), transparent 70%);
}

/* Cards always visible (no blank gaps on fast scroll or anchor jumps) */
.reveal, .reveal.reveal-go { opacity: 1; transform: none; }

/* Industries marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 0 !important; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > li { margin-right: 12px; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-section::after {
  content: ''; position: absolute; width: 560px; height: 560px; left: -160px; top: -180px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25), transparent 65%);
  pointer-events: none;
}
.hero-form-box {
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
}
.tick {
  width: 20px; height: 20px; border-radius: 9999px; flex-shrink: 0;
  background: rgba(45, 212, 191, 0.18); color: var(--teal-bright);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}

/* Form fields */
.field {
  width: 100%; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 12px 14px; font-size: 14px; color: #0f172a; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field::placeholder { color: #64748b; }
.field:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); }

/* Trust strip */
.stat { display: block; font-size: 32px; font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
@media (min-width: 1024px) { .stat { font-size: 40px; } }
.stat-label { margin-top: 4px; font-size: 12px; font-weight: 600; color: #64748b; }

/* Section headings */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.section-title { margin-top: 8px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 768px) { .section-title { font-size: 38px; } }
.bg-slate-950 .eyebrow, .bg-slate-900 .eyebrow { color: #5eead4; }
.bg-slate-950 .section-title { color: #fff; }

/* Pain points */
.pain-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08); border-color: #99f6e4; }
.pain-card .pain { font-style: italic; font-weight: 600; color: #b45309; font-size: 14px; }
.pain-card h3 { margin-top: 12px; font-size: 18px; font-weight: 800; color: var(--ink); }
.pain-card p:last-child { margin-top: 8px; font-size: 14px; line-height: 1.65; color: #475569; }

/* Services */
.service-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08); border-color: #5eead4; }
.icon-box {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
  background: rgba(15, 118, 110, 0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.service-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: #475569; flex-grow: 1; }
.service-card a { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--teal); }
.service-card a:hover { text-decoration: underline; }

/* About */
.lesson { display: flex; gap: 14px; align-items: flex-start; }
.lesson span {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 9999px; background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.lesson p { font-size: 15px; color: #475569; line-height: 1.6; }
.lesson strong { color: var(--ink); }
.founder-card {
  background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 20px; padding: 36px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45); border: 1px solid rgba(45, 212, 191, 0.2);
}
.about-value { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.about-value b { display: block; color: var(--ink); font-size: 14px; }
.about-value p { margin-top: 4px; font-size: 12px; color: #64748b; line-height: 1.5; }

/* Process */
.process-step {
  background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px; padding: 24px; transition: transform 0.25s, border-color 0.25s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--teal-bright); }
.process-step span { color: var(--teal-bright); font-weight: 900; font-size: 30px; }
.process-step h3 { margin-top: 8px; font-size: 16px; font-weight: 800; }
.process-step p { margin-top: 8px; font-size: 13px; color: #94a3b8; line-height: 1.6; }
.promise {
  border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 10px; padding: 12px;
  color: #cbd5e1; font-weight: 600;
}

/* Tech / chips */
.tech-group { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; }
.tech-group h3 { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 14px; }
.tech-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip {
  font-size: 12px; font-weight: 600; color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 5px 12px; border-radius: 9999px; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tech-chip:hover { background: rgba(15, 118, 110, 0.1); color: var(--teal); border-color: #5eead4; }
.chip-lg { font-size: 14px; padding: 9px 20px; background: #fff; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0 20px; }
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: 18px; font-size: 14px; color: #475569; line-height: 1.7; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s; z-index: 200;
  padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: #0f766e; }
.toast-err { background: #b91c1c; }

/* Sections always visible immediately (prevents blank gaps on jump links) */
.fade-in, .fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---- Visibility section v2 (cluster of floating cards + contour lines) ---- */
.vis-lines { position: absolute; right: 0; top: 0; height: 100%; width: 60%; pointer-events: none; }
.typed-word { color: #4f6bff; white-space: nowrap; }
.us-cursor {
  display: inline-block; width: 0.5em; height: 0.09em; margin-left: 4px; background: #4f6bff;
  vertical-align: baseline; animation: blink 1s steps(1) infinite;
}
.fc-note { font-size: 13px; color: #475569; padding: 6px 0; }
.fc-note b { display: inline-block; width: 34px; color: #4f46e5; font-weight: 800; }
@media (min-width: 768px) {
  .float-stage { height: 480px; }
  .float-card { width: 270px; }
  .fc-1 { left: 0; top: 70px; }
  .fc-2 { left: 255px; top: 0; width: 285px; }
  .fc-3 { left: 40px; top: 290px; width: 280px; }
  .fc-4 { left: 310px; top: 250px; width: 280px; transform: rotateX(8deg) rotateY(-16deg) rotateZ(-2deg); animation-delay: -1s; }
}

/* ---- "What we build" slider ---- */
.solutions-section {
  background:
    radial-gradient(700px 420px at 8% 95%, rgba(244, 114, 182, 0.18), transparent 60%),
    radial-gradient(820px 520px at 96% 45%, rgba(129, 140, 248, 0.26), transparent 60%),
    #faf7ff;
}
.sol-nav {
  display: flex; background: #fff; border-radius: 9999px; padding: 4px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18);
}
.sol-nav button {
  width: 46px; height: 46px; border-radius: 9999px; font-size: 26px; line-height: 1; color: #4f46e5;
  transition: background 0.2s;
}
.sol-nav button:hover { background: #eef2ff; }
.sol-track {
  display: flex; align-items: flex-start; gap: 32px; overflow-x: auto; cursor: grab;
  padding: 24px max(24px, calc((100vw - 1280px) / 2 + 24px)) 36px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sol-track::-webkit-scrollbar { display: none; }
.sol-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.sol-card { flex: 0 0 230px; scroll-snap-align: start; }
.sol-card:nth-child(3n + 1) { margin-top: 70px; }
.sol-card:nth-child(3n + 2) { margin-top: 0; }
.sol-card:nth-child(3n) { margin-top: 36px; }
.sol-img {
  height: 250px; border-radius: 28px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s, box-shadow 0.35s; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}
.sol-img svg { width: 82%; height: 82%; }
.sol-card:hover .sol-img { transform: translateY(-8px) scale(1.02); box-shadow: 0 26px 44px rgba(79, 70, 229, 0.28); }
.sol-card h3 { margin-top: 16px; font-size: 15px; font-weight: 800; color: var(--ink); }
.sol-card p { margin-top: 4px; font-size: 13px; color: #64748b; }
.g1 { background: linear-gradient(135deg, #14b8a6, #6366f1); }
.g2 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.g3 { background: linear-gradient(135deg, #6366f1, #38bdf8); }
.g4 { background: linear-gradient(135deg, #fb923c, #f43f5e); }
.g5 { background: linear-gradient(135deg, #10b981, #0d9488); }
.g6 { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
@media (max-width: 640px) { .sol-card { flex-basis: 200px; } .sol-img { height: 210px; } }

/* ---- Clients ---- */
.client-logo {
  display: flex; align-items: center; gap: 12px; padding: 14px 26px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.client-logo:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08); border-color: #5eead4; color: var(--teal); }
.client-mark {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #6366f1); color: #fff; font-size: 16px; font-weight: 800;
}
.g7 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* ---- Audit fixes ---- */
/* Component display rules must not beat Tailwind's responsive show/hide helpers */
.btn-primary.hidden, .btn-ghost.hidden { display: none; }
@media (min-width: 640px) {
  .btn-primary.sm\:inline-block, .btn-ghost.sm\:inline-block { display: inline-block; }
  .btn-ghost.sm\:hidden { display: none; }
}
/* Bigger tap targets */
.nav-link { padding: 10px 0; }
.nav-link::after { bottom: 4px; }
.service-card a { padding: 10px 0; }
.link-arrow { padding: 10px 0; }
footer ul a { display: inline-block; padding: 6px 0; }
/* Better contrast */
.sol-card p { color: #475569; }

/* Real client logo chip */
.client-logo-img { padding: 12px 28px; }
.client-logo-img img { height: 38px; width: auto; display: block; }

/* ---- IT Infrastructure section ---- */
.bg-slate-900 .section-title { color: #fff; }
.infra-section { background: radial-gradient(900px 500px at 90% 0%, rgba(45, 212, 191, 0.1), transparent 60%), #0f172a; }
.infra-card {
  background: rgba(30, 41, 59, 0.65); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 16px; padding: 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.infra-card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.6); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.infra-icon { background: rgba(45, 212, 191, 0.14); color: #5eead4; margin-bottom: 18px; }
.infra-card h3 { font-size: 17px; font-weight: 800; color: #fff; }
.infra-card ul { margin-top: 14px; display: grid; gap: 10px; }
.infra-card li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: #cbd5e1; }
.infra-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 9999px; background: #2dd4bf; }

.matrix-wrap { overflow-x: auto; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 14px; }
.matrix { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; text-align: left; }
.matrix thead th { background: rgba(45, 212, 191, 0.12); color: #99f6e4; font-weight: 700; padding: 14px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.matrix tbody th { color: #fff; font-weight: 700; padding: 16px 18px; white-space: nowrap; }
.matrix td { color: #cbd5e1; padding: 16px 18px; line-height: 1.55; }
.matrix tbody tr { border-top: 1px solid rgba(148, 163, 184, 0.15); }
.matrix tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

/* Highlight the contact form when a card sends the visitor there */
.flash { animation: flashRing 1.4s ease-out; }
@keyframes flashRing {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.9), 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 0 22px rgba(45, 212, 191, 0), 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
}

/* ---- Service details popup ---- */
.service-card { cursor: pointer; }
body.modal-open { overflow: hidden; }
.btn-outline {
  display: inline-block; text-align: center; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 8px;
  color: #334155; border: 1px solid #cbd5e1; background: #fff; transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: #f1f5f9; border-color: #94a3b8; }
.svc-modal {
  border: 0; padding: 0; border-radius: 20px; width: calc(100% - 32px); max-width: 660px; max-height: 88vh;
  overflow-y: auto; background: #fff; color: #334155; box-shadow: 0 40px 80px rgba(2, 6, 23, 0.45);
}
.svc-modal[open] { animation: popIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.svc-modal::backdrop { background: rgba(15, 23, 42, 0.62); backdrop-filter: blur(3px); }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.svc-modal-inner { position: relative; padding: 36px 32px 28px; }
@media (max-width: 480px) { .svc-modal-inner { padding: 32px 22px 24px; } }
.svc-close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 9999px;
  font-size: 26px; line-height: 1; color: #64748b; transition: background 0.2s;
}
.svc-close:hover { background: #f1f5f9; color: #0f172a; }
.svc-title { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 4px; padding-right: 36px; }
.svc-lead { margin-top: 14px; font-size: 15px; line-height: 1.7; color: #475569; }
.svc-body h3 { margin-top: 22px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.svc-list { margin-top: 10px; display: grid; gap: 9px; }
.svc-list li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.6; color: #334155; }
.svc-list li::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 9999px;
  background: #ccfbf1; color: var(--teal); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.svc-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-best { margin-top: 20px; padding: 14px 16px; background: #f0fdfa; border-radius: 12px; font-size: 14px; line-height: 1.6; color: #134e4a; }
.svc-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Infra cards open the details popup */
.infra-card { cursor: pointer; }
.infra-link { display: inline-block; margin-top: 18px; padding: 6px 0; font-size: 14px; font-weight: 700; color: #5eead4; }
.infra-link:hover { text-decoration: underline; }

/* Highlighted tech groups (.NET and databases) */
.tech-group.featured { border-color: #99f6e4; background: linear-gradient(180deg, #f0fdfa, #fff 60%); }
.tech-group.featured h3 { color: var(--teal); }

/* Client logos link to the client's website */
.client-logo-img a { display: flex; align-items: center; gap: 12px; }
.client-logo-img a span { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: #1e293b; }
.client-logo-img img { transition: transform 0.25s; }
.client-logo-img:hover img { transform: scale(1.05); }

/* keep the "B" badge styling when a text-badge client is a link */
.client-logo-img a > .client-mark { font-size: 16px; color: #fff; }
.client-logo-img a > span:not(.client-mark) { font-size: 20px; font-weight: 800; color: #1e293b; }

/* spam trap field: invisible to people */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


/* Project showcase and text-only client wordmarks */
.project-brand-panel {
  min-height: 14rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(45,212,191,.24), transparent 34%),
    linear-gradient(135deg, #020617 0%, #1e293b 58%, #134e4a 100%);
}
.project-brand-title { letter-spacing: -.045em; }
.project-dashboard-image {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  object-position: top center;
}
.client-logo-text a {
  display: inline-flex;
  min-width: 150px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.client-logo-text a:hover {
  border-color: #99f6e4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.client-wordmark { color: #0f172a; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.bluepeak-wordmark b { color: #0f766e; }
.nemro-wordmark { letter-spacing: .16em; }
.ckyin-wordmark { letter-spacing: .12em; }
@media (max-width: 640px) {
  .project-brand-panel { min-height: 12rem; }
  .project-dashboard-image { height: 12rem; }
  .client-logo-text a { min-width: 130px; }
}

/* Portfolio category filters & WhatsApp pill */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.portfolio-filter-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}
.portfolio-filter-btn:hover {
    border-color: #0f766e;
    color: #0f766e;
}
.portfolio-filter-btn.is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.22);
}
.portfolio-card-hidden {
    display: none !important;
}
.wa-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 700;
}
.wa-pill-label {
    display: none;
}
@media (min-width: 640px) {
    .wa-pill-label {
        display: inline;
    }
}
