﻿/* Visually hidden but readable by screen readers and crawlers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

:root {
  --bg: #080808;
  --bg2: #0e0e0e;
  --bg3: #141414;
  --glass: rgba(201,168,76,0.03);
  --glass-border: rgba(201,168,76,0.12);
  --blue: #D4AF37;
  --blue-glow: rgba(212,175,55,0.28);
  --green: #C9A84C;
  --green-glow: rgba(201,168,76,0.22);
  --purple: #F5E6A3;
  --text: #F0E6CC;
  --text-muted: #9A8A6A;
  --text-dim: #5A4E38;
  --border: rgba(201,168,76,0.08);
  --radius: 16px;
  --font: 'Assistant', 'Heebo', sans-serif;
}

/* â”€â”€ Logo Image â”€â”€ */
.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(212,175,55,0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo-img:hover {
  filter: brightness(1.25) drop-shadow(0 0 14px rgba(212,175,55,0.6));
  transform: scale(1.04);
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  filter: brightness(1.0) drop-shadow(0 0 6px rgba(212,175,55,0.3));
  opacity: 0.9;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

/* â”€â”€â”€ NOISE OVERLAY â”€â”€â”€ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* â”€â”€â”€ NAV â”€â”€â”€ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37, #F5E6A3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  color: #080808 !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(201,168,76,0.04);
}

.lang-btn {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lang-btn:hover,
.lang-btn.active,
.lang-btn.is-active {
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  color: #080808;
}

.lang-btn:hover { transform: translateY(-1px); }
.lang-btn.active { font-weight: 900; box-shadow: 0 0 0 2px var(--blue); }

.language-toggle--mobile {
  display: none;
  margin-top: 14px;
  align-self: flex-start;
}

[dir="ltr"] body,
body[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] .chat-input,
html[dir="ltr"] .form-input,
html[dir="ltr"] .form-textarea {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .chat-msg.agent {
  align-self: flex-start;
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 4px;
}

html[dir="ltr"] .chat-msg.user {
  align-self: flex-end;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

html[dir="ltr"] #hero {
  justify-content: flex-start;
}

html[dir="ltr"] .hero-inner {
  max-width: min(760px, calc(100vw - 560px));
  text-align: left;
}

html[dir="ltr"] .hero-visual {
  left: auto;
  right: 60px;
}

html[dir="ltr"] .hero-actions,
html[dir="ltr"] .hero-stats {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  html[dir="ltr"] .hero-inner {
    max-width: 680px;
  }
  html[dir="ltr"] .hero-visual {
    opacity: 0.65;
  }
}

@media (max-width: 900px) {
  html[dir="ltr"] .hero-inner {
    max-width: 100%;
  }
  html[dir="ltr"] .hero-visual {
    right: auto;
    opacity: 1;
  }
}

/* â”€â”€â”€ HERO â”€â”€â”€ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 60px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(212,175,55,0.12);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(245,230,163,0.1);
  bottom: -50px; left: 100px;
}

.hero-inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
  white-space: nowrap;
}

.hero-badge span:not([data-i18n]) { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.8;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  color: #080808;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px var(--blue-glow); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(201,168,76,0.10); border-color: var(--blue); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* â”€â”€â”€ SECTION SHARED â”€â”€â”€ */
section {
  padding: 100px 60px;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

/* â”€â”€â”€ GLASS CARD â”€â”€â”€ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
}
/* Base glass-card hover: border only. Transform handled per-card-type in Step 2 block.
   Excluded: .chat-mockup, .funnel-panel, .modal-box (no lift on interactive/overlay elements) */
.glass-card:hover { border-color: rgba(212,175,55,0.25); }
.chat-mockup:hover,
.funnel-panel:hover,
.modal-box:hover { transform: none !important; }

/* â”€â”€â”€ SERVICES â”€â”€â”€ */
#services {
  background: var(--bg2);
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 60px 90px;
  margin-bottom: 72px;
  box-sizing: border-box;
  overflow: hidden;
}

.services-cta {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
}

#services .section-label { margin-bottom: 10px; }
#services .section-title {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  margin-bottom: 0;
}

/* â”€â”€ Services Carousel â”€â”€ */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SERVICES SECTION v2  â€”  paste into styleV2.css
   Replace the existing block from:
     .services-carousel-wrap { ... }
   down to the last @media (max-width: 480px) service card rule.
   All rules are scoped to .svc2-* so nothing else is affected.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Section & header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#services { padding: 88px 0 0; }

.svc2-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 52px;
}
.svc2-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f0e8cc;
  margin-bottom: 18px;
  max-width: 700px;
  margin-inline: auto;
}
.svc2-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 20px;
}
.svc2-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(212,175,55,0.65);
  font-weight: 500;
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(212,175,55,0.04);
}
.svc2-note-icon {
  font-size: 0.65rem;
  color: #d4af37;
  animation: svc2StarSpin 6s linear infinite;
  display: inline-block;
}
@keyframes svc2StarSpin { to { transform: rotate(360deg); } }

/* â”€â”€ Carousel shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-carousel-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0 56px;
  max-width: 1120px;
  margin: 0 auto;
}
.svc2-viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 20px;   /* room for card box-shadow */
  margin: -8px 0 -20px;
}
.svc2-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.35, 1);
}

/* â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-card {
  flex: 0 0 calc((100% - 20px) / 2); /* 2 visible desktop */
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  opacity: 1 !important;
  isolation: isolate;
  background: linear-gradient(160deg, #181818 0%, #111111 55%, #0e0e0e 100%);
  border: 1px solid rgba(212,175,55,0.16);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  user-select: none;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.svc2-card * { user-select: text; }

.svc2-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,175,55,0.40);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.08),
              0 20px 56px rgba(0,0,0,0.60),
              0 0 36px rgba(212,175,55,0.10);
}
.svc2-card--ai:hover {
  box-shadow: 0 0 0 1px rgba(212,175,55,0.12),
              0 20px 56px rgba(0,0,0,0.60),
              0 0 48px rgba(212,175,55,0.16);
}

/* Shine sweep */
.svc2-card-sweep {
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(115deg, transparent 35%, rgba(212,175,55,0.07) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0s;
  pointer-events: none;
  z-index: 3;
}
.svc2-card:hover .svc2-card-sweep {
  transform: translateX(110%);
  transition: transform 0.6s ease;
}

/* Gold bottom-line sweep */
.svc2-card-bottom-line {
  position: absolute; bottom: 0;
  inset-inline-start: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0.3));
  transition: width .5s ease;
  border-radius: 0 0 2px 2px;
  pointer-events: none; z-index: 4;
}
.svc2-card:hover .svc2-card-bottom-line { width: 100%; }

/* â”€â”€ Image â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}
.svc2-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s ease;
}
.svc2-card:hover .svc2-card-img { transform: scale(1.05); }

.svc2-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(14,14,14,.55) 75%, rgba(14,14,14,.85) 100%);
  pointer-events: none;
}

/* Icon badge (top-right of image) */
.svc2-card-icon-badge {
  position: absolute; top: 14px;
  inset-inline-end: 14px;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #d4af37;
  transition: border-color .3s ease, background .3s ease;
  z-index: 2;
}
.svc2-card:hover .svc2-card-icon-badge {
  background: rgba(20,16,8,0.85);
  border-color: rgba(212,175,55,0.55);
}

/* AI badge */
@keyframes svc2AiGlow {
  0%,100% { box-shadow: 0 0 8px rgba(212,175,55,0.2); }
  50%      { box-shadow: 0 0 20px rgba(212,175,55,0.4); }
}
@keyframes svc2StarPulse {
  0%,100% { opacity:.7; transform:scale(1); }
  50%     { opacity:1;  transform:scale(1.3); }
}
.svc2-ai-badge {
  position: absolute; bottom: 12px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(10,10,10,0.90));
  border: 1px solid rgba(212,175,55,0.42);
  font-size: .63rem; font-weight: 800; color: #e8c84a;
  letter-spacing: .09em; text-transform: uppercase; z-index: 2;
  animation: svc2AiGlow 2.8s ease-in-out infinite;
}
.svc2-ai-badge-star {
  font-size: .55rem; display: inline-block;
  animation: svc2StarPulse 2s ease-in-out infinite;
}

/* â”€â”€ Card body â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-card-body {
  display: flex; flex-direction: column;
  padding: 22px 24px 24px;
  flex: 1; overflow: hidden;
  border-radius: 0 0 20px 20px;
}
.svc2-card-title {
  font-size: 1.05rem; font-weight: 800;
  color: #f0e8cc; line-height: 1.3;
  margin-bottom: 10px; letter-spacing: -.015em;
  transition: color .25s ease;
}
.svc2-card:hover .svc2-card-title { color: #d4af37; }

.svc2-card-desc {
  font-size: .86rem; color: rgba(255,255,255,0.46);
  line-height: 1.7; flex: 1; margin-bottom: 18px;
}

/* Tags */
.svc2-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.svc2-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.20);
  font-size: .70rem; font-weight: 600;
  color: rgba(212,175,55,0.80);
  white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s;
}
.svc2-card:hover .svc2-tag {
  background: rgba(212,175,55,0.11);
  border-color: rgba(212,175,55,0.32);
  color: #d4af37;
}

/* CTA footer */
.svc2-card-footer {
  display: flex; align-items: center; gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.svc2-cta-text { font-size: .85rem; font-weight: 700; color: #d4af37; }
.svc2-cta-arrow {
  font-size: .95rem; color: #d4af37;
  transition: transform .28s ease; display: inline-block;
}
.svc2-card:hover .svc2-cta-arrow { transform: translateX(4px); }

/* â”€â”€ Arrow buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-arrow {
  flex-shrink: 0; align-self: center;
  width: 46px; height: 46px; min-width: 46px; min-height: 46px;
  border-radius: 50%;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.22);
  color: #d4af37;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; outline: none; padding: 0; z-index: 2;
  transition: background .25s, border-color .25s, transform .25s, opacity .25s;
}
.svc2-arrow:hover:not(:disabled) {
  background: rgba(212,175,55,0.16);
  border-color: rgba(212,175,55,0.52);
  transform: scale(1.09);
}
.svc2-arrow:disabled { opacity: .2; cursor: default; }
.svc2-arrow--prev { margin-inline-end: 12px; }
.svc2-arrow--next { margin-inline-start: 12px; }

/* â”€â”€ Dots â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.svc2-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.svc2-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0;
  background: rgba(212,175,55,0.22);
  cursor: pointer; min-width: 8px; min-height: 8px;
  transition: background .25s, transform .25s, width .25s;
}
.svc2-dot--active {
  background: #d4af37; transform: scale(1.35);
  width: 22px; border-radius: 4px;
}

/* â”€â”€ RTL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[dir="rtl"] .svc2-card         { text-align: right; }
[dir="rtl"] .svc2-header       { text-align: right; }
[dir="rtl"] .svc2-card-tags    { justify-content: flex-start; }
[dir="rtl"] .svc2-card-footer  { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .svc2-note         { flex-direction: row-reverse; }
[dir="rtl"] .svc2-dots         { direction: ltr; }
[dir="rtl"] .svc2-cta-arrow    { transform: scaleX(-1); }
[dir="rtl"] .svc2-card:hover .svc2-cta-arrow { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .svc2-arrow--prev svg { transform: scaleX(-1); }
[dir="rtl"] .svc2-arrow--next svg { transform: scaleX(-1); }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .svc2-carousel-wrap { padding: 0 44px; }
  .svc2-arrow { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
}
@media (max-width: 600px) {
  .svc2-card           { flex: 0 0 100%; }        /* 1 card on mobile */
  .svc2-carousel-wrap  { padding: 0 38px; }
  .svc2-arrow          { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .svc2-card-body      { padding: 18px 18px 20px; }
  .svc2-card-title     { font-size: .95rem; }
  .svc2-card-desc      { font-size: .83rem; }
  .svc2-tag            { font-size: .68rem; }
  #services            { padding-top: 64px; }
  .svc2-header         { margin-bottom: 36px; }
}

/* â”€â”€ Reduced motion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .svc2-note-icon, .svc2-ai-badge, .svc2-ai-badge-star { animation: none; }
  .svc2-card, .svc2-card-img, .svc2-card-bottom-line {
    transition: border-color .2s ease !important;
    transform: none !important;
  }
  .svc2-card-sweep { display: none !important; }
  .svc2-track      { transition: none !important; }
}

.tag {
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(201,168,76,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* â”€â”€â”€ CASE STUDY â”€â”€â”€ */
#casestudy { background: var(--bg); }

.case-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.case-visual {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.case-visual::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 250px; height: 250px;
  background: rgba(201,168,76,0.07);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* â”€â”€â”€ MOCK SLIDER â”€â”€â”€ */
.mock-slider {
  position: relative;
  z-index: 1;
}

.mock-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-dot { width: 12px; height: 12px; border-radius: 50%; }

.mock-slide-title {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 12px;
}

.mock-arrows {
  display: flex;
  gap: 6px;
}

.mock-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}
.mock-arrow:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.3);
  color: var(--blue);
}

.mock-slides {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.mock-slide {
  display: none;
  padding: 20px;
  animation: slideIn 0.35s ease both;
}
.mock-slide.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mock-dots-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 16px;
}

.mock-dot-nav {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mock-dot-nav.active {
  background: var(--blue);
  transform: scale(1.4);
}

/* â”€â”€ slide shared components â”€â”€ */
.ms-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.ms-stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.ms-stats-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.ms-stat {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.ms-stat-num { font-size: 1.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.ms-stat-label { font-size: 0.6rem; color: var(--text-muted); }
.ms-stat.red   .ms-stat-num { color: #e87171; }
.ms-stat.blue  .ms-stat-num { color: var(--blue); }
.ms-stat.green .ms-stat-num { color: var(--green); }
.ms-stat.purple .ms-stat-num { color: var(--purple); }
.ms-stat.gold   .ms-stat-num { color: #D4AF37; }

.ms-table-header {
  display: grid;
  padding: 7px 10px;
  background: #D4AF37;
  border-radius: 6px 6px 0 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1px;
}

.ms-table-row {
  display: grid;
  padding: 7px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  align-items: center;
}

.ms-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 50px;
  font-size: 0.58rem;
  font-weight: 700;
}
.ms-badge.green  { background: rgba(201,168,76,0.15);  color: var(--green); }
.ms-badge.blue   { background: rgba(212,175,55,0.15);  color: var(--blue); }
.ms-badge.red    { background: rgba(232,113,113,0.15); color: #e87171; }
.ms-badge.purple { background: rgba(245,230,163,0.15); color: var(--purple); }
.ms-badge.gold   { background: rgba(212,175,55,0.15);  color: #D4AF37; }

/* â”€â”€ slide 1: ×¤× ×¡×™×•×Ÿ â”€â”€ */
.ms-kennel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}
.ms-kennel-cell {
  background: linear-gradient(135deg, #C9A84C, #B8952A);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}
.ms-kennel-cell .cell-num {
  font-size: 0.65rem;
  display: block;
  opacity: 0.85;
  margin-bottom: 2px;
}

/* â”€â”€ slide 2: ×˜×™×¤×•×— â”€â”€ */
.ms-timeline {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(201,168,76,0.02);
}
.ms-timeline-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 28px;
}
.ms-timeline-row:last-child { border-bottom: none; }
.ms-timeline-time {
  width: 38px;
  font-size: 0.58rem;
  color: var(--text-dim);
  padding: 0 6px;
  text-align: left;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.ms-timeline-content {
  flex: 1;
  padding: 3px 8px;
}
.ms-timeline-event {
  background: rgba(212,175,55,0.15);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.6rem;
  color: var(--blue);
  font-weight: 600;
}
.ms-timeline-event.green {
  background: rgba(201,168,76,0.15);
  color: var(--green);
}
.ms-timeline-event.purple {
  background: rgba(245,230,163,0.15);
  color: var(--purple);
}

/* â”€â”€ slide 5: ×œ×•×— ×‘×§×¨×” â”€â”€ */
.ms-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}
.ms-kpi {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.ms-kpi-icon { font-size: 0.9rem; margin-bottom: 4px; }
.ms-kpi-num { font-size: 0.95rem; font-weight: 800; color: var(--blue); }
.ms-kpi-label { font-size: 0.52rem; color: var(--text-muted); }

.ms-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ms-chart-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.ms-chart-title { font-size: 0.62rem; font-weight: 700; margin-bottom: 8px; color: var(--text-muted); }
.ms-bar-group { display: flex; align-items: flex-end; gap: 5px; height: 50px; }
.ms-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(212,175,55,0.4);
  min-width: 8px;
}
.ms-pie-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-pie {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0% 45%, var(--green) 45% 72%, var(--purple) 72% 100%);
  flex-shrink: 0;
}
.ms-pie-legend { font-size: 0.55rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.ms-pie-legend span { display: flex; align-items: center; gap: 4px; }
.ms-legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* â”€â”€ slide 6: ×“×•×—×•×ª â”€â”€ */
.ms-reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.ms-report-col {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.ms-report-col-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ms-report-item {
  font-size: 0.58rem;
  color: var(--text-muted);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ms-report-item:last-child { border-bottom: none; }

.case-highlights { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.case-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.case-highlight-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.case-highlight-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.case-highlight-desc { font-size: 0.82rem; color: var(--text-muted); }

/* â”€â”€â”€ AI LAB â”€â”€â”€ */
#ailab { background: var(--bg2); }

.ailab-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.ailab-points { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }

.ailab-point {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.ailab-point-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.ailab-point:nth-child(1) .ailab-point-icon { background: rgba(212,175,55,0.12); }
.ailab-point:nth-child(2) .ailab-point-icon { background: rgba(245,230,163,0.12); }
.ailab-point:nth-child(3) .ailab-point-icon { background: rgba(201,168,76,0.12); }

.ailab-point-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.ailab-point-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* Chat Mockup */
.chat-mockup {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-header {
  background: var(--bg3);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #F5E6A3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.chat-header-name { font-size: 0.9rem; font-weight: 700; }
.chat-header-status { font-size: 0.72rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
.chat-header-status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.chat-body {
  background: #060606;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.chat-msg.agent {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.user {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--blue);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-msg.typing {
  display: flex; gap: 4px; align-items: center;
  padding: 14px 18px;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  direction: rtl;
}

.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #080808;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { opacity: 0.85; transform: scale(1.05); }

/* savings badge */
.savings-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
}

.savings-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}
.savings-text { font-size: 0.82rem; color: var(--text-muted); }
.savings-text strong { color: var(--text); display: block; }

/* â”€â”€â”€ SALES FUNNEL â”€â”€â”€ */
#funnel { background: var(--bg); }

.funnel-wrap {
  max-width: 660px;
  margin: 60px auto 0;
}

.funnel-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
}

.funnel-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  right: calc(50% - 80px); left: calc(50% - 80px);
  height: 1px;
  background: var(--border);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  width: 110px;
}

.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-circle.active {
  border-color: var(--blue);
  background: rgba(212,175,55,0.12);
  color: var(--blue);
}

.step-circle.done {
  border-color: var(--green);
  background: rgba(201,168,76,0.12);
  color: var(--green);
}

.step-label { font-size: 0.72rem; color: var(--text-muted); text-align: center; }
.step-label.active { color: var(--blue); }

/* Form Panel */
.funnel-panel {
  padding: 40px 44px;
}

.funnel-step-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.funnel-step-sub {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Step 1 choices */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font);
  color: var(--text);
}
.choice-btn:hover { border-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.05); }
.choice-btn.selected { border-color: var(--blue); background: rgba(212,175,55,0.08); }

.choice-emoji { font-size: 1.6rem; }
.choice-label { font-size: 0.9rem; font-weight: 600; }
.choice-sub { font-size: 0.75rem; color: var(--text-muted); }

/* Step 2 */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  resize: vertical;
  min-height: 140px;
  direction: rtl;
  outline: none;
  transition: border-color 0.2s;
}
.form-textarea:focus { border-color: rgba(212,175,55,0.4); }

/* Step 3 */
.form-row { margin-bottom: 18px; }
.form-input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  direction: rtl;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: rgba(212,175,55,0.4); }

.funnel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.btn-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: var(--text-muted); color: var(--text); }

.btn-next {
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  color: #080808;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--blue-glow); }

.btn-submit {
  background: linear-gradient(135deg, var(--green), #B8952A);
  color: #080808;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px var(--green-glow);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 40px var(--green-glow); }

/* Thank you */
.thankyou {
  text-align: center;
  padding: 60px 40px;
}
.thankyou-icon { font-size: 3.5rem; margin-bottom: 20px; }
.thankyou-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.thankyou-sub { font-size: 0.95rem; color: var(--text-muted); }

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37, #F5E6A3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

.footer-links {
  display: flex; gap: 24px; list-style: none;
}
.footer-links a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* â”€â”€â”€ ANIMATIONS â”€â”€â”€ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40% { transform: scale(1.3); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  #hero { padding: 120px 24px 60px; }
  #services { height: auto; min-height: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .case-inner { grid-template-columns: 1fr; }
  .ailab-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .funnel-panel { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 2.2rem; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* â”€â”€â”€ ABOUT â”€â”€â”€ */
#about { background: var(--bg2); overflow: hidden; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.about-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-avatar {
  width: 220px; height: 220px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(245,230,163,0.1));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  position: relative; z-index: 1;
}

.about-ring {
  position: absolute;
  border-radius: 36px;
  border: 1px dashed rgba(212,175,55,0.18);
}
.about-ring-1 { width: 260px; height: 260px; animation: spinRing 22s linear infinite; }
.about-ring-2 { width: 300px; height: 300px; border-color: rgba(245,230,163,0.1); animation: spinRing 35s linear infinite reverse; }

@keyframes spinRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.about-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 8px;
}
.about-bio strong { color: var(--text); font-weight: 600; }

.about-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}

.about-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.about-chip:hover { border-color: var(--blue); color: var(--text); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar { width: 160px; height: 160px; font-size: 4rem; }
  .about-ring-1 { width: 196px; height: 196px; }
  .about-ring-2 { width: 230px; height: 230px; }
}

/* â”€â”€â”€ CLIENTS SLIDER â”€â”€â”€ */
#clients { background: var(--bg); padding: 72px 0; overflow: hidden; }

.clients-label {
  text-align: center;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 44px; padding: 0 60px;
}

.clients-track-wrap {
  position: relative; overflow: hidden;
}
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.clients-track-wrap::before { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.clients-track-wrap::after  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }

.clients-track {
  display: flex; width: max-content;
  will-change: transform;
}

@keyframes scrollClients {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.client-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px; height: 80px; flex-shrink: 0;
}

.client-logo-inner {
  display: flex; align-items: center; gap: 10px;
  opacity: 0.3; transition: opacity 0.3s; cursor: default; white-space: nowrap;
}
.client-logo-inner:hover { opacity: 0.7; }

.client-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}

.client-logo-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }

.client-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; align-self: center; }

/* â”€â”€â”€ FLOATING CHAT WIDGET â”€â”€â”€ */
#chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1001;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--blue);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: chatPulse 2.8s infinite;
  box-shadow: 0 4px 24px rgba(212,175,55,0.12);
}
#chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(212,175,55,0.22);
  animation: none;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.35), 0 4px 24px rgba(212,175,55,0.12); }
  50%       { box-shadow: 0 0 0 8px rgba(212,175,55,0),  0 4px 24px rgba(212,175,55,0.12); }
}

#chat-window {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 1000;
  width: 350px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  background: rgba(14,12,9,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 0.5px rgba(212,175,55,0.08);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#chat-window.chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

#chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(201,168,76,0.08));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.chat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.chat-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
#chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font);
}
#chat-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(212,175,55,0.07);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(212,175,55,0.14);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

#chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
#chat-input::placeholder { color: var(--text-dim); }
#chat-input:focus { border-color: rgba(212,175,55,0.3); }
#chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  border: none;
  color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}
#chat-send:hover { opacity: 0.88; transform: scale(1.06); }

@media (max-width: 480px) {
  #chat-window { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
  #chat-fab { right: 16px; bottom: 20px; }
}

/* â”€â”€â”€ TESTIMONIALS â”€â”€â”€ */
#testimonials { background: var(--bg2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}

.testimonial-card {
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: -10px; left: 18px;
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: rgba(212,175,55,0.06); font-family: Georgia, serif;
  pointer-events: none; direction: ltr;
}

.testimonial-stars { display: flex; gap: 3px; color: #D4AF37; font-size: 0.85rem; }

.testimonial-text {
  font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.8; flex: 1; position: relative; z-index: 1;
}

.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #fff; flex-shrink: 0;
}

.testimonial-name { font-size: 0.9rem; font-weight: 700; }
.testimonial-role { font-size: 0.74rem; color: var(--text-dim); margin-top: 2px; }

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

/* â”€â”€â”€ MOBILE NAV BURGER â”€â”€â”€ */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.3s; }

.nav-mobile-menu {
  display: none; position: fixed;
  top: 61px; right: 0; left: 0;
  background: rgba(8,8,8,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px; z-index: 99;
  flex-direction: column; gap: 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--blue); }

@media (max-width: 900px) {
  nav { gap: 12px; }
  nav > .language-toggle { display: none; }
  .language-toggle--mobile { display: inline-flex; }
  .nav-burger { display: flex; }
}

/* â”€â”€â”€ MODAL â”€â”€â”€ */
/* Modal display managed by Step 3 opacity/pointer-events â€” display:none removed */
/* #freeCheckModal { display: none; }  â† disabled */
/* #freeCheckModal.open { display: flex; } â† replaced by .modal-open */

.modal-box {
  animation: fadeUp 0.3s ease both;
  overflow-y: auto;
  width: 100%;
  max-width: 520px;
  margin: 20px;
  padding: 28px 36px;
  position: relative;
}

@media (max-width: 480px) {
  .modal-box {
    padding: 28px 20px;
    margin: 12px;
    max-height: 95vh;
  }

  .modal-box h2 {
    font-size: 1.15rem;
  }
}

/* â”€â”€â”€ FIT SECTION â”€â”€â”€ */
#fit {
  background: var(--bg2);
  padding: 72px 60px;
  text-align: center;
}

.fit-inner {
  max-width: 700px;
  margin: 0 auto;
}

.fit-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
}

.fit-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  margin-top: -16px;
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fit-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fit-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.fit-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 10px;
  box-shadow: 0 0 8px var(--green-glow);
}

@media (max-width: 900px) {
  #fit { padding: 60px 24px; }
  .fit-item { font-size: 0.95rem; }
}

/* Fit grid â€” 2Ã—2 cards */
.fit-inner {
  max-width: 860px; /* ×”×¨×—×‘ ×§×¦×ª ×œ×’×¨×™×“ */
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fit-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}

.fit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.fit-card:hover {
  border-color: var(--green);
}

.fit-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.fit-card-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

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

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJECTS SHOWCASE â€” tab wrapper section
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#projects-showcase {
  background: var(--bg);
  padding: 100px 40px 80px;
}

/* â”€â”€ Tab bar â”€â”€ */
.ps-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px auto 64px;
  flex-wrap: wrap;
}

.ps-tab {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.10);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.ps-tab:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.2);
  color: var(--text);
}

.ps-tab--active {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
  color: #fff;
  box-shadow: 0 0 16px rgba(212,175,55,0.15);
}

/* â”€â”€ Tab content panels â”€â”€ */
.ps-tab-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ps-tab-content--hidden {
  display: none;
}

/* â”€â”€ Website placeholder â”€â”€ */
.ps-placeholder {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ps-placeholder-mockup {
  flex: 1 1 420px;
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.07);
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
}

.ps-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(201,168,76,0.04);
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.ps-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ps-mock-url {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-right: 10px;
  background: rgba(201,168,76,0.07);
  padding: 3px 10px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}

.ps-mock-screen {
  padding: 24px 20px;
}

.ps-mock-hero-line {
  height: 14px;
  border-radius: 8px;
  background: rgba(201,168,76,0.07);
  margin-bottom: 10px;
  animation: ps-shimmer 2.2s ease-in-out infinite;
}
.ps-mock-hero-line--wide   { width: 80%; }
.ps-mock-hero-line--medium { width: 60%; }
.ps-mock-hero-line--narrow { width: 40%; }

.ps-mock-blocks {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.ps-mock-block {
  flex: 1;
  height: 80px;
  border-radius: 10px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.1);
  animation: ps-shimmer 2.2s ease-in-out infinite;
}
.ps-mock-block:nth-child(2) { animation-delay: 0.3s; }
.ps-mock-block:nth-child(3) { animation-delay: 0.6s; }

@keyframes ps-shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.ps-placeholder-content {
  flex: 1 1 340px;
}

.ps-placeholder-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 12px 0 16px;
  color: var(--text);
}

.ps-placeholder-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.ps-placeholder-btn {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.12);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: not-allowed;
  letter-spacing: 0.02em;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
  #projects-showcase { padding: 70px 20px 60px; }

  .ps-tabs {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ps-tabs::-webkit-scrollbar { display: none; }

.ps-placeholder {
  display: flex;
  flex-direction: row-reverse;
  gap: 60px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}  .ps-placeholder-mockup { min-height: 220px; }
  .ps-placeholder-title { font-size: 1.4rem; }
}

/* website */
.ps-live-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.35);
  color: #D4AF37;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.ps-live-btn:hover {
  background: rgba(212,175,55,0.2);
  box-shadow: 0 0 18px rgba(212,175,55,0.2);
}

.ps-browser {
  flex: 1 1 600px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background: var(--bg3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ps-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(201,168,76,0.04);
  border-bottom: 1px solid rgba(201,168,76,0.07);
  flex-shrink: 0;
}
.ps-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.ps-browser-url {
  flex: 1;
  background: rgba(201,168,76,0.07);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}
.ps-browser-lock { font-size: 0.7rem; }
.ps-browser-open {
  color: var(--text-dim);
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.ps-browser-open:hover { color: #D4AF37; }
.ps-browser-viewport {
  position: relative;
  width: 100%;
  height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;

}
.ps-browser-viewport::-webkit-scrollbar {
  display: none;
}

.ps-browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  border: none;
  transform: scale(var(--iframe-scale, 1));
  transform-origin: top left;
  pointer-events: all;
}
@media (max-width: 900px) {
  .ps-browser { flex: 1 1 100%; }
  .ps-browser-viewport { height: 300px; }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PS WEB TAB â€” improved showcase layout
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Outer wrapper: browser left, content right (RTL) */
.ps-web-wrap {
  display: flex;
  flex-direction: row-reverse;
  gap: 52px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Browser column */
.ps-web-browser {
  flex: 1 1 560px;
  min-width: 0;
  box-shadow: 0 12px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.07);
  transition: box-shadow 0.3s ease;
}
.ps-web-browser:hover {
  box-shadow: 0 16px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.15);
}

/* Content column */
.ps-web-content {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

/* Title â€” dominant */
.ps-web-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

/* Description */
.ps-web-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 28px;
}

/* Feature cards */
.ps-web-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.ps-web-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.07);
  background: rgba(201,168,76,0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ps-web-feature:hover {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.18);
  transform: translateX(-2px);
}

.ps-web-feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(212,175,55,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(212,175,55,0.15);
}

.ps-web-feature-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-web-feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ps-web-feature-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* CTA block */
.ps-web-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
    width: 100%;
    margin: 0 auto;

}

.ps-web-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
    text-align: center;
  width: 100%;

}
.ps-web-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.5);
  color: #D4AF37;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 0 0 rgba(212,175,55,0);
}
.ps-web-cta-btn:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.32), rgba(212,175,55,0.14));
  border-color: rgba(212,175,55,0.75);
  box-shadow: 0 0 24px rgba(212,175,55,0.25), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .ps-web-wrap {
    flex-direction: column;
    gap: 32px;
  }
  .ps-web-browser {
    flex: 1 1 100%;
  }
  .ps-web-content {
    flex: 1 1 100%;
    padding-top: 0;
  }
  .ps-web-title {
    font-size: 1.5rem;
  }
}

/* â•â•â• Projects CTA Button â•â•â• */
.projects-cta-wrap {
  text-align: center;
  padding: 48px 24px 64px;
}

.projects-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--green), #B8952A);
  color: #080808;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.projects-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.55);
}

.projects-cta-arrow {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.projects-cta-btn:hover .projects-cta-arrow {
  transform: translateX(-4px);
}

/* â•â•â• Tab Sub-Header (replaces section-title inside tabs) â•â•â• */
.ps-tab-header {
  text-align: center;
  margin-bottom: 8px;
  margin-top: -8px;
}

.ps-tab-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-bottom: 8px;
}

.ps-tab-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO 3D VISUAL â€” isolated addition, does not touch
   any existing rules above this block
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Position the visual absolutely within #hero,
   floating in the empty right-side space */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 60px;           /* left side in RTL layout = visual side */
  transform: translateY(-48%);
  width: 420px;
  height: 460px;
  pointer-events: none;
  z-index: 1;
  /* subtle perspective for 3D depth */
  perspective: 900px;
}

/* â”€â”€ SVG connection lines â”€â”€ */
.hv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hvl {
  stroke: rgba(212,175,55,0.18);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: hvl-dash 3s linear infinite;
}

/* stagger each line's dash offset */
.hvl:nth-child(1) { animation-delay: 0s; }
.hvl:nth-child(2) { animation-delay: -0.6s; }
.hvl:nth-child(3) { animation-delay: -1.2s; }
.hvl:nth-child(4) { animation-delay: -1.8s; }
.hvl:nth-child(5) { animation-delay: -2.4s; }

@keyframes hvl-dash {
  to { stroke-dashoffset: -40; }
}

/* â”€â”€ Central dashboard card â”€â”€ */
.hv-dashboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(7deg) rotateY(-6deg);
  transform-style: preserve-3d;
  width: 210px;
  background: rgba(8,8,8,0.82);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.06),
    0 20px 60px rgba(0,0,0,0.7),
    0 4px 24px rgba(212,175,55,0.10);
  padding: 14px;
  z-index: 2;
  animation: hv-float-center 6s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.12s ease-out;
}

@keyframes hv-float-center {
  0%, 100% { transform: translate(-50%, -50%) rotateX(7deg)  rotateY(-6deg) translateY(0px);   }
  50%       { transform: translate(-50%, -50%) rotateX(5deg)  rotateY(-8deg) translateY(-8px);  }
}

.hv-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.08);
}

.hv-dash-dots {
  display: flex;
  gap: 4px;
}
.hv-dash-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  opacity: 0.7;
}

.hv-dash-title {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(240,230,204,0.5);
  letter-spacing: 0.5px;
}

.hv-dash-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hv-metric-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1;
}
.hv-metric-lbl {
  font-size: 0.55rem;
  color: rgba(154,138,106,0.7);
  margin-top: 3px;
}

/* Mini bar chart */
.hv-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.hv-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(212,175,55,0.6), rgba(245,230,163,0.25));
  border-radius: 3px 3px 0 0;
  animation: hv-bar-grow 1.2s ease both;
}

.hv-bar:nth-child(1) { animation-delay: 0.1s; }
.hv-bar:nth-child(2) { animation-delay: 0.2s; }
.hv-bar:nth-child(3) { animation-delay: 0.3s; }
.hv-bar:nth-child(4) { animation-delay: 0.4s; }
.hv-bar:nth-child(5) { animation-delay: 0.5s; }
.hv-bar:nth-child(6) { animation-delay: 0.6s; }
.hv-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes hv-bar-grow {
  from { height: 0; opacity: 0; }
  to   { height: var(--h); opacity: 1; }
}

.hv-dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  color: rgba(154,138,106,0.6);
}

.hv-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C9A84C;
  box-shadow: 0 0 6px rgba(201,168,76,0.6);
  animation: pulse 2s infinite;
}

/* â”€â”€ Floating module chips â”€â”€ */
.hv-module {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  background: rgba(8,8,8,0.78);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.05);
  z-index: 3;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.hv-mod-icon { font-size: 0.9rem; line-height: 1; }
.hv-mod-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(240,230,204,0.75);
  white-space: nowrap;
}

/* Positions (designed for 420Ã—460 canvas, RTL page so "left" is the visual side) */
.hv-mod-1 { top:  28px; left: 20px;  animation: hv-float-1 7s ease-in-out infinite; }
.hv-mod-2 { top:  20px; right: 10px; animation: hv-float-2 8s ease-in-out infinite; }
.hv-mod-3 { bottom: 70px; left: 8px; animation: hv-float-3 6.5s ease-in-out infinite; }
.hv-mod-4 { bottom: 60px; right: 0px; animation: hv-float-4 7.5s ease-in-out infinite; }
.hv-mod-5 { top: 10px; left: 50%; transform: translateX(-50%); animation: hv-float-5 9s ease-in-out infinite; }

@keyframes hv-float-1 {
  0%,100% { transform: translate(0, 0);    }
  50%     { transform: translate(4px, -9px); }
}
@keyframes hv-float-2 {
  0%,100% { transform: translate(0, 0);     }
  50%     { transform: translate(-3px, -7px); }
}
@keyframes hv-float-3 {
  0%,100% { transform: translate(0, 0);   }
  50%     { transform: translate(5px, 8px); }
}
@keyframes hv-float-4 {
  0%,100% { transform: translate(0, 0);    }
  50%     { transform: translate(-4px, 7px); }
}
@keyframes hv-float-5 {
  0%,100% { transform: translateX(-50%) translateY(0);    }
  50%     { transform: translateX(-50%) translateY(-10px); }
}

/* â”€â”€ Fade in on load â”€â”€ */
.hero-visual {
  animation: hv-appear 1s 0.5s ease both;
}
@keyframes hv-appear {
  from { opacity: 0; transform: translateY(-44%) scale(0.96); }
  to   { opacity: 1; transform: translateY(-48%) scale(1); }
}

/* â”€â”€ Mobile: simplify, stack below text â”€â”€ */
@media (max-width: 900px) {
  .hero-visual {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    animation: none;
    opacity: 1;
    margin: 48px auto 0;
    width: 320px;
    height: 340px;
    /* center it */
    display: block;
  }

  /* Re-center the dashboard on smaller canvas */
  .hv-dashboard {
    width: 170px;
  }

  /* Reduce floating distance on mobile */
  @keyframes hv-float-1 {
    0%,100% { transform: translate(0, 0);    }
    50%     { transform: translate(2px, -4px); }
  }
  @keyframes hv-float-2 {
    0%,100% { transform: translate(0, 0);    }
    50%     { transform: translate(-2px, -4px); }
  }
  @keyframes hv-float-3 {
    0%,100% { transform: translate(0, 0);   }
    50%     { transform: translate(2px, 4px); }
  }
  @keyframes hv-float-4 {
    0%,100% { transform: translate(0, 0);   }
    50%     { transform: translate(-2px, 4px); }
  }
  @keyframes hv-float-5 {
    0%,100% { transform: translateX(-50%) translateY(0);   }
    50%     { transform: translateX(-50%) translateY(-5px); }
  }
  @keyframes hv-float-center {
    0%,100% { transform: translate(-50%,-50%) rotateX(4deg) rotateY(-3deg) translateY(0);   }
    50%     { transform: translate(-50%,-50%) rotateX(3deg) rotateY(-4deg) translateY(-4px); }
  }
}

/* â”€â”€ Reduced motion: freeze all hero visual animations â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hv-dashboard,
  .hv-module,
  .hvl,
  .hv-bar,
  .hv-status-dot {
    animation: none !important;
    transition: none !important;
  }
  .hv-dashboard {
    transform: translate(-50%, -50%) rotateX(7deg) rotateY(-6deg);
  }
  .hv-bar { height: var(--h); opacity: 1; }
  .hero-visual { opacity: 1; transform: translateY(-48%); }
}

/* â”€â”€ Hide visual only if viewport is too narrow to fit both â”€â”€ */
@media (max-width: 480px) {
  .hero-visual {
    width: 280px;
    height: 300px;
  }
  .hv-dashboard { width: 148px; }
  .hv-mod-label { display: none; }
  .hv-module { padding: 7px 10px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STEP 2 â€” 3D CARD TILT & GLOW
   Appended below all existing rules.
   Overrides only hover/transform on targeted card types.
   Does NOT modify any rule above this block.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Shared: give cards a 3D context â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.service-card,
.ailab-point,
.case-highlight,
.ps-web-feature,
.testimonial-card {
  transform-style: preserve-3d;
  /* will-change removed: too many simultaneous GPU layers on mobile.
     Promotion happens only during active tilt via [data-tilting] below. */
  isolation: isolate;
  /* Richer transition: add box-shadow to existing border-color + transform */
  transition:
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  /* Prevent text from being selected during quick mouse drags over cards */
  user-select: none;
}
/* Re-allow text selection inside card content */
.service-card *,
.ailab-point *,
.case-highlight *,
.ps-web-feature *,
.testimonial-card * {
  user-select: text;
}

/* â”€â”€ Shine sweep pseudo-element â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Added on cards that have overflow:hidden or we set it */
.service-card,
.ailab-point,
.case-highlight,
.testimonial-card {
  overflow: hidden; /* needed for shine clip */
  position: relative;
}

.service-card::after,
.ailab-point::after,
.case-highlight::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Diagonal shine gradient, starts off-screen left */
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(212,175,55,0.07) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0s; /* no transition by default */
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* On hover: sweep the shine across */
.service-card:hover::after,
.ailab-point:hover::after,
.case-highlight:hover::after,
.testimonial-card:hover::after {
  transform: translateX(100%);
  transition: transform 0.55s ease;
}

/* â”€â”€ Override: richer glow + lift on hover â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Service cards â€” largest cards, strongest effect */
.service-card.glass-card:hover {
  border-color: rgba(212,175,55,0.32);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.08),
    0 16px 48px rgba(0,0,0,0.55),
    0 0 32px rgba(212,175,55,0.10);
  /* Base lift â€” JS will override transform with tilt */
  transform: translateY(-6px);
}

/* AI points */
.ailab-point.glass-card:hover {
  border-color: rgba(212,175,55,0.28);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.06),
    0 12px 36px rgba(0,0,0,0.50),
    0 0 24px rgba(212,175,55,0.09);
  transform: translateY(-4px);
}

/* Case highlight cards */
.case-highlight.glass-card:hover {
  border-color: rgba(212,175,55,0.28);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.06),
    0 10px 30px rgba(0,0,0,0.48),
    0 0 20px rgba(212,175,55,0.08);
  transform: translateY(-4px);
}

/* Web feature cards â€” preserve existing translateX, add glow only */
.ps-web-feature.glass-card:hover {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.22);
  box-shadow:
    0 6px 22px rgba(0,0,0,0.40),
    0 0 16px rgba(212,175,55,0.07);
  /* Keep existing horizontal slide, no vertical lift to avoid layout shift */
  transform: translateX(-3px);
}

/* Testimonial cards */
.testimonial-card.glass-card:hover {
  border-color: rgba(212,175,55,0.28);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.06),
    0 14px 40px rgba(0,0,0,0.52),
    0 0 28px rgba(212,175,55,0.09);
  transform: translateY(-5px);
}

/* â”€â”€ When JS tilt is active, JS controls transform fully.
   We mark the card with [data-tilting] so CSS hover lift
   doesn't fight the JS value. â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.service-card[data-tilting]:hover,
.ailab-point[data-tilting]:hover,
.case-highlight[data-tilting]:hover,
.testimonial-card[data-tilting]:hover {
  transform: none; /* JS writes inline transform instead */
}
/* During active tilt, speed up response + promote to GPU layer */
[data-tilting] {
  will-change: transform;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.08s linear !important;
}
/* On mouse-leave, let it ease back smoothly + release GPU layer */
[data-tilt-reset] {
  will-change: auto;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* â”€â”€ Mobile: disable tilt, keep glow + lift only â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .service-card,
  .ailab-point,
  .case-highlight,
  .ps-web-feature,
  .testimonial-card {
    /* Remove will-change on mobile to save GPU memory */
    will-change: auto;
    /* Simpler transitions */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }
}

/* â”€â”€ Reduced motion: kill all of the above â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .ailab-point,
  .case-highlight,
  .ps-web-feature,
  .testimonial-card {
    transition: border-color 0.2s ease !important;
    transform: none !important;
    will-change: auto !important;
  }
  .service-card::after,
  .ailab-point::after,
  .case-highlight::after,
  .testimonial-card::after {
    display: none !important;
  }
  .service-card.glass-card:hover,
  .ailab-point.glass-card:hover,
  .case-highlight.glass-card:hover,
  .ps-web-feature.glass-card:hover,
  .testimonial-card.glass-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(212,175,55,0.25) !important;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STEP 2 â€” PATCH: ps-web-feature JS tilt support
   + fit-card 3D tilt & glow
   Appended only. Nothing above is modified.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ ps-web-feature: add JS-tilt data attributes support â”€â”€ */
/* CSS glow already set above; just add the fast/reset
   transition states so JS tilt works consistently */
.ps-web-feature {
  transform-style: preserve-3d;
  will-change: transform;
}
.ps-web-feature[data-tilting] {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.08s linear !important;
}
.ps-web-feature[data-tilt-reset] {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
/* When tilting, JS owns transform â€” neutralise the hover CSS */
.ps-web-feature[data-tilting]:hover {
  transform: none;
}

/* â”€â”€ fit-card: 3D tilt, glow, shine â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fit-card {
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  position: relative;
  /* Extend existing transition to include box-shadow */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

/* Shine sweep */
.fit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(212,175,55,0.07) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.fit-card:hover::after {
  transform: translateX(100%);
  transition: transform 0.55s ease;
}

/* Richer hover â€” override existing border-only hover */
.fit-card:hover {
  border-color: rgba(212,175,55,0.32);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.07),
    0 12px 36px rgba(0,0,0,0.50),
    0 0 24px rgba(212,175,55,0.09);
}

/* JS tilt attribute states */
.fit-card[data-tilting] {
  transition:
    opacity 0.5s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.08s linear !important;
}
.fit-card[data-tilt-reset] {
  transition:
    opacity 0.5s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.fit-card[data-tilting]:hover {
  transform: none; /* JS owns it */
}

/* â”€â”€ Reduced motion patch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .fit-card,
  .ps-web-feature {
    transition: border-color 0.2s ease, opacity 0.5s ease !important;
    transform: none !important;
    will-change: auto !important;
  }
  .fit-card::after { display: none !important; }
  .fit-card:hover,
  .ps-web-feature:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* â”€â”€ Mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .fit-card,
  .ps-web-feature {
    will-change: auto;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STEP 3 â€” MOTION POLISH
   Appended only. Nothing above is modified.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ 1. Smoother reveal easing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Override only the transition and starting offset;
   opacity:0 is already set in the original .reveal rule above */
.reveal {
  transform: translateY(22px);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* â”€â”€ 2. Stagger delays for grid children â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Applied via .stagger-child on the nth-child selector.
   The observer assigns CSS custom property --stagger-i
   via JS; fallback uses nth-child for pure-CSS stagger */
.stagger-child:nth-child(1) { transition-delay: 0ms;   }
.stagger-child:nth-child(2) { transition-delay: 100ms; }
.stagger-child:nth-child(3) { transition-delay: 200ms; }
.stagger-child:nth-child(4) { transition-delay: 300ms; }
/* Also stagger ailab-points and case-highlights (already in DOM) */
.ailab-point:nth-child(1) { transition-delay: 0ms;   }
.ailab-point:nth-child(2) { transition-delay: 110ms; }
.ailab-point:nth-child(3) { transition-delay: 220ms; }
.case-highlight:nth-child(1) { transition-delay: 0ms;   }
.case-highlight:nth-child(2) { transition-delay: 90ms;  }
.case-highlight:nth-child(3) { transition-delay: 180ms; }
.fit-card:nth-child(1) { transition-delay: 0ms;   }
.fit-card:nth-child(2) { transition-delay: 80ms;  }
.fit-card:nth-child(3) { transition-delay: 160ms; }
.fit-card:nth-child(4) { transition-delay: 240ms; }

/* â”€â”€ 3. Premium button micro-interactions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* btn-primary: add position/overflow/shine + upgrade transition + hover/active.
   Original base layout (display, padding, border-radius, font, etc.) unchanged. */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0s;
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 48px var(--blue-glow), 0 0 0 1px rgba(212,175,55,0.2);
}
.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.5s ease;
}
.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

/* btn-ghost: add position/overflow + upgrade transition + hover/active */
.btn-ghost {
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(212,175,55,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.12);
}
.btn-ghost:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* nav-cta: upgrade transition only */
.nav-cta {
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease !important;
}
.nav-cta:hover {
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 22px var(--blue-glow) !important;
}

/* Funnel / form buttons inherit same style */
.btn-next {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}
.btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--blue-glow);
}

/* â”€â”€ 4. Smooth modal open / close â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Overlay: use opacity + pointer-events instead of display toggle */
#freeCheckModal {
  display: flex !important; /* always in DOM flow */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* override previous display:none rule */
}
#freeCheckModal.modal-open {
  opacity: 1;
  pointer-events: all;
}

/* Box: slide up on open */
.modal-box {
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s ease;
  opacity: 0;
  animation: none; /* remove old fadeUp animation */
}
#freeCheckModal.modal-open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* â”€â”€ 5. Project tab fade transition â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* JS will add/remove .tab-entering class */
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.ps-tab-content {
  animation: none;
}
.ps-tab-content.tab-entering {
  animation: tabFadeIn 0.38s cubic-bezier(0.22,1,0.36,1) both;
}

/* Tab button active: add subtle glow transition */
.ps-tab {
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease,
              transform 0.2s ease;
}
.ps-tab:hover { transform: translateY(-1px); }
.ps-tab:active { transform: translateY(0); }

/* â”€â”€ 6. Navbar scroll state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
nav {
  transition: background 0.4s ease,
              border-color 0.4s ease,
              backdrop-filter 0.4s ease,
              box-shadow 0.4s ease;
}
nav.nav-scrolled {
  background: rgba(6,6,6,0.97);
  border-bottom-color: rgba(212,175,55,0.12);
  box-shadow: 0 1px 32px rgba(0,0,0,0.6);
}

/* â”€â”€ 7. Counter number display â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-num {
  /* Smooth value change visual */
  transition: color 0.3s ease;
}
.stat-num.counter-done {
  color: var(--blue); /* stays same color â€” just marks completion */
}

/* â”€â”€ Reduced motion overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .reveal.visible { opacity: 1; }

  .stagger-child,
  .ailab-point,
  .case-highlight,
  .fit-card {
    transition-delay: 0ms !important;
  }

  .btn-primary,
  .btn-ghost,
  .btn-next,
  .nav-cta {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
  .btn-primary::after { display: none; }

  .modal-box {
    transform: none !important;
    transition: opacity 0.2s ease !important;
  }

  .ps-tab-content.tab-entering {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  nav { transition: background 0.2s ease !important; }
}

/* â”€â”€ Mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .stagger-child:nth-child(n) { transition-delay: 0ms; }
  .ailab-point:nth-child(n)   { transition-delay: 0ms; }
  .case-highlight:nth-child(n){ transition-delay: 0ms; }
  .fit-card:nth-child(n)      { transition-delay: 0ms; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STEP 4 â€” PRODUCTION POLISH FIXES
   Appended only. Targets specific conflicts found in audit.
   Each rule is commented with the issue it resolves.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* FIX 1 â€” Remove permanent will-change from .ps-web-feature and .fit-card.
   GPU promotion should only happen during active tilt ([data-tilting]).
   The Step 2 patch set will-change unconditionally â€” overridden here. */
.ps-web-feature,
.fit-card {
  will-change: auto;
}

/* FIX 2 â€” Neutralise the original .fit-card:hover green border rule (line ~1437).
   Step 2 patch overrides with gold, but the original is still parsed.
   Explicit win here avoids any future cascade ambiguity. */
.fit-card:hover {
  border-color: rgba(212,175,55,0.32); /* gold, not green */
}

/* FIX 3 â€” Clean up .fit-card transition. Step 2 patch duplicated the original
   transition property on the same element. Consolidate to one authoritative rule.
   The [data-tilting] !important override still fires correctly on top of this. */
.fit-card {
  transition:
    opacity      0.5s ease,
    transform    0.5s ease,
    border-color 0.3s ease,
    box-shadow   0.35s ease;
}

/* FIX 7 â€” Hero visual: remove permanent will-change on mobile.
   The float animations still run but without GPU layer promotion,
   which is appropriate for a decorative element on a low-power device. */
@media (max-width: 900px) {
  .hv-dashboard,
  .hv-module {
    will-change: auto;
  }
}

/* FIX 8 â€” Remove transform from the base .glass-card transition.
   It was creating a redundant 0.3s ease fight against per-card rules.
   Border-color is the only thing the base rule should own. */
.glass-card {
  transition: border-color 0.3s ease;
}

/* FIX 8b â€” But .chat-mockup.glass-card had no per-card override.
   Give it back a safe transition so it doesn't feel broken. */
.chat-mockup.glass-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure modal-box never gets a tilt-like shadow from glass-card rules */
.modal-box.glass-card {
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

/* FIX â€” Prevent any lingering transform on .modal-box when not in modal-open state.
   Closes edge case where page re-render could show the scaled-down box briefly. */
#freeCheckModal:not(.modal-open) .modal-box {
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  pointer-events: none;
}

/* FIX â€” Ensure #freeCheckModal is always in the layout flow but invisible when closed.
   Overrides any inline style.display='none' that may have been set by
   the original openModal/closeModal before Step 3 patch overwrites them.
   Using visibility + opacity layered approach for robustness. */
#freeCheckModal {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
#freeCheckModal.modal-open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* FIX â€” Tab content: ensure no residual inline styles affect the base state */
.ps-tab-content {
  transition: none; /* Tab animation handled by .tab-entering keyframe, not transition */
}

/* FIX â€” ps-tab button: prevent double transform when both :hover and [active] apply */
.ps-tab--active {
  transform: none !important; /* Active tab doesn't lift â€” it's already selected */
}
.ps-tab--active:hover {
  transform: none !important;
}

/* FIX â€” Stagger delays must NOT apply during the tilt transition (would delay snap-back).
   The [data-tilting] and [data-tilt-reset] !important overrides already handle this,
   but we also zero the delay during tilt to be safe. */
[data-tilting],
[data-tilt-reset] {
  transition-delay: 0ms !important;
}

/* FIX â€” prefers-reduced-motion: ensure fit-card and ps-web-feature
   are fully covered (Step 2 patch block and Step 3 block each have
   partial coverage â€” consolidate to one clean override here). */
@media (prefers-reduced-motion: reduce) {
  .fit-card,
  .ps-web-feature {
    will-change: auto !important;
    transform: none !important;
    transition:
      opacity      0.5s ease,
      border-color 0.2s ease !important;
  }
  .fit-card.visible {
    opacity: 1;
    transform: none !important;
  }
  .fit-card::after,
  .ps-web-feature::after {
    display: none !important;
  }
  /* Hero visual: freeze everything cleanly */
  .hv-dashboard,
  .hv-module,
  .hero-visual {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  /* Buttons: no transform at all */
  .btn-primary,
  .btn-ghost,
  .btn-next,
  .btn-submit,
  .nav-cta {
    transform: none !important;
    transition: opacity 0.15s ease, box-shadow 0.15s ease !important;
  }
  .btn-primary::after { display: none !important; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UX POLISH â€” Appended only. No existing rules modified.
   Tasks: lang fade, lang-btn a11y, CTA focus, form focus,
          mobile spacing, visible focus rings, reduced-motion.
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ 1. Language-switch fade â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Class added/removed by JS around renderTranslations().
   opacity 0â†’1 in 180ms; layout is untouched (no height change). */
.i18n-fade {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* â”€â”€ 2. Lang-btn: stronger active state + focus ring â”€â”€â”€â”€
   Existing .lang-btn.active sets gold bg + 2px ring.
   Added: clear :focus-visible ring for keyboard users.   */
.lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 999px;
}

/* â”€â”€ 3. CTA focus-visible â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   :hover already handled. Add keyboard focus ring.        */
.btn-primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.22), 0 8px 40px var(--blue-glow);
}
.btn-ghost:focus-visible {
  outline: 2px solid rgba(212,175,55,0.6);
  outline-offset: 3px;
}

/* CTA mobile: ensure full-width on very small screens,
   keep text readable, no layout shift.                   */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 15px 24px;
  }
}

/* â”€â”€ 4. Form inputs: stronger focus ring â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Original: border-color change only.
   Added: outer glow ring so focus is visible without color alone. */
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* form-input focus-visible for keyboard */
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid rgba(212,175,55,0.5);
  outline-offset: 1px;
}

/* â”€â”€ 5. Mobile language-toggle spacing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   On very small screens the mobile lang toggle needs a
   touch-friendly tap target on each button.              */
@media (max-width: 480px) {
  .language-toggle--mobile .lang-btn {
    min-width: 42px;
    height: 34px;
    font-size: 0.75rem;
  }
}

/* â”€â”€ 6. Visible focus states (global safety net) â”€â”€â”€â”€â”€â”€â”€â”€
   Any focusable element that doesn't already have
   :focus-visible gets a fallback gold ring.              */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(212,175,55,0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
/* More specific elements already handle their own outline above */
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.lang-btn:focus-visible {
  border-radius: 999px; /* keep pill shape */
}

/* â”€â”€ 7. prefers-reduced-motion additions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Covers any new transitions added above.                */
@media (prefers-reduced-motion: reduce) {
  .i18n-fade {
    transition: none !important;
    opacity: 1 !important;
  }
  .form-input,
  .form-textarea {
    transition: border-color 0.1s ease !important;
    box-shadow: none !important;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    transition: none !important;
  }
}

#funnel.pt-8 {
    padding-top: 2rem !important; /* ×ž×§×˜×™×Ÿ ××ª ×”×ž×¨×•×•×— ×”×¢×œ×™×•×Ÿ ×œ-32 ×¤×™×§×¡×œ×™× ×‘×ž×§×•× 80 */
}

/* ××•×¤×¦×™×•× ×œ×™: ×¦×ž×¦×•× ×”×ž×¨×•×•×— ×”×ª×—×ª×•×Ÿ ×©×œ ×”×¡×§×©×Ÿ ×©×ž×¢×œ×™×• */
#why-choose-us {
    padding-bottom: 1rem !important;
}

/* ×”×ª××ž×” ×œ×ž×•×‘×™×™×œ - ×œ×•×•×“× ×©×”×ž×¨×•×•×— ×œ× × ×¢×œ× ×œ×’×ž×¨×™ */
@media (max-width: 768px) {
    #funnel.pt-8 {
        padding-top: 1.5rem !important;
    }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PHASE 3 â€” CORE WEB VITALS & PERFORMANCE OPTIMISATIONS
   Appended block â€” overrides above only where needed.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Containment: isolate paint/layout of decorative layers â”€â”€ */
.hero-glow {
  contain: layout style;
  will-change: auto;
}
.clients-track-wrap {
  contain: layout style;
}
.hv-lines {
  contain: layout style;
}

/* â”€â”€ Hero-glow: reduce blur cost on mobile â”€â”€ */
@media (max-width: 768px) {
  .hero-glow-1,
  .hero-glow-2 {
    filter: blur(60px);
    width: 300px;
    height: 300px;
  }
}

/* â”€â”€ prefers-reduced-motion: pause all non-essential animations â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  .hvl,
  .hv-dashboard,
  .hv-module,
  .about-ring-1,
  .about-ring-2,
  .clients-track,
  .hero-badge span:not([data-i18n]),
  .chat-status-dot,
  .hv-status-dot {
    animation: none !important;
    transition: none !important;
  }
  .hv-dashboard {
    transform: translate(-50%, -50%) rotateX(7deg) rotateY(-6deg) !important;
  }
}

/* â”€â”€ Low-end mobile: pause infinite decorative animations â”€â”€ */
@media (max-width: 480px) {
  .hvl { animation: none; }
  .about-ring-1,
  .about-ring-2 { animation: none; }
  .hv-module { animation: none !important; will-change: auto !important; }
  .hv-dashboard {
    animation: none;
    will-change: auto;
    transform: translate(-50%, -50%) rotateX(4deg) rotateY(-3deg);
  }
}

/* â”€â”€ CLS: explicit aspect-ratio on proj-img-wrap (supplements inline style) â”€â”€ */
.proj-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.04);
}
.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* â”€â”€ CLS: reserve space for nav logo before image loads â”€â”€ */
.nav-logo-img {
  width: auto;
  height: 80px;
  aspect-ratio: 1 / 1;
  display: block;
}

/* â”€â”€ CLS: hero stats reserve minimum height â”€â”€ */
.hero-stats {
  min-height: 64px;
}

/* â”€â”€ Image: blur-in shimmer on lazy-loaded project cards â”€â”€ */
.proj-img--loading {
  filter: blur(8px);
  transform: scale(1.02);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.proj-img--loaded {
  filter: none;
  transform: scale(1);
}

/* â”€â”€ Scroll performance: promote scrolling containers â”€â”€ */
.nav-mobile-menu {
  overscroll-behavior: contain;
}

/* â”€â”€ Paint containment on glass cards to limit repaint scope â”€â”€ */
.glass-card {
  contain: layout style;
}

/* â”€â”€ Reduce backdrop-filter blur on low-end via media query â”€â”€ */
@media (max-width: 480px) {
  .glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  #chat-window {
    backdrop-filter: blur(8px);
  }
}

/* â”€â”€ Iframe: CLS prevention â€” reserve height before load â”€â”€ */
.ps-browser-viewport {
  min-height: 320px;
}

/* END PHASE 3 */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EXPLORE OUR SERVICE AREAS â€” redesigned
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.svc-explore-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.svc-explore-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.35;
}

.svc-explore-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.svc-explore-head {
  text-align: center;
  margin-bottom: 60px;
}

.svc-explore-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}

.svc-explore-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.svc-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* â€” Individual service card â€” */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.15);
}

.svc-card:hover::after { opacity: 1; }

.svc-card-glow {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  border-radius: 50%;
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.svc-card:hover .svc-card-glow {
  opacity: 1;
  transform: translate(-8px, -8px);
}

.svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.svc-card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.svc-card:hover .svc-card-icon-wrap {
  background: rgba(212,175,55,0.14);
  border-color: rgba(212,175,55,0.35);
}

.svc-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--blue), #C9A84C);
  padding: 4px 10px;
  border-radius: 999px;
}

.svc-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s;
}

.svc-card:hover .svc-card-title { color: var(--blue); }

.svc-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.svc-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(212,175,55,0.1);
}

.svc-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.svc-card-arrow {
  font-size: 0.9rem;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.svc-card:hover .svc-card-arrow {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .svc-explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-explore-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-explore-section { padding: 60px 0 50px; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FEATURED CASE STUDIES â€” redesigned
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.cs-featured-section {
  position: relative;
  padding: 80px 0 60px;
}

.cs-featured-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
}

.cs-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.cs-featured-head {
  text-align: center;
  margin-bottom: 52px;
}

.cs-featured-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 0;
}

.cs-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* â€” Individual case study card â€” */
.cs-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cs-feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,175,55,0.12);
}

/* Animated bottom line on hover */
.cs-feat-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #C9A84C);
  transition: width 0.4s ease;
  border-radius: 0 0 2px 2px;
}

.cs-feat-card:hover .cs-feat-line { width: 100%; }

.cs-feat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cs-feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.cs-feat-card:hover .cs-feat-icon-wrap {
  background: rgba(212,175,55,0.13);
}

.cs-feat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.cs-feat-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.cs-feat-card:hover .cs-feat-title { color: var(--blue); }

.cs-feat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.cs-feat-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-feat-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.cs-feat-arrow {
  font-size: 0.9rem;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.cs-feat-card:hover .cs-feat-arrow {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .cs-featured-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .cs-featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .cs-featured-section { padding: 50px 0 40px; }
}

/* END REDESIGNED SECTIONS */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   homepage-overrides.css
   Load AFTER styleV2.css and service-page.css in index.html.
   All rules are homepage-specific and scoped to avoid collisions.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */


/* â”€â”€ #services: kill fixed 100vh so content never feels cramped â”€â”€ */
#services {
  height: auto !important;
  min-height: auto !important;
  padding: 80px 60px 60px !important;
  margin-bottom: 0 !important;
}

/* Unstick the CTA from position:absolute */
.services-cta {
  position: static !important;
  margin-top: 28px;
}

/* 3 deep-dive cards reuse .svc-explore-inner / .svc-explore-grid */
#services .svc-explore-inner {
  padding: 0;
  margin-top: 52px;
}
#services .svc-explore-grid {
  padding: 0 !important;
}


/* â”€â”€ service-deep-links â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Replaces the removed inline style="grid-template-columns:repeat(3,1fr);"
   Base display:grid and gap come from .svc-explore-grid in styleV2.css.
   This class only controls column layout + the mobile stack.
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.service-deep-links {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .service-deep-links {
    grid-template-columns: 1fr;
  }
}


/* â”€â”€ Why Alozix section (merged #about + #trust) â”€â”€ */
.why-section {
  background: var(--bg2);
  padding: 80px 60px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.why-card  { padding: 28px 24px; }
.why-icon  { font-size: 1.6rem; margin-bottom: 14px; }
.why-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }


/* â”€â”€ Knowledge preview (2-card layout) â”€â”€ */
#knowledge-preview {
  padding: 80px 60px;
  background: var(--bg);
}

.know-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.know-card    { padding: 28px 24px; }
.know-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.know-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0 0 16px; }

.know-link       { font-size: 0.82rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.know-link:hover { text-decoration: underline; }


/* â”€â”€ Section padding tightening â”€â”€ */
#fit               { padding: 80px 60px; }
#clients           { padding: 60px 0; }
#testimonials      { padding: 80px 60px; }
#projects-showcase { padding: 80px 60px; }
.cs-featured-section { padding: 60px 0 50px; }
#funnel            { padding-top: 60px; padding-bottom: 80px; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Mobile â€” max-width: 900px
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 900px) {

  #services { padding: 60px 24px 50px !important; }

  /* .service-deep-links â†’ 1fr is already defined in the block above */

  .why-section { padding: 60px 24px; }
  .why-grid    { grid-template-columns: 1fr; gap: 14px; }

  #knowledge-preview { padding: 60px 24px; }
  .know-grid         { grid-template-columns: 1fr; gap: 14px; }

  #fit,
  #testimonials,
  #projects-showcase { padding: 60px 24px; }

  #funnel { padding-top: 48px; padding-bottom: 60px; }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE HERO IMPROVEMENTS â€” max-width: 768px
   Scope: hero section only. Desktop (â‰¥769px) untouched.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {

  /* â”€â”€ 1. Reduce hero height & vertical padding â”€â”€ */
  #hero {
    min-height: auto;
    padding: 96px 20px 40px;
    align-items: flex-start;
  }

  /* â”€â”€ 2. Hero inner: full width, tighter layout â”€â”€ */
  .hero-inner {
    max-width: 100%;
    width: 100%;
  }

  /* â”€â”€ 3. Badge: slightly smaller, less bottom margin â”€â”€ */
  .hero-badge {
    font-size: 0.72rem;
    margin-bottom: 18px;
    padding: 5px 13px;
  }

  /* â”€â”€ 4. Headline: balanced, shorter-looking on small screens â”€â”€ */
  .hero-h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    max-width: 340px;
  }

  /* â”€â”€ 5. Paragraph: narrower, better line-height â”€â”€ */
  .hero-sub {
    font-size: 0.97rem;
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 28px;
  }

  /* â”€â”€ 6. CTA buttons: stacked column, primary dominant â”€â”€ */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* Secondary CTA: visually lighter, smaller â€” not another big button */
  .hero-actions .btn-ghost {
    width: auto;
    align-self: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero-actions .btn-ghost:hover {
    background: transparent;
    border-color: transparent;
    color: var(--blue);
  }

  /* â”€â”€ 7. Stats: compact single row, reduced gap & margin â”€â”€ */
  .hero-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    margin-top: 32px;
    padding-top: 24px;
    min-height: auto;
  }

  .hero-stats > div {
    flex: 1;
    text-align: center;
    padding: 0 4px;
  }

  /* Divider lines between stats */
  .hero-stats > div + div {
    border-left: 1px solid var(--border);
  }

  .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.68rem;
    margin-top: 4px;
    line-height: 1.3;
  }

  /* â”€â”€ 8. Hero visual: smaller, less vertical space â”€â”€ */
  .hero-visual {
    width: 260px;
    height: 280px;
    margin: 32px auto 0;
  }

  .hv-dashboard {
    width: 150px;
  }

  /* â”€â”€ 9. Hide floating module labels to reduce clutter â”€â”€ */
  .hv-mod-label {
    display: none;
  }

  /* Shrink module chips to icons only */
  .hv-module {
    padding: 7px 9px;
    gap: 0;
  }

  .hv-mod-icon {
    font-size: 0.85rem;
  }

  /* â”€â”€ 10. Reduce glow visual weight on mobile â”€â”€ */
  .hero-glow-1 {
    width: 240px;
    height: 240px;
    opacity: 0.6;
  }

  .hero-glow-2 {
    width: 180px;
    height: 180px;
    opacity: 0.5;
  }

  /* â”€â”€ 11. SVG lines: more subtle on mobile â”€â”€ */
  .hvl {
    stroke: rgba(212,175,55,0.10);
  }
}

/* â”€â”€ Extra-small phones (360pxâ€“414px) â”€â”€ */
@media (max-width: 414px) {

  #hero {
    padding: 88px 18px 36px;
  }

  .hero-h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    max-width: 100%;
  }

  .hero-sub {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .hero-actions .btn-primary {
    font-size: 0.9rem;
    padding: 13px 20px;
  }

  .hero-visual {
    width: 230px;
    height: 250px;
    margin: 24px auto 0;
  }

  .hv-dashboard {
    width: 136px;
  }

  .stat-num {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }
}

/* Mobile-only What We Build carousel fit: one compact centered card. */
@media (max-width: 768px) {
  html,
  body,
  #services {
    overflow-x: hidden;
  }

  .svc2-carousel-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 36px;
    align-items: center;
  }

  .svc2-viewport {
    overflow: hidden;
    width: 100%;
    padding: 6px 0 16px;
    margin: -6px 0 -16px;
  }

  .svc2-track {
    gap: 14px;
    align-items: stretch;
  }

  .svc2-card {
    flex: 0 0 min(86vw, 344px) !important;
    width: min(86vw, 344px) !important;
    max-width: 344px;
    min-height: 0;
    border-radius: 16px;
    transform: none !important;
  }

  .svc2-card:hover {
    transform: none !important;
  }

  .svc2-card-img-wrap {
    aspect-ratio: 16 / 7.2;
    border-radius: 16px 16px 0 0;
  }

  .svc2-card-icon-badge {
    top: 10px;
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .svc2-card-icon-badge svg {
    width: 17px;
    height: 17px;
  }

  .svc2-ai-badge {
    bottom: 9px;
    inset-inline-start: 10px;
    padding: 3px 9px;
    font-size: .58rem;
  }

  .svc2-card-body {
    padding: 14px 15px 16px;
  }

  .svc2-card-title {
    font-size: .92rem;
    line-height: 1.25;
    margin-bottom: 7px;
  }

  .svc2-card-desc {
    font-size: .78rem;
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .svc2-card-tags {
    gap: 5px;
    margin-bottom: 13px;
  }

  .svc2-tag {
    padding: 3px 9px;
    font-size: .62rem;
    line-height: 1.25;
  }

  .svc2-card-footer {
    padding-top: 11px;
    gap: 5px;
  }

  .svc2-cta-text {
    font-size: .78rem;
  }

  .svc2-cta-arrow {
    font-size: .88rem;
  }

  .svc2-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .svc2-arrow--prev {
    margin-inline-end: 8px;
  }

  .svc2-arrow--next {
    margin-inline-start: 8px;
  }

  .svc2-dots {
    margin-top: 16px;
    gap: 7px;
  }

  .svc2-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
  }

  .svc2-dot--active {
    width: 19px;
  }
}

@media (max-width: 390px) {
  .svc2-carousel-wrap {
    padding: 0 30px;
  }

  .svc2-card {
    flex-basis: min(84vw, 320px) !important;
    width: min(84vw, 320px) !important;
    max-width: 320px;
  }

  .svc2-card-body {
    padding: 13px 14px 15px;
  }

  .svc2-card-img-wrap {
    aspect-ratio: 16 / 7;
  }
}

/* Mobile clipping fix: full viewport carousel, centered safe-width card. */
@media (max-width: 768px) {
  .svc2-carousel-wrap {
    display: block;
    width: 100%;
    max-width: 100vw;
    padding: 0 !important;
    margin-inline: auto;
    overflow: visible;
    box-sizing: border-box;
  }

  .svc2-viewport {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }

  .svc2-track {
    width: max-content;
    max-width: none;
    gap: 14px;
    will-change: transform;
  }

  .svc2-card {
    flex: 0 0 min(calc(100vw - 64px), 340px) !important;
    width: min(calc(100vw - 64px), 340px) !important;
    max-width: min(calc(100vw - 64px), 340px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .svc2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    margin: 0 !important;
  }

  .svc2-arrow:hover:not(:disabled) {
    transform: translateY(-50%) !important;
  }

  .svc2-arrow--prev {
    left: 8px;
    right: auto;
  }

  .svc2-arrow--next {
    right: 8px;
    left: auto;
  }

  [dir="rtl"] .svc2-arrow--prev {
    left: auto;
    right: 8px;
  }

  [dir="rtl"] .svc2-arrow--next {
    right: auto;
    left: 8px;
  }
}

@media (max-width: 390px) {
  .svc2-card {
    flex-basis: min(calc(100vw - 56px), 320px) !important;
    width: min(calc(100vw - 56px), 320px) !important;
    max-width: min(calc(100vw - 56px), 320px) !important;
  }
}

/* Mobile-only Projects section containment: no horizontal cutting or overflow. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #projects-showcase {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 48px 16px !important;
    overflow-x: hidden;
  }

  #projects-showcase .section-title,
  #projects-showcase .svc2-headline,
  #projects-showcase h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #projects-showcase .section-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.12 !important;
    padding-inline: 0 !important;
  }

  .ps-tabs {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 8px !important;
    margin: 26px 0 28px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ps-tabs::-webkit-scrollbar {
    display: none;
  }

  .ps-tab {
    flex: 0 0 auto !important;
    max-width: calc(100vw - 40px);
    white-space: nowrap !important;
    padding: 9px 14px !important;
    font-size: 0.84rem !important;
  }

  .ps-tab-content,
  .ailab-grid,
  .case-inner,
  .ps-web-wrap {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .ailab-grid,
  .case-inner,
  .ps-web-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-inline: auto !important;
    align-items: stretch !important;
  }

  .chat-mockup,
  .mock-slider,
  .ps-browser,
  .ps-web-browser {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin-inline: auto !important;
    transform: none !important;
  }

  .chat-mockup {
    border-radius: 16px !important;
  }

  .chat-body {
    max-height: 300px;
    overflow-y: auto;
  }

  .mock-slider {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .mock-slider-header,
  .mock-slide,
  .mock-slide * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .mock-slide {
    overflow-x: hidden;
  }

  .ms-table-header,
  .ms-table-row,
  .ms-reports-grid,
  .case-highlights,
  .ps-web-features {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .ms-table-header,
  .ms-table-row {
    font-size: 0.68rem !important;
    gap: 4px !important;
  }

  .ms-reports-grid,
  .case-highlights,
  .ps-web-features {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ps-browser-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
  }

  .ps-browser-viewport iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
  }

  .ps-web-content,
  .case-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .ps-web-title {
    font-size: clamp(1.35rem, 6vw, 1.8rem) !important;
    line-height: 1.22 !important;
  }

  .ps-web-desc,
  .case-content p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
  }

  #chat-fab {
    width: 50px !important;
    height: 50px !important;
    right: 14px !important;
    bottom: 14px !important;
    z-index: 80 !important;
  }

  #chat-window {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    right: 14px !important;
    bottom: 76px !important;
  }
}

@media (max-width: 430px) {
  #projects-showcase {
    padding-inline: 14px !important;
  }

  .ps-tab-content,
  .ailab-grid,
  .case-inner,
  .ps-web-wrap {
    max-width: calc(100vw - 28px) !important;
  }

  .ps-tab {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }

  .ps-browser-viewport {
    height: 200px !important;
  }
}

/* Mobile-only Featured Case Studies pagination refinement. */
@media (max-width: 540px) {
  .cs-carousel-dots {
    gap: 5px !important;
    margin-top: 22px !important;
    align-items: center !important;
  }

  .cs-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    border-radius: 999px !important;
    opacity: 0.78 !important;
    transform: none !important;
  }

  .cs-dot--active {
    width: 18px !important;
    height: 6px !important;
    min-width: 18px !important;
    min-height: 6px !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
