.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.92);
  /* backdrop-filter: blur(25px); */
  -webkit-backdrop-filter: blur(25px);
backdrop-filter: blur(25px);
  color: white;
  z-index: 2000;
  padding: 60px 8vw;
  overflow-y: auto;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: fixed;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
}

.modal-section {
  margin-top: 30px;
}

.modal-section h3 {
  color: cyan;
  margin-bottom: 10px;
}

.event-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(56,189,248,0.12),
    rgba(244,63,94,0.08)
  );
  border-radius: 22px;
  padding: 40px 30px;
  border: 1px solid rgba(56,189,248,0.25);
  /* backdrop-filter: blur(18px); */
  -webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
  cursor: pointer;
  transition: all 0.45s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.45s ease;
}

.event-card:hover {
  transform: translateY(-12px) scale(1.04);
}

.event-card:hover::before {
  box-shadow:
    0 0 40px rgba(56,189,248,0.7),
    0 0 80px rgba(244,63,94,0.5);
}

.event-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.event-card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.glitch::before {
  color: #38bdf8;
  animation: glitch1 2.5s infinite;
}

.glitch::after {
  color: #f43f5e;
  animation: glitch2 2.5s infinite;
}

@keyframes glitch1 {
  0%,100% { transform: translate(0); }
  20% { transform: translate(-2px,2px); }
  40% { transform: translate(-2px,-2px); }
}

@keyframes glitch2 {
  0%,100% { transform: translate(0); }
  20% { transform: translate(2px,-2px); }
  40% { transform: translate(2px,2px); }
}

/* ================= EVENT MODAL ================= */

.event-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #020617, #000);
  z-index: 5000;
  padding: 80px 8vw;
  overflow-y: auto;
  animation: modalIn 0.6s ease forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: fixed;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
  color: #38bdf8;
}

.modal-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  background: linear-gradient(90deg, #38bdf8, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-section {
  margin-top: 30px;
}

.modal-section h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.modal-section ul {
  padding-left: 20px;
}

.modal-section li {
  margin-bottom: 6px;
  opacity: 0.85;
}

.modal-register {
  margin-top: 40px;
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #f43f5e);
  color: black;
  font-weight: 700;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.event-card {
  background: rgba(20, 30, 50, 0.85);
  border-radius: 16px;
  padding: 28px;
  color: #e5f4ff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.event-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.event-tagline {
  opacity: 0.85;
  margin-bottom: 10px;
}

.event-meta {
  font-size: 0.9rem;
  opacity: 0.7;
}

.event-btn {
  margin-top: 16px;
  background: transparent;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.event-preview {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.event-card:hover .event-preview {
  opacity: 0.85;
  transform: translateY(0);
}
