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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #d4A03C;
  color: #1a0c14;
}

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

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

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

#navbar.scrolled {
  background: rgba(247, 240, 245, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4a263f;
}

#navbar.scrolled .nav-link:hover {
  color: #d4A03C;
}

#navbar.scrolled .font-serif {
  color: #2d1625;
}

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

#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* ========== HERO STAT CARDS ========== */
.stat-card {
  animation: float 6s ease-in-out infinite;
}

.stat-card.card-1 {
  animation-delay: 0s;
}

.stat-card.card-2 {
  animation-delay: -1.5s;
}

.stat-card.card-3 {
  animation-delay: -3s;
}

.stat-card.card-4 {
  animation-delay: -4.5s;
}

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

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B3A5D, #d4A03C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(107, 58, 93, 0.1);
}

/* ========== BUTTONS ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #d4A03C;
  outline-offset: 2px;
}

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

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

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

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

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
  .stat-card {
    animation-duration: 4s;
  }
}
