/* ============================================================
   RiseLink Technologies – Premium Enterprise Styles
   ============================================================ */

/* ---------- CSS Custom Properties (Theming) ---------- */
:root {
  /* Dark mode (default) */
  --bg-primary: #0b0d14;
  --bg-secondary: #11131f;
  --bg-dark: #080a10;
  --bg-card: #181b2a;
  --bg-card-hover: #1e2132;
  --bg-elevated: #1f2337;
  --bg-glass: rgba(15, 17, 28, 0.75);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0d14;

  --border-color: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(148, 163, 184, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #6366f1);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);

  --gradient-card: linear-gradient(145deg, rgba(99,102,241,0.04), rgba(139,92,246,0.02));
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

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

/* ---------- Section Styles ---------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Background Patterns ---------- */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow-orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: #6366f1;
  color: #818cf8;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

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

.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, -80px) scale(0.95); }
  75% { transform: translate(-40px, -30px) scale(1.02); }
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}

/* ---------- Stats Counter ---------- */
.stat-item {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel {
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 12px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--text-muted);
  transition: all var(--transition-base);
}
.carousel-dot.active {
  background: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
  width: 30px;
  border-radius: 5px;
}

/* ---------- Syllabus Tabs ---------- */
.syllabus-tab {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}
.syllabus-tab:hover {
  border-color: #6366f1;
  color: #818cf8;
}
.syllabus-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-item.open {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: #818cf8;
}
.faq-question .icon {
  font-size: 1.25rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  color: #818cf8;
}

.faq-answer {
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ---------- Timeline (Methodology) ---------- */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}
.timeline-content {
  width: calc(50% - 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ---------- Animated Shapes ---------- */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Stagger Children ---------- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(11) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(12) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(13) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }

/* ---------- Back to Top ---------- */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}
#back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-base);
}
.theme-toggle:hover {
  border-color: #6366f1;
  color: #818cf8;
  transform: rotate(15deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  padding: 80px 32px 32px;
  transition: right var(--transition-base);
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Form Styles ---------- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-warm {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ---------- Avatar ---------- */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Hover Lift ---------- */
.hover-lift {
  transition: all var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Loading Shimmer ---------- */
.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Pulse Dot ---------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Floating Animation ---------- */
.float-anim {
  animation: floatY 6s ease-in-out infinite;
}
.float-anim:nth-child(2) { animation-delay: 2s; }
.float-anim:nth-child(3) { animation-delay: 4s; }

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

/* ---------- Divider ---------- */
.section-divider {
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.15;
  width: 80%;
  margin: 0 auto;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .timeline::before { left: 28px; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-content { width: calc(100% - 72px); margin-left: 64px; }
  .timeline-dot { left: 28px; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 640px) {
  .stat-number { font-size: 2rem; }
}

/* ---------- Premium Card Hover (Global) ---------- */
.feature-card::after,
.glass-card::after,
.testimonial-card::after,
.timeline-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.feature-card:hover::after,
.glass-card:hover::after,
.testimonial-card:hover::after,
.timeline-content:hover::after {
  opacity: 1;
}

/* Icon scale and glow inside premium cards */
.feature-card i[class*="fa-"],
.feature-card .fas,
.feature-card .far,
.feature-card .fal {
  transition: all var(--transition-base);
}
.feature-card:hover i[class*="fa-"],
.feature-card:hover .fas,
.feature-card:hover .far,
.feature-card:hover .fal {
  filter: drop-shadow(0 0 8px currentColor);
}
.feature-card:hover .w-14.h-14,
.feature-card:hover .w-10.h-10,
.feature-card:hover [class*="rounded"][class*="bg-gradient"] {
  transform: scale(1.1);
}

/* Enhanced glass-card hover */
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), 0 8px 40px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Parents benefit cards */
.bg-\[var\(--bg-card\)\].border.rounded-xl {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.bg-\[var\(--bg-card\)\].border.rounded-xl:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}
.bg-\[var\(--bg-card\)\].border.rounded-xl:hover .w-10.h-10 {
  transform: scale(1.1);
}
.bg-\[var\(--bg-card\)\].border.rounded-xl .w-10.h-10,
.bg-\[var\(--bg-card\)\].border.rounded-xl h4 {
  transition: all var(--transition-base);
}

/* About vision/mission cards */
.bg-gradient-to-br.border-indigo-500\/20,
.bg-gradient-to-br.border-emerald-500\/20 {
  transition: all var(--transition-base);
}
.bg-gradient-to-br.border-indigo-500\/20:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}
.bg-gradient-to-br.border-emerald-500\/20:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

/* Children testimonial block */
.rounded-2xl.bg-gradient-to-r.from-indigo-500\/5 {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.rounded-2xl.bg-gradient-to-r.from-indigo-500\/5:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Blog cards */
.feature-card.p-0.overflow-hidden {
  position: relative;
}
.feature-card.p-0.overflow-hidden:hover .h-44 {
  transform: scale(1.03);
}
.feature-card.p-0.overflow-hidden .h-44 {
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Contact info cards */
.lg\:col-span-3.glass-card,
.glass-card.p-5 {
  transition: all var(--transition-base);
}
.lg\:col-span-3.glass-card:hover,
.glass-card.p-5:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow);
}

/* For Schools impact cards + feature cards */
.glass-card.p-6.text-center {
  transition: all var(--transition-base);
}
.glass-card.p-6.text-center:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow);
}

/* Social icons in footer */
.w-10.h-10.rounded-xl.bg-\[var\(--bg-card\)\] {
  transition: all var(--transition-base);
}
.w-10.h-10.rounded-xl.bg-\[var\(--bg-card\)\]:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

/* FAQ item enhanced hover */
.faq-item {
  transition: all var(--transition-base);
}
.faq-item:hover {
  transform: translateX(3px);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Testimonial carousel cards */
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Timeline content enhanced hover */
.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Hero section small cards (AI Fun, Games, Create) */
.aspect-square.rounded-2xl.border {
  transition: all var(--transition-base);
}
.aspect-square.rounded-2xl.border:hover .w-10.h-10 {
  transform: scale(1.15);
}
.aspect-square.rounded-2xl.border .w-10.h-10 {
  transition: all var(--transition-base);
}

/* Testimonial carousel cards */
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
#syllabus-content.glass-card {
  transition: all var(--transition-base);
}
#syllabus-content.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), 0 8px 40px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

/* ---------- Print ---------- */
@media print {
  .navbar, #back-top, .mobile-menu, .menu-overlay { display: none !important; }
}
