/* ============================================
   Aurexa Academy — Premium Home Page v2.0
   Glassmorphism + Animated Hero + Dark/Light
   ============================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb),0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--brand-rgb),0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(139,92,246,0.06) 0%, transparent 40%);
}

/* Animated grid background */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: heroGridMove 20s linear infinite;
}
@keyframes heroGridMove { from { transform: translateY(0); } to { transform: translateY(60px); } }

.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left:10%; top:20%; animation-delay:0s; }
.hero-particles span:nth-child(2) { left:25%; top:60%; animation-delay:1s; width:6px; height:6px; }
.hero-particles span:nth-child(3) { left:50%; top:30%; animation-delay:2s; }
.hero-particles span:nth-child(4) { left:70%; top:70%; animation-delay:3s; width:5px; height:5px; }
.hero-particles span:nth-child(5) { left:85%; top:40%; animation-delay:4s; }
.hero-particles span:nth-child(6) { left:40%; top:80%; animation-delay:1.5s; width:3px; height:3px; }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--space-xl);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl); align-items: center;
}

.hero-text { animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  color: var(--accent-light); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  margin-bottom: var(--space-xl);
}
.hero-badge svg { width:16px; height:16px; }

.hero h1 {
  color: var(--text-light) !important;
  margin-bottom: var(--space-lg); line-height: 1.1;
  letter-spacing: var(--ls-tight);
}
.hero h1 .highlight { color: var(--accent); position: relative; }

.hero-subtitle {
  color: rgba(255,255,255,0.7) !important;
  font-size: var(--fs-lg); margin-bottom: var(--space-2xl); max-width: 520px;
}

.hero-buttons { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: var(--space-2xl);
  margin-top: var(--space-3xl); padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item h3 {
  color: var(--accent) !important; font-size: var(--fs-2xl); margin-bottom: 4px;
}
.hero-stat-item p { color: rgba(255,255,255,0.5) !important; font-size: var(--fs-sm); }

.hero-image {
  position: relative; display: flex; justify-content: center; align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-image-wrapper { position: relative; width: 100%; max-width: 480px; }
.hero-image-wrapper img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }

.hero-floating-card {
  position: absolute;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-sm);
  animation: float 4s ease-in-out infinite;
  border: 1px solid var(--border-subtle);
}
.hero-floating-card.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.hero-floating-card.card-2 { bottom: 15%; left: -20px; animation-delay: 2s; }
.hero-floating-card .card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-md);
}
.hero-floating-card .card-icon.gold { background: rgba(var(--accent-rgb),0.15); color: var(--accent); }
.hero-floating-card .card-icon.green { background: rgba(var(--success-rgb),0.15); color: var(--success); }
.hero-floating-card .card-text { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-primary); }
.hero-floating-card .card-sub { font-size: var(--fs-xs); color: var(--text-muted); }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl);
}
.feature-card {
  text-align: center; padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--border-subtle);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--brand-rgb), 0.2);
}
.feature-icon {
  width: 72px; height: 72px; margin: 0 auto var(--space-lg);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: var(--gradient-glow);
}
.feature-card h4 { margin-bottom: var(--space-sm); }
.feature-card p { font-size: var(--fs-sm); }

/* ── Featured Classes ── */
.classes-scroll {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-xl);
}
.class-card {
  background: var(--bg-elevated); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--border-subtle);
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.class-card-image {
  height: 180px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.class-card-image img { width: 100%; height: 100%; object-fit: cover; }
.class-card-image .class-badge { position: absolute; top: 12px; right: 12px; }

.class-card-body { padding: var(--space-lg); }
.class-card-body h4 { font-size: var(--fs-md); margin-bottom: var(--space-sm); }
.class-card-body p { font-size: var(--fs-sm); margin-bottom: var(--space-md); }

.class-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-md); border-top: 1px solid var(--border-light);
}
.class-meta span { font-size: var(--fs-sm); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.class-meta .price { color: var(--brand); font-weight: var(--fw-bold); font-size: var(--fs-base); }

/* ── Achievements ── */
.achievements {
  background: var(--gradient-hero); position: relative;
}
.achievements::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.achievements-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl); position: relative; z-index: 1;
}
.achievement-item { text-align: center; padding: var(--space-xl); }
.achievement-number {
  font-family: var(--font-heading); font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold); color: var(--accent); margin-bottom: var(--space-sm);
}
.achievement-label { color: rgba(255,255,255,0.7); font-size: var(--fs-base); font-weight: var(--fw-medium); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-xl);
}
.testimonial-card {
  background: var(--bg-elevated); border-radius: var(--radius-xl);
  padding: var(--space-2xl); box-shadow: var(--shadow-card);
  position: relative; transition: all var(--transition-base);
  border: 1px solid var(--border-subtle);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.testimonial-quote { font-size: 48px; color: var(--accent); line-height: 1; margin-bottom: var(--space-md); font-family: Georgia, serif; }
.testimonial-text { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--text-secondary); margin-bottom: var(--space-lg); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); color: var(--primary-dark); font-size: var(--fs-md);
}
.testimonial-name { font-weight: var(--fw-semibold); color: var(--text-primary); }
.testimonial-role { font-size: var(--fs-sm); color: var(--text-muted); }
.testimonial-stars { color: var(--accent); font-size: var(--fs-sm); margin-top: 2px; }

/* ── Gallery Preview ── */
.gallery-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px); gap: var(--space-md);
}
.gallery-preview-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-preview-item:hover img { transform: scale(1.05); }
.gallery-preview-item:first-child { grid-row: span 2; }
.gallery-preview-item .overlay {
  position: absolute; inset: 0;
  background: rgba(var(--primary-rgb),0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition-base);
}
.gallery-preview-item:hover .overlay { opacity: 1; }
.gallery-preview-item .overlay span { color: white; font-weight: var(--fw-semibold); font-size: var(--fs-lg); }

/* ── Enquiry CTA ── */
.cta-section {
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(var(--accent-rgb),0.06);
}
.cta-section::after {
  content: ''; position: absolute; bottom: -30%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(var(--brand-rgb),0.05);
}

.cta-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl); align-items: center;
  position: relative; z-index: 1;
}
.cta-text h2 { color: var(--text-light) !important; margin-bottom: var(--space-md); }
.cta-text p { color: rgba(255,255,255,0.7) !important; font-size: var(--fs-md); margin-bottom: var(--space-xl); }

.cta-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl); padding: var(--space-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-subtle);
}
.cta-form h3 { margin-bottom: var(--space-xl); text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto var(--space-2xl); }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-content { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .gallery-preview-item:first-child { grid-row: span 1; }
  .classes-scroll { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { min-height: auto; padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-3xl); }
  .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .achievement-number { font-size: var(--fs-2xl); }
}
