/* MiDa — light / violet theme. Differentiated from Luyin's dark teal aesthetic. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Decorative gradient mesh blobs used behind hero / contact */
.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.35), transparent 70%);
  top: -8rem;
  right: -6rem;
}

.hero-blob-2 {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle at center, rgba(217, 70, 239, 0.25), transparent 70%);
  bottom: -8rem;
  left: -6rem;
}

/* Buttons */
.btn-primary {
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px -4px rgba(124, 58, 237, 0.55);
}

.btn-outline {
  box-shadow: 0 4px 14px -6px rgba(124, 58, 237, 0.25);
}

/* Sticky navbar: starts transparent over light hero, frosts on scroll */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(76, 29, 149, 0.08);
  border-bottom: 1px solid rgba(237, 233, 254, 0.6);
}

/* Pulsing live indicator dot in hero badge */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse-dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .animate-pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}
