@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Boogaloo&display=swap');

:root {
  --bg: #0f0f1a;
  --bg2: #16162a;
  --card: #1e1e35;
  --card2: #252540;
  --yellow: #FFD700;
  --orange: #FF6B35;
  --green: #4CAF50;
  --cyan: #00E5FF;
  --pink: #FF4081;
  --purple: #9C27B0;
  --text: #FFFFFF;
  --text2: #b0b0cc;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Boogaloo', cursive;
  font-size: 1.7rem;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--orange); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-btns { display: flex; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 50px; font-weight: 800;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem; cursor: pointer;
  text-decoration: none; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn-outline:hover { background: rgba(255,215,0,0.1); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #000;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255,107,53,0.6); }

.btn-green {
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(76,175,80,0.4);
}
.btn-green:hover { box-shadow: 0 6px 28px rgba(76,175,80,0.6); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,107,53,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,229,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 10%, rgba(255,215,0,0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem; font-weight: 800;
  color: var(--yellow);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.5s ease both;
}

.hero h1 {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero h1 .highlight-yellow { color: var(--yellow); }
.hero h1 .highlight-orange { color: var(--orange); }

.hero p {
  font-size: 1.1rem; color: var(--text2);
  line-height: 1.7; margin-bottom: 2rem;
  max-width: 480px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  animation: fadeUp 0.5s 0.4s ease both;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: 'Boogaloo', cursive;
  font-size: 2rem; color: var(--yellow);
}
.stat-label { font-size: 0.8rem; color: var(--text2); font-weight: 700; }

/* Hero Visual */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-card-stack {
  position: relative; width: 340px; height: 400px;
}

.hcard {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hcard-main {
  width: 300px; top: 40px; left: 20px;
  background: linear-gradient(135deg, #1e1e35, #252548);
  border-color: rgba(255,215,0,0.2);
  z-index: 3;
}

.hcard-back1 {
  width: 280px; top: 15px; left: 10px;
  background: var(--card2); z-index: 2;
  transform: rotate(-3deg);
  opacity: 0.7;
}
.hcard-back2 {
  width: 280px; top: 5px; left: 30px;
  background: var(--card2); z-index: 1;
  transform: rotate(3deg);
  opacity: 0.4;
}

.hcard-lang {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.lang-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.lang-icon.py { background: rgba(255,215,0,0.15); }
.lang-icon.js { background: rgba(255,215,0,0.2); }

.hcard-title { font-weight: 900; font-size: 1.1rem; }
.hcard-sub { font-size: 0.8rem; color: var(--text2); margin-top: 2px; }

.xp-bar-wrap { margin: 1rem 0; }
.xp-label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; font-weight: 700; color: var(--text2);
  margin-bottom: 6px;
}
.xp-bar {
  height: 10px; background: rgba(255,255,255,0.1);
  border-radius: 50px; overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 50px;
  animation: fillBar 1.5s 0.8s ease both;
}
@keyframes fillBar { from { width: 0; } }

.hcard-badges {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem; font-weight: 800;
}
.badge-fire { background: rgba(255,107,53,0.2); color: var(--orange); border: 1px solid rgba(255,107,53,0.3); }
.badge-star { background: rgba(255,215,0,0.15); color: var(--yellow); border: 1px solid rgba(255,215,0,0.3); }
.badge-check { background: rgba(76,175,80,0.15); color: var(--green); border: 1px solid rgba(76,175,80,0.3); }

.floating-chip {
  position: absolute;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}
.chip1 { bottom: 20px; right: -10px; z-index: 5; animation-delay: 0s; }
.chip2 { top: 10px; right: -20px; z-index: 5; animation-delay: 1.5s; }

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

/* ─── SECTION COMMONS ─── */
section { padding: 80px 5%; }

.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.section-sub {
  color: var(--text2); font-size: 1rem;
  margin-top: 0.75rem; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ─── WHY US ─── */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.why-card.c1::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.why-card.c2::before { background: linear-gradient(90deg, var(--cyan), #0288D1); }
.why-card.c3::before { background: linear-gradient(90deg, var(--green), #00BCD4); }
.why-card.c4::before { background: linear-gradient(90deg, var(--pink), var(--purple)); }

.why-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.15); }

.why-icon {
  font-size: 2.2rem; margin-bottom: 1rem;
  display: block;
}
.why-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* ─── COURSES ─── */
.courses-section { background: var(--bg2); }

.courses-filter {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.88rem;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255,215,0,0.08);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}

.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: block;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.course-banner {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative; overflow: hidden;
}

.banner-py { background: linear-gradient(135deg, #1a2a1a, #2a3d1a); }
.banner-js { background: linear-gradient(135deg, #2a2a10, #3d3d10); }
.banner-html { background: linear-gradient(135deg, #2a1a10, #3d2510); }
.banner-css { background: linear-gradient(135deg, #101a2a, #10253d); }
.banner-react { background: linear-gradient(135deg, #0d1e2a, #0d2535); }

.course-price-tag {
  position: absolute; top: 12px; right: 12px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 900;
  padding: 0.3rem 0.8rem;
}
.free-tag { background: rgba(76,175,80,0.25); color: #66bb6a; border: 1px solid rgba(76,175,80,0.4); }
.paid-tag { background: rgba(255,215,0,0.2); color: var(--yellow); border: 1px solid rgba(255,215,0,0.4); }

.course-body { padding: 1.4rem; }
.course-body h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.4rem; }
.course-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.55; margin-bottom: 1rem; }

.course-meta {
  display: flex; gap: 1rem;
  font-size: 0.78rem; color: var(--text2); font-weight: 700;
  margin-bottom: 1.2rem;
}
.course-meta span { display: flex; align-items: center; gap: 0.3rem; }

.course-levels {
  display: flex; gap: 4px; margin-bottom: 1.2rem;
}
.level-dot {
  height: 6px; flex: 1; border-radius: 3px;
  background: rgba(255,255,255,0.1);
}
.level-dot.done { background: var(--green); }
.level-dot.active { background: var(--yellow); }

.course-cta {
  width: 100%; padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
}
.course-cta:hover { opacity: 0.9; transform: scale(1.02); }
.cta-free { background: linear-gradient(135deg, var(--green), #43a047); color: #fff; }
.cta-paid { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: #000; }
.cta-soon { background: rgba(255,255,255,0.08); color: var(--text2); cursor: default; }

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; max-width: 1000px; margin: 0 auto;
  position: relative;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #000; font-family: 'Boogaloo', cursive;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.step-card h3 { font-size: 1rem; font-weight: 900; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.83rem; color: var(--text2); line-height: 1.55; }

/* ─── CTA BANNER ─── */
.cta-section {
  background: linear-gradient(135deg, #1a1030, #101a30);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 80px 5%;
}
.cta-section h2 {
  font-family: 'Boogaloo', cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.cta-section p { color: var(--text2); font-size: 1rem; margin-bottom: 2rem; }
.cta-price {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 50px; padding: 0.5rem 1.2rem;
  font-size: 0.85rem; font-weight: 800; color: var(--yellow);
  margin-bottom: 2rem;
}

/* ─── FOOTER ─── */
footer {
  background: #0a0a14;
  padding: 50px 5% 30px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2rem;
}
.footer-brand p { color: var(--text2); font-size: 0.88rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 { font-weight: 900; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: var(--text2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text2);
}

/* ─── MOBILE NAV ─── */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(15,15,26,0.98); backdrop-filter: blur(20px);
  padding: 1.5rem 5%; border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 1rem; z-index: 99;
}
.mobile-menu a { color: var(--text2); text-decoration: none; font-weight: 700; padding: 0.5rem 0; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links, .nav-btns { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
}
