/* Space Hub Inspired Design System */

:root {
  --sh-bg-deep: #050608;
  --sh-text-primary: #FFFFFF;
  --sh-text-secondary: #8A94A6;
  --sh-accent-cyan: #00F0FF;
  --sh-accent-cyan-dim: rgba(0, 240, 255, 0.2);
  --sh-glass-bg: rgba(255, 255, 255, 0.03);
  --sh-glass-border: rgba(255, 255, 255, 0.1);
  --sh-font-title: 'Space Grotesk', 'Outfit', sans-serif;
  --sh-font-body: 'Inter', sans-serif;
}

body.index-page {
  background-color: var(--sh-bg-deep);
  background-image: none !important; /* override previous bg */
  color: var(--sh-text-primary);
  font-family: var(--sh-font-body);
}

/* Deep Space Canvas */
.sh-deep-space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at center, #0B0E17 0%, var(--sh-bg-deep) 100%);
}

.sh-stars-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.4), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.8), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: stardust 150s linear infinite;
  opacity: 0.6;
}

@keyframes stardust {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

/* Typography */
.sh-section-tag {
  font-family: var(--sh-font-title);
  font-size: 0.85rem;
  color: var(--sh-accent-cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  border-bottom: 1px solid var(--sh-accent-cyan-dim);
  padding-bottom: 4px;
}

.sh-hero-title {
  font-family: var(--sh-font-title);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #8A94A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sh-hero-desc {
  font-family: var(--sh-font-body);
  font-size: 1.2rem;
  color: var(--sh-text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Glass Tech Cards */
.sh-tech-card {
  background: var(--sh-glass-bg);
  border: 1px solid var(--sh-glass-border);
  backdrop-filter: blur(12px);
  border-radius: 4px; /* Sharp corners for tech feel */
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.sh-tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.sh-tech-card:hover {
  border-color: var(--sh-accent-cyan);
  box-shadow: 0 0 20px var(--sh-accent-cyan-dim), inset 0 0 10px var(--sh-accent-cyan-dim);
  transform: translateY(-5px);
}

.sh-tech-card:hover::before {
  left: 150%;
}

.sh-card-icon {
  font-size: 1.8rem;
  color: var(--sh-text-primary);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.sh-tech-card:hover .sh-card-icon {
  color: var(--sh-accent-cyan);
}

.sh-card-title {
  font-family: var(--sh-font-title);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.sh-card-desc {
  font-size: 0.9rem;
  color: var(--sh-text-secondary);
  margin: 0;
  font-weight: 300;
}

/* Primary Mission Card (Homo Astralis) */
.sh-mission-card {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  text-align: center;
  align-items: center;
}

.sh-mission-card:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.sh-mission-title {
  font-family: var(--sh-font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--sh-accent-cyan);
  letter-spacing: 4px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  margin-bottom: 0.5rem;
}

.sh-mission-desc {
  font-family: var(--sh-font-title);
  color: var(--sh-text-primary);
  letter-spacing: 2px;
  font-size: 1rem;
  text-transform: uppercase;
}

.sh-container {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* HUD Accents */
.sh-hud-bracket {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--sh-accent-cyan-dim);
  opacity: 0.6;
  z-index: -1;
}

.sh-hud-tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.sh-hud-tr { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.sh-hud-bl { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.sh-hud-br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

/* Video Background Layout */
.sh-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
}

.sh-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 6, 8, 0.4);
  z-index: -2;
}

/* Scroll Sections */
.scroll-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Initially empty section for video intro */
.intro-section {
  min-height: 100vh;
}

/* Fade In Animations via Observer */
.fade-up-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.welcome-text {
  font-family: var(--sh-font-title);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  margin: 0;
}
