/* =========================================================
   TECH DOLLEZ — Multi-page layer
   Page headers · nav tools · home teaser · services explorer · audit checks
   Made by Arjun Ahirwar
   ========================================================= */

/* smooth cross-page transitions in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.no-preload .preloader { display: none; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1001; padding: 10px 16px; border-radius: 12px;
  background: var(--violet); color: #fff; font-weight: 600; transition: top .3s;
}
.skip-link:focus { top: 16px; }

/* ---------- Nav: active page, tools ---------- */
.nav__links a.active { color: var(--text); background: var(--surface-2); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: translateX(-50%);
}
.nav__mobile-tools { display: none; }
.nav__tools { gap: 6px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.icon-btn:hover { border-color: var(--border-2); transform: translateY(-1px) rotate(-8deg); }
#themeToggle .i-moon { display: none; }
#themeToggle[data-mode="light"] .i-sun { display: none; }
#themeToggle[data-mode="light"] .i-moon { display: block; }
.icon-btn--cz svg { color: var(--violet); }
.icon-btn__dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink); border: 2px solid var(--bg); animation: ping 2s infinite;
}
.cz-seen .icon-btn__dot { display: none; }

@media (max-width: 1320px) { .cmdk-btn { display: none; } }
@media (max-width: 1180px) { .nav__cta { display: none; } }
@media (max-width: 1040px) { .lang--bar { display: none; } }
@media (min-width: 901px) and (max-width: 1040px) { .nav__links a { padding: 8px 10px; font-size: 13.5px; } }
@media (max-width: 900px) {
  .nav__links a.active { background: none; }
  .nav__links a.active::after { bottom: 2px; width: 24px; }
  .nav__mobile-tools {
    display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; width: min(320px, 100%);
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease) .24s, transform .5s var(--ease) .24s;
  }
  .nav__links.open .nav__mobile-tools { opacity: 1; transform: none; }
  .nav__links .nav__mobile-tools a, .nav__links .nav__mobile-tools button {
    opacity: 1; transform: none; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  }
  .nav__mobile-cz, .nav__links .nav__mobile-wa {
    width: 100%; padding: 14px 18px; border-radius: 16px; text-align: center; display: block;
  }
  .nav__mobile-cz { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
  .nav__links .nav__mobile-wa { background: #25d366; color: #fff; }
  .nav__mobile-tools .lang { font-size: 14px; }
  .nav__mobile-tools .lang span { padding: 8px 16px; }
}
@media (max-width: 400px) {
  .nav, .nav.scrolled { padding-left: 10px; padding-right: 10px; }
  .nav__inner { padding-left: 12px; gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 160px 0 70px; overflow: hidden; }
.page-hero--short { padding-bottom: 40px; }
.page-hero--tight { padding-bottom: 0; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__inner > * { animation: phIn .9s var(--ease) both; }
.page-hero__inner > *:nth-child(2) { animation-delay: .06s; }
.page-hero__inner > *:nth-child(3) { animation-delay: .12s; }
.page-hero__inner > *:nth-child(4) { animation-delay: .18s; }
.page-hero__inner > *:nth-child(5) { animation-delay: .24s; }
@keyframes phIn { from { opacity: 0; transform: translateY(26px); } }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.page-hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 7vw, 96px);
  line-height: 1.0; letter-spacing: -.045em; max-width: 15ch;
}
.page-hero__desc { margin-top: 22px; max-width: 640px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); }
.page-hero__ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero__jump { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero__jump a {
  padding: 10px 16px; border-radius: 100px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
.page-hero__jump a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.page-hero__art { position: absolute; z-index: 0; right: max(-140px, calc((100vw - var(--container)) / 2 - 140px)); top: 70px; width: clamp(300px, 42vw, 560px); aspect-ratio: 1; pointer-events: none; }
.page-hero__art i { position: absolute; border-radius: 50%; }
.page-hero__art i:nth-child(1) {
  inset: 14%; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--amber), var(--cyan));
  filter: blur(60px); opacity: .42; animation: spin 18s linear infinite;
}
.page-hero__art i:nth-child(2) { inset: 4%; border: 1px dashed var(--border-2); animation: spin 40s linear infinite; }
.page-hero__art i:nth-child(3) {
  width: 22%; height: 22%; left: 18%; top: 22%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--violet) 45%, transparent 72%);
  opacity: .85; animation: phFloat 7s ease-in-out infinite;
}
@keyframes phFloat { 50% { transform: translate(30px, 24px) scale(1.08); } }
.page-hero + .section, .page-hero + .process { padding-top: 40px; }
.page-hero--tight + .section { padding-top: 30px; }
.page-hero + .showcase { padding-top: 60px; }

/* ---------- Shared bits ---------- */
.section__more { margin-top: 44px; text-align: center; }
.section__head--split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  max-width: none; text-align: left; margin: 0 0 54px;
}
.card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-family: var(--font-display);
  font-weight: 600; font-size: 14.5px; color: var(--accent);
}
.card__link span:last-child { transition: transform .4s var(--ease); }
.card:hover .card__link span:last-child { transform: translateX(5px); }
.card { cursor: pointer; }

/* ---------- Home: playground teaser ---------- */
.teaser { padding-top: 110px; padding-bottom: 90px; }
.teaser__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.teaser__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.teaser__steps li {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500;
}
.teaser__steps b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; color: #fff; background: var(--grad);
}
.teaser__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.teaser__preview { position: relative; display: block; perspective: 1600px; }
.teaser__preview .pv-frame { transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.teaser__preview:hover .pv-frame { transform: translateY(-6px) rotateX(3deg); }
.pv--teaser { min-height: 400px; pointer-events: none; }
.teaser__badge {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  background: var(--panel-bg, rgba(14, 14, 26, .95)); border: 1px solid var(--border-2); color: var(--text);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.teaser__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }

/* ---------- Home: featured work ---------- */
.work--home .work__grid { margin-top: 0; }

/* ---------- Work page ---------- */
.work__filters--top { margin: 0 0 40px; justify-content: flex-start; }

/* ---------- Services explorer ---------- */
.svc__wrap { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.svc__tabs {
  position: sticky; top: 104px; display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--border);
}
.svc__tab {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 18px; text-align: left;
  color: var(--muted); transition: background .35s, color .3s, box-shadow .35s;
}
.svc__tab:hover { background: var(--surface-2); color: var(--text); }
.svc__tab.active {
  color: var(--text);
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent 85%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.svc__ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  transition: transform .5s var(--ease);
}
.svc__tab.active .svc__ico { transform: rotate(-8deg) scale(1.06); }
.svc__ico svg { width: 20px; height: 20px; }
.svc__tabtxt b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; }
.svc__tabtxt small { display: block; font-size: 12.5px; color: var(--dim); }
.svc__arrow { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); color: var(--accent); }
.svc__tab.active .svc__arrow { opacity: 1; transform: none; }

.svc__panel {
  display: none; position: relative; overflow: hidden; padding: clamp(24px, 3.4vw, 42px); border-radius: 30px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 11%, transparent), var(--surface) 60%);
  border: 1px solid var(--border-2);
}
.svc__panel.active { display: block; animation: svcIn .55s var(--ease); }
@keyframes svcIn { from { opacity: 0; transform: translateY(14px); } }
.svc__panel::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); pointer-events: none;
}
.svc__panel > * { position: relative; }
.svc__phead { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.svc__big {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 40px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.svc__big svg { width: 28px; height: 28px; }
.svc__phead h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.svc__phead p { color: var(--muted); margin-top: 10px; font-size: 16.5px; max-width: 62ch; }
.svc__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.svc__box { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.svc__lbl { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 600; }
.svc__chips + .svc__lbl { margin-top: 20px; }
.svc__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc__list li { position: relative; padding-left: 30px; font-size: 15px; }
.svc__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent);
}
.svc__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.svc__chips span { font-size: 13px; padding: 6px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); }
.svc__chips--tech span { font-family: "JetBrains Mono", monospace; font-size: 12px; }
.svc__time {
  display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.svc__time span { font-size: 20px; }
.svc__time small { display: block; font-size: 12px; color: var(--dim); }
.svc__time b { font-family: var(--font-display); font-size: 15.5px; }
.svc__ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.svc__extra { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-left: 6px; }
.svc__extra span:last-child { display: inline-block; transition: transform .4s var(--ease); }
.svc__extra:hover span:last-child { transform: translateX(5px); }

/* ---------- Audit page checks ---------- */
.checks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.check {
  padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .3s;
}
.check:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.check__ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.check b { font-family: var(--font-display); font-size: 19px; display: block; margin-bottom: 8px; }
.check p { color: var(--muted); font-size: 14.5px; }
.audit { padding-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .teaser__grid { grid-template-columns: 1fr; gap: 50px; }
  .svc__wrap { grid-template-columns: 290px 1fr; }
  .checks__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-hero { padding-top: 130px; }
  .page-hero__art { right: -160px; top: 40px; opacity: .7; }
  .svc__wrap { grid-template-columns: 1fr; gap: 18px; }
  .svc__tabs {
    position: relative; top: 0; flex-direction: row; overflow-x: auto; padding: 6px; border-radius: 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tab { flex-shrink: 0; padding: 9px 14px 9px 9px; gap: 10px; border-radius: 14px; }
  .svc__tabtxt small, .svc__arrow { display: none; }
  .svc__ico { width: 32px; height: 32px; border-radius: 10px; }
  .svc__ico svg { width: 16px; height: 16px; }
  .svc__tabtxt b { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 116px; padding-bottom: 50px; }
  .page-hero--short { padding-bottom: 30px; }
  .page-hero__title { font-size: clamp(38px, 11vw, 56px); }
  .page-hero__art { width: 300px; right: -170px; top: 30px; opacity: .55; }
  .page-hero__ctas .btn { flex: 1; }
  .teaser { padding-top: 80px; padding-bottom: 70px; }
  .teaser__ctas .btn { flex: 1; }
  .pv--teaser { min-height: 0; }
  .section__head--split { margin-bottom: 36px; }
  .section__head--split .btn { width: 100%; }
  .svc__cols { grid-template-columns: 1fr; }
  .svc__phead { flex-direction: column; gap: 16px; }
  .svc__big { width: 54px; height: 54px; border-radius: 17px; }
  .svc__ctas .btn { flex: 1; }
  .svc__extra { width: 100%; text-align: center; margin: 6px 0 0; }
  .checks__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Phones: less scrolling — compact grids + swipe rows
   ========================================================= */
.swipe-hint { display: none; }
@media (max-width: 900px) {
  /* process: horizontal swipe instead of a tall stack */
  .process__viewport { overflow-x: auto !important; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 4px 24px 8px !important; scrollbar-width: none; }
  .process__viewport::-webkit-scrollbar { display: none; }
  .process__track { flex-direction: row !important; width: max-content !important; gap: 14px; }
  .step { flex: 0 0 min(78vw, 360px) !important; min-height: 300px; scroll-snap-align: center; }
  .process .swipe-hint { display: block; }
}
@media (max-width: 640px) {
  .swipe-hint { display: block; text-align: center; margin-top: 14px; font-size: 18px; letter-spacing: .4em; color: var(--dim); animation: swipeHint 2.4s ease-in-out infinite; }
  @keyframes swipeHint { 50% { transform: translateX(10px); opacity: .5; } }

  /* home services: compact 2-column tiles */
  .services .services__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .services .card { padding: 20px 16px 18px; border-radius: 20px; }
  .services .card p, .services .card__tags { display: none; }
  .services .card h3 { font-size: 16px; margin-bottom: 0; }
  .services .card__icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
  .services .card__icon svg { width: 22px; height: 22px; }
  .services .card__link { margin-top: 10px; font-size: 13px; }

  /* projects: 2-column, feature cards full width, details live in the popup */
  .work__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wk { border-radius: 20px; }
  .wk.feature { grid-column: span 2; }
  .wk__thumb, .wk.feature .wk__thumb { height: 120px; }
  .wk.feature .wk__thumb { height: 170px; }
  .wk__body { padding: 14px 14px 16px; gap: 4px; }
  .wk__body p, .wk__tags, .wk__open { display: none; }
  .wk h3 { font-size: 15.5px; line-height: 1.25; }
  .wk__cat { font-size: 10px; letter-spacing: .12em; }
  .wk__live, .wk__concept { top: 10px; left: 10px; font-size: 10px; padding: 4px 8px; }
  .wk .mk { padding: 12px 12px 0; }

  /* bento + plans: swipe rows */
  .bento, .plans__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -24px; padding: 4px 24px 16px; scrollbar-width: none;
  }
  .bento::-webkit-scrollbar, .plans__grid::-webkit-scrollbar { display: none; }
  .bento .tile { flex: 0 0 86%; scroll-snap-align: center; grid-column: auto !important; }
  .bento .tile--code .code { min-height: 230px; }
  .plans__grid { padding-top: 22px; }
  .plans__grid .plan { flex: 0 0 86%; scroll-snap-align: center; }
}

/* Devanagari breaks apart with wide letter-spacing — keep Hindi labels tight */
html[lang="hi"] :is(.eyebrow, .cz__label, .svc__lbl, .ctrl__label, .pl-sub, .plan__name, .wk__cat, .modal__cat, .spot__hint, .hero__scroll, .preloader__count, .marquee span) { letter-spacing: .02em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
