.container {
  width: 90%;
  margin: 0 auto;
}

/* Header */
.hero-section {
  position: relative;
  /*background: url("/difbg.webp") no-repeat center center/cover; */
  background: #000;
  height: 500px;
  text-align: center;
  color: #00ffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 2s ease-out;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* 50% Opacity */
  z-index: 1;
  opacity: 100%;
}

.hero-section > * {
  z-index: 2;
  /* Ensure the text is above the overlay */
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 2rem;
  margin-bottom: 30px;
}

.hero-content > p {
  margin-bottom: 60px;
  color: #bb86fc;
}

.hero-content > a {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 20px;
  background: linear-gradient(45deg, #4e6ef2, #9b4dff);
  /* Blue to Purple gradient */
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(75, 51, 234, 0.6);
  transition: all 0.4s ease;
}

/* Underline animation */
.hero-content > a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background-color: white;
  /* White underline */
  transition: left 0.4s ease-in-out;
}

/* Hover effect */
.hero-content > a:hover {
  background: linear-gradient(45deg, #9b4dff, #4e6ef2);
  /* Reverse the gradient on hover */
  color: #000;
  /* Text turns black */
  box-shadow: 0 0 10px rgba(75, 51, 234, 0.8);
}

/* Trigger the underline on hover */
.hero-content > a:hover::before {
  left: 0;
  /* Slide underline in */
}

.typewriter-text {
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ff3131, #ff3370, #c70081);
  background-clip: text;
  color: transparent;
}

/* For the cursor effect */
.cursor {
  display: inline-block;
  width: 8px;
  height: 36px;
  background-color: white;
  margin-left: 5px;
  animation: blink 0.75s step-end infinite;
}

.color-d {
  color: red;
}

.color-i {
  color: red;
}

.color-f {
  color: red;
}

.cta-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
}

.cta-btn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.about-us > .container > h2 {
  text-align: center;
  background: linear-gradient(45deg, #8a2be2, #ff1493);
  background-clip: text;
  color: transparent;
}

.about-us a {
  font-weight: bold;
  font-size: 1rem;
}

.about-us > .container > p {
  margin-bottom: 20px;
}

.about-us .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.events h2 {
  background: linear-gradient(45deg, #007bff, #00bfff);
  background-clip: text;
  color: transparent;
}

.past-events h2 {
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  background-clip: text;
  color: transparent;
}

.merchandise h2 {
  background: linear-gradient(45deg, #00ffff, #00ff7f);
  background-clip: text;
  color: transparent;
}

.events,
.past-events,
.speakers,
.testimonials,
.cta {
  margin-top: 60px;
}

.cta,
.merchandise, .past-events > .container {
  margin-bottom: 60px;
}

body.dark-mode .event-card,
body.dark-mode .merch-item {
  background: rgba(255, 255, 255, 0.1);
  /* Semi-transparent white */
  backdrop-filter: blur(25px) saturate(180%);
  /* Stronger blur & vibrancy */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Brighter border */
  border-radius: 12px;
  /* Smooth rounded corners */
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1),
    /* Inner soft glow */ 0 10px 25px rgba(0, 0, 0, 0.5);
  /* Soft outer shadow */
  color: white;
  /* Ensures text is readable */
  transition: all 0.3s ease-in-out;
}

/* Subtle Hover Effect */
body.dark-mode .event-card:hover,
body.dark-mode .merch-item:hover {
  background: rgba(255, 255, 255, 0.2);
  /* Slightly more visible on hover */
  border-color: rgba(255, 255, 255, 0.3);
  /* Brighter border */
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15),
    0 12px 30px rgba(0, 0, 0, 0.6);
  /* Stronger shadow */
  transform: translateY(-3px);
  /* Lift effect */
}

/* Blinking cursor effect */
@keyframes blink {
  50% {
    background-color: transparent;
  }
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 2s ease-out;
}

.fadeInUp {
  animation: fadeInUp 1.5s ease-out;
}

/* Event Cards */
.event-card,
.past-event-card {
  position: relative;
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

/* Countdown */
.countdown {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 15px;
  font-size: 1.2rem;
  color: #e60000;
}

/* Merchandise */
.merchandise {
  margin-top: 60px;
  text-align: center;
}

.merchandise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.merch-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.merch-item:hover {
  transform: translateY(-5px);
}

.merch-img {
  width: 100%;
  border-radius: 8px;
}

.price {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e60000;
  margin: 10px 0;
}

/* Responsive Design for 768px */
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section {
    padding-top: 16%;
    padding-right: 3%;
    width: 97%;
  }

  .hero-section::before {
    width: 97%;
  }

  .hero-content {
    margin-left: 20px;
  }

  .typewriter-text {
    animation: none;
    /* Stop any animations */
    background: none;
    /* Remove gradient */
    background: linear-gradient(90deg, #ff3131, #ff3370, #c70081);
    background-clip: text;
    color: transparent;
  }

  .cursor {
    display: none;
    /* Hide the cursor */
  }

  .cta-btn {
    font-size: 1rem;
    padding: 8px 16px;
    transition: none;
  }

  .about-us p {
    margin-top: 0px;
  }

  .event-card {
    width: 89.5%;
    margin-bottom: 15px;
  }

  .countdown {
    font-size: 1rem;
    padding: 5px 10px;
  }

  .merchandise-grid {
    grid-template-columns: 1fr;
  }

  /* Disable hover effects for buttons */
  .cta-btn:hover {
    background-color: #007bff !important;
    transform: none !important;
  }

  /* Disable hover effects for merchandise items */
  .merch-item:hover {
    transform: none !important;
  }

  /* Disable hover effects for event cards */
  .event-card:hover {
    transform: none !important;
  }

  /* Disable hover effects for hero section CTA button */
  .hero-content > a:hover {
    background: linear-gradient(45deg, #4e6ef2, #9b4dff) !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(75, 51, 234, 0.6) !important;
  }

  .hero-content > a:hover::before {
    left: -100% !important;
  }
}
