/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(142, 63, 92, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5b800;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* ===== HERO CARDS ===== */
.hero-card {
  will-change: transform;
}

/* ===== BUTTONS ===== */
a, button {
  cursor: pointer;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf8eb;
}

::-webkit-scrollbar-thumb {
  background: #d4a1b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c07a96;
}

/* ===== SELECTION ===== */
::selection {
  background: #ebcdd9;
  color: #4d2132;
}

/* ===== GALLERY HOVER ===== */
.grid > div > img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== FOCUS ===== */
*:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }
}
