/* =========================================================
   AI World India — Custom Styles
   (Utility-first via Tailwind; this file covers what
   utilities can't express cleanly: keyframes, orb effects,
   carousel skinning, scrollbar, etc.)
========================================================= */

html { scroll-behavior: smooth; }

/* -------------------------------------------------------
   Global overflow guard — stops any absolutely positioned
   decorative element (orb rings, floating dots, gradients)
   from ever widening the page past 100vw on mobile, which
   is what causes browsers to auto-zoom the whole layout out.
--------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

::selection { background: #2F6BFF; color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #EAF3FF; }
::-webkit-scrollbar-thumb { background: #2F6BFF; border-radius: 10px; }

/* Sticky header shadow state (toggled via JS) */
#site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(11,27,58,0.15); }

/* Active nav link underline */
.nav-link { position: relative; }
.nav-link.active { color: #2F6BFF; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,#2F6BFF,#7C4DFF);
  border-radius: 2px;
}

/* =========================================================
   HERO — Neural / AI orb visual
========================================================= */
.ai-orb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
@media (max-width: 639.98px) {
  .ai-orb-wrap { max-width: 240px; }
}

.ai-orb-core {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #6C9CFF 0%, #2F6BFF 45%, #14206B 100%);
  box-shadow: 0 0 90px rgba(47,107,255,0.55), inset 0 0 60px rgba(255,255,255,0.15);
  animation: orbPulse 5s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 90px rgba(47,107,255,0.55), inset 0 0 60px rgba(255,255,255,0.15); }
  50%      { transform: scale(1.035); box-shadow: 0 0 130px rgba(124,77,255,0.55), inset 0 0 80px rgba(255,255,255,0.2); }
}

.ai-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(47,107,255,0.35);
  animation: spin 22s linear infinite;
}
.ai-orb-ring.ring2 { inset: -6%; border-color: rgba(124,77,255,0.25); animation-duration: 32s; animation-direction: reverse; }

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

.ai-orb-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(255,255,255,0.6);
}

.ai-node {
  position: absolute;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(124,77,255,0.8);
  animation: float 6s ease-in-out infinite;
}

/* =========================================================
   Section backgrounds
========================================================= */
.bg-grid {
  background-image:
    linear-gradient(rgba(47,107,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.section-glow {
  background: radial-gradient(circle at 85% 15%, rgba(124,77,255,0.10), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(47,107,255,0.10), transparent 45%);
}

/* =========================================================
   Cards
========================================================= */
.stat-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(47,107,255,0.25); }

.category-card {
  transition: all .3s ease;
}
.category-card:hover {
  background: linear-gradient(135deg,#2F6BFF,#7C4DFF);
  transform: translateY(-4px);
}
.category-card:hover .cat-icon,
.category-card:hover .cat-label { color: #fff !important; }
.category-card:hover .cat-icon { background: rgba(255,255,255,0.15); }

/* =========================================================
   Countdown boxes
========================================================= */
.countdown-box {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
}

/* =========================================================
   Swiper customization
========================================================= */
.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 9px; height: 9px;
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: #fff; width: 26px; border-radius: 6px; }

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after { font-size: 16px; font-weight: 700; }

/* On phones/tablets the hero stacks into one tall column, so the
   default vertically-centred arrows land mid-way through the text
   and overlap it. Hide them below lg and rely on swipe + dots instead. */
@media (max-width: 1023.98px) {
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev { display: none !important; }
}

.logo-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }

.testi-swiper .swiper-pagination-bullet-active { background: #2F6BFF; }
.gallery-swiper .swiper-pagination-bullet-active { background: #2F6BFF; }

/* =========================================================
   Marquee (sponsor strip fallback / accent)
========================================================= */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile sidebar open state helpers (JS toggles classes) */
body.no-scroll { overflow: hidden; }
