/* ==========================================================================
   Jain Shakti — Modern Cultural Design System & Stylesheet
   Typography: Plus Jakarta Sans & Noto Sans Gujarati
   Theme: Royal Indic Navy, Luminous Saffron, Sacred Emerald & Radiant Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --navy: #132a68;
  --navy-deep: #091536;
  --navy-700: #1a398c;
  --navy-800: #0d1e4c;
  --saffron: #f5820a;
  --saffron-400: #ff9d3b;
  --saffron-500: #e67600;
  --leaf: #12873f;
  --leaf-light: #16a34a;
  --gold: #d4af37;
  --gold-light: #f6c042;
  --maroon: #7a1734;
  --cream: #faf7f0;
  --cream-card: #ffffff;
  --text-main: #0c1d4d;
  --text-muted: rgba(12, 29, 77, 0.72);
  --border-subtle: rgba(19, 42, 104, 0.08);
}

/* ---------- Global Baseline ---------- */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Gujarati', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[lang="gu"], .gu-text {
  font-family: 'Noto Sans Gujarati', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.01em;
}

/* Custom Selection */
::selection {
  background: var(--saffron);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1ede4;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f1ede4;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--saffron);
}

/* ---------- Typography & Gradients ---------- */
.text-gradient {
  background-image: linear-gradient(135deg, #f5820a 0%, #ffaa40 50%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background-image: linear-gradient(135deg, #d4af37 0%, #ffe082 50%, #f5820a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-emerald {
  background-image: linear-gradient(135deg, #12873f 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background Meshes & Glassmorphism ---------- */
.mesh-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 130, 10, 0.22), transparent 38%),
    radial-gradient(circle at 88% 15%, rgba(18, 135, 63, 0.2), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.18), transparent 45%),
    linear-gradient(180deg, #091536 0%, #0f2356 50%, #132a68 100%);
}

.mesh-bg-alt {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 130, 10, 0.15), transparent 35%),
    radial-gradient(circle at 15% 85%, rgba(18, 135, 63, 0.15), transparent 35%),
    linear-gradient(180deg, #091536 0%, #0d1e4c 100%);
}

.glass-nav {
  background: rgba(9, 21, 54, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Decorative Elements ---------- */
.tricolor-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--saffron) 0% 33%, #ffffff 33% 66%, var(--leaf) 66% 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(245, 130, 10, 0.35);
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(245, 130, 10, 0.1);
  color: var(--saffron);
  border: 1px solid rgba(245, 130, 10, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.chapter-num-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--saffron-400);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brochure-frame {
  border: 5px solid #ffffff;
  box-shadow: 0 20px 40px -15px rgba(9, 21, 54, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brochure-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -15px rgba(9, 21, 54, 0.45);
}

/* ---------- Badges & Pulsing Lights ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #22c55e;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background-color: rgba(34, 197, 94, 0.4);
  animation: pulseBeacon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Buttons & Micro-Interactions ---------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f5820a 0%, #ff9d3b 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  box-shadow: 0 8px 20px -4px rgba(245, 130, 10, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(245, 130, 10, 0.55);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 6px 18px -3px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -3px rgba(37, 211, 102, 0.5);
}

/* ---------- Card Hover Effects ---------- */
.lift-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(9, 21, 54, 0.15);
}

/* 3D tilt cards */
.tilt-wrap {
  perspective: 1000px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  will-change: transform;
  max-width: 100%;
  min-width: 0;
}

.tilt-card:hover {
  box-shadow: 0 25px 45px -12px rgba(19, 42, 104, 0.25);
}

.tilt-card .tilt-inner {
  transform: translateZ(24px);
}

@media (max-width: 640px) {
  .tilt-wrap {
    perspective: none;
  }
  .tilt-card {
    transform-style: flat;
    will-change: auto;
  }
  .tilt-card .tilt-inner {
    transform: none;
  }
}

/* Skill Chip Cloud */
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid rgba(19, 42, 104, 0.1);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(19, 42, 104, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.skill-chip:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--saffron);
  color: var(--saffron-500);
  box-shadow: 0 8px 18px -4px rgba(245, 130, 10, 0.25);
}

/* ---------- 3D Hero Logo Badge ---------- */
.hero-badge-stage {
  perspective: 1000px;
}

.hero-badge-glow {
  animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.hero-badge-ring {
  animation: ringSpin 24s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes ringSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orbit-dot {
  filter: drop-shadow(0 0 6px rgba(245, 130, 10, 0.6));
}

.hero-badge-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-badge-card img {
  transform: translateZ(28px);
}

/* Floating Parallax Shapes */
.float-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(3px);
  pointer-events: none;
  will-change: transform;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.float-anim { animation: floaty 6s ease-in-out infinite; }
.float-anim-slow { animation: floaty 9s ease-in-out infinite; }
.float-anim-delay { animation-delay: 1.5s; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Stambh Prestige Cards ---------- */
.stambh-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(9, 21, 54, 0.08);
  border: 1px solid rgba(19, 42, 104, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.stambh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.stambh-card.stambh-platinum::before {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1, #64748b);
}
.stambh-card.stambh-diamond::before {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc, #0284c7);
}
.stambh-card.stambh-gold::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706);
}
.stambh-card.stambh-silver::before {
  background: linear-gradient(90deg, #a1a1aa, #d4d4d8, #71717a);
}

.stambh-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(9, 21, 54, 0.18);
  border-color: rgba(245, 130, 10, 0.3);
}

/* ---------- Floating Action Widgets ---------- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.8);
}

.floating-whatsapp-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.4);
  animation: pulseBeacon 2.5s infinite;
  z-index: -1;
}

.back-to-top-btn {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 45;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(19, 42, 104, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -3px rgba(9, 21, 54, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ---------- Filter Tabs ---------- */
.filter-tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(19, 42, 104, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-tab-btn:hover {
  background: rgba(245, 130, 10, 0.08);
  border-color: var(--saffron);
  color: var(--saffron-500);
}

.filter-tab-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(245, 130, 10, 0.4);
}

/* ---------- Home course chip list ---------- */
.course-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(19, 42, 104, 0.12);
  box-shadow: 0 4px 14px -6px rgba(9, 21, 54, 0.12);
  transition: all 0.2s ease;
}

.course-chip:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(245, 130, 10, 0.45);
}

@media (max-width: 640px) {
  .course-chip {
    font-size: 0.82rem;
    padding: 0.55rem 1.1rem;
  }
}

/* ---------- Mobile Drawer Navigation ---------- */
#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 650px;
  opacity: 1;
}

/* ---------- Lightbox Modal ---------- */
#lightbox {
  transition: opacity 0.25s ease;
}

#lightbox-img {
  transition: transform 0.3s ease;
}

/* ---------- Language Switcher ---------- */
.lang-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 2px;
}

.lang-btn {
  position: relative;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn[data-active="true"] {
  background: var(--saffron);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 130, 10, 0.4);
}

/* ---------- Course card hero collages ---------- */
.course-hero-collage {
  width: 100%;
  height: 100%;
  gap: 2px;
  background: rgba(19, 42, 104, 0.08);
}

.course-hero-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-hero-collage--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.course-hero-collage--3 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.course-hero-collage--3 .course-hero-collage__main {
  min-height: 0;
}

.course-hero-collage--3 .course-hero-collage__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  min-height: 0;
}

.course-hero-collage--4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-badge-glow,
  .hero-badge-ring,
  .float-anim,
  .float-anim-slow,
  .pulse-dot::after,
  .floating-whatsapp-btn::after {
    animation: none !important;
  }
  .reveal,
  .lift-card,
  .btn-primary {
    transition: none !important;
  }
}
