/* ========================================================
   LUMINARY — Premium Learning Platform
   style.css | Author: Luminary Design System
   ======================================================== */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
  --bg-primary: #050810;
  --bg-secondary: #090d1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f4ff;
  --text-secondary: rgba(240, 244, 255, 0.6);
  --text-muted: rgba(240, 244, 255, 0.35);
  --accent-violet: #7c6dfa;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --gradient-primary: linear-gradient(135deg, #7c6dfa 0%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #22d3ee 0%, #7c6dfa 100%);
  --shadow-glow-violet: 0 0 40px rgba(124, 109, 250, 0.3);
  --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h: 72px;
}

[data-theme="light"] {
  --bg-primary: #f5f7ff;
  --bg-secondary: #eef0fa;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #0d0f1a;
  --text-secondary: rgba(13, 15, 26, 0.65);
  --text-muted: rgba(13, 15, 26, 0.38);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-h); }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { border: none; cursor: pointer; background: none; }

/* ── 3. PAGE LOADER ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.loader-logo span { color: var(--accent-violet); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-glass);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 99px;
  animation: loaderFill 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* ── 4. SCROLL-TO-TOP ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-violet);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
}
#scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 0 60px rgba(124, 109, 250, 0.5); }

/* ── 5. THEME TOGGLE ── */
#theme-toggle {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 900;
}
#theme-toggle:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-violet);
  transform: rotate(20deg);
}

/* ── 6. NAVBAR ── */
#mainNav {
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  z-index: 800;
}
#mainNav.scrolled {
  background: var(--bg-secondary);
  border-color: var(--border-glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary) !important;
}
.navbar-brand span { color: var(--accent-violet); }

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.btn-nav-cta {
  padding: 9px 22px !important;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124, 109, 250, 0.3);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 109, 250, 0.5);
}

/* Custom hamburger */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toggler-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: var(--transition);
}

/* ── 7. HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Animated gradient blobs */
.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--accent-violet);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--accent-cyan);
  top: 30%; right: -150px;
  animation-delay: 2.5s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: var(--accent-pink);
  bottom: -100px; left: 30%;
  animation-delay: 5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 24px;
}
.hero-badge i { font-size: 0.75rem; }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-heading em { font-style: italic; opacity: 0.8; }

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

/* Typed cursor */
.typed-text::after {
  content: '|';
  -webkit-text-fill-color: var(--accent-violet);
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  object-fit: cover;
}
.trust-avatars img:first-child { margin-left: 0; }
.hero-trust strong { color: var(--text-primary); }

/* Hero illustration */
.hero-illustration {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
}

.hero-main-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-glow-violet);
  z-index: 2;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow-violet); }
  50% { transform: scale(1.06); box-shadow: 0 0 80px rgba(124,109,250,0.5); }
}

.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  animation: ringRotate linear infinite;
}
.ring-1 { width: 160px; height: 160px; animation-duration: 10s; }
.ring-2 { width: 220px; height: 220px; animation-duration: 16s; animation-direction: reverse; border-color: rgba(124,109,250,0.2); }
.ring-3 { width: 290px; height: 290px; animation-duration: 22s; border-style: dashed; border-color: rgba(34,211,238,0.15); }
@keyframes ringRotate { to { transform: rotate(360deg); } }

.hero-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  z-index: 3;
  animation: cardFloat 4s ease-in-out infinite;
}
.hero-card-float i {
  font-size: 1.2rem;
  color: var(--accent-violet);
  width: 36px;
  height: 36px;
  background: rgba(124,109,250,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-float div { display: flex; flex-direction: column; }
.hero-card-float strong { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.hero-card-float span { font-size: 0.74rem; color: var(--text-muted); }

.card-float-1 { top: 20px; left: -30px; animation-delay: 0s; }
.card-float-2 { bottom: 60px; right: -20px; animation-delay: 1.5s; }
.card-float-3 { top: 50%; right: -40px; transform: translateY(-120%); animation-delay: 3s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-float-3 {
  animation-name: cardFloat3;
}
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(-120%); }
  50% { transform: translateY(calc(-120% - 10px)); }
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-violet);
  border-radius: 99px;
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ── 8. BUTTONS ── */
.btn-primary-glow {
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124,109,250,0.35);
  display: inline-flex;
  align-items: center;
}
.btn-primary-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9b8dff, #f472b6);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,109,250,0.55);
  color: #fff;
}
.btn-primary-glow:hover::before { opacity: 1; }
.btn-primary-glow > * { position: relative; z-index: 1; }

.btn-ghost {
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.93rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* Ripple effect */
.ripple-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  background-color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ── 9. SECTIONS ── */
.section-pad { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-violet);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── 10. COURSES ── */
.courses-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}
.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(124,109,250,0.15); }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.83rem;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,109,250,0.3);
}

/* Course Card */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-violet), var(--shadow-card);
  border-color: rgba(124,109,250,0.3);
}

.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--thumb-color) 80%, black), color-mix(in srgb, var(--thumb-color) 40%, black));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 3rem;
  color: rgba(255,255,255,0.9);
}
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body-inner {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.card-body-inner h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.card-body-inner p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.card-stats i { color: var(--accent-amber); }
.card-price {
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-card {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
.btn-card i { transition: var(--transition); }
.course-card:hover .btn-card {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,109,250,0.3);
}
.course-card:hover .btn-card i { transform: translateX(4px); }

/* Hidden courses during filter */
.course-item.hidden { display: none !important; }

.no-results {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.no-results i { font-size: 3rem; display: block; margin-bottom: 16px; }

/* ── 11. STATS ── */
.stats-section { background: var(--bg-secondary); }

.stats-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-card);
}

.stat-item { padding: 20px 0; }
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(124,109,250,0.3);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
  display: inline;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-violet);
  display: inline;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ── 12. WHY CHOOSE US ── */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,109,250,0.25);
  box-shadow: var(--shadow-card);
}

.why-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--icon-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--icon-color);
  margin-bottom: 20px;
  transition: var(--transition);
}
.why-card:hover .why-icon-wrap {
  background: var(--icon-color);
  color: #fff;
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--icon-color) 40%, transparent);
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 13. TESTIMONIALS ── */
.testimonials-section { background: var(--bg-secondary); }

.testi-slide { padding: 0 8px; }

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: var(--transition);
}
.testi-card.featured-testi {
  background: linear-gradient(135deg, rgba(124,109,250,0.1), rgba(236,72,153,0.08));
  border-color: rgba(124,109,250,0.3);
}

.testi-stars {
  font-size: 1rem;
  color: var(--accent-amber);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-card p {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glass);
}
.testi-author div { display: flex; flex-direction: column; }
.testi-author strong { font-size: 0.88rem; font-weight: 700; }
.testi-author span { font-size: 0.78rem; color: var(--text-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.carousel-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-ctrl-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow-violet);
}
.carousel-indicators-custom { display: flex; gap: 8px; }
.ci-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border-glass);
  border: none;
  transition: var(--transition);
}
.ci-dot.active { width: 24px; background: var(--accent-violet); }

/* ── 14. CTA SECTION ── */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-parallax-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0520 0%, #050810 50%, #051528 100%);
  z-index: 0;
}
.cta-parallax-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,109,250,0.12) 0%, transparent 70%);
}

.cta-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-glass h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-glass p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 15. CONTACT FORM ── */
.contact-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  box-shadow: var(--shadow-card);
}

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

.form-group-custom label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}
.textarea-wrap .input-icon { top: 18px; transform: none; }

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 14px 44px 14px 44px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--text-muted); }

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.15);
  background: rgba(124,109,250,0.05);
}
.input-wrap input:focus ~ .input-icon,
.input-wrap textarea:focus ~ .input-icon,
.input-wrap:focus-within .input-icon { color: var(--accent-violet); }

/* Valid state */
.input-wrap.is-valid input,
.input-wrap.is-valid textarea {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
/* Invalid state */
.input-wrap.is-invalid input,
.input-wrap.is-invalid textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
}
.input-wrap.is-valid .input-icon { color: var(--accent-emerald); }
.input-wrap.is-invalid .input-icon { color: #f87171; }

/* Status icon */
.input-status-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}
.textarea-wrap .input-status-icon { top: 16px; transform: none; }
.input-wrap.is-valid .input-status-icon::after {
  content: '✔';
  color: var(--accent-emerald);
  font-size: 0.85rem;
}
.input-wrap.is-invalid .input-status-icon::after {
  content: '✘';
  color: #f87171;
  font-size: 0.85rem;
}

/* Field feedback */
.field-feedback {
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 18px;
  transition: var(--transition);
  padding-left: 2px;
}
.field-feedback.error { color: #f87171; }
.field-feedback.success { color: var(--accent-emerald); }

/* Submit button states */
#submitBtn { margin-top: 8px; font-size: 1rem; padding: 15px; }

/* Success message */
.success-alert {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
  animation: slideInUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
.success-alert i {
  font-size: 2rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}
.success-alert strong { font-size: 1rem; font-weight: 700; display: block; margin-bottom: 4px; }
.success-alert p { font-size: 0.87rem; color: var(--text-secondary); margin: 0; }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 16. FOOTER ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 70px 0 30px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.footer-brand span { color: var(--accent-violet); }
.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}
.site-footer h5 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.site-footer ul li a:hover { color: var(--accent-violet); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  margin-top: 50px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── 17. LIGHT MODE OVERRIDES ── */
[data-theme="light"] .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .blob { opacity: 0.1; }
[data-theme="light"] .input-wrap input,
[data-theme="light"] .input-wrap textarea {
  background: rgba(255,255,255,0.9);
}
[data-theme="light"] #mainNav.scrolled {
  background: rgba(245,247,255,0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── 18. RESPONSIVE ── */
@media (max-width: 991px) {
  #navMenu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 12px;
  }
  .nav-link::after { display: none; }
  .hero-illustration { width: 300px; height: 300px; }
  .card-float-1, .card-float-2, .card-float-3 { display: none; }
  .contact-glass { padding: 36px 28px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 70px 0; }
  .hero-heading { letter-spacing: -1.5px; }
  .hero-illustration { width: 240px; height: 240px; }
  .stats-glass { padding: 40px 20px; }
  .cta-glass { padding: 44px 24px; }
  .courses-controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .filter-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary-glow, .btn-ghost { text-align: center; justify-content: center; width: 100%; }
  #scroll-top, #theme-toggle { right: 16px; }
  #theme-toggle { bottom: 80px; }
  #scroll-top { bottom: 28px; }
}

/* ── 19. UTILITY ── */
.d-none { display: none !important; }