/* Base styles & custom utilities */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: -2s;
}

.card-3 {
  animation-delay: -4s;
}

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

/* Scroll reveal - progressive enhancement via JS */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    transition: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Selection color */
::selection {
  background: #166534;
  color: #fefdf8;
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Navbar glass effect */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Smooth image reveal */
.rounded-3xl img,
.rounded-2xl img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
