/* ============================================================
   ADVERSO — homepage styles v6
   (loads on top of style.css)
   ============================================================ */

/* ---------------- Hero ---------------- */
.home-hero { position: relative; padding: 92px 0 84px; overflow: hidden; }
.home-hero .inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 22px 0 20px; }
.home-hero h1 .accent { color: var(--azure); }
.home-hero .sub { color: var(--text-secondary); font-size: 17px; max-width: 520px; }
.home-hero .actions { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.home-hero .actions .btn { padding: 15px 28px; font-size: 15px; }
.hero-badges { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--silver); font-weight: 500; }
.hero-badges i { color: #39d98a; font-style: normal; font-weight: 700; }

/* growth snapshot card — silver frame */
.hero-card {
  position: relative; border-radius: 22px;
  border: 1px solid var(--silver-dim);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  padding: 32px;
  box-shadow: 0 24px 60px rgba(20,40,90,.12);
}
.hero-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(135deg, rgba(11,164,255,.5), rgba(100,116,139,.28) 40%, transparent 60%, rgba(11,164,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero-card h3 { font-size: 15px; margin-bottom: 18px; color: var(--silver); font-weight: 600; }
.hc-row { padding: 13px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.hc-row:last-of-type { border-bottom: none; }
.hc-row b { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.hc-row .lbl { font-size: 13px; color: var(--text-secondary); }
.hc-row .up { color: #39d98a; font-size: 12.5px; font-weight: 600; white-space: nowrap; padding-top: 6px; }
.hc-bar { height: 7px; border-radius: 10px; background: rgba(100,116,139,.16); margin-top: 7px; overflow: hidden; width: 100%; }
.hc-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--azure), #3ec1ff); width: 0; transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.in .hc-bar i { width: var(--w); }
.hc-row > div { flex: 1; }

/* ---------------- Trust strip — silver band ---------------- */
.trust-strip {
  border-top: 1px solid var(--silver-dim); border-bottom: 1px solid var(--silver-dim);
  background: linear-gradient(180deg, #ffffff, #eef2f8);
  padding: 24px 0;
}
.trust-strip .inner { display: flex; justify-content: center; gap: 52px; flex-wrap: wrap; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-muted); }
.trust-strip b {
  font-weight: 800; margin-right: 7px; font-size: 17px;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------------- Section heads (centered) ---------------- */
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { color: var(--text-secondary); margin-top: 14px; }

/* ---------------- Services grid ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-grid .card { padding: 26px 22px; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }

/* ---------------- Testimonials ---------------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 26px; transition: .3s;
}
.t-card:hover { border-color: var(--silver-dim); transform: translateY(-4px); }
.t-card .stars { color: #ffc531; letter-spacing: 3px; font-size: 15px; margin-bottom: 14px; }
.t-card p { font-size: 14px; color: var(--text-secondary); font-style: italic; }
.t-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.t-card .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #e8edf5, #9fa9bc);
  color: #10141c;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.t-card .who b { display: block; font-size: 14px; font-family: var(--font-display); color: var(--silver-bright); }
.t-card .who span { font-size: 12.5px; color: var(--text-muted); }

/* ---------------- Journey ---------------- */
.journey { background: #eef2f8; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.j-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.j-grid h2 { margin: 16px 0; }
.j-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.j-stat { border: 1px solid var(--silver-dim); border-radius: 14px; background: var(--surface); padding: 20px; text-align: center; }
.j-stat b {
  font-family: var(--font-display); font-size: 28px; font-weight: 800; display: block;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.j-stat span { font-size: 12.5px; color: var(--text-secondary); }
.t-line { position: relative; padding-left: 30px; }
.t-line::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--silver), rgba(11,164,255,.6), rgba(201,210,224,.06)); }
.t-item { position: relative; padding: 0 0 30px 22px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ''; position: absolute; left: -30px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  box-sizing: border-box;
  background: #ffffff; border: 3px solid var(--silver);
  box-shadow: 0 0 10px rgba(100,116,139,.35);
}
/* Barik neon-blue light — line ke upar se last dot tak, loop mein */
.t-line::after {
  content: '';
  position: absolute; left: 6px; width: 4px; height: 46px;
  border-radius: 4px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #38c6ff 35%, #d4f0ff 50%, #38c6ff 65%, transparent);
  box-shadow: 0 0 10px 2px rgba(56,198,255,.9), 0 0 26px 7px rgba(11,164,255,.5);
  animation: tlBeam 3s ease-in-out infinite;
}
@keyframes tlBeam {
  0%   { top: -46px; opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .t-line::after { display: none; } }
.t-item .yr { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-size: 14px; letter-spacing: .06em; }
.t-item h3 { font-size: 17px; margin: 4px 0 5px; }
.t-item p { font-size: 14px; color: var(--text-secondary); }

/* ---------------- Skills (homepage) ---------------- */
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 44px; max-width: 900px; margin: 0 auto; }
.sk .top { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-bottom: 9px; }
.sk .top span {
  font-weight: 800;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.sk .bar { height: 9px; border-radius: 10px; background: rgba(100,116,139,.15); overflow: hidden; }
.sk .bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #0146ad, var(--azure), #3ec1ff); width: 0; transition: width 1.5s cubic-bezier(.16,1,.3,1); }
.in .sk .bar i { width: var(--w); }
.cert-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.cert-chip { border: 1px solid var(--silver-dim); background: var(--surface); border-radius: 999px; padding: 9px 20px; font-size: 13px; font-weight: 600; color: var(--silver); }
.cert-chip b { color: #39d98a; margin-right: 6px; }

/* ---------------- Pricing (homepage) ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative; transition: .3s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--silver-dim); }
.plan.pop {
  border-color: rgba(11,164,255,.55);
  background: linear-gradient(170deg, rgba(11,164,255,.12), var(--surface) 55%);
  box-shadow: 0 20px 60px rgba(11,164,255,.15);
}
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--azure), #0668d8);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap; color: #fff;
}
.plan h3 { font-size: 19px; }
.plan .for { font-size: 13px; color: var(--text-muted); margin: 4px 0 18px; }
.plan .price {
  font-family: var(--font-display); font-weight: 800; font-size: 32px; margin-bottom: 2px;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.plan .price small { font-size: 14px; -webkit-text-fill-color: var(--text-secondary); font-weight: 500; }
.plan .per { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.plan ul li { font-size: 14px; color: var(--text-secondary); display: flex; gap: 10px; }
.plan ul li::before { content: '✓'; color: #39d98a; font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------------- Portfolio teaser ---------------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf {
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; background: var(--surface); transition: .3s; display: block;
}
.pf:hover { transform: translateY(-5px); border-color: var(--silver-dim); }
.pf .thumb {
  height: 170px; display: flex; align-items: center; justify-content: center; font-size: 42px;
  background:
    radial-gradient(300px 140px at 70% 0%, rgba(232,237,245,.12), transparent 60%),
    linear-gradient(150deg, rgba(11,164,255,.2), rgba(1,70,173,.26));
  border-bottom: 1px solid var(--border);
}
.pf .body { padding: 20px 22px; }
.pf .cat { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.pf h3 { font-size: 16.5px; margin: 7px 0 5px; }
.pf p { font-size: 13.5px; color: var(--text-secondary); }
.pf .res { margin-top: 12px; font-size: 13px; font-weight: 600; color: #39d98a; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .home-hero .inner, .j-grid { grid-template-columns: 1fr; }
  .t-grid, .plan-grid, .pf-grid { grid-template-columns: 1fr; }
  .sk-grid { grid-template-columns: 1fr; }
  .trust-strip .inner { gap: 26px; }
}

/* ---------------- Client logos strip ---------------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 12px 22px;
  border: 1px solid var(--silver-dim);
  transition: transform .25s, box-shadow .25s;
}
.logo-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,40,90,.14); }
.logo-chip img { height: 38px; width: auto; object-fit: contain; display: block; }

/* ---------------- SVG icon sizing (homepage) ---------------- */
.eyebrow svg { width: 14px; height: 14px; }
.hero-card h3 svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--blue); margin-right: 4px; }
.pf .thumb svg { width: 46px; height: 46px; color: var(--silver-bright); opacity: .9; }

/* ---------------- Video banner (nav ke neeche, koi overlay content nahi) ---------------- */
/* Koi fixed box-shape (aspect-ratio) yahan set NAHI ki — box khud video ke
   apne intrinsic ratio ke hisab se ban'ta hai (width:100%, height:auto), is
   liye jo bhi video upload ho (16:9, 9:16 vertical, 4:3, 1:1, kuch bhi) wo
   bilkul apne asal shape mein dikhti hai — kabhi crop nahi hoti, letterbox
   bhi nahi banta, box hamesha video jitna hi hota hai.
   .video-banner-wrap page ke standard content width (.wrap: max 1180px) tak
   center karta hai taake box full-bleed edge-to-edge wide-screen na bane.
   Trade-off: agar koi bohot tall/portrait video upload ho, to banner bhi
   utna hi tall ban jayega (chunke crop na hona zyada zaroori hai) — behtar
   result ke liye landscape video hi recommended hai, lekin koi bhi ratio
   upload karne se site nahi tootegi. */
.video-banner-wrap { margin: 28px auto 8px; }
.video-banner {
  position: relative; width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--silver-dim);
  background: var(--bg);
  line-height: 0;
}
.video-banner video { width: 100%; height: auto; display: block; }
/* Play/pause toggle — visitors ko video ruk kane ka option, bottom-right corner mein. */
.video-banner-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,17,32,.6); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; line-height: 0;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.video-banner-toggle:hover { background: rgba(11,17,32,.85); transform: scale(1.06); }
.video-banner-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.video-banner-toggle .i-play { margin-left: 2px; } /* play triangle optically re-center */
.home-hero { padding: 76px 0 84px; }

/* silver rebalance (homepage) */
.sk .bar i { background: linear-gradient(90deg, var(--azure) 0%, #3ec1ff 100%); }
.t-item:nth-child(even)::before { border-color: var(--blue); box-shadow: 0 0 12px rgba(62,193,255,.45); }
.t-item:nth-child(even) .yr { color: var(--silver); }

/* ---------------- ADVERSO intro splash (website kholte hi) ---------------- */
#intro { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#intro .panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--bg); transition: transform 1s cubic-bezier(.76,0,.24,1); }
#intro .panel.t { top: 0; }
#intro .panel.b { bottom: 0; }
#intro.done .panel.t { transform: translateY(-101%); }
#intro.done .panel.b { transform: translateY(101%); }
#intro .stage { position: relative; z-index: 2; width: min(520px, 78vw); transition: opacity .5s, transform .6s; }
#intro.done .stage { opacity: 0; transform: scale(1.06); }
#intro .logo-wrap { position: relative; overflow: hidden; }
#intro .logo-wrap img {
  width: 100%; height: auto; opacity: 0; transform: scale(.84);
  filter: blur(14px) drop-shadow(0 0 30px rgba(11,164,255,0));
  animation: introLogo 1.25s cubic-bezier(.2,.7,.2,1) .15s forwards;
}
@keyframes introLogo {
  60% { filter: blur(0) drop-shadow(0 0 32px rgba(11,164,255,.5)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 20px rgba(201,210,224,.35)); }
}
#intro .shine {
  position: absolute; top: 0; bottom: 0; width: 36%; left: -40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); mix-blend-mode: screen;
  animation: introShine 1s ease 1.1s forwards;
}
@keyframes introShine { to { left: 120%; } }
#intro .underline {
  margin: 24px auto 0; width: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--silver), var(--azure), var(--silver), transparent);
  box-shadow: 0 0 16px rgba(201,210,224,.7);
  animation: introLine .9s cubic-bezier(.2,.7,.2,1) .85s forwards;
}
@keyframes introLine { to { width: 78%; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* ============================================================
   AUTO DARK MODE (homepage) — SIRF MOBILE (max-width: 820px).
   Desktop/PC hamesha light; sirf phone dark mode par dark.
   ============================================================ */
@media (prefers-color-scheme: dark) and (max-width: 820px) {
  .hero-card { box-shadow: 0 30px 80px rgba(2,8,24,.5); }
  .hc-bar { background: rgba(201,210,224,.14); }
  .trust-strip { background: linear-gradient(180deg, rgba(201,210,224,.05), rgba(14,21,40,.9)); }
  .journey { background: #0e1528; }
  .t-item::before { background: #0e1528; box-shadow: 0 0 12px rgba(201,210,224,.45); }
  .sk .bar { background: rgba(201,210,224,.13); }
}
