/* ============================================================
   NOVEL PRIVATE ITI — Premium Shared Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --navy:        #0a0e27;
  --deep-navy:   #060918;
  --royal-blue:  #1a3a8f;
  --mid-blue:    #2563eb;
  --indigo:      #312e81;
  --purple:      #5b21b6;
  --charcoal:    #1f2937;
  --platinum:    #e5e7eb;
  --soft-white:  #f8fafc;
  --gold:        #d4a017;
  --gold-light:  #f0c040;
  --champagne:   #f5e6c8;
  --glass-bg:    rgba(255,255,255,0.07);
  --glass-border:rgba(255,255,255,0.15);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.25);
  --shadow-gold: 0 0 30px rgba(212,160,23,0.3);
}

/* ── Base Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--deep-navy);
  color: var(--soft-white);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ──────────────────────────────────────── */
#cursor-dot {
  width: 10px; height: 10px;
  background: var(--gold-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  /* transform set entirely by JS — no default needed */
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--gold-light);
}
/* Hover state — JS adds/removes via document delegation */
#cursor-dot.cursor-hover {
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-light), 0 0 50px rgba(240,192,64,0.4);
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid rgba(240,192,64,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  /* transform set by RAF in JS */
  transition: border-color 0.3s, width 0.3s, height 0.3s;
}
#cursor-ring.cursor-hover {
  width: 52px; height: 52px;
  border-color: rgba(240,192,64,0.85);
}
#cursor-trail-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 99997; overflow: hidden;
}
/* Pool-based trail dots — pre-allocated, reused, animation triggered by class */
.cursor-trail-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(240,192,64,0.45);
  border-radius: 50%;
  pointer-events: none;
  will-change: opacity, transform;
  opacity: 0;
}
.cursor-trail-dot.trail-active {
  animation: trailFade 0.65s ease forwards;
}
@keyframes trailFade {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 0;    transform: scale(0.1); }
}

/* ── Scroll Progress Bar ────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--mid-blue));
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold);
}

/* ── Page Loader ────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 999999;
  background: var(--deep-navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  overflow: hidden;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
/* Floating particles injected by JS */
.loader-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  animation: particleFloat ease-in-out infinite;
}
@keyframes particleFloat {
  0%, 100% { opacity: 0;   transform: translateY(0) scale(0); }
  50%       { opacity: 0.5; transform: translateY(-40px) scale(1); }
}
/* Orbital rings around logo injected by JS */
.loader-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.18);
  top: 50%; left: 50%;
  pointer-events: none;
}
.loader-logo-ring.ring-1 {
  width: 160px; height: 160px;
  margin: -80px 0 0 -80px;
  border-top-color: var(--gold);
  animation: loaderOrbit 2s linear infinite;
}
.loader-logo-ring.ring-2 {
  width: 210px; height: 210px;
  margin: -105px 0 0 -105px;
  border-right-color: rgba(240,192,64,0.5);
  animation: loaderOrbit 3.5s linear infinite reverse;
}
.loader-logo-ring.ring-3 {
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border-top-color: rgba(37,99,235,0.4);
  animation: loaderOrbit 5s linear infinite;
}
@keyframes loaderOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#loader-pct {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 0.5rem;
  opacity: 0.8;
}
#loader-video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0.3;
}
#loader-content {
  position: relative; z-index: 1;
  text-align: center;
}
#loader-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  animation: pulseGlow 1.5s ease-in-out infinite;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 6px;
}
#loader-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
#loader-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
#loader-bar-wrap {
  width: 280px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
#loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: loadBar 2.2s ease forwards;
  box-shadow: 0 0 10px var(--gold);
}
@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px var(--gold), 0 0 30px rgba(212,160,23,0.3); }
  50%       { box-shadow: 0 0 30px var(--gold), 0 0 60px rgba(212,160,23,0.5); }
}

/* ── Glassmorphism Card ──────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.glass-card-dark {
  background: rgba(6,9,24,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.4s ease;
  padding: 1rem 0;
}
#navbar.scrolled {
  background: rgba(6,9,24,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-link {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.25rem 0;
  text-transform: uppercase;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: 99px;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold-light); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0e27;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), #fff3, var(--gold));
  opacity: 0; transition: opacity 0.3s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-gold:hover::before { opacity: 1; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--gold-light);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.7rem 1.7rem;
  border-radius: 8px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-outline:hover {
  background: var(--gold);
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Ripple effect (class name: ripple-wave to avoid collisions) */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Section Title ───────────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-title span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.section-subtitle::before, .section-subtitle::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
}

/* ── Gold Divider ───────────────────────────────────────── */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  box-shadow: 0 0 10px var(--gold);
}

/* ── Hover Glow Cards ───────────────────────────────────── */
.hover-glow {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.3), 0 0 30px rgba(212,160,23,0.15);
}

/* ── Scroll Animations — bidirectional ──────────────────── */
[data-ani] {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
[data-ani="fade-up"]    { transform: translateY(36px); }
[data-ani="fade-left"]  { transform: translateX(-36px); }
[data-ani="fade-right"] { transform: translateX(36px); }
[data-ani="zoom-in"]    { transform: scale(0.88); }
/* .animated and .ani-visible are both valid (alias for consistency across pages) */
[data-ani].animated,
[data-ani].ani-visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  display: inline-block;
}
.footer-link:hover { color: var(--gold-light); }

/* ── Back to Top ─────────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: 50%;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  color: #0a0e27; font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(212,160,23,0.5);
  transition: all 0.3s;
}
#back-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(212,160,23,0.6); }
#back-top.visible { display: flex; }

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--gold-light);
  border-radius: 99px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Menu ─────────────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,9,24,0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
}
#mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.mobile-nav-link:hover { color: var(--gold-light); }

/* ── Stat Cards ─────────────────────────────────────────── */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ── Progress Bar ───────────────────────────────────────── */
.progress-bar-wrap { background: rgba(255,255,255,0.1); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--gold);
}

/* ── Badge ──────────────────────────────────────────────── */
.badge-new {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  display: inline-block;
  animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
.badge-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0e27;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ── Course Flip Card ───────────────────────────────────── */
.flip-card { perspective: 1000px; }
.flip-card-inner {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.flip-card-back { transform: rotateY(180deg); }

/* ── Lightbox ───────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
#lightbox.active { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 75vh; border-radius: 12px; object-fit: contain; }
#lightbox-caption { color: rgba(255,255,255,0.8); font-size: 0.9rem; text-align: center; }
#lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
#lightbox-close:hover { background: rgba(239,68,68,0.5); }

/* ── Parallax ───────────────────────────────────────────── */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ── Table ──────────────────────────────────────────────── */
.premium-table { width: 100%; border-collapse: collapse; }
.premium-table thead tr {
  background: linear-gradient(135deg, var(--royal-blue), var(--indigo));
}
.premium-table th {
  padding: 1rem 1.25rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  color: var(--gold-light);
}
.premium-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.premium-table tbody tr { transition: background 0.2s; }
.premium-table tbody tr:hover { background: rgba(255,255,255,0.05); }

/* ── Star Rating ─────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }

/* ── WhatsApp Float ─────────────────────────────────────── */
#whatsapp-btn {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 998;
  width: 50px; height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s;
  font-size: 1.5rem;
}
#whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--mid-blue)); border-radius: 99px; }

/* ── Image Hover Zoom ───────────────────────────────────── */
.img-zoom-wrap { overflow: hidden; border-radius: inherit; }
.img-zoom { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; }
.img-zoom-wrap:hover .img-zoom { transform: scale(1.08); }

/* ── Gradient Text ──────────────────────────────────────── */
.text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-blue-grad {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Marquee ────────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex; gap: 2rem;
  animation: marqueeMove 25s linear infinite;
  white-space: nowrap;
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Utilities ──────────────────────────────────────────── */
.text-playfair { font-family: 'Playfair Display', serif; }
.text-rajdhani { font-family: 'Rajdhani', sans-serif; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s;
}
.faq-question:hover .faq-q-text { color: var(--gold-light); }
.faq-q-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.25s;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: #0a0e27;
  border-color: var(--gold);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring, #cursor-trail-container { display: none; }
  .parallax-bg { background-attachment: scroll; }
}
