/* ===== Base ===== */
:root {
  --night: #0c0f1c;
  --night-light: #12162a;
  --gold: #d4a95e;
  --gold-light: #e8caa0;
  --cream: #f3ede1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
}

.font-display {
  font-family: 'Cormorant Garamond', serif;
}

/* ===== Starfield background ===== */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.2); }
}

/* ===== Moon phases arc ===== */
.moon-arc {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 2.2vw;
  z-index: 1;
}

.moon-phase {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fdf6e3, #e8caa0 60%, #a9803f 100%);
  box-shadow: 0 0 20px rgba(232, 202, 160, 0.35);
  animation: floaty 8s ease-in-out infinite;
}

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

/* ===== Section dividers ===== */
.divider-gold {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 169, 94, 0.6), transparent);
}

/* ===== Card hover ===== */
.mastery-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.mastery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(212, 169, 94, 0.25);
  border-color: rgba(212, 169, 94, 0.55);
}

/* ===== Nav underline animation ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Fade-in-up scroll animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Gold outline button ===== */
.btn-outline-gold {
  border: 1px solid rgba(212, 169, 94, 0.6);
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: rgba(212, 169, 94, 0.12);
  border-color: var(--gold);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0c0f1c; }
::-webkit-scrollbar-thumb { background: #a9803f; border-radius: 4px; }

/* ===== Mobile menu ===== */
.mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ===== Testimonial avatars ===== */
.avatar-stack img {
  border: 2px solid var(--night);
}

/* ===== Fancy quote marks ===== */
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.5;
}
