/* ─── Base & Utilities ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ─── Reveal on Scroll ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* ─── Floating Animation ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

/* ─── Navbar Scrolled State ─── */
.nav-scrolled #nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
  background: #d1d1d8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8b4;
}

/* ─── Selection ─── */
::selection {
  background: #FF6F61;
  color: #fff;
}
