/* ===============================================================
   VillaFest Madrid -- Design System
   =============================================================== */

/* -- Design Tokens -- */
:root {
  /* Brand colors */
  --color-primary: #ff0093;
  --color-primary-light: #ff33a8;
  --color-primary-dark: #cc0075;
  --color-accent: #fcf3db;
  --color-bg: #000000;
  --color-bg-alt: #050505;
  --color-text: #fcf3db;
  --color-text-muted: rgba(252, 243, 219, 0.6);
  --color-border: rgba(255, 0, 147, 0.2);

  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;

  /* Shadows */
  --shadow-neon: 0 0 20px rgba(255, 0, 147, 0.5), 0 0 40px rgba(255, 0, 147, 0.25);
  --shadow-neon-lg: 0 0 40px rgba(255, 0, 147, 0.6), 0 0 80px rgba(255, 0, 147, 0.3);
  --shadow-md: 0 4px 30px rgba(0, 0, 0, 0.4);

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -- Animations -- */
@keyframes pulseOrb {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(255, 0, 147, 0.6), 0 0 60px rgba(255, 0, 147, 0.3); }
  50% { text-shadow: 0 0 60px rgba(255, 0, 147, 0.9), 0 0 120px rgba(255, 0, 147, 0.5); }
}

/* -- Scroll reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* -- Navigation -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 0, 147, 0.12);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 0, 147, 0.2);
  box-shadow: 0 4px 40px rgba(255, 0, 147, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 243, 219, 0.65);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ff0093;
  transition: width 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fcf3db;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fcf3db;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* -- Mobile Menu -- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 2px solid #ff0093;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 0, 147, 0.08) 0%, transparent 70%);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  color: rgba(252, 243, 219, 0.7);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  display: inline-block;
}

.mobile-nav-link:hover {
  color: #ff0093;
  text-shadow: 0 0 30px rgba(255, 0, 147, 0.6);
}

/* -- Icons -- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon.hidden {
  display: none;
}

.icon-sm {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.1em;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.icon-xl {
  width: 2em;
  height: 2em;
  display: inline-block;
  vertical-align: -0.25em;
  flex-shrink: 0;
}

/* -- Scroll line animation -- */
.scroll-line-anim {
  animation: scrollLine 2s ease-in-out infinite;
}

/* -- Particle canvas -- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff0093;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

/* -- Floating CTA pulse -- */
#floating-cta {
  animation: neonPulse 3s ease-in-out infinite;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}body { margin: 0; }
