:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #8b5cf6;
  --success: #10b981;
  --dark: #0a0e27;
  --dark-light: #151b35;
  --dark-lighter: #1e293b;
  --text: #f8fafc;
  --text-gray: #cbd5e1;
  --text-muted: #94a3b8;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Stars background layers using stars.png */
.stars,
.stars2,
.stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: url('stars.png') repeat;
}

/* Different speeds for parallax effect */
.stars {
  animation: animateStars 50s linear infinite;
  opacity: 0.15;
  background-size: cover; /* Fill the whole area */
}

.stars2 {
  animation: animateStars 100s linear infinite;
  opacity: 0.1;
  background-size: cover;
}

.stars3 {
  animation: animateStars 150s linear infinite;
  opacity: 0.05;
  background-size: cover;
}

/* Animation to move stars vertically */
@keyframes animateStars {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1000px); }
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand .logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 2s ease-in-out infinite, logoPulse 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.9)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.6)); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle-label span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  filter: blur(4px);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-menu a:hover::before,
.nav-menu a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 20s ease-in-out infinite, orbColorShift 15s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  top: 40%;
  right: -5%;
  animation-delay: 5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: 10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orbColorShift {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
  position: relative;
}

.badge-new {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: badgePulse 2s ease-in-out infinite, badgeGlow 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0), 0 0 30px rgba(99, 102, 241, 0.3); }
}

@keyframes badgeGlow {
  0%, 100% { border-color: rgba(99, 102, 241, 0.3); background: rgba(99, 102, 241, 0.1); }
  50% { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.15); }
}

.hero-text h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.glitch {
  position: relative;
  animation: glitchPulse 4s ease-in-out infinite, textBreath 6s ease-in-out infinite;
}

@keyframes glitchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes textBreath {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.6));
  }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
}

.glitch::before {
  animation: glitchTop 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glitch::after {
  animation: glitchBottom 3s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, -3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, 3px); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(3px, 3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, -3px); }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.highlight {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8)) drop-shadow(0 0 30px rgba(245, 87, 108, 0.6)); }
}

.hero-description {
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.6s ease;
}

.btn:active::before {
  transform: translate(-50%, -50%) scale(2);
  transition: transform 0s;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  animation: btnBreath 3s ease-in-out infinite;
}

@keyframes btnBreath {
  0%, 100% { box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 15px 45px rgba(99, 102, 241, 0.5), 0 0 30px rgba(139, 92, 246, 0.4); }
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6), 0 0 50px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::after {
  left: 0;
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
  border-color: transparent;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: btnShine 3s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-icon img {
    width: 3em;       /* slightly bigger than emoji */
    height: 3em;
    vertical-align: middle; /* aligns nicely with text */
}



.stat-item {
  text-align: center;
  animation: statFadeIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: statGlow 2s ease-in-out infinite;
}

@keyframes statGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8)); }
}

.stat-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  height: 550px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  animation: floatCard 8s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card:hover {
  transform: translateY(-20px) scale(1.05) rotate(2deg);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.5);
}

.card-1 {
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: 5%;
  animation-delay: 2.5s;
}

.card-3 {
  bottom: 8%;
  left: 25%;
  animation-delay: 5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(2deg); }
  50% { transform: translateY(-35px) rotate(-2deg); }
  75% { transform: translateY(-20px) rotate(2deg); }
}

.code-snippet {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.code-keyword { 
  color: #c792ea; 
  animation: codeGlow 2s ease-in-out infinite;
}

.code-var { 
  color: #82aaff;
  animation: codeGlow 2s ease-in-out infinite 0.3s;
}

.code-string { 
  color: #c3e88d;
  animation: codeGlow 2s ease-in-out infinite 0.6s;
}

@keyframes codeGlow {
  0%, 100% { text-shadow: 0 0 5px currentColor; }
  50% { text-shadow: 0 0 15px currentColor, 0 0 25px currentColor; }
}

.icon-circle {
  width: 100px;
  height: 100px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: iconCircleRotate 10s linear infinite;
}

@keyframes iconCircleRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightning {
  font-size: 3rem;
  animation: lightningPulse 2s ease-in-out infinite;
}

@keyframes lightningPulse {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
  50% { transform: scale(1.3) rotate(15deg); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(99, 102, 241, 0.8)); }
}

.icon-circle::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-svg {
  transform: rotate(-90deg);
}

.ring-background {
  fill: none;
  stroke: rgba(99, 102, 241, 0.2);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 8;
  stroke-dasharray: 283;
  stroke-dashoffset: 70;
  stroke-linecap: round;
  animation: ringProgress 3s ease-in-out infinite;
}

@keyframes ringProgress {
  0%, 100% { 
    stroke-dashoffset: 70; 
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.6));
  }
  50% { 
    stroke-dashoffset: 30; 
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 1)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
  }
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ringTextPulse 3s ease-in-out infinite;
}

@keyframes ringTextPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.4;
  animation: shapeFloat 15s ease-in-out infinite;
  filter: blur(2px);
}

.shape-1 {
  width: 60px;
  height: 60px;
  background: var(--gradient-3);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: var(--gradient-4);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  bottom: 25%;
  right: 30%;
  animation-delay: 3s;
}

.shape-3 {
  width: 50px;
  height: 50px;
  background: var(--gradient-5);
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  top: 60%;
  left: 10%;
  animation-delay: 6s;
}

@keyframes shapeFloat {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
    opacity: 0.4;
  }
  25% { 
    transform: translate(25px, -25px) rotate(90deg); 
    opacity: 0.6;
  }
  50% { 
    transform: translate(-20px, 20px) rotate(180deg); 
    opacity: 0.8;
  }
  75% { 
    transform: translate(20px, -15px) rotate(270deg); 
    opacity: 0.6;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-gray);
  animation: indicatorBounce 2s ease-in-out infinite;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes indicatorBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(-15px); opacity: 1; }
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-gray);
  border-radius: 15px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 10px;
  background: var(--text-gray);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 1.5s ease-in-out infinite;
}

@keyframes mouseScroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(18px); }
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--text);
  animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5)); }
  50% { filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 45px rgba(139, 92, 246, 0.6)); }
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 4rem;
  font-size: 1.125rem;
  animation: subtitleFadeIn 1s ease-out 0.2s both;
}

@keyframes subtitleFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.features {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark) 100%);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.6s ease;
}

.feature-card:hover .feature-glow {
  width: 400px;
  height: 400px;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03) rotateX(5deg);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3), 0 0 50px rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  transition: all 0.4s ease;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.feature-card:hover .feature-icon {
  transform: scale(1.2) translateY(-10px) rotate(10deg);
  filter: drop-shadow(0 0 35px rgba(99, 102, 241, 1)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.8));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-weight: 700;
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--primary-light);
}

.feature-card p {
  color: var(--text-gray);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.feature-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-arrow {
  opacity: 1;
  transform: translateX(0);
  animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.courses {
  padding: 8rem 0;
  position: relative;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.course-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-20px) scale(1.03) rotateY(5deg);
  box-shadow: 0 35px 70px rgba(99, 102, 241, 0.4), 0 0 60px rgba(139, 92, 246, 0.3);
}

.course-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0), 0 0 50px rgba(99, 102, 241, 0.5); }
}

.course-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.course-card.featured:hover .course-glow {
  opacity: 1;
}

.course-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgeFloat 2s ease-in-out infinite;
}

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

.course-badge.live {
  background: var(--gradient-2);
  color: white;
  animation: badgePulse 2s ease-in-out infinite, badgeFloat 2s ease-in-out infinite;
}

.course-badge.popular {
  background: var(--gradient-3);
  color: white;
}

.course-badge.new {
  background: var(--gradient-4);
  color: white;
}

.course-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.course-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
  position: relative;
}

.course-card:hover .course-placeholder {
  transform: scale(1.2) rotate(5deg);
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }

.course-icon {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  z-index: 1;
  position: relative;
  animation: courseIconSpin 8s ease-in-out infinite;
}

@keyframes courseIconSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.1); }
}

.course-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.course-particles span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: particleFloat 4s ease-in-out infinite;
  box-shadow: 0 0 15px currentColor;
}

.course-particles span:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.course-particles span:nth-child(2) {
  top: 60%;
  right: 25%;
  animation-delay: 1.5s;
}

.course-particles span:nth-child(3) {
  bottom: 25%;
  left: 50%;
  animation-delay: 3s;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: translateY(-40px) scale(1.8); 
    opacity: 1; 
    box-shadow: 0 0 25px currentColor;
  }
}

.course-content {
  padding: 2rem;
}

.course-content h3 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.course-card:hover .course-content h3 {
  color: var(--primary-light);
}

.course-instructor {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.course-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.course-features {
  list-style: none;
  margin-bottom: 2rem;
}

.course-features li {
  color: var(--text-gray);
  padding: 0.625rem 0;
  transition: all 0.3s ease;
}

.course-features li:hover {
  color: var(--text);
  transform: translateX(8px);
}

.course-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.course-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.course-btn:hover::after {
  width: 100%;
}

.course-btn:hover {
  color: var(--primary-light);
  transform: translateX(10px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.course-btn:hover .btn-arrow {
  transform: translateX(8px);
  animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(8px); }
  50% { transform: translateX(15px); }
}

.community {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.community-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.community-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.community-text > p {
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.community-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  animation: featureFadeIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.community-feature:hover {
  transform: translateX(10px);
}

.community-feature:nth-child(1) { animation-delay: 0.1s; }
.community-feature:nth-child(2) { animation-delay: 0.2s; }
.community-feature:nth-child(3) { animation-delay: 0.3s; }
.community-feature:nth-child(4) { animation-delay: 0.4s; }

@keyframes featureFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.check-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  animation: checkPop 0.6s ease-out, checkGlow 2s ease-in-out infinite;
}

@keyframes checkPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes checkGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0), 0 0 30px rgba(99, 102, 241, 0.5); }
}

.checkmark {
  animation: checkScale 0.3s ease-out 0.3s both;
}

@keyframes checkScale {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.community-feature h4 {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.community-feature p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.community-visual {
  position: relative;
}

.community-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transform: perspective(1200px) rotateY(-8deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.community-card:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-15px) scale(1.05);
  box-shadow: 0 35px 70px rgba(99, 102, 241, 0.4);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.community-card:hover .card-glow {
  opacity: 1;
  animation: glowRotate 4s linear infinite;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.user-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-img {
  width: 100px;   /* same size as emoji */
  height: 100px;  /* same size as emoji */
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}


@keyframes avatarPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 15px 30px rgba(236, 72, 153, 0.6); }
}

.card-header h4 {
  margin-bottom: 0.375rem;
  font-weight: 700;
}

.card-header p {
  color: var(--text-gray);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.card-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.reactions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reaction {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.625rem 1.125rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.reaction::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 25px;
  transition: transform 0.3s ease;
  z-index: -1;
}

.reaction:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.reaction:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.contact {
  padding: 8rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.125rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.4s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  transition: width 0.4s ease;
  border-radius: 0 0 16px 16px;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
  width: 100%;
}

.form-group label {
  position: absolute;
  left: 1.25rem;
  top: 1.125rem;
  color: var(--text-gray);
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--dark);
  padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.625rem;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--primary);
}

.contact-form button {
  align-self: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(15px) translateY(-5px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.info-card:hover .card-shine {
  opacity: 1;
  animation: cardShine 1.5s ease-in-out;
}

@keyframes cardShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: iconWiggle 3s ease-in-out infinite;
}

.info-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-img {
  width: 100px;  /* same size as emoji */
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover .info-img {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.info-card h4 {
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.info-card p {
  color: var(--text-gray);
}

.footer {
  background: var(--dark-lighter);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 2s ease-in-out infinite;
}

.footer-brand p {
  color: var(--text-gray);
  max-width: 320px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-column h4 {
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-column a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-column a:hover {
  color: var(--text);
  padding-left: 12px;
  transform: translateX(5px);
}

.footer-column a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-column a:hover::before {
  opacity: 1;
  animation: arrowSlide 0.6s ease-in-out infinite;
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
}

@media (max-width: 968px) {
  .hero-content {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  
  .hero-visual {
      height: 400px;
  }
  
  .community-content {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  
  .contact-wrapper {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
      display: flex;
      z-index: 1001;
  }
  
  .nav-menu {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(10, 14, 39, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      padding: 2rem;
      gap: 1.5rem;
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .nav-toggle:checked ~ .nav-menu {
      transform: translateY(0);
      opacity: 1;
      pointer-events: all;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
      opacity: 0;
      transform: translateX(20px);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero-visual {
      display: none;
  }
  
  .stats {
      gap: 1.5rem;
      justify-content: space-between;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
  }
  
  .courses-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-links {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
      flex-direction: column;
      width: 100%;
  }
  
  .btn {
      width: 100%;
      justify-content: center;
  }
  
  .stats {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
}
