/* ===================================================================
   base.css — CSS Variables, Reset, Typography, Animations, Helpers
   EDX Talent Academy
=================================================================== */

:root {
  --primary: #ae0c74;
  --primary-light: #E948A3;
  --secondary: #7000FF;
  --surface: #f6f6f6;
  --bg: #FFFFFF;
}

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

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--bg);
  color: #0f0f0f;
  overflow-x: hidden;
}

/* === PAGE SYSTEM === */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* === SECTIONS === */
section {
  padding: 80px 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  color: #666;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin-top: .75rem;
}

/* === GRADIENT TEXT === */
.grad-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === HERO BADGE === */
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(112, 0, 255, 0.1);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* === BLOB BG === */
.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.fade-up {
  animation: fadeUp .7s ease forwards;
}

.float {
  animation: floatY 4s ease-in-out infinite;
}

.animate-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.25s; }
.delay-5 { animation-delay: 0.3s; }

/* === MATERIAL SYMBOLS === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .footer-grid,
  #programs-grid,
  .res-grid {
    grid-template-columns: 1fr !important;
  }

  .res-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .res-flex > div {
    width: 100% !important;
  }

  section {
    padding: 40px 1.5rem !important;
  }

  .hero-section,
  #home,
  #about {
    padding-top: 100px !important;
  }

  h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .card {
    padding: 1.5rem !important;
  }

  /* Responsive Button Fixes */
  .btn-grad,
  .btn-outline,
  .btn-pill {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box;
  }

  div[style*="gap:12px"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Responsive Hero Fixes */
  .hero-section .res-grid > div {
    text-align: center;
  }

  .responsive-hero-bg {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    aspect-ratio: 1 !important;
  }

  .responsive-hero-inner {
    width: 80% !important;
    max-width: 340px !important;
    height: auto !important;
    aspect-ratio: 1 !important;
  }

  .responsive-hero-img {
    width: 90% !important;
    height: auto !important;
  }

  .res-footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .res-footer-bottom > div {
    margin-bottom: 0.5rem;
  }
}
