/* =============================================
   AURORA - Global Styles
   Dawn of Young Minds
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Aurora Colour Palette */
  --midnight-blue: #061830;
  --dark-slate-blue: #14315D;
  --steel-blue: #446592;
  --pale-slate-beige: #EAE6D6;
  --cream: #FEF9C8;

  --dark-orange: #F6923A;
  --jonquil-yellow: #FDCB4B;
  --safety-orange: #F98734;
  --cranberry-red: #E84363;
  --hot-pink: #E44298;

  /* Derived */
  --bg-primary: var(--midnight-blue);
  --bg-secondary: var(--dark-slate-blue);
  --bg-card: rgba(10, 25, 55, 0.45);
  --text-primary: #ffffff;
  --text-secondary: var(--pale-slate-beige);
  --text-muted: var(--steel-blue);
  --accent-warm: var(--dark-orange);
  --accent-glow: var(--jonquil-yellow);
  --accent-vivid: var(--cranberry-red);
  --accent-pink: var(--hot-pink);

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(246, 146, 58, 0.2);
  --shadow-card: 0 8px 32px rgba(6, 24, 48, 0.5);
  --shadow-warm: 0 4px 24px rgba(253, 203, 75, 0.25);
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  /* Fixed starry-sky background across the whole site */
  background-color: var(--midnight-blue);
  background-image: url('../hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Custom Aurora cursor (32x32px with top-center hotspot at 16 0) */
  cursor: url('cursor.png') 16 0, url('../cursor.png') 16 0, auto;
}

html, body, *, a, button, [role="button"], input, select, textarea, label {
  cursor: url('cursor.png') 16 0, url('../cursor.png') 16 0, auto !important;
}

/* Global dark overlay so text is always readable on the starry bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 34, 0.60);
  pointer-events: none;
  z-index: 0;
}

/* Every direct page child sits above the overlay */
.navbar, main, section, footer, .page-hero {
  position: relative;
  z-index: 1;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--midnight-blue); }
::-webkit-scrollbar-thumb { background: var(--dark-orange); border-radius: 3px; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { color: var(--text-secondary); line-height: 1.8; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ─── Container ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Utility Classes ─── */
.section { padding: var(--section-padding); }

.text-gradient {
  background: linear-gradient(135deg, var(--jonquil-yellow), var(--dark-orange), var(--cranberry-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #fff, var(--pale-slate-beige), var(--steel-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(246, 146, 58, 0.15);
  border: 1px solid rgba(246, 146, 58, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark-orange);
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dark-orange), var(--cranberry-red));
  color: white;
  box-shadow: 0 4px 20px rgba(232, 67, 99, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 67, 99, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--dark-orange);
  background: rgba(246, 146, 58, 0.1);
  color: var(--dark-orange);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--jonquil-yellow);
  border: 1.5px solid var(--jonquil-yellow);
}

.btn-outline:hover {
  background: var(--jonquil-yellow);
  color: var(--midnight-blue);
  transform: translateY(-2px);
}

/* ─── Cards ─── */
.card {
  background: rgba(8, 20, 50, 0.4);
  border: 1px solid rgba(68, 101, 146, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(246, 146, 58, 0.05), transparent, rgba(232, 67, 99, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(246, 146, 58, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card:hover::before { opacity: 1; }

/* ─── Navigation — floating pill ─── */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1100px;
  transition: var(--transition);
  /* No background on init — the pill itself is styled */
  background: transparent;
}

/* The pill container */
.navbar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: rgba(8, 16, 36, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 56px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.45);
}

/* Scrolled — just deepen the pill */
.navbar.scrolled .navbar-pill {
  background: rgba(5, 12, 28, 0.88);
  box-shadow: 0 6px 40px rgba(0,0,0,0.6);
}

/* Brand — logo + wordmark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* Dark circular bg masks white PNG background */
  background: radial-gradient(circle, rgba(5,15,38,0.9) 55%, transparent 75%);
  border-radius: 50%;
  padding: 2px;
  filter: brightness(1.05) contrast(1.1);
  transition: var(--transition);
}

.nav-logo-img:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(253,203,75,0.6));
}

.footer-logo-img {
  height: 68px;
  width: auto;
  display: block;
  background: radial-gradient(circle, rgba(5,15,38,0.9) 55%, transparent 75%);
  border-radius: 50%;
  padding: 4px;
  filter: brightness(1.05) contrast(1.1);
  margin-bottom: 4px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-word {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
}

.nav-tagline {
  font-size: 0.55rem;
  color: var(--jonquil-yellow);
  letter-spacing: 0.8px;
  font-style: italic;
  opacity: 0.8;
}

/* Nav links — centred in the remaining space */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dark-orange);
}

/* Join Community CTA */
.nav-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--cranberry-red) 60%, var(--hot-pink) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 16px rgba(228,66,152,0.4);
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.nav-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(228,66,152,0.6);
  color: #fff;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile open state */
@media (max-width: 768px) {
  .navbar { top: 12px; width: calc(100% - 24px); }
  .nav-links { display: none; }
  .nav-join-btn { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(5, 12, 28, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
  }
}


/* ─── Hero Particles / Stars ─── */
.stars-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}

/* Larger glowing stars */
.star-sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(253,203,75,0.6) 40%, transparent 70%);
  animation: sparkle-pulse 4s infinite alternate ease-in-out;
}

/* 4-point cross / ✦ sparkle */
.star-cross {
  position: absolute;
  animation: cross-twinkle 5s infinite alternate ease-in-out;
}

.star-cross::before,
.star-cross::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  border-radius: 50%;
}

.star-cross::before {
  width: 100%;
  height: 30%;
  top: 35%;
  left: 0;
}

.star-cross::after {
  width: 30%;
  height: 100%;
  top: 0;
  left: 35%;
}

@keyframes twinkle {
  from { opacity: 0.2; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.3); }
}

@keyframes sparkle-pulse {
  0%   { opacity: 0.3; transform: scale(0.8); box-shadow: 0 0 4px 2px rgba(253,203,75,0.2); }
  50%  { opacity: 0.9; transform: scale(1.4); box-shadow: 0 0 10px 4px rgba(253,203,75,0.5); }
  100% { opacity: 0.5; transform: scale(1);   box-shadow: 0 0 6px 2px rgba(253,203,75,0.3); }
}

@keyframes cross-twinkle {
  0%   { opacity: 0.1; transform: scale(0.7) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.3) rotate(15deg); }
  100% { opacity: 0.3; transform: scale(0.9) rotate(0deg); }
}

/* ─── Aurora Glow Effects ─── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-orb-orange {
  background: radial-gradient(circle, rgba(246,146,58,0.25) 0%, transparent 70%);
}

.glow-orb-blue {
  background: radial-gradient(circle, rgba(68,101,146,0.3) 0%, transparent 70%);
}

.glow-orb-pink {
  background: radial-gradient(circle, rgba(228,66,152,0.2) 0%, transparent 70%);
}

/* ─── Page Hero ─── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ─── Footer ─── */
.footer {
  background: rgba(4,10,28,0.75);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-brand { max-width: 320px; }

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.05);
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 1rem;
  font-style: italic;
  color: var(--jonquil-yellow);
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-brand > p {
  font-size: 0.85rem;
  color: var(--steel-blue);
  line-height: 1.7;
}

/* Social icons row */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-blue);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(246,146,58,0.15);
  border-color: rgba(246,146,58,0.4);
  color: var(--dark-orange);
  transform: translateY(-2px);
}

/* Link columns */
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--steel-blue);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

/* Copyright bar */
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ─── Animations ─── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Divider ─── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--dark-orange), var(--cranberry-red));
  border-radius: 2px;
  margin: 16px auto 0;
}

.divider-left { margin-left: 0; }

/* ─── Badge ─── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-orange { background: rgba(246,146,58,0.15); color: var(--dark-orange); border: 1px solid rgba(246,146,58,0.3); }
.badge-pink { background: rgba(228,66,152,0.15); color: var(--hot-pink); border: 1px solid rgba(228,66,152,0.3); }
.badge-blue { background: rgba(68,101,146,0.15); color: var(--steel-blue); border: 1px solid rgba(68,101,146,0.3); }
.badge-green { background: rgba(50,205,50,0.1); color: #32cd32; border: 1px solid rgba(50,205,50,0.2); }

/* ─── Input ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pale-slate-beige);
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(20, 49, 93, 0.5);
  border: 1px solid rgba(68, 101, 146, 0.4);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--steel-blue); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--dark-orange);
  box-shadow: 0 0 0 3px rgba(246, 146, 58, 0.15);
  background: rgba(20, 49, 93, 0.8);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--dark-slate-blue); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 24, 48, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid rgba(68, 101, 146, 0.2);
    gap: 4px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
