/**
 * GALACTIV8 WEBSITE STYLESHEET — MASTER TEMPLATE
 *
 * A comprehensive, reusable baseline stylesheet for Galactiv8 pages.
 * Includes design tokens, layout foundations, typography, effects,
 * animations, and interactive components.
 *
 * Usage: Link this stylesheet in your page's <head>, then customize
 * sections as needed for individual pages. All sections are modular
 * and can be extended or overridden.
 *
 * Structure:
 * 1. Design Tokens (Colors, Typography, Animations)
 * 2. Base Reset & Body
 * 3. Background & Atmospheric Effects
 * 4. Page Layout & Wrapper
 * 5. Navigation & Header
 * 6. Typography & Text Effects
 * 7. Buttons & Interactive Elements
 * 8. Glass Morphism & Cards
 * 9. Visual Effects (Glows, Rings, Aurora)
 * 10. Animations & Keyframes
 * 11. Responsive Design
 */

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — Colors, Sizing, Typography, Animation Curves
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ─── COLOR PALETTE ─────────────────────────────────────────── */
  --space:        #050010;      /* Deep space black background */
  --deep:         #08001a;      /* Deeper space for layering */
  --ink:          #f0eeff;      /* Primary text (light off-white) */
  --muted:        rgba(218,208,255,0.82);     /* Secondary text */
  --faint:        rgba(190,170,255,0.22);     /* Tertiary text */

  /* ─── NEON & ACCENT COLORS ─────────────────────────────────── */
  --neon:         #00d4ff;      /* Cyan accent (navigation, highlights) */
  --pink:         #ff3dd4;      /* Hot pink (primary accent) */
  --pink-s:       #ff7de8;      /* Soft pink (secondary accent) */
  --purple:       #7b2fff;      /* Deep purple (gradients) */
  --purple-s:     #b47aff;      /* Soft purple (gradients, text) */
  --purple-v:     #9b10ff;      /* Vibrant purple (hover states) */
  --gold:         #ffd98a;      /* Gold (stars, special elements) */

  /* ─── GLASS & TRANSPARENCY ─────────────────────────────────── */
  --glass:        rgba(255,255,255,0.035);     /* Subtle glass bg */
  --glass-b:      rgba(180,122,255,0.14);      /* Glass with purple tint */

  /* ─── EASING & ANIMATION CURVES ────────────────────────────── */
  --ease:         cubic-bezier(.22,.61,.36,1);   /* Standard easing */
  --ease-out:     cubic-bezier(.16,1,.3,1);      /* Snappy easing */

  /* ─── SVG DECORATIVE ASSETS ────────────────────────────────── */
  --flower:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='18' cy='12' r='6'/%3E%3Ccircle cx='15' cy='17.2' r='6'/%3E%3Ccircle cx='9' cy='17.2' r='6'/%3E%3Ccircle cx='6' cy='12' r='6'/%3E%3Ccircle cx='9' cy='6.8' r='6'/%3E%3Ccircle cx='15' cy='6.8' r='6'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════════
   2. BASE RESET & BODY
   ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--space);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   3. BACKGROUND & ATMOSPHERIC EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* ─── NEBULA FLOURISH (Corner Glows) ───────────────────────────
   Purple glow top-left, cyan glow bottom-right, continuously drifting.
   Perfect for atmospheric depth without adding much visual weight. */

.bg-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-nebula::before, .bg-nebula::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.bg-nebula::before {
  width: 900px;
  height: 900px;
  top: -220px;
  left: -220px;
  background: radial-gradient(ellipse at center,
    rgba(123,47,255,.13) 0%,
    rgba(155,16,255,.055) 42%,
    transparent 72%);
  animation: nebulaDrift1 30s ease-in-out infinite alternate;
}

.bg-nebula::after {
  width: 740px;
  height: 740px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(ellipse at center,
    rgba(0,212,255,.11) 0%,
    rgba(0,150,255,.04) 42%,
    transparent 72%);
  animation: nebulaDrift2 36s ease-in-out infinite alternate;
}

/* ─── GALAXY SHADER BACKGROUND (Starfield) ────────────────────
   Fixed, full-screen canvas for THREE.js or WebGL starfield.
   Sits behind all content at z-index:0. Add <canvas id="galaxy">
   and render your stars/particles into it. */

#galaxy {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ─── VIGNETTE OVERLAY ────────────────────────────────────────
   Soft radial gradient overlay, darkens edges to keep focus on center.
   Optional: remove if you prefer no vignette. */

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%,
    transparent 0%,
    transparent 52%,
    rgba(3,0,12,.55) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   4. PAGE LAYOUT & WRAPPER
   ═══════════════════════════════════════════════════════════════ */

.page {
  position: relative;
  z-index: 1;
}

/* ─── SECTION SPACING ──────────────────────────────────────── */

.section-pad {
  padding: clamp(90px,12vh,160px) 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,64px);
}

/* ─── SEPARATOR LINE ──────────────────────────────────────── */

.sep {
  height: 1px;
  margin: 0 clamp(20px,5vw,64px);
  background: linear-gradient(to right,
    transparent,
    rgba(180,122,255,.18),
    transparent);
}

/* ═══════════════════════════════════════════════════════════════
   5. NAVIGATION & HEADER
   ═══════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px clamp(20px,5vw,64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .5s, backdrop-filter .5s, border-color .5s;
}

nav.scrolled {
  background: rgba(5,0,16,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,122,255,.1);
}

.nav-logo img {
  height: 54px;
  width: auto;
}

/* ─── NAV LINKS (Centered) ─────────────────────────────────── */

.nav-links {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--neon);
}

/* ─── NAV CTA (Right side button) ──────────────────────────── */

.nav-cta {
  position: relative;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(180,122,255,.3);
  color: var(--ink);
  transition: transform .25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   6. TYPOGRAPHY & TEXT EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* ─── SECTION TAGS/EYEBROWS ────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 18px;
}

/* ─── HEADINGS ─────────────────────────────────────────────── */

.h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem,4.5vw,3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}

h3 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem,4vw,3.2rem);
  letter-spacing: -.025em;
  margin-bottom: 20px;
  color: var(--ink);
  line-height: 1.2;
}

h3 em {
  font-style: italic;
  font-weight: 400;
}

/* ─── LEAD/BODY TEXT ──────────────────────────────────────── */

.lead {
  font-size: clamp(.95rem,1.4vw,1.05rem);
  color: var(--muted);
  line-height: 1.8;
}

/* ─── STANDARD TEXT (Reusable body text: Sora, 0.98rem) ────── */

.standard-text {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(220,212,255,.93);
}

/* ─── GRADIENT TEXT (Inline or Block) ──────────────────────── */

.grad {
  background: linear-gradient(135deg,
    var(--purple-s) 0%,
    var(--pink-s) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

em.grad {
  display: inline-block;
  padding-right: .12em;
  margin-right: -.12em;
}

/* ─── SPLIT TEXT ANIMATION (GSAP SplitText) ────────────────
   Used with GSAP SplitText for character reveal animations.
   Add font-kerning:none to prevent jumping. */

.split-target {
  overflow: hidden;
  display: inline-block;
  font-kerning: none;
  text-rendering: optimizeSpeed;
}

.grad-char {
  background: linear-gradient(135deg,
    var(--purple-s) 0%,
    var(--pink-s) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  will-change: transform, opacity;
}

/* ─── SHINY TEXT (Animated Shimmer) ──────────────────────────
   Sweeps a highlight band across background-clipped text.
   Great for headers and special text. */

.shiny-text {
  --shiny-duration: 4.8s;
  display: inline-block;
  background-image: linear-gradient(120deg,
    var(--purple-s) 0%,
    var(--purple-s) 35%,
    #ffffff 50%,
    var(--purple-s) 65%,
    var(--purple-s) 100%);
  background-size: 200% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinySweep var(--shiny-duration) linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   7. BUTTONS & INTERACTIVE ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ─── PRIMARY BUTTON ────────────────────────────────────────
   Gradient fill with glow on hover. Best for CTAs. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg,
    var(--purple-v),
    var(--pink));
  color: #fff;
  box-shadow: 0 0 40px rgba(155,16,255,.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(155,16,255,.5);
}

/* ─── SPECULAR BUTTON (WebGL Shine Effect) ──────────────────
   Transparent bg with animated shine border (rendered via canvas).
   Falls back to subtle border if JS unavailable. */

.btn-specular {
  position: relative;
  background: rgba(255,255,255,.02);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(180,122,255,.3);
  border-radius: 14px;
}

.btn-specular:hover {
  transform: translateY(-3px);
}

.sb-fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.sb-fx canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sb-label {
  position: relative;
  z-index: 1;
}

/* ─── GHOST BUTTON (Outline style) ────────────────────────── */

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(180,122,255,.35);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(123,47,255,.12);
  border-color: var(--purple-s);
  transform: translateY(-2px);
}

/* ─── SMALL BUTTON VARIANT ────────────────────────────────── */

.btn-sm {
  padding: 0 24px !important;
  font-size: .74rem !important;
  height: 38px !important;
  line-height: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER STYLING
   ═══════════════════════════════════════════════════════════════ */

footer {
  position: relative;
  padding: 24px clamp(20px,5vw,64px) 28px;
  border-top: 1px solid rgba(180,122,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s;
}

.footer-links a:hover {
  color: var(--neon);
}

.footer-copy {
  font-size: .72rem;
  color: #fff;
  text-align: right;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.footer-socials a {
  display: flex;
  color: #fff;
  transition: color .25s, transform .25s var(--ease);
}

.footer-socials a:hover {
  color: var(--neon);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

/* ─── SCROLL HINT (Animated instruction) ───────────────────── */

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .45;
  animation: shFade 3s ease-in-out infinite;
  transition: opacity .4s;
}

.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--purple-s), transparent);
  animation: shLine 3s ease-in-out infinite;
}

.scroll-hint span {
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--purple-s);
}

/* ═══════════════════════════════════════════════════════════════
   8. GLASS MORPHISM & CARDS
   ═══════════════════════════════════════════════════════════════ */

/* ─── GLASS CARD (Frosted glass effect) ──────────────────────
   Translucent background + backdrop blur + subtle inset glow.
   Perfect for overlay panels and content cards. */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0,0,0,.3),
              inset 0 1px 0 rgba(255,255,255,.04);
}

/* ─── FLOATING CARD (Subtle shadow + hover lift) ───────────── */

.stat-card {
  padding: 48px 36px;
  border-radius: 24px;
  text-align: center;
  background: rgba(123,47,255,.055);
  border: 1px solid rgba(180,122,255,.15);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(123,47,255,.12),
    transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(180,122,255,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

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

/* ═══════════════════════════════════════════════════════════════
   9. VISUAL EFFECTS (Glows, Rings, Aurora, Particles)
   ═══════════════════════════════════════════════════════════════ */

/* ─── ROTATING AURORA RING ───────────────────────────────────
   Conic gradient ring that spins continuously.
   Perfect for portrait frames or planet effects. */

.ring-rotate {
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(123,47,255,0) 0%,
    rgba(123,47,255,.75) 25%,
    rgba(255,61,212,.55) 50%,
    rgba(0,212,255,.4) 72%,
    rgba(123,47,255,0) 100%);
  animation: ringSpinInfinite 10s linear infinite;
}

/* ─── BREATHING RING (Pulse animation) ────────────────────── */

.ring-breathe {
  border-radius: 50%;
  border: 1px solid rgba(123,47,255,.14);
  box-shadow:
    0 0 0 9px rgba(123,47,255,.05),
    0 0 0 20px rgba(123,47,255,.025),
    0 0 0 32.5px rgba(0,212,255,.015),
    0 0 0 47.5px rgba(123,47,255,.008);
  animation: ringBreatheInfinite 5s ease-in-out infinite;
}

/* ─── GLOW BOX (Outer glow effect) ────────────────────────── */

.glow-box {
  position: relative;
}

.glow-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  z-index: -1;
  background: linear-gradient(135deg,
    rgba(255,61,212,.35),
    rgba(0,212,255,.25));
  filter: blur(20px);
}

/* ─── TWINKLE STAR (Pulsing point of light) ──────────────── */

.star-twinkle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e6dcff;
  box-shadow: 0 0 8px rgba(180,122,255,.9),
              0 0 22px rgba(123,47,255,.45);
  animation: starTwinkleInfinite 5.5s ease-in-out infinite;
}

/* ─── ARRIVAL STAR (Radiant multi-layer glow) ──────────────── */

.arrival-star {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.arrival-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  box-shadow:
    0 0 12px rgba(255,255,255,.9),
    0 0 28px rgba(0,212,255,.8),
    0 0 70px rgba(123,47,255,.55),
    0 0 130px rgba(123,47,255,.3);
  animation: arrivalBreatheInfinite 4s ease-in-out infinite;
}

.arrival-star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,.7),
    transparent);
  z-index: 1;
}

.arrival-star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 54px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg,
    transparent,
    rgba(180,122,255,.6),
    transparent);
  z-index: 1;
}

/* ─── CONSTELLATION SPINE (Gradient line for timeline) ────── */

.constellation-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-.5px);
  background: linear-gradient(to bottom,
    rgba(180,122,255,0) 0%,
    rgba(180,122,255,.14) 14%,
    rgba(123,47,255,.28) 45%,
    rgba(0,212,255,.42) 78%,
    rgba(0,212,255,.75) 100%);
}

/* ═══════════════════════════════════════════════════════════════
   10. ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */

/* ─── NEBULA DRIFT (Background atmospheric drift) ─────────── */

@keyframes nebulaDrift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(70px, 50px) scale(1.12);
  }
}

@keyframes nebulaDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-55px, -70px) scale(1.15);
  }
}

/* ─── RING ANIMATIONS ──────────────────────────────────────── */

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

@keyframes ringBreatheInfinite {
  0%, 100% {
    opacity: .55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

/* ─── STAR TWINKLE ────────────────────────────────────────── */

@keyframes starTwinkleInfinite {
  0%, 100% {
    opacity: .8;
    transform: scale(.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* ─── ARRIVAL STAR BREATHING ───────────────────────────────── */

@keyframes arrivalBreatheInfinite {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(255,255,255,.9),
      0 0 28px rgba(0,212,255,.8),
      0 0 70px rgba(123,47,255,.55),
      0 0 130px rgba(123,47,255,.3);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255,255,255,1),
      0 0 38px rgba(0,212,255,.95),
      0 0 90px rgba(123,47,255,.7),
      0 0 160px rgba(123,47,255,.4);
  }
}

/* ─── SHINY SWEEP (Text shimmer) ──────────────────────────── */

@keyframes shinySweep {
  0% {
    background-position: 150% center;
  }
  100% {
    background-position: -50% center;
  }
}

/* ─── FADE UP (Entrance animation) ────────────────────────── */

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

/* ─── SCROLL HINT ANIMATIONS ──────────────────────────────── */

@keyframes shFade {
  0%, 100% {
    opacity: .25;
  }
  50% {
    opacity: .65;
  }
}

@keyframes shLine {
  0%, 100% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1.4);
    transform-origin: top;
  }
}

/* ─── MANDALA ANIMATIONS (Journey section) ──────────────── */

@keyframes mandalaPulse {
  0%, 100% {
    opacity: .07;
  }
  50% {
    opacity: .11;
  }
}

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

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

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

/* ─── HOLOGRAPHIC SWEEP (Video overlay shimmer) ─────────── */

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

/* ─── WAVE PULSE (Frequency bars) ────────────────────────── */

@keyframes hzWavePulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: .22;
  }
  50% {
    transform: scaleY(var(--peak, 2));
    opacity: .88;
  }
}

/* ─── PILL PULSE (Interactive button state) ──────────────── */

@keyframes hzPillPulse {
  0% {
    border-color: rgba(255,61,212,.9);
    color: rgba(255,100,220,1);
  }
  50% {
    border-color: rgba(0,212,255,.9);
    color: rgba(0,212,255,1);
  }
  100% {
    border-color: rgba(255,61,212,.9);
    color: rgba(255,100,220,1);
  }
}

/* ═══════════════════════════════════════════════════════════════
   11. RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

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

  .container {
    padding: 0 clamp(20px, 5vw, 40px);
  }

  h3 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
  }
}

@media (max-width: 560px) {
  .btn {
    font-size: .72rem;
    padding: 12px 24px;
  }

  .h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
}

/* ─── REDUCED MOTION ──────────────────────────────────────–
   Respects prefers-reduced-motion for accessibility. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-nebula::before,
  .bg-nebula::after {
    animation: none;
  }

  .shiny-text {
    animation: none;
    background-position: 50% center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM PROPERTIES (Variables for Easy Tweaking)
   ═══════════════════════════════════════════════════════════════ */

/* ─── WAVE VISUALIZATION (Frequency bars) ───────────────────
   Adjust these per use case:
   --dur: animation duration
   --delay: stagger delay
   --peak: height multiplier at peak */

.wave-bar {
  /* Default values; override per bar with data attributes */
  --dur: 1.8s;
  --delay: 0s;
  --peak: 2;
}

/* ─── LOGOLOOP (Scrolling brand strip) ────────────────────
   Adjust gap and logo height as needed: */

.logoloop {
  --logoloop-gap: 48px;
  --logoloop-logoHeight: 44px;
}

/* ═════════════════════════════════════════════════════════════════
   GALACTIV8 LOVE CARDS
   The five portal cards from the galactiv8.love landing page.
   A ProfileCard-style tile: logo panel on top, shiny animated title,
   and a frosted bottom bar for a short descriptive line.

   MARKUP:
     <div class="portals">
       <div class="portals-grid">
         <div class="love-card-wrapper" style="--inner-gradient:…; --behind-glow-color:…;">
           <div class="love-card-behind"></div>
           <a class="love-card-shell" href="#">
             <section class="love-card">
               <div class="love-card-inside">
                 <div class="love-card-shine"></div>
                 <div class="love-card-glare"></div>
                 <div class="love-card-avatar-area"><img class="love-card-avatar" src="…" alt="…"></div>
                 <div class="love-card-details"><h3>Title<br>Here</h3></div>
                 <div class="love-card-bar"><span class="love-card-desc">Short description</span></div>
               </div>
             </section>
           </a>
         </div>
         … repeat for the other four cards …
       </div>
     </div>

   NOTE: the cursor tilt / shine follow is driven by the ProfileCard JS
   that updates the --pointer-* and --rotate-* variables. Without it the
   cards still render fully; they simply sit flat instead of tilting.
   ═════════════════════════════════════════════════════════════════ */

/* Grid: 5 across, reflowing to 3 then 2 on smaller screens */
.portals {
  width: 100%; max-width: 1280px;
  padding: 0 clamp(20px,4vw,60px) clamp(20px,4vh,40px);
  margin: -18px auto 0;
}
.portals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px,1.1vw,12px);
}
/* 3 across, final 2 centred on the second row */
@media (max-width: 980px) {
  .portals-grid { grid-template-columns: repeat(6, 1fr); }
  .portals-grid > * { grid-column: span 2; }
  .portals-grid > *:nth-child(4) { grid-column: 2 / span 2; }
}
/* 2 across, final card centred on its own row */
@media (max-width: 560px) {
  .portals-grid { grid-template-columns: repeat(4, 1fr); }
  .portals-grid > * { grid-column: span 2; }
  .portals-grid > *:nth-child(4) { grid-column: span 2; }
  .portals-grid > *:nth-child(5) { grid-column: 2 / span 2; }
}

/* Card wrapper — holds the per-card colour variables */
.love-card-wrapper {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --background-x: 50%;
  --background-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --behind-glow-color: rgba(125,190,255,.67);
  --behind-glow-size: 50%;
  --inner-gradient: linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%);
  position: relative;
  perspective: 700px;
  width: 100%;
}
/* Soft coloured glow behind the card */
.love-card-behind {
  position: absolute;
  inset: -14%;
  z-index: 0;
  border-radius: 32px;
  background: radial-gradient(circle at var(--background-x) var(--background-y), var(--behind-glow-color) 0%, transparent var(--behind-glow-size));
  filter: blur(28px);
  opacity: calc(.55 + var(--pointer-from-center) * .3);
  transition: opacity .4s ease;
  pointer-events: none;
}
/* Tilting shell (3D plane) */
.love-card-shell {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 24px;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
  transform-style: preserve-3d;
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  text-decoration: none;
}
.love-card-shell.active { transition: transform .08s linear; }
.love-card-shell.entering { transition: transform .18s ease-out; }
/* Card face */
.love-card {
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--inner-gradient);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04) inset;
  /* Keeps the rounded clip during the 3D rotation */
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
  transform: translateZ(0);
}
.love-card-inside { position: relative; width: 100%; display: flex; flex-direction: column; }
.love-card-inside .love-card-details { order: -1; padding-top: 26px; }
.love-card-inside .love-card-avatar-area { order: 0; margin-top: 4px; }
.love-card-inside .love-card-bar { order: 1; }
/* Cursor-follow shine */
.love-card-shine {
  position: absolute; inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.35) 0%, transparent 45%);
  mix-blend-mode: color-dodge;
  opacity: calc(.2 + var(--pointer-from-center) * .5);
  pointer-events: none;
  transition: opacity .35s ease;
}
/* Diagonal glare sweep */
.love-card-glare {
  position: absolute; inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent calc(var(--pointer-from-left) * 100% - 18%), rgba(255,255,255,.55) calc(var(--pointer-from-left) * 100%), transparent calc(var(--pointer-from-left) * 100% + 18%));
  mix-blend-mode: overlay;
  opacity: calc(var(--pointer-from-center) * .6);
  pointer-events: none;
  transition: opacity .35s ease;
}
/* Logo panel */
.love-card-avatar-area {
  position: relative; z-index: 1;
  aspect-ratio: 1 / 0.58;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(6px,2%,14px);
  background: radial-gradient(ellipse at 50% 35%, rgba(155,16,255,.14) 0%, transparent 70%);
}
.love-card-avatar {
  max-width: 80%; max-height: 80%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(155,16,255,.35));
  transform: translateZ(40px);
}
/* Emoji placeholder (when there is no logo image yet) */
.love-card-avatar-emoji {
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  transform: translateZ(40px);
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.4));
}
/* Title */
.love-card-details {
  position: relative; z-index: 1;
  padding: 0 clamp(16px,5%,26px);
  text-align: center;
}
.love-card-details h3 {
  font-family: "Sora", sans-serif;
  font-weight: 600; font-size: clamp(.88rem,1.5vw,1.12rem);
  letter-spacing: -.02em; line-height: 1.5;
  text-transform: uppercase;
  /* ShinyText — animated highlight sweeping across the title */
  color: var(--muted);
  background-image: linear-gradient(120deg,
    var(--muted) 0%, var(--muted) 35%, #ffffff 50%, var(--muted) 65%, var(--muted) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: love-card-shiny-sweep 4s linear infinite;
}
@keyframes love-card-shiny-sweep {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}
@media (prefers-reduced-motion: reduce) {
  .love-card-details h3 { animation: none; background-position: 50% center; }
}
/* Bottom frosted bar with a short descriptive line */
.love-card-bar {
  display: flex; align-items: center; justify-content: center;
  min-height: 62px;
  padding: 16px 14px;
  margin-top: 12px;
  background: rgba(4,0,14,.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.love-card-desc {
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: .8rem;
  color: var(--muted);
  opacity: .95;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
}

/* ═════════════════════════════════════════════════════════════════
   USAGE GUIDE
   ═════════════════════════════════════════════════════════════════

   1. STRUCTURE YOUR PAGE
      Link this stylesheet in <head>, then add your HTML sections.

   2. ADD BACKGROUND EFFECTS
      - Wrap content in a .page div
      - Add <canvas id="galaxy"></canvas> before .page for starfield
      - Add <div class="bg-nebula"></div> for corner glows
      - Add <div class="bg-vignette"></div> for edge darkening

   3. BUILD YOUR HEADER
      - Use <nav> with .nav-logo, .nav-links, .nav-cta classes
      - Nav auto-adds .scrolled class on scroll (via JS)

   4. CREATE SECTIONS
      - Use <section class="section-pad"> for full-height sections
      - Use <div class="container"> for content alignment
      - Use semantic HTML (h1, h2, h3, p, etc.)

   5. ADD INTERACTIVE EFFECTS
      - Use .btn, .btn-primary, .btn-ghost for buttons
      - Use .glass for frosted panels
      - Use .stat-card for hover-lift cards
      - Use .grad for gradient text

   6. IMPLEMENT ANIMATIONS
      - Use animation classes directly or add via CSS
      - Override --shiny-duration for text shimmer timing
      - Use GSAP for complex timeline sequencing

   7. CUSTOMIZE COLORS
      - Edit :root variables for global color changes
      - Create new color variables as needed
      - Use rgba() for transparency layers

   TIPS FOR NEW PAGES:
   - Copy this stylesheet to your page
   - Modify section padding/gaps for your layout
   - Add section-specific classes alongside these base styles
   - Use CSS custom properties for easy tweaking per section
   - Keep animations subtle; 3-5 seconds is typical

   ════════════════════════════════════════════════════════════════ */
