/* ===== 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: #9333ea;
  color: #fff;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(59, 7, 100, 0.95);
  backdrop-filter: blur(20px);
  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: #fbbf24;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

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

/* ===== HERO STAT CARDS ===== */
.stat-card {
  animation: floatCard 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 floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== MENU CARDS ===== */
.menu-card {
  opacity: 1;
}

.menu-card:hover img {
  transform: scale(1.05);
}

/* ===== SPECIAL CARDS ===== */
.special-card {
  opacity: 1;
}

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

.gallery-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(88, 28, 135, 0.2);
  border-radius: inherit;
  transition: background 0.3s ease;
}

.gallery-item {
  position: relative;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.15;
  }
}

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

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

::-webkit-scrollbar-track {
  background: #3b0764;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}
