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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

::selection {
  background: rgba(245, 197, 24, 0.3);
  color: #faf5fb;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(42, 10, 48, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 139, 0.2);
}

#navbar.scrolled {
  background: rgba(42, 10, 48, 0.95);
  border-bottom-color: rgba(245, 197, 24, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5C518;
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-link:hover {
  color: #fff;
}

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

.stat-card:nth-child(2) {
  animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
  animation-delay: -3s;
}

.stat-card:nth-child(4) {
  animation-delay: -4.5s;
}

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

/* ===== 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, #F5C518, #d4a80c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: 2px 2px 0 0;
}

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

/* ===== GALLERY ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 6rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: rgba(245, 197, 24, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@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; }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
}

/* ===== FORM ===== */
select option {
  background: #2a0a30;
  color: #f5e9f7;
}

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

::-webkit-scrollbar-track {
  background: #2a0a30;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D8B;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}
