/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .menu-line {
  background: #7B2D8E;
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3e0fb;
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #F5A623;
}

/* Marquee */
.marquee-track {
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Gallery hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(123, 45, 142, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(123, 45, 142, 0.1);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

/* Selection color */
::selection {
  background: #F5A623;
  color: #4A174A;
}

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

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

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

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