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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

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

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

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

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

/* Scroll reveal — progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile nav */
#mobileNav.open {
  display: flex;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Selection */
::selection {
  background: #E85D4A;
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .group img {
    transition: none;
  }
}
