/* UI.SAHIL Studio - Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #f0f4ff;
  --surface: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-b: rgba(255, 255, 255, 0.92);
  --grad: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
  --grad-s: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(99, 102, 241, 0.08)
  );
  --a1: #3b82f6;
  --a2: #6366f1;
  --a3: #8b5cf6;
  --text: #1e293b;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.22);
  --sh: 0 20px 60px rgba(99, 102, 241, 0.13), 0 4px 16px rgba(0, 0, 0, 0.05);
  --sh2: 0 4px 20px rgba(99, 102, 241, 0.1);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* BLOBS */
.blob {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.b1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #c7d8fd, #dde4ff);
  top: -120px;
  left: -120px;
}
.b2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ddd6fe, #ede9fe);
  bottom: -80px;
  right: -80px;
}
.b3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #bfdbfe, #e0f2fe);
  top: 45%;
  left: 55%;
}

/* NAV */
nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 40px);
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.8rem;
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  box-shadow: var(--sh2);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}
.nav-cta:hover {
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 9rem 5% 5rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 680px;
  flex: 1.2;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.char-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  animation: charFloat 6s ease-in-out infinite;
}
@keyframes charFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 12rem;
  }
  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.hero-eye {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--grad-s);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--a2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
}
h1.hh {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 1.4rem;
}
h1.hh .hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-g {
  background: var(--grad);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}
.btn-g:hover {
  box-shadow: 0 10px 36px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}
.btn-o {
  background: var(--glass);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-o:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

/* TRUSTED */
#trusted {
  padding: 2.5rem 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-b);
  border-bottom: 1px solid var(--glass-b);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 36px;
  box-shadow: var(--sh);
}
.t-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.mq-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: mq 30s linear infinite;
  width: max-content;
}
.mq-track:hover {
  animation-play-state: paused;
}
@keyframes mq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.cl {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.45;
  white-space: nowrap;
  filter: grayscale(1);
}

/* SECTION */
.sec {
  padding: 7rem 5%;
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 36px;
}
.stag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.stitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.ssub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.75;
}
.gc {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-b);
  border-radius: 24px;
  box-shadow: var(--sh);
}

/* SERVICES */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.svc-card {
  padding: 2.2rem 1.8rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border-radius: 24px;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.15);
}
.c-ico {
  width: 64px;
  height: 64px;
  background: var(--grad-s);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--a2);
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.c-ico:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.12);
}
.svc-ico {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  overflow: hidden;
}
.svc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.svc-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.svc-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.stg {
  font-size: 0.7rem;
  color: var(--a2);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}

/* PORTFOLIO FILTERS */
.p-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0 2rem;
  align-items: center;
  justify-content: center;
}
.p-search-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}
.p-search {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  border-radius: 50px;
  border: 1px solid var(--glass-b);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.p-search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.p-search-ico {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.5;
  pointer-events: none;
}
.f-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.f-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--glass-b);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.f-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transform: translateY(-2px);
}
.f-tab.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* PORTFOLIO */
.pg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pi {
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0);
}
.pi.hidden {
  display: none;
}
.pi.anim-out {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

.pi {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--glass-b);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.pi:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.pm {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.m1 {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  height: 340px;
}
.m2 {
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  height: 220px;
}
.m3 {
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  height: 220px;
}
.po {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.pi:hover .po {
  opacity: 1;
}
.cb {
  background: var(--grad);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(8px);
  transition: transform 0.3s;
}
.pi:hover .cb {
  transform: translateY(0);
}
.pinfo {
  padding: 1.2rem 1.4rem;
}
.pinfo h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ptags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pt {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(100, 116, 139, 0.07);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

/* TECH */
.tg {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.ti {
  padding: 1.3rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  border-radius: 18px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: default;
}
.ti:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.14);
}
.te {
  font-size: 1.7rem;
}
.tn {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* TESTIMONIALS */
.teg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.tec {
  padding: 2rem;
}
.qm {
  font-size: 3rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}
.tb {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.ta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.an {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.ar {
  font-size: 0.77rem;
  color: var(--muted);
}
.stars {
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA */
#fcta {
  padding: 8rem 5%;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff, #ede9fe);
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto 20px;
  border-radius: 36px;
}
#fcta h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  color: var(--text);
}
#fcta h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#fcta p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* FOOTER */
footer {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-b);
  padding: 3rem 5% 2rem;
  position: relative;
  z-index: 1;
}
.fm {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  margin-bottom: 2.5rem;
}

.fb {
  max-width: 1300px;
  margin: 0 auto;
}

.flogo {
  display: inline-block;
  text-decoration: none;
}
.flogo img {
  height: 42px;
  width: auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
}
.flogo:hover img {
  opacity: 0.8;
}

.fl p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.5rem;
}
.fc {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.fc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}
.fc a:hover {
  color: var(--text);
}
.fr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}
.sr {
  display: flex;
  gap: 0.6rem;
}
.sb {
  width: 36px;
  height: 36px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.sb:hover {
  border-color: var(--a1);
  color: var(--a2);
  background: rgba(255, 255, 255, 0.9);
}
.fe {
  font-size: 0.82rem;
  color: var(--muted);
}
.fb {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.79rem;
  color: var(--muted);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: fabp 2.5s ease-in-out infinite;
}
.fab:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}
@keyframes fabp {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  }
  50% {
    box-shadow:
      0 8px 40px rgba(99, 102, 241, 0.65),
      0 0 0 12px rgba(99, 102, 241, 0.07);
  }
}

/* =============================================
 MODAL OVERLAY
============================================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(240, 244, 255, 0.55);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.on {
  opacity: 1;
  pointer-events: all;
}

/* ── CHOOSE MODAL ── */
.choose-box {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow:
    0 32px 80px rgba(99, 102, 241, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.07);
  padding: 2.4rem 2rem;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.overlay.on .choose-box {
  transform: translateY(0) scale(1);
}
.choose-box h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.choose-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.choose-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cc {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  padding: 1.5rem 1rem;
  border-radius: 20px;
  background: var(--grad-s);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  text-align: center;
}
.cc:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}
.cc-ico {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}
.cc h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cc p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: none;
  color: var(--a2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-x:hover {
  background: rgba(99, 102, 241, 0.2);
}
.choose-box {
  position: relative;
}

/* ── CHAT WINDOW ── */
.chat-win {
  width: 100%;
  max-width: 480px;
  height: min(680px, 90vh);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow:
    0 32px 80px rgba(99, 102, 241, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.overlay.on .chat-win {
  transform: translateY(0) scale(1);
}

/* Chat header */
.ch {
  background: var(--grad);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ch-l {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ch-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ch-lot {
  width: 42px;
  height: 42px;
}
.ch-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.ch-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ch-sub::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}
.ch-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ch-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Gemini badge */
.gemini-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.gem-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.gem-ico svg {
  width: 18px;
  height: 18px;
}
.gem-txt {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Progress */
.cprog {
  padding: 0.75rem 1.2rem 0.2rem;
  flex-shrink: 0;
}
.cpbar {
  height: 3px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50px;
  overflow: hidden;
}
.cpfill {
  height: 100%;
  background: var(--grad);
  border-radius: 50px;
  transition: width 0.5s ease;
}
.cplab {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
  text-align: right;
}

/* Messages */
.msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}
.msgs::-webkit-scrollbar {
  width: 4px;
}
.msgs::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50px;
}

.msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px);
  animation: mi 0.4s forwards;
}
@keyframes mi {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.msg.bot {
  flex-direction: row;
}
.msg.user {
  flex-direction: row-reverse;
}
.mav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  font-weight: 700;
}
.mb {
  max-width: 82%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  border-radius: 18px;
}
.msg.bot .mb {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-bottom-left-radius: 4px;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.msg.user .mb {
  background: var(--grad);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Typing */
.typ {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
  margin-bottom: 0.2rem;
}
.typ.on {
  opacity: 1;
}
.tdots {
  display: flex;
  gap: 4px;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}
.tdots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a2);
  display: block;
  animation: tb 1.2s ease-in-out infinite;
}
.tdots span:nth-child(2) {
  animation-delay: 0.2s;
}
.tdots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes tb {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Date separator */
.date-sep {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 50px;
  align-self: center;
  margin: 0.2rem 0;
}

/* Input area */
.cinput {
  padding: 0.8rem 1rem 1rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  animation: mi 0.4s 0.25s forwards;
}
.chip {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  color: var(--a2);
  padding: 0.48rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.07);
}
.chip:hover,
.chip.sel {
  background: var(--grad);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

/* Free input */
.tiw {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  animation: mi 0.4s 0.25s forwards;
}
.tinp {
  flex: 1;
  padding: 0.72rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.tinp:focus {
  border-color: var(--a2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.tsnd {
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.72rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition:
    box-shadow 0.2s,
    transform 0.15s;
  white-space: nowrap;
}
.tsnd:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Simple chat input (always visible) */
.siw {
  display: flex;
  gap: 0.5rem;
}
.sinp {
  flex: 1;
  padding: 0.72rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.sinp:focus {
  border-color: var(--a2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.ssnd {
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.72rem 1.1rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.ssnd:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Success */
.succ {
  text-align: center;
  padding: 2rem 1.8rem 1.8rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.succ.on {
  display: flex;
}
.sl {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
}
.succ h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.succ p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}
.db {
  background: var(--grad);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
  margin-top: 1.5rem;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.db:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Scrollbar for body */
body::-webkit-scrollbar {
  width: 5px;
}
body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tg {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  nav {
    top: 10px;
    padding: 0.75rem 1.2rem;
  }
  .nav-links {
    display: none;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .pg {
    grid-template-columns: 1fr;
  }
  .teg {
    grid-template-columns: 1fr;
  }
  .tg {
    grid-template-columns: repeat(4, 1fr);
  }
  .fm {
    flex-direction: column;
  }
  .fr {
    align-items: flex-start;
  }
  .chat-win {
    max-width: 100%;
    height: min(660px, 92vh);
    border-radius: 22px;
  }
  .choose-box {
    padding: 2rem 1.4rem;
  }
  .choose-cards {
    gap: 0.75rem;
  }
}
@media (max-width: 420px) {
  .tg {
    grid-template-columns: repeat(2, 1fr);
  }
  .overlay {
    padding: 0.5rem;
  }
  .chat-win {
    height: 98vh;
    border-radius: 18px;
  }
}
