:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #7c3aed;
  --accent-color: #f59e0b;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-color: #1f2937;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --gradient-start: #4f46e5;
  --gradient-end: #7c3aed;
}
body{
  background-color: #e6e8f0 !important;
}
video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.sound-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

header {
  background-color: #1c1f4a;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1c1f4a;
  animation: headerGlow 10s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.5);
  }
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

header p {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  opacity: 0.9;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.event-card {
  background: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1),
    0 10px 10px -5px rgba(79, 70, 229, 0.04);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card h2 {
  margin-top: 0;
}

.event-card:hover::before {
  opacity: 1;
}

.event-image-div {
  height: 320px;
}
.event-image {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
}

.event-content {
  padding: 1.5rem;
  position: relative;
}

.event-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
  position: relative;
}

.event-name::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
  border-radius: 2px;
}

.event-card:hover .event-name::after {
  width: 150px;
}

.event-info {
  display: grid;
  margin-bottom: 0.5rem;
}

.info-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-row:hover {
  background: rgba(79, 70, 229, 0.05);
  transform: translateX(5px);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.info-item i {
  color: var(--primary-color);
  width: 20px;
  transition: all 0.3s ease;
}

.event-card:hover .info-item i {
  animation: iconPulse 1s ease infinite;
  color: var(--accent-color);
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.register-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.register-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.register-btn:hover::before {
  width: 400px;
  height: 400px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.register-btn:active {
  transform: translateY(1px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
  cursor:grab;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: var(--card-background);
  margin: 2rem auto;
  padding: 2rem;
  width: 88%;
  max-width: 800px;
  border-radius: 16px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.1);
}

.close-button:hover {
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.1);
}

.event-details {
  display: grid;
  gap: 2rem;
}

.event-details img {
  width: 70%;
  margin: 0 auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-details img:hover {
  transform: scale(1.02);
}

.event-details h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: rgba(79, 70, 229, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
}

.description {
  line-height: 1.8;
  color: var(--text-color);
  padding: 1.5rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  font-size: 1.1rem;
}

/* Success Message Styles */
.success-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateX(200%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1100;
}

.success-message.show {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .modal-content {
    margin: 1rem;
    padding: 0.5rem;
  }

  .info-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .success-message {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
  .event-details img{
    width: 80%;;
  }
}
