/* The Rising Stars - Core Design System & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #030305;
  --bg-card: #0b0b0f;
  --primary-orange: #e06a06; /* Rich Metallic Copper/Bronze */
  --accent-amber: #ffd700; /* Brilliant Gold */
  --accent-magenta: #d81b60; /* Vibrant Brand Magenta */
  --accent-purple: #8e24aa; /* Vibrant Deep Purple */
  --accent-green: #00e676;
  --accent-blue: #00e5ff;
  --text-light: #f5f5f7;
  --text-muted: #8a8a9e;
  --glass-bg: rgba(11, 11, 15, 0.45);
  --glass-border: rgba(255, 255, 255, 0.07);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary-orange), var(--accent-amber), var(--accent-magenta));
  --gradient-logo: linear-gradient(135deg, var(--primary-orange), var(--accent-magenta));
  --gradient-gold: linear-gradient(135deg, var(--primary-orange), var(--accent-amber));

  /* Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-subheading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Dynamic Sky Custom Properties (controlled by JS scroll tracker) */
  --sky-color-top: #020203;
  --sky-color-bottom: #06060a;
  --sun-y: 85%;
  --sun-glow: 40px;
  --sun-scale: 1;
  --stars-opacity: 0.95;
  --mountains-tint: #030305;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #2b2b35;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

/* Typography Utility */
h1, h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

h3, h4, h5, h6 {
  font-family: var(--font-subheading);
  letter-spacing: 0.01em;
  font-weight: 700;
}

p {
  font-family: var(--font-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
}

.text-orange {
  color: var(--primary-orange);
}

.text-amber {
  color: var(--accent-amber);
}

/* --- VOLUMETRIC BACKGROUND AMBIENT GLOW ORBS --- */
.ambient-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  filter: blur(130px);
  mix-blend-mode: screen;
  will-change: filter, transform;
}

.orb-magenta {
  background: radial-gradient(circle, var(--accent-magenta) 0%, rgba(216, 27, 96, 0) 70%);
}
.orb-purple {
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(142, 36, 170, 0) 70%);
}
.orb-orange {
  background: radial-gradient(circle, var(--primary-orange) 0%, rgba(224, 106, 6, 0) 70%);
}
.orb-amber {
  background: radial-gradient(circle, var(--accent-amber) 0%, rgba(255, 215, 0, 0) 70%);
}
.orb-blue {
  background: radial-gradient(circle, var(--accent-blue) 0%, rgba(0, 229, 255, 0) 70%);
}

@media (max-width: 768px) {
  .ambient-glow-orb {
    width: 320px;
    height: 320px;
    filter: blur(80px);
    opacity: 0.18;
  }
}

/* Layout Utilities */
.section-padding {
  padding: 100px 5% 100px 5%;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 4% 60px 4%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 65px;
  position: relative;
  z-index: 10;
}

.section-header h2 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--primary-orange), var(--accent-amber), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.8rem;
  }
}

/* --- DYNAMIC SKY BACKDROP (Fixed Layer) --- */
.sky-scroll-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, var(--sky-color-top), var(--sky-color-bottom));
  z-index: 0;
  pointer-events: none;
  transition: background 0.1s ease-out;
}

/* Starfield Layer */
.stars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: var(--stars-opacity);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease-out;
}

/* Sun Orb Layer */
.sun-orb {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 15%, var(--accent-amber) 55%, var(--primary-orange) 85%);
  box-shadow: 0 0 var(--sun-glow) var(--primary-orange);
  transform: translate(-50%, var(--sun-y)) scale(var(--sun-scale));
  z-index: 2;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  filter: blur(1px);
}

@media (max-width: 768px) {
  .sun-orb {
    width: 100px;
    height: 100px;
  }
}

/* Silhouette Foreground Ridge (Sits behind Hero Content but in front of Sun) */
.mountain-silhouette-fixed {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 25vh;
  z-index: 3;
  pointer-events: none;
}

.mountain-silhouette-fixed svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mountain-path {
  fill: var(--mountains-tint);
  transition: fill 0.5s ease-out;
}

/* Base Wrapper for all Content Sections to float above fixed background */
#site-wrapper {
  position: relative;
  z-index: 10;
}

/* --- HERO SECTION --- */
.hero-section {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 30px 5%;
  z-index: 10;
  overflow: hidden;
}

.hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Navigation Bar */
.nav-header {
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: rgba(18, 18, 23, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 12px 30px;
  border-radius: 50px;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subheading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--primary-orange);
  stroke-width: 2;
  fill: none;
  animation: glow-pulse 3s infinite alternate;
}

.logo-wrap span {
  color: var(--primary-orange);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-subheading);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 30;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75vw;
  height: 100vh;
  background: rgba(11, 11, 15, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-menu a {
  font-family: var(--font-subheading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-nav-menu a:hover {
  color: var(--primary-orange);
}

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

/* Hero Center Content */
.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 850px;
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  letter-spacing: 0.4em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-orange), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 7.8rem;
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 25px;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
  color: var(--text-light);
  text-transform: uppercase;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px) skewY(4deg);
  will-change: transform, opacity;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  margin-right: 0.15em;
}

/* Premium Background Video Container */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Custom script fades this in smoothly on data load */
  transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(3, 3, 5, 0.25) 0%, rgba(3, 3, 5, 0.85) 90%);
  z-index: 1;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px auto;
  line-height: 1.65;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
  }
  .hero-desc {
    font-size: 1.1rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    gap: 15px;
  }
}

/* Premium Line Scroll Indicator */
.scroll-indicator-wrap {
  z-index: 10;
  margin-bottom: 25px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.65;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.scroll-indicator-wrap:hover {
  opacity: 1;
  transform: translateY(3px);
}

.scroll-indicator-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text-muted);
}

.scroll-indicator-line {
  width: 1px;
  height: 55px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-line-draw {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-orange), transparent);
  animation: scroll-rope-anim 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rope/line animation keyframe */
@keyframes scroll-rope-anim {
  0% {
    top: -100%;
  }
  75%, 100% {
    top: 100%;
  }
}

/* --- ADVENTURE DRIFTING MIST LAYERS --- */
.mist-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeat-x url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="400" viewBox="0 0 1000 400"><path d="M0 300 Q150 260 300 290 T600 320 T900 280 L1000 290 L1000 400 L0 400 Z" fill="rgba(216,27,96,0.03)"/><path d="M0 340 Q200 310 400 330 T800 300 L1000 320 L1000 400 L0 400 Z" fill="rgba(255,215,0,0.025)"/></svg>');
  z-index: 2;
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
}

.mist-layer-1 {
  animation: drift-fog 75s linear infinite;
  filter: blur(10px);
}

.mist-layer-2 {
  animation: drift-fog-reverse 90s linear infinite;
  opacity: 0.6;
  filter: blur(15px);
  top: 10%;
}

@keyframes drift-fog {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes drift-fog-reverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* --- MAGICAL STAR-DUST PARTICLE TRAIL --- */
.cursor-sparkle {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  line-height: 1;
  color: var(--accent-amber);
  text-shadow: 0 0 8px var(--accent-magenta), 0 0 15px var(--primary-orange);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: float-sparkle 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes float-sparkle {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0) scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* Custom logo glow sweeps */
@keyframes logo-shimmer {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* Prevent Hero bottom overlap with Stats Bar on short viewports */
@media (max-height: 820px) {
  .scroll-indicator-wrap {
    display: none !important;
  }
}


