/* ============================================================
   ProfeOnline | Stylesheet
   HostGator-ready | Vanilla CSS | No frameworks
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --primary: #6c3de8;
  --primary-light: #8b5cf6;
  --primary-dark: #4f21d0;
  --accent-1: #06b6d4;
  --accent-2: #10b981;
  --accent-3: #f59e0b;
  --accent-4: #ec4899;
  --bg-dark: #080c1a;
  --bg-card: #0f1629;
  --bg-card-2: #141c35;
  --text-primary: #f0f4ff;
  --text-secondary: #94a3c8;
  --text-muted: #5a6a8a;
  --border: rgba(255,255,255,0.07);
  --border-active: rgba(108, 61, 232, 0.5);
  --glass: rgba(15, 22, 41, 0.8);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-primary: 0 8px 32px rgba(108, 61, 232, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-main); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- UTILITY ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.section-badge {
  display: inline-block;
  background: rgba(108, 61, 232, 0.15);
  border: 1px solid rgba(108, 61, 232, 0.4);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(108,61,232,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,61,232,0.6);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-light);
  color: var(--primary-light);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 12, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-icon {
  color: var(--primary-light);
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-cta { margin-left: 8px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation: blobMove 12s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent-1);
  bottom: -100px; right: 100px;
  animation: blobMove 16s ease-in-out infinite alternate-reverse;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--accent-4);
  top: 50%; left: 50%;
  animation: blobMove 10s ease-in-out infinite alternate;
}
@keyframes blobMove {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 61, 232, 0.12);
  border: 1px solid rgba(108, 61, 232, 0.35);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title { margin-bottom: 20px; }
.hero-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-plus { font-size: 1.5rem; font-weight: 800; color: var(--primary-light); }
.stat-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.play-icon { font-size: 0.7rem; }

/* Hero image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 320px;
}
.teacher-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.hero-card-badge {
  position: absolute;
  bottom: 28px; right: -20px;
  background: var(--accent-3);
  color: #000;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.hero-card-badge small { display: block; font-size: 0.7rem; font-weight: 400; }

.hero-float-card {
  position: absolute;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card-students { top: 20px; left: -30px; animation: floatCard 6s ease-in-out infinite; }
.card-lesson { bottom: 60px; left: -40px; animation: floatCard 8s ease-in-out infinite reverse; }
.float-icon { font-size: 1.5rem; }
.hero-float-card strong { display: block; font-size: 0.9rem; }
.hero-float-card small { color: var(--text-muted); font-size: 0.75rem; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating {
  animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  width: 26px; height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(8px); opacity: 0; }
}

/* ---------- FEATURES ---------- */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ---------- COURSES ---------- */
.courses {
  padding: 100px 0;
  background: var(--bg-card);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
}
.course-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(108,61,232,0.08) 0%, var(--bg-dark) 100%);
}
.course-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.course-card.card-custom {
  background: linear-gradient(160deg, rgba(6,182,212,0.08) 0%, var(--bg-dark) 100%);
  border-color: rgba(6, 182, 212, 0.3);
  text-align: center;
  align-items: center;
}

.course-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  top: -12px; right: 20px;
}
.badge-featured { background: linear-gradient(135deg, var(--accent-3), #f97316); }
.badge-advanced { background: var(--accent-4); }

.course-icon { font-size: 2.5rem; }
.course-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}
.course-level.beginner { background: rgba(16,185,129,0.15); color: var(--accent-2); }
.course-level.intermediate { background: rgba(245,158,11,0.15); color: var(--accent-3); }
.course-level.advanced { background: rgba(236,72,153,0.15); color: var(--accent-4); }

.course-card h3 { color: var(--text-primary); }
.course-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.course-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.course-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-label { color: var(--text-muted); font-size: 0.75rem; }
.price-amount {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.price-period { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--bg-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-container {
  position: relative;
  max-width: 380px;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.about-badge {
  position: absolute;
  top: 24px; right: -20px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}
.badge-icon { font-size: 1.5rem; }
.about-badge strong { display: block; font-size: 0.85rem; }
.about-badge small { color: var(--text-muted); font-size: 0.75rem; }
.about-experience-card {
  position: absolute;
  bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-primary);
}
.exp-number {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
}
.exp-text { color: rgba(255,255,255,0.8); font-size: 0.78rem; }

.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-intro { font-size: 1.1rem; line-height: 1.7; color: var(--text-primary); }
.about-text { color: var(--text-secondary); line-height: 1.7; }
.about-skills { display: flex; flex-direction: column; gap: 14px; }
.skill-item {}
.skill-name { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.skill-bar {
  height: 6px;
  background: var(--bg-card-2);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent-1));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.animated { width: var(--fill); }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 0;
  background: var(--bg-card);
  overflow: hidden;
}
.testimonials-slider { position: relative; }
.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 340px;
  flex-shrink: 0;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-primary);
}
.testimonial-stars { font-size: 1rem; margin-bottom: 16px; }
.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author small { color: var(--text-muted); font-size: 0.8rem; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  background: var(--text-muted);
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}
.dot.active {
  background: var(--primary-light);
  width: 24px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: var(--bg-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(108,61,232,0.12);
  border: 1px solid rgba(108,61,232,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.contact-item span { color: var(--text-secondary); font-size: 0.9rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,61,232,0.15);
}
.form-group select option { background: var(--bg-card); }
.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}
.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  color: var(--text-secondary);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }
.footer-newsletter h4 { font-size: 0.95rem; margin-bottom: 12px; }
.footer-newsletter p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.84rem; }

/* ---------- CHAT WIDGET ---------- */
.chat-widget {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 2000;
}
.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(108,61,232,0.5);
  transition: var(--transition);
  position: relative;
}
.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(108,61,232,0.7);
}
.chat-notification-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--accent-2);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.chat-window {
  position: absolute;
  bottom: 72px; right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.chat-header-info strong { display: block; font-size: 0.9rem; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.chat-close {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition);
}
.chat-close:hover { color: white; }

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 85%; }
.bot-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.5;
}
.bot-msg .msg-bubble {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.user-msg .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 0.7rem; color: var(--text-muted); padding: 0 4px; }
.user-msg .msg-time { align-self: flex-end; }

.quick-replies-container { max-width: 100%; }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-reply {
  background: rgba(108,61,232,0.12);
  border: 1px solid rgba(108,61,232,0.3);
  color: var(--primary-light);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}
.quick-reply:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input-area input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition);
}
.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary);
}
.chat-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(108,61,232,0.5);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px; left: 32px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- AOS (simple animations) ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-container { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8,12,26,0.97); border-bottom: 1px solid var(--border); padding: 16px; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-description { margin: 0 auto 36px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .chat-window { width: 280px; right: -10px; }
  .testimonial-card { min-width: 280px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .contact-form { padding: 24px; }
}
