/* ========== 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: #722F37;
  color: #FDF8F5;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
  background: #c2334a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #722F37;
}

/* ========== NAVBAR ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #FDF8F5;
  transition: width 0.3s ease;
}

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

/* Mobile links */
.mobile-link {
  position: relative;
}

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

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

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
  background: rgba(42, 16, 21, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .mobile-link {
  color: #FDF8F5;
}

/* ========== HERO ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

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

.reveal.revealed {
  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; }

/* ========== CARD HOVER EFFECTS ========== */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ========== GALLERY IMAGE HOVER ========== */
.col-span-2.rounded-2xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
  display: block;
}

/* ========== PARALLAX HERO ========== */
#hero {
  will-change: scroll-position;
}

#hero img {
  will-change: transform;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c2334a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== MOBILE MENU TRANSITION ========== */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
  max-height: 400px;
  padding-top: 0;
  padding-bottom: 0;
}

/* ========== SUBTLE PULSE FOR BADGE ========== */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

/* ========== IMAGE LAZY LOAD TRANSITION ========== */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 span {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4.5rem;
  }
}

/* ========== REDUCED MOTION ========== */
@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;
  }

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