:root {
  --primary-blue: #2563EB;
  --vibrant-purple: #8B5CF6;
  --modern-cyan: #06B6D4;
  --energetic-orange: #F97316;
  --soft-white: #F8FAFC;
  --warm-yellow: #FBBF24;
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
  --text-main: #334155;
  --text-light: #94A3B8;
  --gold-accent: #F59E0B;
  --neon-accent: #10B981;
  
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

body {
  font-family: var(--font-body);
  background-color: var(--soft-white);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--modern-cyan), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modular Components */
.learning-module {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.learning-module:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-accent);
}

/* Buttons */
.btn-modular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-modular {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary-modular:hover {
  background: var(--vibrant-purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.btn-outline-modular {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-modular:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* Navbar */
.navbar-modular {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.navbar-modular.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-bg);
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.05);
}

/* Hero Section */
.hero-ecosystem {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 50%),
              radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.05), transparent 50%);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.floating-module {
  position: absolute;
  background: #fff;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}

.floating-module i {
  font-size: 1.5rem;
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.module-1 { top: 20%; right: 10%; animation: float 6s ease-in-out infinite; }
.module-2 { bottom: 30%; left: 5%; animation: float 8s ease-in-out infinite alternate; }
.module-3 { top: 50%; right: 5%; animation: float 7s ease-in-out infinite 1s; }

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

/* Timeline */
.learning-timeline {
  position: relative;
  padding: 4rem 0;
}
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -3rem;
  width: 2px;
  background: rgba(37, 99, 235, 0.2);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: -0.45rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Gamified Stats */
.stat-card {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
}
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Footer */
.footer-modular {
  background: var(--dark-bg);
  color: var(--soft-white);
  padding: 5rem 0 2rem;
}
.footer-title {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-link:hover {
  color: var(--modern-cyan);
  transform: translateX(5px);
}
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--text-light);
}

/* Image wrappers */
.img-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  position: relative;
}
.img-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.img-wrapper:hover img {
  transform: scale(1.05);
}


/* Lenis required CSS */
html.lenis, html.lenis body { height: auto; width: 100vw; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
