/* Premium animations and effects */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

.premium-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.premium-image {
  transition: all 0.5s ease;
}

.premium-image:hover {
  transform: scale(1.02);
}

.event-hero-section {
  position: relative;
  overflow: hidden;
}

.event-hero-content {
  position: relative;
  z-index: 2;
}

/* Hero parallax effect */
.hero-container {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

/* Blurred copy of the same image fills the wide desktop hero so portrait/square
   event images never get cropped — the real image sits on top via object-contain. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(32px) brightness(0.5) saturate(1.1);
  transform: scale(1.2);
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Bottom-anchored scrim: keep the image visible up top, darken only where the text sits */
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 22%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.30) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
  padding-bottom: 2.5rem;
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95));
  }
  
  .hero-content.mobile {
    align-items: flex-end;
    padding-bottom: 1.5rem;
  }
  
  .hero-content.mobile .text-container {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ensure desktop hero is hidden on mobile */
  .event-hero-section {
    display: none !important;
  }
  
  /* Fix for mobile hero container */
  .hero-container {
    height: 40vh !important;
    min-height: 300px;
    overflow: hidden;
  }
  
  /* Ensure image covers the entire container on mobile */
  .hero-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    transform: scale(1.1);
  }
}

@media (min-width: 768px) {
  /* Ensure mobile hero is hidden on desktop */
  .block.md\:hidden.hero-container {
    display: none !important;
  }
  
  .event-details-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  
  .event-image-container {
    height: 500px;
    overflow: hidden;
  }
}
