@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Agbalumo&family=Kalam:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

html, body {
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Make section cover 100% width and prevent vertical scrolling */
#proshows-carousel {
  box-sizing: border-box;
  margin: 0;
  padding: 40px 0 0; /* Add top padding */
  font-family: "Nunito", sans-serif;
}

#proshows-carousel .swiper-slide img {
  /*width: 100%;*/
}

#proshows-carousel .swiper1 {
  width: 100%;
  background: transparent;
}

#proshows-carousel {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 70vh;
}

@media (max-width: 1200px) {
  #proshows-carousel {
    height: 70vh;
  }
}

@media (max-width: 880px) {
  #proshows-carousel {
    height: 70vh;
  }
}

@media (max-width: 580px) {
  #proshows-carousel {
    height: 80vh;
  }
}

@media (max-width: 500px) {
  #proshows-carousel {
    height: 90vh;
  }
}

#proshows-carousel .swiper1 {
  width: 100%;
  height: 100%;
}

#proshows-carousel .swiper1 .swiper-wrapper .swiper-slide {
  position: relative;
  text-align: center;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 0.5s ease-in-out;
}

#proshows-carousel .swiper-slide-prev,
#proshows-carousel .swiper-slide-next {
  animation: fade-out 0.5s ease-in-out;
}

#proshows-carousel .hero {
  position: absolute;
  bottom:auto;
  z-index: 10;
  width: 30rem;
  right: 5%;
  filter: contrast(100%);
  pointer-events: none;
}

#proshows-carousel .title {
  position: absolute;
  top: 20%;
  left: 5%;
  font-family: "Roxborough", "Roboto", sans-serif; ;
  font-size: 5rem;
  color: #fff;
  transition-delay: 0.3s;
}

/* Artist Info Box Styles - Enhanced and adjusted width */
#proshows-carousel .artist-info-box {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 45%;  /* Reduced width to avoid collision with hero image */
  padding: 0;
  background: rgba(15, 15, 20, 0.6); /* More transparent */
  backdrop-filter: blur(25px); /* Increased blur */
  -webkit-backdrop-filter: blur(25px); /* For Safari */
  border-radius: 16px;
  color: #fff;
  z-index: 6;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(91, 55, 235, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: none; /* Remove fixed height */
  overflow-y: visible; /* No scrollbars */
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .artist-info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 35px rgba(77, 220, 158, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#proshows-carousel .info-header {
  background: linear-gradient(135deg, #3a1c71, #4776E6, #8E54E9);
  padding: 15px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .info-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shine 2s infinite linear;
  transform: translateX(-100%);
}

@keyframes shine {
  to {
    transform: translateX(50%);
  }
}

#proshows-carousel .info-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .artist-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  padding: 5px 15px;
  border-bottom-left-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4ddc9e;
  box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .info-content {
  padding: 12px 15px; /* Reduced padding */
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .info-details {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-bottom: 12px; /* Reduced margin */
  padding-bottom: 12px; /* Reduced padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#proshows-carousel .info-item {
  display: flex;
  align-items: center;
  padding: 4px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .info-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transform: translateX(5px);
}

#proshows-carousel .info-item .icon {
  margin-right: 8px;
  font-size: 1.25rem;
  color: #4ddc9e;
  display: flex;
  align-items: center;
}

#proshows-carousel .info-description {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  font-family: 'Roboto', sans-serif;
}

#proshows-carousel .info-description p {
  margin: 6px 0; /* Reduced margin */
}

#proshows-carousel .info-description p:first-of-type {
  margin-top: 0;
}

/* -------------------- */
/* BACKGROUND ANIMATION */

#proshows-carousel .gradient {
  right: 0;
  position: absolute;
  bottom: 10%;
  top: 10%; /* Position from top to avoid getting cut by hero section */
  z-index: -4; /* Keep it visible on regular screens */
  width: 600px;
  height: 90%; /* Reduce height to avoid overflow */
  filter: blur(50px);
  background-image: linear-gradient(#4ddc9e, #5b37eb, #f1307e);
  animation: rotate 10s cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
  pointer-events: none; /* Ensure it doesn't interfere with interaction */
  margin: auto; /* Center vertically */
  overflow: hidden;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes line-animation {
  from {
    background-position: 100%;
  }
  to {
    background-position: -100%;
  }
}

/* ---------------- */
/* SLIDE ANIMATION */

#proshows-carousel .swiper-slide-active [data-animate] {
  opacity: 1;
  transform: none;
}

#proshows-carousel .swiper-slide-active .title {
  transition-delay: 0.6s;
}

[data-animate] {
  opacity: 0;
  transition: all 0.8s ease-out;
}

[data-animate="bottom"] {
  transform: translate3d(0, 15px, 0);
}

/* ---------------- */
/* FADE ANIMATION */

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 2050px) {
  #proshows-carousel{
    padding: 40px 60px 0; /* Add top padding */
  }
  #proshows-carousel .title {
    top: 5%;
  }

  #proshows-carousel .hero {
    right: 5%;
    transform: none;
    width: 420px;
  }
}

@media (max-width: 1200px) {
  #proshows-carousel{
    z-index: 1;
    padding: 30px 60px 0; /* Reduced top padding */
  }
  #proshows-carousel .hero {
    width: 420px;
  }
  #proshows-carousel .hero {
    right: 5%;
    transform: none;
    width: 420px;
  }
  #proshows-carousel .artist-info-box {
    width: 50%; /* Adjusted width */
  }
}

@media (max-width: 880px) {
  #proshows-carousel .title {
    top: 5%;
    font-size: 4.5rem; /* Slightly reduced font size */
  }
  
  #proshows-carousel .artist-info-box {
    top: 20%;
    width: 90%;
  }
  
  #proshows-carousel .info-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Major changes for mobile layout - stacked elements */
@media (max-width: 1300px) {
  #proshows-carousel {
    min-height: auto;
    height: auto;
    max-height: none;
    padding-top: 20px;
    overflow: hidden;
  }
  
  #proshows-carousel .swiper1 .swiper-wrapper .swiper-slide {
    flex-direction: column;
    padding: 40px 0; /* Reduced padding */
    width: 100% !important;
    height: auto;
  }
  
  #proshows-carousel .swiper1 .swiper-wrapper {
    width: 100%;
  }
  
  #proshows-carousel .title {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 15px;
    font-size: 3.5rem;
    text-align: center;
    width: 100%;
  }
  
  #proshows-carousel .artist-info-box {
    position: relative;
    top: auto;
    left: auto;
    width: 85%;
    margin: 0 auto 30px;
    transform: none !important;
  }
  
  #proshows-carousel .hero {
    position: relative;
    bottom: auto;
    right: 5%;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    z-index: 10; /* Ensure hero is above gradient */
  }
  
  #proshows-carousel .gradient {
    position: absolute; /* Change from fixed to absolute */
    width: 100%;
    height: 75%;
    top: 15%; /* Position in the middle of the section */
    left: 0;
    right: 0;
    bottom: 15%;
    opacity: 0.8;
    z-index: -4; /* Position behind hero image but above other elements */
  }
  
  #proshows-carousel .artist-info-box:hover {
    transform: translateY(-5px) !important;
  }
}

@media (max-width: 580px) {
  #proshows-carousel {
    height: auto;
    overflow: hidden;
    padding: 15px 0;
  }
  
  #proshows-carousel .hero {
    bottom: 0;
  }
  
  #proshows-carousel .artist-info-box {
    width: 90%;
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    max-height: none; /* No fixed height */
    overflow-y: visible; /* No scroll */
    margin: 0 auto 20px;
    z-index: 15;
  }
  
  #proshows-carousel .title {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  #proshows-carousel .info-title {
    font-size: 1.3rem;
  }
  
  #proshows-carousel .info-description {
    font-size: 0.95rem;
  }
  
  #proshows-carousel .artist-info-box:hover {
    transform: translateY(-5px) !important;
  }
  
  #proshows-carousel .info-details {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  #proshows-carousel .artist-info-box {
    top: 40%;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    max-height: 40vh;
    overflow-y: auto;
  }
  
  #proshows-carousel .artist-info-box::-webkit-scrollbar {
    display: none;
  }
  
  #proshows-carousel .artist-info-box {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  #proshows-carousel .gradient {
    z-index: 5; /* Keep consistent */
  }
  
  #proshows-carousel .artist-info-box {
    z-index: 15; /* Make sure info box is above everything */
  }
  
  #proshows-carousel .title {
    z-index: 15; /* Make sure title is above everything */
  }
  
  #proshows-carousel .swiper1 .swiper-wrapper .swiper-slide {
    width: 100% !important;
    padding: 60px 0;
  }
}

@media (max-width: 580px) {
  #proshows-carousel {
    height: auto;
    min-height: auto;
    overflow: hidden;
    padding: 15px 0;
  }
  
  /* #proshows-carousel .gradient {
    position: absolute; 
    width: 100%;
    height: 90%;
    margin-top: 20px;
    opacity: 0.8;
    z-index: -4;

  } */
  
  #proshows-carousel .swiper1 .swiper-wrapper .swiper-slide {
    padding: 40px 0;
    width: 100% !important;
  }

  #proshows-carousel .hero {
    align-items: center;
    justify-content: center;
    left: 1%;
    width: 95%;
    max-width: 350px;
  }

  #proshows-carousel .title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  /* Simplify info box styling for small screens */
  #proshows-carousel .info-details {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  /* Ensure info box is centered */
  #proshows-carousel .artist-info-box {
    width: 95%;
    margin: 0 auto 20px;
    position: relative;
    top: auto;
    left: auto;
  }
  
  #proshows-carousel .swiper1,
  #proshows-carousel .swiper-wrapper,
  #proshows-carousel .swiper-slide {
    overflow: hidden;
  }
}