/*
 * Global variables set the primary and accent colours used throughout the landing.  The
 * chosen reds align with the original OCESA Day creative.  If you need to tweak the palette
 * later, adjust these values rather than searching for hard coded colours.
 */
/* Custom font definitions */
@font-face {
  font-family: 'Mosvita';
  src: url('Fonts/Mosvita-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Pixam';
  src: url('Fonts/Pixam.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-red: #9d0b1e;
  --accent-red: #d92027;
  --text-about: #ffffff;
  --dark-bg: #000000;
  --light-text: #ffffff;
  --muted-text: #f7f7f7;
}

/* Reset some basic elements to remove default margins and paddings. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f5cbb0, #f09d7d, #f0826e, #f0d4c3);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradientShift 15s ease infinite;
  color: var(--light-text);
  line-height: 1.6;
}

/*
 * HERO SECTION
 * The hero fills the viewport height to showcase the branding and video.  A background image
 * sets the mood while an overlay darkens it slightly to improve contrast.
 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 0;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

/* Semi‑opaque overlay for contrast.  Set z‑index higher than pseudo backgrounds but lower than content. */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

/* Optional decorative stripes on the left and right of the hero.  They utilise the cropped
 * gradients from the original screen capture and animate slowly to add life.  The animation
 * loops infinitely but remains subtle so as not to distract from the main content.  Feel free
 * to comment these out if you prefer a cleaner look. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  opacity: 0.6;
  z-index: 0;
  background-size: cover;
  background-repeat: repeat-y;
  animation: slideVertical 30s linear infinite;
}
.hero::before {
  left: 0;
  background-image: url('gradient_left.svg');
}
.hero::after {
  right: 0;
  background-image: url('gradient_right.svg');
}

/* Keyframe to slowly translate the stripes vertically.  The values correspond roughly to the
 * height of the gradient images so that the animation loops seamlessly. */
@keyframes slideVertical {
  0% {
    background-position-y: 0;
  }
  100% {
    background-position-y: 695px;
  }
}

/* Container for the logo and event information.  It gradually fades and slides into place
 * after the page loads.  The animation provides a polished entrance without feeling obtrusive.
 * Now uses flexbox for horizontal layout with logo on left and event info on right. */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  /* Remain visible by default; the fadeUp animation will still transition from 0 to 1.
   * This ensures users who have reduced‑motion preferences or browsers that ignore animations
   * still see the content. */
  opacity: 1;
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

.logo {
  width: 11%;
  max-width: 400px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.event-info {
  text-align: right;
  flex-shrink: 0;
}

.date {
  font-family: 'Pixam', 'Orbitron', sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  letter-spacing: 1px;
}

.date .arrows {
  color: var(--accent-red);
  margin-right: 0.5rem;
}

.live {
  font-family: 'Mosvita', 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  display: inline-block;
}

.live span {
  background: var(--accent-red);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* Video container keeps the iframe responsive and animates it into view. */
.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  z-index: 2;
  /* Ensure the video wrapper is visible by default; the animation will handle the fade. */
  opacity: 1;
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 1.3s;
  
  border: 2px solid #F26B83;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;

}


.video-container {
  width: 80%; /* Adjust video player width */
  max-width: 1200px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #F26B83;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 1s ease-out forwards 0.5s;
}

.video-responsive {
  position: relative;
  padding-bottom: 69.25%; /* 16:9 ratio */
  height: 0;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ABOUT SECTION
 * Contrasting dark tones differentiate this section from the hero while staying within the same
 * colour palette.  The copy is centred and restricted in width for comfortable reading.
 */
.about {
  background: transparent;
  padding: 0.5rem 2rem 2rem;
  text-align: center;
  margin-top: -2rem;
}

.about h3 {
  font-family: 'Mosvita', 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-about);
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--muted-text);
}

/* FOOTER
 * A simple footer with muted text keeps the focus on the primary content while providing closure.
 */
.footer {
  background: transparent;
  color: var(--light-text);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* UTILITIES AND ANIMATIONS */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

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

/* Responsive adjustments for smaller screens.  Typography scales down and the spacing is tightened to
 * ensure the layout remains balanced on mobile devices. */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .event-info {
    text-align: center;
  }
  
  .date {
    font-size: 1.25rem;
  }
  .live {
    font-size: 1.1rem;
  }
  .logo {
    width: 150px;
  }
  .hero::before,
  .hero::after {
    width: 80px;
  }
}

/* Additional responsive breakpoint for medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    gap: 1.5rem;
  }
  
  .logo {
    width: 15%;
  }
  
  .date {
    font-size: 1.4rem;
  }
}
