/* Custom Fonts & Styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --primary-font: 'Outfit', 'Montserrat', sans-serif;
  --in-oklab: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--primary-font);
  background-color: #0b1528;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

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

main {
  width: 100%;
}

/* Chrome/Safari Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* Metallic Silver Text Gradients */
.text-metallic-silver {
  background: linear-gradient(
    135deg var(--in-oklab),
    #ffffff 0%,
    #e2e8f0 20%,
    #94a3b8 40%,
    #cbd5e1 55%,
    #64748b 75%,
    #f1f5f9 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.4));
}

.text-metallic-silver-sub {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #cbd5e1 50%,
    #94a3b8 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.glass-badge {
  background: rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

/* Lens Flares & Glows */
.lens-flare-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(56, 189, 248, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.lens-flare-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(14, 165, 233, 0.1) 40%, rgba(14, 165, 233, 0) 65%);
  filter: blur(15px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: pulse-glow 6s infinite alternate-reverse ease-in-out;
}

/* Animations */
@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

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

.animate-float {
  animation: float 4s infinite ease-in-out;
}

/* Map Node Pulse */
.map-node {
  animation: map-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes map-ping {
  75%, 100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Countdown Number Flip/Pop effect */
.time-val {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Metallic curve line animation helper */
.metallic-swoosh {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-swoosh 3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes draw-swoosh {
  to {
    stroke-dashoffset: 0;
  }
}

/* Custom interactive button */
.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
