/* ============================================
   StudyPath_Telugu - Design System
   Dark Mode + Glassmorphism + Indian Energy
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors - Dark Mode (Default) */
  --bg-primary: #0F0F23;
  --bg-secondary: #16162A;
  --bg-tertiary: #1E1E3A;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-active: rgba(255, 255, 255, 0.12);

  --text-primary: #E8E8F0;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;

  --accent-primary: #FF6B35;
  --accent-primary-rgb: 255, 107, 53;
  --accent-secondary: #FFD700;
  --accent-secondary-rgb: 255, 215, 0;
  --accent-gradient: linear-gradient(135deg, #FF6B35, #FFD700);

  --success: #00D68F;
  --info: #339AF0;
  --whatsapp: #25D366;
  --telegram: #0088CC;
  --youtube: #FF0000;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg-primary: #F5F5FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EEEEF5;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --surface-active: rgba(0, 0, 0, 0.10);

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #8888A0;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-primary-rgb), 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-telegram {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

.btn-youtube {
  background: var(--youtube);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-primary-rgb), 0.1);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 250, 0.9);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.nav-logo .logo-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-bg .orb-3 {
  width: 300px;
  height: 300px;
  background: #7C3AED;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  margin-bottom: 24px;
  backdrop-filter: var(--glass-blur);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual .floating-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 24px;
  position: absolute;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-visual .floating-card.card-1 {
  top: 0;
  right: 0;
  animation-delay: 0s;
}

.hero-visual .floating-card.card-2 {
  bottom: 40px;
  left: 0;
  animation-delay: 2s;
}

.hero-visual .floating-card.card-3 {
  top: 50%;
  right: -20px;
  animation-delay: 4s;
}

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

.floating-card .card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.floating-card .card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.floating-card .card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Exams Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 36px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bento-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-primary-rgb), 0.1);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.large {
  grid-column: span 2;
}

.bento-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.bento-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bento-card .card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ---------- Subjects Grid ---------- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.subject-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.subject-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(var(--accent-primary-rgb), 0.12);
}

.subject-card .subject-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.subject-card:hover .subject-icon {
  background: var(--accent-gradient);
  transform: scale(1.1);
}

.subject-card:hover .subject-icon span {
  filter: brightness(0) invert(1);
}

.subject-card h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.subject-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 380px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  flex-shrink: 0;
}

.testimonial-card .stars {
  color: var(--accent-secondary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card .quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.testimonial-card .author-info .name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-card .author-info .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- YouTube Section ---------- */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.video-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-primary-rgb), 0.1);
}

.video-card .video-thumbnail {
  position: relative;
  padding-top: 56.25%;
  background: var(--bg-tertiary);
}

.video-card .video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-info {
  padding: 20px;
}

.video-card .video-info h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .video-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(var(--accent-primary-rgb), 0.1), transparent, rgba(var(--accent-secondary-rgb), 0.1), transparent);
  animation: rotateBg 15s linear infinite;
}

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

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 24px;
}

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

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Sticky WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: bounceIn 0.5s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
}

.page-header h1 {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

/* ---------- Course Cards ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.course-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-primary-rgb), 0.1);
}

.course-card-header {
  padding: 32px 28px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.course-card-header .exam-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-card-header h3 {
  margin-bottom: 8px;
}

.course-card-header p {
  font-size: 0.95rem;
}

.course-card-body {
  padding: 24px 28px;
}

.course-card-body ul {
  margin-bottom: 20px;
}

.course-card-body li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-card-body li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.course-card-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 12px;
}

/* ---------- Results Page ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.result-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-normal);
}

.result-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
}

.result-card .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.result-card h4 {
  margin-bottom: 4px;
}

.result-card .exam-name {
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.result-card .quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Faculty Grid ---------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.faculty-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-normal);
}

.faculty-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-4px);
}

.faculty-card .faculty-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.faculty-card h4 {
  margin-bottom: 4px;
}

.faculty-card .designation {
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.faculty-card p {
  font-size: 0.9rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-option-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-normal);
}

.contact-option-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-2px);
}

.contact-option-card .option-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-option-card .option-icon.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
}

.contact-option-card .option-icon.telegram-icon {
  background: rgba(0, 136, 204, 0.15);
  color: var(--telegram);
}

.contact-option-card .option-icon.youtube-icon {
  background: rgba(255, 0, 0, 0.15);
  color: var(--youtube);
}

.contact-option-card .option-icon.email-icon {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
}

.contact-option-card h4 {
  margin-bottom: 4px;
}

.contact-option-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* QR Code Section */
.qr-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin-top: 24px;
}

.qr-section h3 {
  margin-bottom: 8px;
}

.qr-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.qr-code-wrapper {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
}

.qr-code-wrapper canvas,
.qr-code-wrapper img {
  display: block;
}

/* ---------- About Page ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-image {
  position: relative;
}

.about-image .image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: all var(--transition-normal);
}

.mv-card:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.mv-card .mv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mv-card h3 {
  margin-bottom: 12px;
}

/* ---------- Subjects Detail ---------- */
.subject-detail-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.subject-detail-card .subject-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.subject-detail-card h3 {
  margin-bottom: 8px;
}

.subject-detail-card .topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.subject-detail-card .topic-tag {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- YouTube Channel Page ---------- */
.channel-header {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 48px;
}

.channel-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-info h2 {
  margin-bottom: 8px;
}

.channel-info .channel-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.channel-actions {
  display: flex;
  gap: 12px;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.large {
    grid-column: span 2;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .youtube-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .channel-header {
    flex-direction: column;
    text-align: center;
  }

  .channel-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 999;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: span 1;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .youtube-grid {
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .subject-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subject-detail-card .subject-icon-large {
    margin: 0 auto;
  }

  .subject-detail-card .topics-list {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .testimonial-card {
    min-width: 300px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
}
