/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Scroll Reveal — progressive enhancement, only active when JS runs */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
  .floating-card {
    animation: floatA 4s ease-in-out infinite;
  }

  .floating-card-delayed {
    animation: floatB 4.5s ease-in-out infinite;
    animation-delay: 1s;
  }
}

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

@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.15);
  color: #0f766e;
}

/* Subtle focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}
