/* ============================================
   MISSION TOPPER - Green Theme + Animations
   ============================================ */

:root {
  --primary: #00A651;
  --primary-dark: #008a42;
  --primary-light: #e6f7ee;
  --accent: #00c96a;
  --accent-light: #d4f5e4;
  --bg: #F5F5F5;
  --bg2: #EBEBEB;
  --card: #FFFFFF;
  --card2: #F9F9F9;
  --text: #1A1A1A;
  --text-muted: #666666;
  --text-light: #999999;
  --highlight: #00A651;
  --border: #E0E0E0;
  --border-light: #F0F0F0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --nav-bg: #FFFFFF;
  --footer-bg: #1A1A1A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}
@keyframes loader-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── NAVBAR ── */
.premium-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  animation: slideDown 0.4s ease;
}
.premium-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.premium-nav > div { height: 64px; }

.nav-logo {
  font-size: 20px; font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s;
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo i { color: var(--primary); }

.nav-link {
  color: #444; font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0; position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--primary); color: white;
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute;
  inset: 0; background: rgba(255,255,255,0.15);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,166,81,0.35);
}

.btn-outline {
  background: transparent; color: var(--primary);
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  border: 1.5px solid var(--primary);
  cursor: pointer; transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 64px;
  background: linear-gradient(135deg, #f0fff6 0%, #fff 50%, #f0f9ff 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,166,81,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,201,106,0.05) 0%, transparent 50%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(0,166,81,0.2);
  color: var(--primary);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  animation: fadeInUp 0.5s ease;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1.5px; color: var(--text);
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #00A651, #00c96a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.7; max-width: 520px;
  margin: 16px 0 32px;
  animation: fadeInUp 0.6s ease 0.2s both;
}
#hero-canvas {
  position: absolute; right: 0; top: 0;
  width: 50%; height: 100%; pointer-events: none;
}

/* ── SECTION TITLES ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--text); line-height: 1.2;
}
.section-sub {
  color: var(--text-muted); font-size: 16px;
  line-height: 1.7; max-width: 560px;
  margin: 10px auto 0;
}

/* ── FEATURE CARDS ── */
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.3s ease; box-shadow: var(--shadow);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,166,81,0.25);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}

/* ── COURSE CARDS ── */
.course-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.3s ease; cursor: pointer;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease both;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,166,81,0.25);
}
.course-thumb-wrap { position: relative; overflow: hidden; height: 180px; }
.course-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .course-thumb { transform: scale(1.05); }
.course-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
}
.course-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-trending { background: #00A651; color: white; }
.badge-popular  { background: #8b5cf6; color: white; }
.badge-new      { background: #0284c7; color: white; }
.badge-free     { background: #00c96a; color: white; }
.badge-bestseller { background: #dc2626; color: white; }

.course-body { padding: 16px; }
.course-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.course-validity {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-light); color: var(--primary);
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; margin-bottom: 10px;
}
.course-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.course-original-price {
  font-size: 14px; color: var(--text-light);
  text-decoration: line-through; margin-left: 6px;
}
.course-discount {
  font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--accent-light);
  padding: 2px 6px; border-radius: 4px; margin-left: 6px;
}
.course-actions { display: flex; gap: 8px; margin-top: 12px; }

.btn-explore {
  flex: 1; padding: 9px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-align: center;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-explore:hover { border-color: var(--primary); color: var(--primary); }

.btn-enroll {
  flex: 1; padding: 9px; border-radius: 8px;
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  position: relative; overflow: hidden;
}
.btn-enroll:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0,166,81,0.35);
  transform: translateY(-1px);
}

/* ── SKELETON LOADING ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* ── REVIEW CARDS ── */
.review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: all 0.3s ease; box-shadow: var(--shadow);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.review-text { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.reviewer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #00A651, #00c96a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, #00A651, #00c96a);
  border-radius: 24px; padding: 64px 48px;
  text-align: center; color: white;
}
.cta-section .section-title { color: white; }
.cta-section .section-label { color: rgba(255,255,255,0.8); }

/* ── FOOTER ── */
.premium-footer { background: var(--footer-bg); color: #ccc; padding: 56px 0 28px; }

/* ── LOADING ── */
.premium-loader {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 60px; color: var(--text-muted);
}
.loader-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: loader-bounce 1.2s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; background: var(--accent); }
.loader-dot:nth-child(3) { animation-delay: 0.4s; background: #f59e0b; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 75%; max-width: 280px; height: 100vh;
  background: white; border-left: 1px solid var(--border);
  z-index: 9999; padding: 80px 24px 24px;
  transition: right 0.3s ease;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 9998; display: none;
}
.mobile-menu-overlay.show { display: block; }
.mobile-menu .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: 15px; font-weight: 600;
  color: #444; border-radius: 10px;
  text-decoration: none; transition: all 0.2s;
}
.mobile-menu .nav-link:hover { background: var(--primary-light); color: var(--primary); }

/* ── GRADIENT TEXT ── */
.text-gradient-blue {
  background: linear-gradient(135deg, #00A651, #00c96a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, #00A651, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-divider { height: 1px; background: var(--border); }

/* ── FILTER BUTTONS ── */
.filter-btn { transition: all 0.2s ease; }
.active-filter {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: block !important; }
  .hero-title { font-size: 32px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 15px; }
  #hero-canvas { display: none !important; }
  .cta-section { padding: 40px 20px; }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .mobile-menu { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .section-title { font-size: 22px; }
}
