/* Lara's Lagoon — Custom Styles */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Floating card animations */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 0.8s; }
.card-3 { animation-delay: 1.6s; }
.card-4 { animation-delay: 2.4s; }

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

/* Scroll reveal — progressive enhancement, only for below-fold */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(123, 45, 142, 0.1);
}

nav.scrolled .font-display {
  color: #3A0A3E;
}

nav.scrolled a:not([class*="bg-"]) {
  color: #5A1666;
}

nav.scrolled a:not([class*="bg-"]):hover {
  color: #7B2D8E;
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5d0fe;
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Input focus ring fallback */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

/* Selection color */
::selection {
  background: #f5d0fe;
  color: #3a0a3e;
}
