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

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

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

.animate-float-delayed {
  animation: float-delayed 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Selection ── */
::selection {
  background: color-mix(in srgb, #2fb855 30%, transparent);
  color: #0a1438;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #2fb855;
  outline-offset: 2px;
}

/* ── Input autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3ff;
}
::-webkit-scrollbar-thumb {
  background: #bcc8ff;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8faaff;
}
