html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 18%, rgba(212, 175, 55, 0.08), transparent 25%),
    radial-gradient(circle at 84% 22%, rgba(69, 162, 158, 0.08), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(192, 38, 211, 0.07), transparent 24%),
    #0b0c10;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 6rem;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

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

.hero-orb {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  animation: pulse-glow 10s ease-in-out infinite alternate;
}

.hero-orb-gold {
  top: 5rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(11, 12, 16, 0) 70%);
}

.hero-orb-teal {
  right: -6rem;
  top: 12rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(69, 162, 158, 0.16) 0%, rgba(11, 12, 16, 0) 72%);
  animation-duration: 13s;
}

.hero-orb-cyber {
  right: 18%;
  bottom: 4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.15) 0%, rgba(11, 12, 16, 0) 72%);
  animation-duration: 12s;
}

.desk-frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.96), rgba(12, 14, 20, 0.96)),
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(69, 162, 158, 0.06));
}

.desk-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
}

.desk-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 75%);
  pointer-events: none;
}

.desk-shine {
  position: absolute;
  inset: -20% auto auto -30%;
  width: 60%;
  height: 160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  pointer-events: none;
}

.metric-track {
  position: relative;
  height: 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.era-surface {
  background-color: #131720;
}

.era-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}

.era-surface:hover::before {
  transform: scale(1.08);
}

.era-medieval::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(90, 64, 16, 0.32), rgba(10, 11, 15, 0.9));
}

.era-modern::before {
  background:
    radial-gradient(circle at 70% 18%, rgba(69, 162, 158, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(18, 63, 70, 0.35), rgba(10, 11, 15, 0.9));
}

.era-cyber::before {
  background:
    radial-gradient(circle at 70% 20%, rgba(192, 38, 211, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(60, 15, 66, 0.38), rgba(10, 11, 15, 0.92));
}

.era-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.floating {
  animation: float 6s ease-in-out infinite;
}

#navbar.is-scrolled {
  background: rgba(11, 12, 16, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

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

@media (max-width: 1024px) {
  .hero-orb-gold {
    left: -12rem;
  }

  .hero-orb-teal {
    right: -10rem;
  }
}

@media (max-width: 768px) {
  .hero-orb {
    filter: blur(50px);
  }

  .hero-orb-gold,
  .hero-orb-teal,
  .hero-orb-cyber {
    width: 18rem;
    height: 18rem;
  }

  .bg-noise {
    opacity: 0.028;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
