/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 26, 67, 0.15);
  color: #6d1435;
}

/* ── Navbar ── */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 252, 243, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(139, 26, 67, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B1A43, #d4618c);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* ── Floating Cards Animation ── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 5s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 7s;
}

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
  padding-left: 0;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
  border-left-color: #8B1A43;
  padding-left: 12px;
}

/* ── Product Cards ── */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4618c, #8B1A43);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e88fad, #6d1435);
}

/* ── Form Focus States ── */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 97, 140, 0.15);
}

/* ── Button Hover Lift ── */
button, a {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Image Hover ── */
img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .floating-card {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .floating-card {
    display: none;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
