/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background:  black;
  color: white;
  transition: background 0.5s, color 0.5s;
  min-height: 100vh;

}

body.light-theme {
  background: white;
  color: white;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-family: 'Anton', sans-serif;
  margin: 60px 0 20px 0;
  color: white;
  letter-spacing: 6px;
  word-spacing: 2px;
}

body.light-theme .section-title {
  color: black;
}

.leMagnify span {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  animation: leMagnify 1s ease-out forwards;
  animation-delay: calc(var(--i) * 0.07s);
  opacity: 0;
}

@keyframes leMagnify {
  0% {
    transform: scale(0.8);
    letter-spacing: normal;
    opacity: 0;
  }
  50% {
    transform: scale(1.8);
    letter-spacing: 26px;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    letter-spacing: 10px;
    opacity: 1;
  }
}

/* Carousel */
.carousel-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 60px;
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
  gap: 20px;
  will-change: transform;
}

.slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  transition: transform 0.3s ease;
  transform: scale(0.85);
  height: 400px;
  min-width: 0;
  position: relative;
}

.card.highlighted {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s, box-shadow 0.4s;
}

/* Remove any .card.one or .card.one:hover bulge/scale styles and ensure only .card.highlighted controls the bulge. */
.card.highlighted {
  transform: scale(1) !important;
  z-index: 2;
  box-shadow: 0 28px 80px rgba(31,38,135,0.60);
  background: rgba(255,255,255,0.32);
  animation: borderGlowCard 2s ease-in-out infinite;
}

@media (max-width: 600px) {
  .slides {
    gap: 0;
  }
  .slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card.highlighted {
    width: 100% !important;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
}

.slide-inner {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  height: 100%;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  height: 100%;
}

.card-face.front {
  z-index: 2;
}

.card-face.back {
  transform: rotateY(180deg);
  z-index: 3;
}

.slide-inner.flipped {
  transform: rotateY(180deg);
}

.slide-inner.flipped .card-face.front {
  z-index: 1;
}

.slide-inner.flipped .card-face.back {
  z-index: 4;
}

.card-top img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: height 0.5s ease;
  
}

.slide-inner.folded .card-top img {
  height: 180px;
}

.event-name {
  font-weight: bold;
  text-align: center;
  font-size: 18px;
  margin-top: 8px;
  color: #333;
  padding: 4px 0;
  background: #fff;
}

.card-bottom {
  background: #fff;
  color: #333;
  padding: 0 12px 12px 12px;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: none;
}

.card-content {
  font-size: 14px;
  margin-top: 8px;
}

/* Move carousel arrows to be vertically centered and slightly above the bottom, and horizontally centered on each side */
.controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-60%); /* Move a bit higher than exact center */
  pointer-events: none;
}
.control-btn {
  pointer-events: auto;
}

.control-btn {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.control-btn:hover {
  background: rgba(0,0,0,0.8);
}
/* Back Side Layout (Flipped Card) */

.card-face.back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #362736;
  color: #ffffff;
  
  overflow: hidden;
  padding: 12px;
}

body.light-theme .card-face.back {
  background: #f9e9ff;
  color: #000;
}

.card-back-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px; /* Adjust as needed */
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}


.image-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0; /* No gap between images */
  width: 100%;
  height: 100%;
}

.image-carousel img {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none; /* prevent accidental drag */
}




/* Scroll arrows */


.scroll-arrow:hover {
  background: rgba(0,0,0,0.3);
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.scroll-arrow.left {
  left: 8px;
}

.scroll-arrow.right {
  right: 8px;
}


/* Description section */
.card-back-bottom {
  font-size: 14px;
  padding: 6px;
  line-height: 1.4;
  max-height: 140px;
  overflow-y: auto;
}


@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
    max-width: none;
  }
  .control-btn {
    display: flex !important;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    touch-action: manipulation;
  }
  .controls {
    top: 45%;
    bottom: auto;
    transform: translateY(-60%);
    padding: 0 10px;
  }
}

.card-bottom:empty,
.card-content:empty {
  display: none;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #333;
}

/* Bubbles Background */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  background: linear-gradient(135deg, #ff69b4, #00bfff, #7f7fff, #a259ff, #ff69b4);
  /* animation: floatBubble 16s linear infinite; */
  will-change: transform, opacity;
}
body.light-theme .bubble {
  background: linear-gradient(135deg, #ff69b4, #00bfff, #7f7fff, #a259ff,  #ff69b4);
  opacity: 0.7;
}
/* @keyframes floatBubble {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0.5;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
} */

body.light-theme .card-bottom {
  background: #000;
  color: #fff;
}

.class1, .class2 {
  display: inline-block;
  font-size: 2.8rem;
  font-family: 'Anton', sans-serif;
  margin: 10px 0;
  width: fit-content;
  height: fit-content;
  text-align: center;
}
