/* ===== CSS VARIABLES ===== */
:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-light: #fff0f0;
  --black: #0d0d0d;
  --dark: #1a1a2e;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.13);
  --radius: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', 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);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
  color: var(--black);
}

.logo-icon {
  width: 36px; height: 36px; background: var(--red);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.red { color: var(--red); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  font-size: .92rem; font-weight: 500;
}
.nav-links a { color: #444; transition: var(--transition); position: relative; }
.nav-links a:not(.nav-cta):hover { color: var(--red); }
.nav-links a:not(.nav-cta)::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:2px; background:var(--red); transform:scaleX(0);
  transition:transform .3s;
}
.nav-links a:not(.nav-cta):hover::after { transform:scaleX(1); }
.nav-cta {
  background: var(--red); color: white !important;
  padding: .5rem 1.3rem; border-radius: 8px;
  font-weight: 600; transition: var(--transition);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--black);
  border-radius: 2px; transition: var(--transition);
}

/* ===== SECTION COMMON ===== */
section { padding: 90px 0; }
.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.2; color: var(--black);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--gray); max-width: 560px; margin-bottom: 3rem;
}
.red-text { color: var(--red); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: white;
  padding: .8rem 1.8rem; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--black); color: var(--black);
  padding: .75rem 1.7rem; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--black); color: white; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 2rem 60px;
  max-width: 1200px; margin: 0 auto;
  position: relative; gap: 4rem;
}
.hero-bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .12;
}
.s1 { width: 600px; height: 600px; background: var(--red); top: -200px; right: -200px; }
.s2 { width: 400px; height: 400px; background: #ff6b35; bottom: 0; left: -100px; }
.s3 { width: 300px; height: 300px; background: var(--red); top: 50%; left: 30%; }

.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red-light); color: var(--red);
  padding: .4rem 1rem; border-radius: 100px; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.5rem; border: 1px solid #ffccd0;
  animation: fadeInDown .6s ease both;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1; color: var(--black);
  margin-bottom: 1.2rem;
  animation: fadeInDown .7s ease .1s both;
}
.highlight { color: var(--red); }
.hero-sub {
  font-size: 1.1rem; color: var(--gray); max-width: 480px;
  margin-bottom: 2rem; line-height: 1.7;
  animation: fadeInDown .7s ease .2s both;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
  animation: fadeInDown .7s ease .3s both;
}
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  animation: fadeInDown .7s ease .4s both;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--black); }
.stat span { font-size: .85rem; color: var(--gray); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
  animation: fadeInRight .8s ease .2s both;
}
.hero-card-stack {
  position: relative; width: 360px; height: 360px;
}
.hero-center-orb {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; z-index: 10;
  box-shadow: 0 0 0 20px rgba(230,57,70,.1), 0 0 0 40px rgba(230,57,70,.05);
  animation: pulse 3s ease-in-out infinite;
}
.hero-card {
  position: absolute; background: white;
  border-radius: 14px; padding: .8rem 1.2rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600; color: var(--black);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-card i { color: var(--red); font-size: 1.1rem; }
.c1 { top: 5%; left: -5%; animation-delay: 0s; }
.c2 { top: 5%; right: -5%; animation-delay: 1s; }
.c3 { bottom: 5%; left: -5%; animation-delay: 2s; }
.c4 { bottom: 5%; right: -5%; animation-delay: 3s; }

/* ===== WHY US ===== */
.why-us { background: var(--gray-light); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: white; padding: 2rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: var(--transition);
  opacity: 0; transform: translateY(24px);
  animation: fadeInUp .5s ease forwards;
}
.feature-card:nth-child(1){animation-delay:.05s}
.feature-card:nth-child(2){animation-delay:.1s}
.feature-card:nth-child(3){animation-delay:.15s}
.feature-card:nth-child(4){animation-delay:.2s}
.feature-card:nth-child(5){animation-delay:.25s}
.feature-card:nth-child(6){animation-delay:.3s}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #ffccd0; }
.feat-icon {
  width: 52px; height: 52px; background: var(--red-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; color: var(--gray); }

/* ===== COURSES ===== */
.courses { background: white; }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.course-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #ffccd0; }
.course-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.course-icon-wrap {
  width: 48px; height: 48px; background: rgba(255,255,255,.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
}
.course-header h3 { color: white; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.course-header p { color: rgba(255,255,255,.8); font-size: .78rem; }
.course-body { padding: 1.2rem 1.5rem; }
.course-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tag {
  background: var(--gray-light); color: #444;
  padding: .2rem .6rem; border-radius: 100px; font-size: .75rem; font-weight: 500;
}
.course-meta { display: flex; justify-content: space-between; align-items: center; }
.duration-badge { font-size: .8rem; color: var(--gray); }
.enroll-link {
  background: var(--red-light); color: var(--red);
  padding: .3rem .8rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.enroll-link:hover { background: var(--red); color: white; }

/* ===== NOTES ===== */
.notes-section { background: var(--gray-light); }
.notes-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.note-tab {
  padding: .5rem 1.2rem; border-radius: 8px;
  border: 2px solid var(--border); background: white;
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.note-tab.active, .note-tab:hover {
  background: var(--red); color: white; border-color: var(--red);
}
.notes-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.note-card {
  background: white; border-radius: var(--radius);
  padding: 1.3rem; border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 1rem;
  transition: var(--transition);
}
.note-card:hover { box-shadow: var(--shadow-md); border-color: #ffccd0; transform: translateY(-3px); }
.note-icon { color: var(--red); font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.note-card h4 { font-family: var(--font-head); font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.note-card p { font-size: .8rem; color: var(--gray); }
.note-dl { font-size: .78rem; color: var(--red); font-weight: 600; margin-top: .4rem; display: inline-block; }

/* ===== QUIZ ===== */
.quiz-section { background: white; }
.quiz-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.quiz-topic-btn {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
  text-align: center; cursor: pointer; transition: var(--transition);
  font-family: var(--font-head);
}
.quiz-topic-btn:hover, .quiz-topic-btn.active-topic {
  border-color: var(--red); background: var(--red-light);
}
.quiz-topic-btn i { font-size: 1.6rem; color: var(--red); display: block; margin-bottom: .4rem; }
.quiz-topic-btn span { font-size: .85rem; font-weight: 600; }
.quiz-box {
  background: var(--gray-light); border-radius: var(--radius-lg);
  padding: 2rem; margin-top: 1rem;
}
.quiz-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem;
}
.quiz-header span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.quiz-score { background: var(--red); color: white; padding: .3rem .9rem; border-radius: 8px; font-size: .9rem; }
.question-card { background: white; border-radius: 12px; padding: 1.5rem; }
.question-card h4 { font-family: var(--font-head); font-weight: 700; margin-bottom: 1.2rem; line-height: 1.4; }
.options { display: flex; flex-direction: column; gap: .7rem; }
.option-btn {
  background: var(--gray-light); border: 2px solid var(--border);
  padding: .8rem 1rem; border-radius: 10px;
  text-align: left; cursor: pointer; transition: var(--transition);
  font-size: .92rem;
}
.option-btn:hover:not(:disabled) { border-color: var(--red); background: var(--red-light); }
.option-btn.correct { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.option-btn.wrong { border-color: var(--red); background: #fff0f0; color: var(--red); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.btn-quiz {
  background: white; border: 2px solid var(--border);
  padding: .5rem 1.2rem; border-radius: 8px;
  cursor: pointer; font-weight: 600; transition: var(--transition);
}
.btn-quiz:hover { border-color: var(--red); color: var(--red); }
#qCounter { font-size: .88rem; color: var(--gray); }
#quizResult {
  background: white; border-radius: 12px; padding: 2rem; text-align: center; margin-top: 1rem;
}
#quizResult h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .5rem; }

/* ===== TEAM ===== */
.team-section { background: var(--gray-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.team-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; text-align: center;
  border: 1px solid var(--border); transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white; font-family: var(--font-head); font-weight: 800;
}
.team-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.team-role { color: var(--red); font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.team-qual { font-size: .8rem; color: var(--gray); margin-bottom: .6rem; }
.team-phone { font-size: .82rem; color: #444; font-weight: 500; }
.team-phone i { color: var(--red); margin-right: .3rem; }
.team-subjects { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: .8rem; }
.team-tag { background: var(--red-light); color: var(--red); font-size: .72rem; padding: .2rem .5rem; border-radius: 6px; font-weight: 600; }

/* ===== ENROLL ===== */
.enroll-section { background: white; }
.enroll-wrapper {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center;
}
.enroll-left h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: .8rem; line-height: 1.2; }
.enroll-left p { color: var(--gray); margin-bottom: 1.5rem; }
.enroll-perks { display: flex; flex-direction: column; gap: .6rem; }
.enroll-perks div { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 500; }
.enroll-perks i { color: #16a34a; }
.enroll-form-box {
  background: var(--gray-light); border-radius: var(--radius-lg);
  padding: 2.5rem; border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: #333; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 2px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem;
  background: white; transition: var(--transition);
  color: var(--black);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.success-msg {
  text-align: center; padding: 2rem;
}
.success-msg i { font-size: 3rem; color: #16a34a; margin-bottom: 1rem; }
.success-msg h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: .5rem; }

/* ===== CONTACT ===== */
.contact-section { background: var(--gray-light); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; text-align: center; border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 56px; height: 56px; background: var(--red-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.4rem; margin: 0 auto 1rem;
}
.contact-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.contact-card a, .contact-card p { font-size: .9rem; color: var(--gray); }
.contact-card a:hover { color: var(--red); }

/* ===== FOOTER ===== */
.footer { background: var(--black); color: white; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.7; margin-bottom: 1.2rem; }
.social-links { display: flex; gap: .8rem; }
.social-links a {
  width: 36px; height: 36px; background: rgba(255,255,255,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .95rem; transition: var(--transition);
}
.social-links a:hover { background: var(--red); color: white; }
.footer-col h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; color: white; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a, .footer-col ul li { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); }
.footer-col ul li i { color: var(--red); width: 16px; margin-right: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0; text-align: center;
  color: rgba(255,255,255,.5); font-size: .85rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 20px rgba(230,57,70,.1), 0 0 0 40px rgba(230,57,70,.05); }
  50% { box-shadow: 0 0 0 28px rgba(230,57,70,.12), 0 0 0 55px rgba(230,57,70,.06); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero { flex-direction: column; text-align: center; padding: 120px 2rem 60px; gap: 3rem; }
  .hero-sub, .section-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .hero-card-stack { width: 300px; height: 300px; }
  .enroll-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-links.open { display: flex; animation: fadeIn .3s; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card-stack { width: 260px; height: 260px; }
  .hero-card { font-size: .75rem; padding: .6rem .9rem; }
  section { padding: 60px 0; }
}
