/* ═══════════════════════════════════════════════════════════════
   QUBIT ACADEMY — style.css
   Sahan De Silva | Personal ICT Tuition Website
   Dark-themed, premium, responsive
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens — DARK (default) ─── */
:root {
  --bg-main: #0B0F1A;
  --bg-card: #111827;
  --bg-card-hover: #151d2e;
  --purple: #6D28D9;
  --violet: #9333EA;
  --gold: #D4AF37;
  --text-white: #F8FAFC;
  --text-gray: #CBD5E1;
  --text-muted: #64748B;
  --border-dim: rgba(109, 40, 217, 0.25);
  --glow-purple: 0 0 24px rgba(109, 40, 217, 0.55);
  --glow-gold: 0 0 16px rgba(212, 175, 55, 0.45);
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
  --font-sinhala: 'Noto Sans Sinhala', sans-serif;
  --nav-height: 70px;

  /* Theme transition */
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ─── Design Tokens — LIGHT ─── */
body.light-mode {
  --bg-main: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --purple: #5B21B6;
  --violet: #6D28D9;
  --gold: #92680A;
  --text-white: #0F172A;
  --text-gray: #1E293B;
  --text-muted: #475569;
  --border-dim: rgba(109, 40, 217, 0.18);
  --glow-purple: 0 0 24px rgba(109, 40, 217, 0.2);
  --glow-gold: 0 0 16px rgba(146, 104, 10, 0.25);
}

/* ─── Light mode — base ─── */
body.light-mode {
  background-color: var(--bg-main);
  color: var(--text-white);
}

/* ─── Navbar ─── */
body.light-mode .navbar.scrolled {
  background: rgba(241, 245, 249, 0.96);
  box-shadow: 0 1px 0 rgba(109, 40, 217, 0.15), 0 4px 16px rgba(0,0,0,0.06);
}

body.light-mode .mobile-menu {
  background: rgba(241, 245, 249, 0.99);
}

body.light-mode .mobile-menu a { color: #1E293B; }
body.light-mode .mobile-menu a:hover { background: rgba(109,40,217,0.08); color: #0F172A; }

body.light-mode .nav-links a { color: #334155; }
body.light-mode .nav-links a:hover { color: #0F172A; }

body.light-mode .brand-name,
body.light-mode .brand-academy { color: #0F172A; }
body.light-mode .brand-dot { color: #64748B; }

body.light-mode .lang-btn { color: #475569; }
body.light-mode .lang-btn.active { color: #fff; background: var(--purple); }

body.light-mode .hamburger span { background: #0F172A; }

body.light-mode .lang-toggle {
  background: rgba(109, 40, 217, 0.07);
  border-color: rgba(109, 40, 217, 0.18);
}

/* ─── Hero section ─── */
body.light-mode .hero {
  background: linear-gradient(160deg, #EEF2FF 0%, #F1F5F9 60%, #E8EDF5 100%);
}

/* Particles: tint to purple-ish so visible on light bg */
body.light-mode #particles-js {
  background: transparent;
}

body.light-mode #particles-js canvas {
  opacity: 0.55;
  filter: hue-rotate(0deg) saturate(1.4) brightness(0.7);
}

body.light-mode .hero-label { color: var(--purple); }
body.light-mode .hero-title { color: #0F172A; }
body.light-mode .hero-tagline { color: var(--gold); }
body.light-mode .hero-intro { color: #334155; }
body.light-mode .academy-badge { color: #0F172A; }

body.light-mode .image-frame {
  background: #E2E8F0;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(109,40,217,0.15), inset 0 0 20px rgba(109,40,217,0.05);
}

body.light-mode .image-glow {
  background: radial-gradient(circle, rgba(109,40,217,0.18) 0%, transparent 70%);
}

body.light-mode .scroll-indicator {
  border-color: rgba(109,40,217,0.35);
}

body.light-mode .scroll-indicator span { background: var(--purple); }

/* ─── Section backgrounds ─── */
body.light-mode .about { background: #F1F5F9; }

body.light-mode .courses {
  background: linear-gradient(180deg, #F1F5F9, #E8EDF5);
}

body.light-mode .why { background: #F1F5F9; }

body.light-mode .tuts {
  background: linear-gradient(180deg, #E8EDF5, #F1F5F9);
}

body.light-mode .contact {
  background: linear-gradient(180deg, #E8EDF5, #F1F5F9);
}

body.light-mode .footer { background: #E2E8F0; }
body.light-mode .footer-copy { color: #475569; }
body.light-mode .footer-copy strong { color: #0F172A; }
body.light-mode .footer-sub { color: #64748B; }
body.light-mode .footer-divider { opacity: 0.4; }

/* ─── Section text ─── */
body.light-mode .section-title { color: #0F172A; }
body.light-mode .section-subtitle { color: #334155; }
body.light-mode .gold-divider { opacity: 0.8; }

/* ─── About ─── */
body.light-mode .stat-card {
  background: #FFFFFF;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.light-mode .stat-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(109,40,217,0.15);
}

body.light-mode .stat-label { color: #334155; }
body.light-mode .about-bio { color: #1E293B; }
body.light-mode .about-highlights li { color: #1E293B; }
body.light-mode .highlight-icon { color: var(--purple); }

/* ─── Course cards ─── */
body.light-mode .course-card {
  background: #FFFFFF;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

body.light-mode .course-card:hover {
  box-shadow: 0 8px 32px rgba(109,40,217,0.15);
  border-color: var(--purple);
}

body.light-mode .card-badge { color: var(--gold); }
body.light-mode .card-title { color: #0F172A; }
body.light-mode .card-desc { color: #1E293B; }
body.light-mode .card-features li { color: #334155; }
body.light-mode .card-cta { color: var(--violet); }
body.light-mode .card-cta:hover { color: var(--gold); }

body.light-mode .card-icon {
  background: rgba(109,40,217,0.08);
  border-color: rgba(109,40,217,0.15);
}

/* ─── Why cards ─── */
body.light-mode .why-card {
  background: #FFFFFF;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

body.light-mode .why-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 24px rgba(109,40,217,0.12);
}

body.light-mode .why-card h3 { color: #0F172A; }
body.light-mode .why-card p { color: #334155; }

/* ─── Syllabus ─── */
body.light-mode .syllabus-wrapper {
  background: #FFFFFF;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

body.light-mode .syllabus-header {
  background: linear-gradient(135deg, rgba(109,40,217,0.06), rgba(147,51,234,0.03));
  border-bottom-color: rgba(109,40,217,0.12);
}

body.light-mode .syllabus-label { color: var(--gold); }
body.light-mode .syllabus-heading { color: #0F172A; }
body.light-mode .syllabus-note { color: #475569; }

body.light-mode .syllabus-item {
  border-bottom-color: rgba(109,40,217,0.08);
}

body.light-mode .syllabus-item:hover {
  background: rgba(109,40,217,0.04);
}

body.light-mode .syllabus-item--free {
  background: rgba(109,40,217,0.05);
  border-left-color: var(--gold);
}

body.light-mode .syllabus-item--free:hover {
  background: rgba(109,40,217,0.09);
}

body.light-mode .syllabus-num {
  background: rgba(109,40,217,0.08);
  border-color: rgba(109,40,217,0.18);
  color: var(--violet);
}

body.light-mode .syllabus-item--free .syllabus-num {
  background: rgba(146,104,10,0.1);
  border-color: rgba(146,104,10,0.3);
  color: var(--gold);
}

body.light-mode .syllabus-title { color: #0F172A; }
body.light-mode .syllabus-item--soon .syllabus-title { color: #475569; }
body.light-mode .syllabus-item--soon { opacity: 0.7; }
body.light-mode .syl-soon-tag { color: #64748B; }

/* ─── Quiz card ─── */
body.light-mode .quiz-card {
  background: #FFFFFF;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

body.light-mode .quiz-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 28px rgba(109,40,217,0.15);
}

body.light-mode .quiz-card-title { color: #0F172A; }
body.light-mode .quiz-card-desc { color: #334155; }
body.light-mode .quiz-meta-item { color: #475569; }
body.light-mode .quiz-embed-link { color: #475569; }
body.light-mode .quiz-embed-link:hover { color: var(--gold); }

body.light-mode .tuts-cta-note { color: #334155; }
body.light-mode .tuts-all-link { color: var(--gold); }

/* ─── Contact ─── */
body.light-mode .contact-label { color: #64748B; }
body.light-mode .contact-value { color: #0F172A; }
body.light-mode .contact-cta-text { color: #334155; }

body.light-mode .schedule-placeholder {
  background: rgba(109,40,217,0.04);
  border-color: rgba(109,40,217,0.18);
}

body.light-mode .schedule-title { color: #0F172A; }
body.light-mode .schedule-text { color: #475569; }

/* ─── Buttons ─── */
body.light-mode .btn-secondary {
  color: #0F172A;
  border-color: var(--gold);
}

body.light-mode .btn-secondary:hover {
  background: rgba(146,104,10,0.08);
}

/* ─── Code blocks ─── */
body.light-mode .code-block {
  background: #1E293B;
  border-color: rgba(109,40,217,0.5);
}

/* ─── Lesson page (lesson-01.html) ─── */
body.light-mode .lesson-nav {
  background: rgba(241,245,249,0.96);
  border-bottom-color: rgba(109,40,217,0.15);
}

body.light-mode .lesson-nav-brand { color: #0F172A; }
body.light-mode .lesson-nav-brand span { color: var(--violet); }
body.light-mode .lesson-nav-back { color: #334155; }
body.light-mode .lesson-nav-back:hover { color: var(--gold); }

body.light-mode .toc-sidebar {
  background: #F8FAFC;
  border-right-color: rgba(109,40,217,0.12);
}

body.light-mode .toc-title { color: var(--gold); }
body.light-mode .toc-list a { color: #475569; }
body.light-mode .toc-list a:hover,
body.light-mode .toc-list a.active {
  color: #0F172A;
  background: rgba(109,40,217,0.07);
  border-left-color: var(--purple);
}

body.light-mode .lesson-main-title { color: #0F172A; }
body.light-mode .lesson-tagline { color: #334155; }

body.light-mode .lesson-main h2 {
  color: #0F172A;
  border-bottom-color: rgba(109,40,217,0.12);
}

body.light-mode .lesson-main h3 { color: var(--violet); }
body.light-mode .lesson-main p { color: #1E293B; }
body.light-mode .lesson-main strong { color: #0F172A; }

/* Info boxes in lesson */
body.light-mode .info-box {
  background: rgba(109,40,217,0.05);
  border-color: rgba(109,40,217,0.2);
}

body.light-mode .info-box.gold {
  background: rgba(146,104,10,0.05);
  border-color: rgba(146,104,10,0.2);
}

body.light-mode .info-box.green {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.2);
}

body.light-mode .info-box p { color: #1E293B; }

/* Lesson list items */
body.light-mode .lesson-list li { color: #1E293B; }

/* Mini cards in lesson */
body.light-mode .mini-card {
  background: #F8FAFC;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

body.light-mode .mini-card-title { color: #0F172A; }
body.light-mode .mini-card-desc { color: #475569; }

/* Compare table */
body.light-mode .compare-table th {
  background: rgba(109,40,217,0.08);
  color: #0F172A;
}

body.light-mode .compare-table td { color: #1E293B; }
body.light-mode .compare-table tr:hover td { background: rgba(109,40,217,0.03); }
body.light-mode .compare-table td,
body.light-mode .compare-table th {
  border-bottom-color: rgba(109,40,217,0.08);
}

/* Adv/Dis boxes */
body.light-mode .adv-box {
  background: #F8FAFC;
  border-color: rgba(34,197,94,0.2);
}

body.light-mode .adv-box.dis {
  border-color: rgba(239,68,68,0.2);
}

/* V-cards (Big Data) */
body.light-mode .v-card {
  background: #F8FAFC;
  border-color: rgba(109,40,217,0.12);
}

body.light-mode .v-card:hover {
  border-color: var(--gold);
}

body.light-mode .v-card-name { color: #0F172A; }
body.light-mode .v-card-desc { color: #475569; }

/* Domain cards */
body.light-mode .domain-card {
  background: #F8FAFC;
  border-color: rgba(109,40,217,0.12);
}

body.light-mode .domain-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(109,40,217,0.1);
}

body.light-mode .domain-title { color: #0F172A; }
body.light-mode .domain-desc { color: #475569; }

/* Process flow */
body.light-mode .process-step {
  background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(147,51,234,0.04));
  border-color: rgba(109,40,217,0.2);
}

body.light-mode .process-step-name { color: #0F172A; }
body.light-mode .process-arrow { color: var(--gold); }

/* Quiz section in lesson */
body.light-mode .quiz-section {
  background: rgba(109,40,217,0.04);
  border-color: rgba(109,40,217,0.15);
}

body.light-mode .quiz-title { color: var(--gold); }
body.light-mode .quiz-item { color: #1E293B; border-bottom-color: rgba(109,40,217,0.08); }
body.light-mode .quiz-num { color: var(--purple); }

/* Lesson CTA bar */
body.light-mode .lesson-cta-bar {
  background: linear-gradient(135deg, rgba(109,40,217,0.06), rgba(147,51,234,0.03));
  border-color: rgba(109,40,217,0.2);
}

body.light-mode .lesson-cta-bar h2 { color: #0F172A; }
body.light-mode .lesson-cta-bar p { color: #334155; }

/* Meta badges */
body.light-mode .lesson-meta-badge {
  color: var(--gold);
  background: rgba(146,104,10,0.08);
  border-color: rgba(146,104,10,0.25);
}

body.light-mode .lesson-meta-num {
  color: var(--purple);
  background: rgba(109,40,217,0.08);
  border-color: rgba(109,40,217,0.2);
}

/* Progress bar stays visible */
body.light-mode .lesson-progress {
  background: linear-gradient(90deg, var(--purple), var(--gold));
}



/* Smooth transition for ALL elements on theme switch */
body,
body *,
body *::before,
body *::after {
  transition: var(--theme-transition);
}

/* But keep the original fast transitions for hover effects */
.btn,
.card-cta,
.nav-links a,
.syl-btn,
.quiz-embed-link,
.tuts-all-link {
  transition: all var(--transition) !important;
}

/* ─── Theme Toggle Button ─── */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dim);
  background: rgba(109, 40, 217, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  transform: rotate(15deg) scale(1.05);
  box-shadow: var(--glow-gold);
}

.theme-icon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

/* Dark mode: show moon, hide sun */
.theme-icon--dark {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.theme-icon--light {
  opacity: 0;
  transform: translateY(20px) rotate(90deg);
}

/* Light mode: show sun, hide moon */
body.light-mode .theme-icon--dark {
  opacity: 0;
  transform: translateY(-20px) rotate(-90deg);
}

body.light-mode .theme-icon--light {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

body.lang-si {
  font-family: var(--font-sinhala);
}

body.lang-si .nav-brand {
  font-family: var(--font-sinhala);
}

.lang-fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-fade.visible {
  opacity: 1;
}

/* ─── Container ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section base ─── */
.section {
  padding: 100px 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-white);
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 18px auto 0;
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(109, 40, 217, 0.3);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.nav-brand:hover { opacity: 0.85; }

.brand-name { color: var(--text-white); }
.brand-dot { color: var(--text-muted); }

.brand-academy {
  color: var(--text-white);
  position: relative;
}

.brand-academy::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(109, 40, 217, 0.12);
  border: 1px solid var(--border-dim);
  border-radius: 30px;
  padding: 4px 12px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 20px;
  transition: color var(--transition), background var(--transition);
  font-family: inherit;
}

.lang-btn.active {
  color: var(--text-white);
  background: var(--purple);
}

.lang-divider {
  color: var(--border-dim);
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 0 24px 16px;
  background: rgba(11, 15, 26, 0.98);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: rgba(109, 40, 217, 0.15);
  color: var(--text-white);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--bg-main);
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.hero-academy { margin-bottom: 12px; }

.academy-badge {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-white);
  position: relative;
  padding-bottom: 4px;
}

.academy-badge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-intro {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109, 40, 217, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

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

.image-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.image-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: var(--glow-purple), inset 0 0 30px rgba(109, 40, 217, 0.2);
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}

.educator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.educator-fallback {
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.educator-fallback svg {
  width: 100px;
  height: 100px;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 50px;
  border: 2px solid rgba(109, 40, 217, 0.5);
  border-radius: 20px;
  transition: border-color var(--transition);
}

.scroll-indicator:hover { border-color: var(--gold); }

.scroll-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about { background: var(--bg-main); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}

.about-bio {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.highlight-icon {
  color: var(--purple);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════
   COURSES
══════════════════════════════════════ */
.courses {
  background: linear-gradient(180deg, var(--bg-main), var(--bg-card));
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-purple);
  border-color: var(--purple);
}

.card-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--gold));
  background-size: 200% 100%;
  transition: background-position 0.6s ease;
}

.course-card:hover .card-top-border { background-position: 100% 0; }

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(109, 40, 217, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-dim);
  transition: background var(--transition), border-color var(--transition);
}

.course-card:hover .card-icon {
  background: rgba(109, 40, 217, 0.28);
  border-color: var(--purple);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--violet);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-white);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.card-features li {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-features li::before {
  content: '▸';
  color: var(--purple);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.card-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  transition: color var(--transition), letter-spacing var(--transition);
}

.card-cta:hover {
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   WHY CHOOSE
══════════════════════════════════════ */
.why {
  background: var(--bg-main);
  position: relative;
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-purple);
  border-color: var(--purple);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   TUTS SECTION
══════════════════════════════════════ */
.tuts {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-main));
}

/* ── Syllabus Wrapper ── */
.syllabus-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
}

.syllabus-header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--border-dim);
  background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(147,51,234,0.04));
  position: relative;
}

.syllabus-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--gold));
}

.syllabus-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.syllabus-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.syllabus-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Syllabus Grid ── */
.syllabus-grid {
  display: flex;
  flex-direction: column;
}

/* ── Individual Syllabus Row ── */
.syllabus-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(109, 40, 217, 0.1);
  transition: background var(--transition);
}

.syllabus-item:last-child {
  border-bottom: none;
}

.syllabus-item:hover {
  background: rgba(109, 40, 217, 0.06);
}

/* Free lesson — highlighted */
.syllabus-item--free {
  background: rgba(109, 40, 217, 0.08);
  border-left: 3px solid var(--gold);
  padding-left: 37px;
}

.syllabus-item--free:hover {
  background: rgba(109, 40, 217, 0.14);
}

/* Locked lessons */
.syllabus-item--soon {
  opacity: 0.65;
}

/* Lesson number badge */
.syllabus-num {
  min-width: 40px;
  height: 40px;
  background: rgba(109, 40, 217, 0.15);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet);
  flex-shrink: 0;
}

.syllabus-item--free .syllabus-num {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

/* Info block */
.syllabus-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.syllabus-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-white);
}

.syllabus-item--soon .syllabus-title {
  color: var(--text-gray);
}

.syllabus-free-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 2px 10px;
}

/* Action buttons */
.syllabus-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.syl-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.syl-btn--read {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: var(--text-white);
  box-shadow: 0 3px 12px rgba(109, 40, 217, 0.35);
}

.syl-btn--read:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.55);
}

.syl-btn--pdf {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
}

.syl-btn--pdf:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

/* Soon tag */
.syl-soon-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  flex-shrink: 0;
  margin-left: auto;
}

/* "View all tuts" note row */
.tuts-cta-note {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.tuts-all-link {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition), letter-spacing var(--transition);
}

.tuts-all-link:hover {
  color: var(--violet);
  letter-spacing: 0.03em;
}

/* Legacy tut card styles (keep for tuts/index.html) */
.tuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.tut-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tut-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-purple);
  border-color: var(--purple);
}

.tut-card .card-top-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--gold));
  background-size: 200% 100%;
  transition: background-position 0.6s ease;
}

.tut-card:hover .card-top-border { background-position: 100% 0; }

.tut-card--soon { opacity: 0.62; cursor: default; }
.tut-card--soon:hover { transform: none; box-shadow: none; border-color: var(--border-dim); }

.tut-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.tut-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.tut-desc {
  font-size: 0.93rem;
  color: var(--text-gray);
  line-height: 1.75;
  flex: 1;
}

.tut-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: center;
}

.btn-pdf {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-pdf:hover {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.tut-soon-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════════
   QUIZ CARD
══════════════════════════════════════ */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quiz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-purple);
  border-color: var(--purple);
}

.quiz-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.quiz-card-left { flex: 1; }

.quiz-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 10px;
}

.quiz-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.quiz-card-desc {
  font-size: 0.93rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 16px;
}

.quiz-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.quiz-meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quiz-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.quiz-start-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4) !important;
  white-space: nowrap;
}

.quiz-start-btn:hover {
  box-shadow: 0 8px 30px rgba(59,130,246,0.6) !important;
}

.quiz-embed-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}

.quiz-embed-link:hover { color: var(--gold); }

@media (max-width: 768px) {
  .quiz-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .quiz-card-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .quiz-start-btn { flex: 1; justify-content: center; }
}
.contact {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-main));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white);
  transition: color var(--transition);
}

.contact-value:hover { color: var(--violet); }

.contact-cta-text {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

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

.schedule-placeholder {
  background: rgba(109, 40, 217, 0.07);
  border: 1px dashed rgba(109, 40, 217, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.schedule-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.schedule-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  padding: 40px 0 32px;
  background: var(--bg-main);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 32px;
  opacity: 0.5;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-copy strong { color: var(--text-white); }

.footer-academy {
  color: var(--gold);
  font-weight: 600;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ══════════════════════════════════════
   LESSON PAGE
══════════════════════════════════════ */
.lesson-hero {
  background: linear-gradient(180deg, var(--bg-main), var(--bg-card));
  padding: 120px 0 60px;
  text-align: center;
}

.lesson-hero .lesson-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lesson-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.lesson-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.85;
}

.lesson-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 52px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dim);
}

.lesson-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--violet);
  margin: 32px 0 12px;
}

.lesson-body p { margin-bottom: 20px; }

.lesson-body ul,
.lesson-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-body ul li::marker { color: var(--purple); }
.lesson-body ol li::marker { color: var(--gold); }
.lesson-body strong { color: var(--text-white); font-weight: 600; }

.code-block {
  background: #0d1117;
  border: 1px solid rgba(109, 40, 217, 0.4);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 24px 0;
  overflow-x: auto;
  position: relative;
}

.code-block pre,
.code-block code {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.9rem;
  color: #c9d1d9;
  line-height: 1.75;
  white-space: pre;
}

.code-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(109, 40, 217, 0.12);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.code-block.python { border-left-color: #3b82f6; }
.code-block.python .code-label { color: #60a5fa; background: rgba(59, 130, 246, 0.12); }

.lesson-cta {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.18), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(109, 40, 217, 0.4);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  margin: 64px 24px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.lesson-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--gold));
}

.lesson-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.lesson-cta p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 32px;
}

.lesson-cta ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 36px;
}

.lesson-cta ul li {
  font-size: 0.92rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-cta ul li::before { content: '◈'; color: var(--gold); }

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

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-pdf-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-pdf-cta:hover {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}

.tuts-hero {
  background: linear-gradient(180deg, var(--bg-main), var(--bg-card));
  padding: 120px 0 60px;
  text-align: center;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badges { flex-direction: row; justify-content: center; }
  .stat-card { flex: 1; min-width: 120px; }
  .syllabus-header { padding: 28px 24px 20px; }
  .syllabus-item { padding: 14px 24px; }
  .syllabus-item--free { padding-left: 21px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 60px 20px;
  }

  .hero-image { order: -1; }
  .hero-buttons { justify-content: center; }
  .image-frame { width: 220px; height: 220px; }
  .image-glow { width: 250px; height: 250px; }
  .courses-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badges { flex-direction: column; align-items: stretch; }

  /* Syllabus mobile */
  .syllabus-item {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 12px;
  }

  .syllabus-item--free { padding-left: 13px; }

  .syllabus-actions {
    width: 100%;
  }

  .syl-btn {
    flex: 1;
    justify-content: center;
  }

  .syl-soon-tag {
    margin-left: 0;
  }

  .tuts-grid { grid-template-columns: 1fr; }
  .tut-btn-row { flex-direction: column; }
  .tut-btn-row .btn,
  .tut-btn-row .btn-pdf { width: 100%; justify-content: center; }
  .lesson-body { padding: 48px 20px 72px; }
  .lesson-cta { padding: 40px 24px; margin: 48px 16px; }
  .cta-btn-row { flex-direction: column; align-items: center; }
  .btn-wa,
  .btn-pdf-cta { width: 100%; max-width: 320px; justify-content: center; }
  .code-block { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .why-grid { grid-template-columns: 1fr; }
  .lang-toggle { padding: 4px 8px; }
  .nav-brand { font-size: 0.88rem; }
  .lesson-cta h2 { font-size: 1.45rem; }
  .syllabus-heading { font-size: 1.2rem; }
}
