/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #f9c3cc;
  color: #5c1f2a;
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
  background-color: rgba(254, 253, 251, 0.97) !important;
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* ===== HERO PARALLAX ===== */
#hero .parallax-bg {
  will-change: transform;
}

/* ===== GALLERY HOVER ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 45, 59, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* ===== BUTTON ANIMATIONS ===== */
.btn-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.btn-lift:hover {
  transform: translateY(-2px);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
  background: #f49aad;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ec6b84;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
