/* ==========================================================================
   NEXTPATH ACADEMY — COACHING & EDUCATION STYLESHEET
   ========================================================================== */

:root {
  /* JEE / NEET Theme (Default) */
  --bg-primary: #0f1026;
  --bg-secondary: #161836;
  --bg-card: #1f2248;
  --bg-card-hover: #292d5c;
  --bg-glass: rgba(22, 24, 54, 0.92);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);
  
  --amber: #f59e0b;
  --green: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #a5b4fc;
  --text-light: #6b7280;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: rgba(99, 102, 241, 0.5);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tech Bootcamp Theme */
body.theme-tech {
  --bg-primary: #0b1120;
  --bg-secondary: #111c34;
  --bg-card: #18284a;
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.4);
}

/* Study Abroad Theme */
body.theme-studyabroad {
  --bg-primary: #180d24;
  --bg-secondary: #221433;
  --bg-card: #2e1c45;
  --primary: #ec4899;
  --primary-hover: #db2777;
  --primary-glow: rgba(236, 72, 153, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Demo Bar */
.demo-bar {
  background: #080914;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: 0.85rem;
}

.demo-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.demo-presets {
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.style-pill:hover, .style-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.back-hub-btn {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Alert Bar */
.alert-bar {
  background: linear-gradient(90deg, #312e81 0%, #4338ca 50%, #312e81 100%);
  color: #e0e7ff;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 0;
  font-size: 0.82rem;
}

/* Navbar */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 37px;
  z-index: 990;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #c7d2fe;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.w-100 {
  width: 100%;
}

.flex-grow {
  flex-grow: 1;
}

/* Typography Helpers */
.text-violet { color: var(--primary); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-active);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #c7d2fe;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-active);
  color: #c7d2fe;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtext {
  color: #c7d2fe;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  color: #a5b4fc;
}

.hero-visual {
  position: relative;
}

.hero-img-box {
  position: relative;
}

.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.floating-chip {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-active);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  animation: float 4s ease-in-out infinite;
}

.chip-top {
  top: 24px;
  left: -20px;
}

.chip-bottom {
  bottom: 24px;
  right: -20px;
  animation-delay: 2s;
}

.chip-icon {
  font-size: 1.4rem;
}

.floating-chip strong {
  display: block;
  font-size: 0.95rem;
}

.floating-chip small {
  color: #a5b4fc;
  font-size: 0.78rem;
}

/* Course Catalogue */
.courses-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0 48px;
}

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #c7d2fe;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.course-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.course-card p {
  color: #c7d2fe;
  font-size: 0.88rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #a5b4fc;
}

.course-actions {
  display: flex;
  gap: 10px;
}

/* Scholarship Quiz Section */
.scholarship-section {
  padding: 90px 0;
}

.scholarship-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #15163a 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.scholarship-info h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin: 8px 0 12px;
}

.scholarship-info p {
  color: #c7d2fe;
  margin-bottom: 30px;
  max-width: 680px;
}

.quiz-question-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.q-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
  margin-bottom: 8px;
}

.quiz-question-box h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-opt:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.quiz-result {
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.quiz-result h3 {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 10px;
}

.voucher-code {
  background: #0f1026;
  border: 1px dashed var(--amber);
  color: var(--amber);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 16px 0;
  letter-spacing: 0.05em;
}

/* Faculty Section */
.faculty-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.faculty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faculty-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.faculty-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.faculty-dept {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
  display: block;
}

.faculty-body h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.faculty-cred {
  font-size: 0.85rem;
  color: #c7d2fe;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Results Section */
.results-section {
  padding: 90px 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.topper-rank {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 4px;
}

.result-card h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.topper-exam {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.topper-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: #c7d2fe;
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 14px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer p {
  color: #c7d2fe;
  font-size: 0.92rem;
}

/* Footer */
.footer {
  background: #080914;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-col p {
  color: #a5b4fc;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #c7d2fe;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.demo-price {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #c7d2fe;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 0.85rem;
  color: #6366f1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #181a38;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  color: #a5b4fc;
  font-size: 1.8rem;
  cursor: pointer;
}

.cm-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cm-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.cm-fee {
  font-size: 1.3rem;
  font-weight: 800;
}

.cm-desc {
  color: #c7d2fe;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.cm-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 28px;
  font-size: 0.9rem;
  color: #e0e7ff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #0f1026;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #0f1026;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transition: var(--transition);
  font-size: 0.9rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.96); opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid, .faculty-grid, .results-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-heading {
    font-size: 2.3rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
