/* ================= ROOT VARIABLES ================= */
:root {
  --space-black: #000000;
  --spice-gold: #FFC300;
  --spice-orange: #FF5733;
  --spice-gold-glow: rgba(255, 195, 0, 0.6);
  --font-heading: 'Orbitron', sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--space-black);
  color: white;
  font-family: var(--font-heading);
  overflow-x: hidden;
  overflow-y: hidden; /* This prevents vertical scrolling */
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--space-black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease;
  /* ⚠️ Do NOT disable pointer-events permanently */
  /* Toggle this in JS only after fade-out */
}

/* ================= CONTENT ================= */
.content-section {
  width: 100%;
  height: 100vh; /* Make section take full viewport height */
  padding: 0 5%;    /* Keep side padding, remove top/bottom */
  
  /* Flexbox properties for perfect centering */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center;     /* Center horizontally */
}

.section-title {
  text-align: center;
  margin: 0 auto 60px auto;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  text-shadow: 0 0 15px var(--spice-gold-glow);
  padding: 5px;

  /* Gradient Text (Cross-browser) */
  background: linear-gradient(45deg, var(--spice-gold), var(--spice-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

/* ================= SLIDER ================= */
.event-slider {
  width: 90vw;
  max-width: 1200px;
  padding: 50px 0;
  overflow: hidden;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.swiper-slide-shadow {
  background: rgba(0, 0, 0, 0.5) !important;
}

.event-poster {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  border: 2px solid rgba(255, 195, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.swiper-slide:hover .event-poster {
  transform: scale(1.05);
  border-color: var(--spice-gold);
  box-shadow: 0 0 40px var(--spice-gold-glow);
}

.poster-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 1.5rem;
  text-shadow: 0 2px 10px black;
}

.poster-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.swiper-slide:hover .poster-glow {
  opacity: 1;
}

/* ================= PARALLAX ================= */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; /* Just in case */
}

/* ================= SWIPER DEFAULTS ================= */
.swiper-button-next,
.swiper-button-prev {
  color: var(--spice-gold) !important;
}

.swiper-pagination-bullet-active {
  background: var(--spice-gold) !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .swiper-slide {
    width: 300px;
    height: 350px;
  }
  .poster-title {
    font-size: 1.2rem;
    bottom: 15px;
    left: 15px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    margin-top: -20px !important;
  }
}

@media (max-width: 480px) {
  .swiper-slide {
    width: 200px;
    height: 225px;
  }
  .poster-title {
    font-size: 0.8rem;
    bottom: 5px;
    left: 5px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 25px !important;
    height: 25px !important;
    font-size: 0.8rem !important;
    margin-top: -12.5px !important;
  }
  .swiper-pagination {
    transform: scale(0.8);
  }
}

/* ================= RULES BUTTON ================= */
.rules-button {
  /* Positioning */
  display: block; /* Allows margin auto to work for centering */
  width: -webkit-fit-content; /* For Safari/Chrome */
  width: -moz-fit-content;    /* For Firefox */
  width: fit-content;         /* Standard */
  margin: 40px auto 0;      /* 40px top margin, auto left/right for centering */
  padding: 12px 28px;
  
  /* Appearance */
  border: 2px solid var(--spice-gold);
  border-radius: 5px;
  background-color: transparent;
  color: var(--spice-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-align: center;
  
  /* Effects */
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(255, 195, 0, 0.4);
}

.rules-button:hover,
.rules-button:focus {
  background-color: var(--spice-gold);
  color: var(--space-black);
  box-shadow: 0 0 25px var(--spice-gold-glow);
  cursor: pointer;
  transform: translateY(-2px); /* Slight lift on hover */
}