/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #faf8f4;
  color: #1a3a2a;
}

::selection {
  background: #aed0b8;
  color: #1a3a2a;
}

/* ─── FLOATING CARDS (hero) ─── */
.float-card {
  animation: float 6s ease-in-out infinite;
}

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

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

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

/* ─── REVEAL ANIMATIONS (below-the-fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .float-card {
    animation: none;
  }
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 58, 42, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ─── IMAGE HOVER ─── */
div:has(> img) > img {
  transition: transform 0.5s ease;
}

/* ─── FORM ─── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.08);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #faf8f4;
}
::-webkit-scrollbar-thumb {
  background: #d5e5da;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #aed0b8;
}
