/* ========================================
   ReSpark Studio - CSS Design System
   ======================================== */

/* HIDE ALL DEFAULT BROWSER SCROLLBARS */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* THE "QUANTUM HUD GAUGE" - FLOATING PROGRESS INDICATOR */
.quantum-scroll-gauge {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  width: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  opacity: 0;
  cursor: default;
  transition: opacity 0.5s ease;
}

.quantum-scroll-gauge.active {
  opacity: 1;
}

/* Hide on Mobile and Tablet */
@media (max-width: 1024px) {
  .quantum-scroll-gauge {
    display: none !important;
  }
}

.gauge-rail {
  position: relative;
  height: 100%;
  width: 10px;
  /* Wider hit area */
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.gauge-rail::after {
  content: '';
  position: absolute;
  left: 50%;
  height: 100%;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, 0.1) 10%,
      rgba(255, 255, 255, 0.1) 90%,
      transparent);
  transform: translateX(-50%);
}

.gauge-runner {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 40px;
  background: white;
  box-shadow:
    0 0 15px var(--color-respark-yellow),
    0 0 30px var(--color-respark-red);
  border-radius: 2px;
  transition: box-shadow 0.3s ease;
  pointer-events: auto;
  cursor: grab;
}

.gauge-runner:active {
  cursor: grabbing;
}

/* Invisible Hit Area to make it easier to grab */
.gauge-runner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  /* Wider hit area */
  height: 60px;
  /* Taller hit area */
  background: transparent;
}

.quantum-scroll-gauge.dragging .gauge-runner {
  box-shadow:
    0 0 30px var(--color-respark-yellow),
    0 0 60px var(--color-respark-red);
  background: #fff;
}

.gauge-percent {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-inter);
  font-weight: 900;
  font-style: italic;
  font-size: 10px;
  color: var(--color-respark-yellow);
  letter-spacing: 0.1em;
}

.gauge-labels {
  position: absolute;
  right: 45px;
  height: 100%;
  width: 150px;
}

.gauge-label {
  position: absolute;
  right: 0;
  font-size: 8px;
  color: white;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right center;
  white-space: nowrap;
  transition: all 0.3s ease, top 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.gauge-label.active {
  opacity: 1;
  color: #fff;
  text-shadow:
    0 0 10px var(--color-respark-yellow),
    0 0 20px var(--color-respark-red),
    0 0 30px var(--color-respark-orange);
  transform: rotate(-90deg) translateX(50%) scale(1.25);
}

.gauge-spark {
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  box-shadow:
    0 0 4px var(--color-respark-yellow),
    0 0 8px var(--color-respark-red);
}

/* Lenis Smooth Scroll Recommended CSS */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
  /* Colors - Brand */
  --color-respark-black: #050505;
  --color-respark-dark: #121212;
  --color-respark-yellow: #fbbf24;
  --color-respark-orange: #f59e0b;
  --color-respark-red: #ef4444;
  --color-neon-blue: #3b82f6;
  --color-purple: #a855f7;

  /* Colors - Grayscale */
  --color-white: #ffffff;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;

  /* Typography */
  --font-sans: 'Myriad Pro', 'Montserrat', sans-serif;
  --font-display: 'Russo One', sans-serif;

  /* Backgrounds (Migrated from HTML) */
  --bg-hero-pattern: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 1)), url('images/Gravity_Strikers_background.png');
  --bg-game-bg: url('images/Gravity_Strikers_background.png');
  --bg-studio-bg: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop');

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Transitions */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --transition-slower: 700ms;

  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-respark-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Utilities (Migrated) */
.bg-hero-pattern {
  background-image: var(--bg-hero-pattern);
}

.bg-game-bg {
  background-image: var(--bg-game-bg);
}

.bg-studio-bg {
  background-image: var(--bg-studio-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-respark-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-respark-orange);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-respark-red);
}

/* ========================================
   Typography Utilities
   ======================================== */
.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.mask-gradient-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

.spark-particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: float-spark var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes float-spark {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(1);
    opacity: 0;
  }
}

.bg-scanlines {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 4px;
  animation: scanline-scroll 15s linear infinite;
}

@keyframes scanline-scroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes reverse-spin-slow {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-reverse-spin-slow {
  animation: reverse-spin-slow 25s linear infinite;
}

/* Logo Confetti Stars */
.confetti-star,
.confetti-star-big {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  animation: confetti-pop var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confetti-pop {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 1;
  }

  20% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.2), calc(var(--ty) * 0.2)) scale(1.2) rotate(var(--rot));
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(calc(var(--rot) * 2));
    opacity: 0;
  }
}

.confetti-lightning {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 15px currentColor);
  animation: lightning-strike 0.5s ease-out forwards;
}

@keyframes lightning-strike {
  0% {
    transform: translate(-50%, 0) scaleY(0);
    opacity: 0;
  }

  10% {
    transform: translate(-50%, 0) scaleY(1.5);
    opacity: 1;
  }

  20% {
    opacity: 0.5;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 0) scaleY(1.2);
    opacity: 0;
  }
}

/* Glass Shatter Effect */
.glass-shatter-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-shatter-overlay.active {
  opacity: 1;
}

.glass-shard {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(var(--path));
  width: 100%;
  height: 100%;
}

.glass-crack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.05) 10%, transparent 60%);
  z-index: 1;
}

.crack-line {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.3);
  height: 1px;
  transform-origin: left center;
}

.leading-none {
  line-height: 1;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Font Weights */
.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* ========================================
   Color Utilities
   ======================================== */
.text-white {
  color: var(--color-white);
}

.text-black {
  color: var(--color-respark-black);
}

.text-respark-yellow {
  color: var(--color-respark-yellow);
}

.text-respark-red {
  color: var(--color-respark-red);
}

.text-gray-200 {
  color: var(--color-gray-200);
}

.text-gray-300 {
  color: var(--color-gray-300);
}

.text-gray-400 {
  color: var(--color-gray-400);
}

.text-gray-500 {
  color: var(--color-gray-500);
}

.bg-black {
  background-color: #000;
}

.bg-white {
  background-color: var(--color-white);
}

.bg-respark-yellow {
  background-color: var(--color-respark-yellow);
}

.bg-respark-dark {
  background-color: var(--color-respark-dark);
}

.bg-respark-black {
  background-color: var(--color-respark-black);
}

.bg-respark-red {
  background-color: var(--color-respark-red);
}

/* ========================================
   Gradient Utilities
   ======================================== */
.gradient-text {
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 4rem;
}

.grid {
  display: grid;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.hidden {
  display: none;
}

.opacity-0 {
  opacity: 0;
}

/* ========================================
   Spacing Utilities
   ======================================== */
.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

/* ========================================
   Border & Shadow Utilities
   ======================================== */
.rounded {
  border-radius: var(--border-radius-md);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.rounded-xl {
  border-radius: var(--border-radius-xl);
}

.rounded-full {
  border-radius: var(--border-radius-full);
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-b-2 {
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.border-l-4 {
  border-left-width: 4px;
  border-left-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}

/* ========================================
   Transform & Animation Utilities
   ======================================== */
.transition-all {
  transition: all var(--transition-base) ease;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: var(--transition-base);
  transition-timing-function: ease;
}

.transition-opacity {
  transition-property: opacity;
  transition-duration: var(--transition-base);
  transition-timing-function: ease;
}

.transition-transform {
  transition-property: transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: ease;
}

.clip-slant {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-slant-reverse {
  clip-path: none;
}

.skew-box {
  transform: skewY(-3deg);
}

.unskew-content {
  transform: skewY(3deg);
}

/* ========================================
   Component: Navigation
   ======================================== */
nav {
  position: fixed;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 50;
  padding: 0 50px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

nav.scrolled::before {
  opacity: 1;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  position: relative;
  width: 200px;
  /* Adjust if needed */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
  /* Ensure clicks still work */
}

.logo-container img {
  pointer-events: none;
  /* Make image transparent to mice events except specific clicks handled by parents */
  user-select: none;
  -webkit-user-drag: none;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.875rem;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  transition: color var(--transition-base) ease;
  user-select: none;
  -webkit-user-select: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-respark-yellow);
  transition: width var(--transition-base) ease;
}

.nav-link:hover {
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-cta {
  position: relative;
  padding: 0.5rem 1.75rem;
  background: white;
  color: black;
  font-family: var(--font-inter);
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transform: skewX(-12deg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.2);
  z-index: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F2B90F, #D90707);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.8),
      transparent);
  transform: skewX(12deg);
  transition: none;
  z-index: 4;
}

.nav-cta:hover::after {
  left: 150%;
  transition: left 0.4s ease-in-out;
}

.nav-cta:hover {
  color: white;
  transform: skewX(-12deg) translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(242, 185, 15, 0.4);
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-cta-text {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: skewX(12deg);
  z-index: 3;
}



.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  transition: opacity var(--transition-base) ease;
}

.mobile-menu.show {
  opacity: 1;
}

.close-menu-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-base) ease;
  -webkit-tap-highlight-color: transparent;
}

.close-menu-btn:active {
  color: #666666;
  transform: scale(0.9);
}

.mobile-link {
  position: relative;
  text-decoration: none;
  font-size: 2rem;
  font-family: var(--font-inter);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #000000;
  transition: all var(--transition-base) ease;
  letter-spacing: 0.05em;
  -webkit-tap-highlight-color: transparent;
}

.mobile-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  transition: width var(--transition-base) ease;
}

.mobile-link:active {
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(0.95);
}

.mobile-link:active::after {
  width: 100%;
}

/* Mobile Wishlist Button */
.mobile-wishlist-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #F2B90F, #D90707);
  color: white;
  font-family: var(--font-inter);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.mobile-wishlist-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D90707, #F2B90F);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-wishlist-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent);
  transition: none;
}

.mobile-wishlist-btn:active::after {
  left: 150%;
  transition: left 0.5s ease-in-out;
}

.mobile-wishlist-btn:active {
  transform: scale(0.95);
}

.mobile-wishlist-btn:active::before {
  opacity: 1;
}

.mobile-wishlist-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
}

/* ========================================
   Component: Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transform: scale(1.1);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-respark-black), transparent, rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 80rem;
  padding: 0 1rem;
  margin-top: 4rem;
}

.hero-subtitle {
  color: var(--color-respark-yellow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transform: skewX(-6deg);
}

.hero-title-gradient {
  color: transparent;
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-gray-200);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  position: relative;
  padding: 1rem 2rem;
  background-color: var(--color-respark-red);
  color: var(--color-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.25rem;
  text-decoration: none;
  overflow: hidden;
  transition: all var(--transition-base) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-12deg) translateX(-100%);
  transition: transform var(--transition-slow) ease;
}

.btn-primary:hover::before {
  transform: skewX(-12deg) translateX(100%);
}

.btn-primary-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-secondary {
  color: var(--color-white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

.btn-secondary:hover {
  border-bottom-color: var(--color-respark-yellow);
  color: var(--color-respark-yellow);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ========================================
   Component: Sections
   ======================================== */
.section {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.section-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(to left, rgba(239, 68, 68, 0.1), transparent);
  transform: skewX(12deg);
  pointer-events: none;
}

.section-content {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-respark-yellow);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
}

.section-description {
  color: var(--color-gray-400);
  font-size: 1.125rem;
  line-height: 1.625;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-left: 4px solid var(--color-respark-yellow);
  transition: background-color var(--transition-base) ease;
}

.feature-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-card:nth-child(2) {
  border-left-color: var(--color-respark-red);
}

.feature-card:nth-child(3) {
  border-left-color: var(--color-neon-blue);
}

.feature-card:nth-child(4) {
  border-left-color: var(--color-purple);
}

.feature-icon {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

/* Visual Content */
.visual-container {
  position: relative;
}

.visual-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  border-radius: var(--border-radius-lg);
  opacity: 0.3;
  filter: blur(20px);
  transition: opacity var(--transition-slow) ease;
}

.visual-container:hover .visual-glow {
  opacity: 0.6;
}

.visual-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-2xl);
  transform: rotate(2deg);
  transition: transform var(--transition-slow) ease;
}

.parallax-container {
  perspective: 1000px;
  overflow: visible;
}

.parallax-image {
  will-change: transform;
}

.parallax-character {
  will-change: transform;
  z-index: 20;
}

.game-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slower) ease;
}

.visual-container:hover .game-bg {
  transform: scale(1.05);
}

/* UI Overlay Mockup */
.ui-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.ui-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.speed-display {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.speed-unit {
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--color-gray-300);
}

.speed-bar {
  width: 8rem;
  height: 0.5rem;
  background-color: var(--color-gray-700);
  border-radius: var(--border-radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  width: 75%;
  background-color: var(--color-respark-yellow);
}

.danger-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-respark-red);
  font-weight: 700;
}

.danger-zone {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ========================================
   Component: Bento Gallery
   ======================================== */
.gallery {
  padding: 3rem 1.5rem;
  background-color: #000;
}

.gallery-title {
  font-size: 1.875rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-respark-yellow);
  padding-left: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: 100vh;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
}

.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform var(--transition-slower) ease, opacity var(--transition-base) ease;
}

.bento-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base) ease;
  background-color: rgba(0, 0, 0, 0.4);
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  background: linear-gradient(to top, #000, transparent);
  width: 100%;
}

/* ========================================
   Component: Studio Section
   ======================================== */
.studio-section {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: var(--color-respark-black);
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px;
}

.studio-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  background-attachment: fixed;
}

.studio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-respark-black), rgba(18, 18, 18, 0.9), var(--color-respark-black));
}

.studio-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.studio-icon {
  font-size: 4rem;
  color: var(--color-respark-yellow);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.studio-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.studio-divider {
  width: 6rem;
  height: 0.5rem;
  background-color: var(--color-respark-red);
  margin: 0 auto 2rem;
  transform: skewX(-12deg);
}

.studio-description {
  font-size: 1.25rem;
  color: var(--color-gray-300);
  line-height: 1.625;
  font-weight: 300;
}

.studio-description-secondary {
  color: var(--color-gray-400);
  margin-top: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.stat-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  font-weight: 700;
}

/* ========================================
   Component: CTA Section
   ======================================== */
.cta-section {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: var(--color-respark-yellow);
  color: var(--color-respark-black);
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transform: skewX(-6deg);
}

.cta-description {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #000;
  color: var(--color-white);
  font-weight: 700;
  border: none;
  outline: none;
  transition: box-shadow var(--transition-base) ease;
}

.cta-input::placeholder {
  color: var(--color-gray-500);
}

.cta-input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.cta-button {
  padding: 1rem 2rem;
  background-color: #000;
  color: var(--color-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base) ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #1a1a1a;
}

/* ========================================
   Component: Footer
   ======================================== */
footer {
  background-color: #000;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

.social-link:hover {
  background-color: var(--color-respark-yellow);
  color: #000;
}

.social-link:nth-child(2):hover {
  background-color: var(--color-respark-red);
  color: #000;
}

.social-link:nth-child(3):hover {
  background-color: var(--color-purple);
  color: var(--color-white);
}

.social-link:nth-child(4):hover {
  background-color: #ef4444;
  color: var(--color-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.footer-link {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color var(--transition-base) ease;
}

.footer-link:hover {
  color: var(--color-white);
}

/* ========================================
   Responsive Design - Tablet & Desktop
   ======================================== */
@media (min-width: 768px) {

  /* Navigation */
  .nav-menu {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  /* Hero */
  .hero-buttons {
    flex-direction: row;
  }

  /* Sections */
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Bento Gallery */
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 600px;
  }

  .bento-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-item:nth-child(2) {
    grid-column: span 2;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA */
  .cta-form {
    flex-direction: row;
  }

  .cta-input {
    transform: skewX(0deg);
  }

  .cta-button {
    transform: skewX(0deg);
  }

  /* Footer */
  .footer-content {
    flex-direction: row;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-links {
    flex-direction: row;
    gap: 2rem;
    text-align: right;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .mobile-menu-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ========================================
   Custom Animations & Effects
   ======================================== */
.glitch-hover {
  transition: all var(--transition-fast) ease;
}

.glitch-hover:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--color-respark-yellow);
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* Moved from index.html */

/* Custom Styles for Motorfest Vibe */
body {
  background-color: #050505;
  color: white;
  overflow-x: hidden;
}

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

.clip-slant {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* .clip-slant-reverse removed from here to avoid duplication */

.skew-box {
  transform: skewY(-3deg);
}

.unskew-content {
  transform: skewY(3deg);
}

.glitch-hover:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: #fbbf24;
}

@keyframes glitch {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px)
  }

  40% {
    transform: translate(-2px, -2px)
  }

  60% {
    transform: translate(2px, 2px)
  }

  80% {
    transform: translate(2px, -2px)
  }

  100% {
    transform: translate(0)
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

/* Logo Hover Animation */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 80px;
  /* Fixed height to control size */
  width: auto;
}

.logo-container img {
  height: 100%;
  /* Fill container height */
  width: auto;
  /* Maintain aspect ratio */
  object-fit: contain;
  /* Prevent distortion */
  transition: opacity 0.4s ease;
}

.logo-default {
  display: block;
  opacity: 1;
}

.logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.logo-container:hover .logo-default {
  opacity: 0;
}

.logo-container:hover .logo-hover {
  opacity: 1;
}

.gradient-text {
  background: linear-gradient(to right, #fbbf24, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Trailer Button */
.trailer-btn {
  position: relative;
  background: white;
  color: black;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  /* Ensure spacing/kerning looks good */
  transition: transform 0.4s ease, color 0.4s ease;
  z-index: 1;
  /* Ensure text stays on top */
  overflow: hidden;
  /* Keep pseudo-element inside */
}

/* Gradient background layer */
.trailer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F2B90F, #D90707);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  /* Behind the text */
}

.trailer-btn:hover {
  color: white;
}

.trailer-btn:hover::before {
  opacity: 1;
}

/* Wishlist Button */
.wishlist-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  transition: all 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.wishlist-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F2B90F, #D90707);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.wishlist-btn:hover {
  border-color: white;
}

.wishlist-btn:hover::before {
  opacity: 1;
}

.gradient-text-diagonal {
  background: linear-gradient(135deg, #F2B90F, #D90707) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  padding-bottom: 0.1em;
}

/* Staggered Scroll Arrows */
@keyframes arrowGlow {
  0% {
    opacity: 0;
    color: rgba(255, 255, 255, 1);
  }

  20% {
    opacity: 0.4;
  }

  40%,
  100% {
    opacity: 0;
  }
}

.arrow-stagger-1,
.arrow-stagger-2,
.arrow-stagger-3 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.arrow-stagger-1 {
  animation: arrowGlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.arrow-stagger-2 {
  animation: arrowGlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.4s;
}

.arrow-stagger-3 {
  animation: arrowGlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.8s;
}

/* Text Echo Effect for Esports */
@keyframes ghostEcho {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

.ghost-echo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: -1;
  animation: ghostEcho 3s infinite linear;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Shine Badge Animation for Coming Soon */
@keyframes badgeFlare {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  15% {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  30% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes sheenSweep {
  0% {
    left: -150%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  30% {
    left: 150%;
    opacity: 0;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

.shine-badge {
  position: relative;
  overflow: hidden;
  animation: badgeFlare 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.shine-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: sheenSweep 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ========================================
   Component: Horizontal HUD Tabs
   ======================================== */
.tabs-header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
  position: relative;
  min-height: 40px;
  /* Ensure space for the badge */
}

/* Position badge to the left while keeping tabs centered */
.tabs-header-container .shine-badge {
  position: absolute;
  left: 0;
  margin-bottom: 0;
}

.tabs-sidebar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  /* Gap handled by negative margins */
  background: transparent;
  padding: 0;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  /* Needed for glows */
}

.tabs-sidebar::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 3.5rem;
  /* Increased padding to accommodate fixed slants */
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  /* Fixed 20px slant for perfect alignment */
  clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  margin-left: -20px;
}

.tab-btn:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.tab-btn:last-child {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
}

.tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--color-respark-yellow), var(--color-respark-red));
  color: #000;
  /* Maintains the same fixed slant */
  clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%) !important;
  margin-left: -20px;
  z-index: 10;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(242, 185, 15, 0.5);
}

.tab-btn.active:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%) !important;
}

.tab-btn.active:last-child {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%) !important;
}

.tab-btn i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
  opacity: 0.8;
}

.tab-btn.active i {
  color: #000;
  text-shadow: none;
  transform: scale(1.3) rotate(5deg);
}

.tab-number {
  display: none;
  /* Hidden for cleaner horizontal look */
}

.tab-btn.active .tab-number {
  opacity: 1;
  color: rgba(0, 0, 0, 0.5);
}

.tab-text {
  font-family: var(--font-inter);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.tab-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  display: none;
}

.tab-btn.active .tab-progress-container {
  display: block;
}

.tab-progress-bar {
  height: 100%;
  width: 0%;
  background: white;
  box-shadow: 0 0 10px white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@keyframes slideFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
    filter: blur(10px);
  }

  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

.animate-slide {
  animation: slideFromLeft 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.video-frame-glow {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-frame-glow video {
  transition: transform 0.8s ease;
}

.tab-bg-video video {
  transition: filter 1s ease, transform 10s linear;
  transform: scale(1.1);
}

.tab-bg-video.active video {
  filter: contrast(110%) brightness(60%) saturate(120%);
  transform: scale(1);
}

.tab-bg-video.active {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 1rem;
  }

  .tab-btn:hover,
  .tab-btn.active {
    transform: none;
  }
}

/* Shooting Stars Background Effect */
.sport-lines-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10vh 0;
  opacity: 0.8;
  transform: skewY(-5deg) scale(1.2);
}

.sport-line {
  height: 2px;
  width: 100%;
  position: relative;
  background: transparent;
  overflow: visible;
}

/* Yellow-Orange Stars (Odd) */
.sport-line:nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 180px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
      transparent,
      rgba(251, 191, 36, 0.3) 40%,
      rgba(245, 158, 11, 0.7) 80%,
      #fbbf24 100%);
  border-radius: 2px;
  box-shadow:
    0 0 15px rgba(251, 191, 36, 0.4),
    0 0 30px rgba(245, 158, 11, 0.2);
  animation: sport-line-scan 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sport-line:nth-child(odd)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 4px;
  height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  transform: translate(178px, -50%);
  box-shadow:
    0 0 10px #fbbf24,
    0 0 20px #f59e0b,
    0 0 40px rgba(251, 191, 36, 0.6);
  z-index: 2;
  animation: star-dot-sync 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Blue Stars (Even) */
.sport-line:nth-child(even)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 200px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
      transparent,
      rgba(59, 130, 246, 0.3) 40%,
      rgba(37, 99, 235, 0.7) 80%,
      #60a5fa 100%);
  border-radius: 2px;
  box-shadow:
    0 0 15px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(37, 99, 235, 0.2);
  animation: sport-line-scan 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2s;
}

.sport-line:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 4px;
  height: 4px;
  background: #60a5fa;
  border-radius: 50%;
  transform: translate(198px, -50%);
  box-shadow:
    0 0 10px #60a5fa,
    0 0 20px #3b82f6,
    0 0 40px rgba(96, 165, 250, 0.6);
  z-index: 2;
  animation: star-dot-sync 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 2s;
}

@keyframes star-dot-sync {
  0% {
    left: -100%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes sport-line-scan {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Values Cards - Horizontal Flip on Click */
.flip-card {
  perspective: 1000px;
  height: 160px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  /* Faster, Lerp-like ease */
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  /* Optimized Glassmorphism for performance */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  /* Force GPU */
}


.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
}



.flip-card:not(.is-flipped):hover .flip-card-inner {
  transform: translateY(-15px) scale(1.05);
}

.flip-card:not(.is-flipped):hover .flip-card-front {
  border-color: rgba(255, 255, 255, 0.4);
  /* Neutral shadow, no yellow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.flip-card:not(.is-flipped):hover .reveal-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.value-card-title {
  font-size: 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-style: italic;
  color: white;
}

.value-card-description {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
}


.reveal-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: linear-gradient(to right, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-transform: uppercase;

  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Sparkle Particles for Card Flip */
.sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.sparkle-particle {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.is-sparkling .sparkle-particle {
  animation: sparkle-explode 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes sparkle-explode {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(var(--s)) rotate(var(--r));
    opacity: 0;
  }
}

/* Sparkle Storm for Section */
.sparkle-storm-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  /* Ensure it is visible above the background */
  overflow: hidden;
}

.storm-particle {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes storm-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Logo Particles for Filling Effect */
.logo-particle {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 0 10px white) brightness(1.5);
  opacity: 0;
  animation: logo-particle-appear 0.8s ease-out forwards;
}

@keyframes logo-particle-appear {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Ghost Logo for Storm Background */
.storm-ghost-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80%;
  max-width: 600px;
  height: auto;
  opacity: 0;
  z-index: -3;
  pointer-events: none;
  filter: brightness(0) invert(1);
  transition: all 2s ease;
}

.storm-ghost-logo.is-visible {
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(1);
}

/* Custom background for Values Section to provide contrast */
.values-bg {
  background-color: #121212 !important;
  background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #121212 100%);
}

/* Transition Parallax Effect */
.transition-parallax-container {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 25;
  pointer-events: none;
  overflow: visible;
  margin-top: -30px;
  /* Slight overlap for transition */
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagonal-marquee {
  position: relative;
  width: 120%;
  /* Keep it wider for safety */
  left: 0;
  background: linear-gradient(90deg, #fbbf24, #ef4444, #ffffff, #ef4444, #fbbf24);
  background-size: 200% auto;
  transform: rotate(0deg);
  padding: 0;
  /* Minimalist / thin */
  display: block;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease;
  /* Even smoother fade */
}

.diagonal-marquee.fade-out {
  opacity: 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: -200% center;
  }
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  color: #000;
  text-transform: uppercase;
  gap: 50px;
  padding-right: 50px;
  flex-shrink: 0;
}

.marquee-logo {
  height: 2.5rem;
  /* Fill the entire height of the band */
  width: auto;
  display: block;
  filter: none;
}

.star-icon {
  display: inline-block;
  color: #000;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: initial;
  transform: scale(1.2);
  margin: 0 0.2rem;
  text-shadow: none;
  font-weight: normal;
  vertical-align: middle;
}

/* ========================================
   Sci-Fi Processing Animation (HSR Style)
   ======================================== */
.scifi-grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

.scifi-diamond {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
}

#contact-scifi-overlay {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.7) 0%, rgba(5, 5, 5, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact-scifi-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hud-circle {
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.2));
}

#hud-progress-ring {
  transition: stroke-dashoffset 0.1s linear;
}

.scifi-letter {
  display: inline-block;
  min-width: 0.8em;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.8), 0 0 5px rgba(34, 211, 238, 1);
}

.scifi-code-line {
  opacity: 0;
  transform: translateY(5px);
  animation: hsrFadeSlide 0.4s forwards;
  color: rgba(34, 211, 238, 0.9);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

@keyframes hsrFadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact-scifi-final.opacity-100 {
  backdrop-filter: blur(40px);
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.scifi-success-pulse {
  animation: hsrPulse 3s ease-in-out;
}

@keyframes hsrPulse {
  0% {
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0) 0%, transparent 100%);
  }

  50% {
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
  }

  100% {
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0) 0%, transparent 100%);
  }
}

/* Speed Lines Effect - Vanishing point in center */
.speed-lines-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* Above stars but behind content */
  overflow: hidden;
}

/* Black Hole Singularity at Center - Spherical & Absorbing Light */
.black-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background-color: #000000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  /* High z-index to stay above content (max-w container) */
  /* Deep black core with an inner shadow to give spherical volume */
  box-shadow:
    inset 0 0 40px #000,
    0 0 10px 2px #000,
    0 0 20px rgba(0, 0, 0, 1),
    0 0 80px rgba(34, 211, 238, 0.2);
  animation: singularityPulse 6s ease-in-out infinite;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  /* Enable clicks despite container being none */
  cursor: pointer;
}

.bh-logo {
  width: 35px;
  height: auto;
  z-index: 110;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
  animation: logoPulseBH 4s ease-in-out infinite;
  opacity: 0.8;
  pointer-events: none;
  /* Let clicks pass through to the black-hole parent for easier detection */
}

@keyframes logoPulseBH {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.3));
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.7));
  }
}

/* Photon Sphere / Accretion Glow - The "sphere" edge */
.black-hole::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px 2px rgba(34, 211, 238, 0.6), inset 0 0 10px rgba(34, 211, 238, 0.4);
  animation: haloRotate 8s linear infinite;
  z-index: 51;
}

/* Gravitational Lensing effect (distorted light around) */
.black-hole::after {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent,
      rgba(34, 211, 238, 0.1) 15%,
      transparent 30%,
      rgba(59, 130, 246, 0.1) 50%,
      transparent 70%,
      rgba(34, 211, 238, 0.1) 100%);
  filter: blur(20px);
  animation: haloRotate 15s linear infinite reverse;
  z-index: -1;
  mix-blend-mode: screen;
}

/* Distortion ring (the illusion of light being sucked in) */
.black-hole-distortion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 49;
}

/* Starfield Background - High Density Milky Way */
.starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  /* Denser stars with varying blur for natural glow */
  box-shadow:
    10vw 10vh 2px 1px #FFF, 25vw 15vh 0 0 #FFF, 45vw 5vh 3px 1px #FFF, 60vw 25vh 0 0 #FFF, 75vw 10vh 2px 1px #FFF, 90vw 30vh 0 0 #FFF,
    5vw 45vh 2px 1px #FFF, 20vw 60vh 0 0 #FFF, 35vw 50vh 3px 1px #FFF, 55vw 65vh 0 0 #FFF, 70vw 40vh 2px 1px #FFF, 85vw 55vh 0 0 #FFF,
    15vw 75vh 2px 1px #FFF, 30vw 90vh 0 0 #FFF, 50vw 80vh 3px 1px #FFF, 65vw 95vh 0 0 #FFF, 80vw 85vh 2px 1px #FFF, 95vw 70vh 0 0 #FFF,
    8vw 25vh 0 0 #FFF, 22vw 35vh 2px 1px #FFF, 38vw 15vh 0 0 #FFF, 52vw 45vh 3px 1px #FFF, 68vw 20vh 0 0 #FFF, 82vw 55vh 2px 1px #FFF,
    12vw 85vh 0 0 #FFF, 28vw 75vh 2px 1px #FFF, 42vw 95vh 0 0 #FFF, 58vw 70vh 3px 1px #FFF, 72vw 90vh 0 0 #FFF, 88vw 75vh 2px 1px #FFF,
    /* Added some colored stars for "glox" feel */
    15vw 15vh 4px 1px rgba(34, 211, 238, 0.8),
    85vw 85vh 4px 1px rgba(251, 191, 36, 0.8),
    50vw 50vh 6px 2px #FFF, 20vw 20vh 0 1px #FFF, 80vw 80vh 0 1px #FFF;
  animation: starTwinkle 6s infinite ease-in-out;
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Second Layer of Fainter Stars (Milky Way Dust) */
.starfield::after {
  content: '';
  position: absolute;
  top: 50vh;
  left: 50vw;
  width: 1px;
  height: 1px;
  background: transparent;
  opacity: 0.5;
  box-shadow:
    -40vw -40vh #FFF, 20vw 10vh #FFF, -10vw 30vh #FFF, 30vw -20vh #FFF, -30vw 10vh #FFF,
    10vw -40vh #FFF, 40vw 40vh #FFF, -20vw -10vh #FFF, 15vw 25vh #FFF, -25vw 15vh #FFF,
    -15vw -35vh #FFF, 35vw 35vh #FFF, 5vw -5vh #FFF, -5vw 5vh #FFF, 25vw -30vh #FFF,
    -35vw 20vh 0 1px rgba(255, 255, 255, 0.8), 45vw -15vh 0 1px rgba(255, 255, 255, 0.8);
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Premium Glowing Stars */
.premium-star {
  position: absolute;
  background-image: url('images/Star.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  animation: premiumStarAnimation 4s infinite ease-in-out;
}

@keyframes premiumStarAnimation {

  0%,
  100% {
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
  }
}

@keyframes singularityPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: inset 0 0 40px #000, 0 0 20px rgba(0, 0, 0, 1), 0 0 60px rgba(34, 211, 238, 0.2);
  }

  30% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: inset 0 0 50px #000, 0 0 25px rgba(0, 0, 0, 1), 0 0 80px rgba(59, 130, 246, 0.25);
  }

  60% {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: inset 0 0 45px #000, 0 0 22px rgba(0, 0, 0, 1), 0 0 70px rgba(34, 211, 238, 0.2);
  }
}

.speed-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 180px;
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  /* Below the black hole */
  --angle: -180deg;
  /* Fallback to prevent pure vertical-down lines */
  animation: speedLineConverge 1.5s infinite cubic-bezier(0.15, 0, 0.05, 1);
}

.speed-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--line-gradient);
  border-radius: 2px;
  filter: drop-shadow(0 0 3px var(--dot-color));
}

.speed-line::before {
  content: '';
  position: absolute;
  top: 100%;
  /* Front of the line, pointing to center */
  left: 50%;
  width: 18px;
  height: 18px;
  background-image: url('images/Star.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px var(--dot-color));
  z-index: 2;
  animation: starRotate 3s linear infinite;
}

@keyframes starRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes speedLineConverge {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-100vh);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  99% {
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-90px);
    opacity: 0;
  }
}

/* Distribution - nth-child(1) is the black-hole. Colors randomized manually for variety. */
.speed-lines-container {
  --gold-grad: linear-gradient(to bottom, transparent, rgba(251, 191, 36, 0.3) 40%, rgba(245, 158, 11, 0.6) 70%, transparent 100%);
  --blue-grad: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.3) 40%, rgba(37, 99, 235, 0.6) 70%, transparent 100%);
}

.speed-line:nth-child(1) {
  --angle: 35deg;
  animation-delay: 0s;
  --line-gradient: var(--gold-grad);
  --dot-color: #fbbf24;
}

.speed-line:nth-child(2) {
  --angle: 215deg;
  animation-delay: 0.4s;
  --line-gradient: var(--blue-grad);
  --dot-color: #60a5fa;
}

.speed-line:nth-child(3) {
  --angle: 125deg;
  animation-delay: 0.8s;
  --line-gradient: var(--blue-grad);
  --dot-color: #60a5fa;
}

.speed-line:nth-child(4) {
  --angle: 305deg;
  animation-delay: 0.2s;
  --line-gradient: var(--gold-grad);
  --dot-color: #fbbf24;
}

.speed-line:nth-child(5) {
  --angle: 75deg;
  animation-delay: 0.6s;
  --line-gradient: var(--gold-grad);
  --dot-color: #fbbf24;
}

.speed-line:nth-child(6) {
  --angle: 255deg;
  animation-delay: 1.0s;
  --line-gradient: var(--blue-grad);
  --dot-color: #60a5fa;
}

.speed-line:nth-child(7) {
  --angle: 165deg;
  animation-delay: 1.2s;
  --line-gradient: var(--gold-grad);
  --dot-color: #fbbf24;
}

.speed-line:nth-child(8) {
  --angle: 340deg;
  animation-delay: 0.3s;
  --line-gradient: var(--blue-grad);
  --dot-color: #60a5fa;
}

/* Contact Section Background - Pure Black with Nebula Glow */
.contact-bg {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.contact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: nebulaPulse 10s infinite alternate ease-in-out;
}

@keyframes nebulaPulse {
  from {
    opacity: 0.5;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Footer Social Links */
.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-social-link:hover {
  background: white;
  color: black;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Premium Footer Links */
.footer-link-premium {
  font-family: var(--font-inter);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link-premium:hover {
  color: white;
  letter-spacing: 0.25em;
}

.footer-link-premium::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--color-respark-yellow), var(--color-respark-red));
  transition: width 0.3s ease;
}

.footer-link-premium:hover::after {
  width: 100%;
}

/* Glassmorphism Footer */
.glass-footer {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -40px;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
}

/* Discovery Section - Rotating Background Blobs */
.bg-accent-blob {
  position: absolute;
  width: 800px;
  height: 800px;
  filter: blur(150px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.blob-red {
  background: radial-gradient(circle at 40% 40%, var(--color-respark-red) 0%, transparent 70%);
  animation: blobFloat 40s linear infinite;
}

.blob-blue {
  background: radial-gradient(circle at 60% 60%, var(--color-neon-blue) 0%, transparent 70%);
  animation: blobFloat 50s linear infinite reverse;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(100px, 50px) rotate(120deg);
  }

  66% {
    transform: translate(-50px, 100px) rotate(240deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Minimalist Background Elements */
.bg-grid-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 1;
}

.bg-marker-tl {
  border-right: none;
  border-bottom: none;
}

.bg-marker-tr {
  border-left: none;
  border-bottom: none;
}

.bg-marker-bl {
  border-right: none;
  border-top: none;
}

.bg-marker-br {
  border-left: none;
  border-top: none;
}

.bg-plus {
  position: absolute;
  color: rgba(255, 255, 255, 0.05);
  font-family: monospace;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.bg-line-subtle {
  position: absolute;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  height: 1px;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}