/* ==========================================================================
   AURA ACADEMY - MODERN UTILITIES & ANIMATIONS
   ========================================================================== */

/* 1. Core Typography Styling Defaults */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  transition: background 0.3s ease;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(248, 250, 252, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* 3. Page Transitions (SPA) */
.page-container {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-container.active-page {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 4. Scroll Reveal (Fade-up) Animations */
.fade-up-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-element.fade-up-active {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Custom Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

/* 6. Soft Floating Ambient Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

.animate-float-slow {
  animation: float 8s ease-in-out infinite;
}

.animate-float-slower {
  animation: float 12s ease-in-out infinite;
}

/* 7. Timeline Component Styles */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(249, 115, 22, 0.2);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline::before {
    left: 20px;
  }
}

/* 8. Card Hover Effect Classes */
.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-effect:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.dark .card-hover-effect:hover {
  box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.5);
  border-color: rgba(249, 115, 22, 0.2);
}

/* 9. FAQ Accordion Grid-Template Transition Helper */
.faq-answer-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.faq-active .faq-answer-container {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-content {
  overflow: hidden;
}

/* 10. Custom Text Underline for Active Menu */
.nav-link-underline {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.nav-link.active .nav-link-underline {
  width: 100%;
}
