@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;600&display=swap');
@media (max-width:768px){
  .event-card::before {
    animation-duration: 14s;
  }
}

/* ================= ROOT ================= */
:root {
  --neon-blue: #00f2ff;
  --neon-purple: #bc13fe;
  --bg-black: #050508;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ================= BODY ================= */
body {
  background: var(--bg-black);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* ================= GRID BG ================= */
.cyber-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,242,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  z-index: -1;
}
/* NAV CONTAINER */
.cyber-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(5,5,8,0.95) 0%,
    rgba(10,10,15,0.9) 50%,
    rgba(5,5,8,0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,242,255,0.5) 25%,
    rgba(188,19,254,0.5) 50%,
    rgba(0,242,255,0.5) 75%,
    transparent 100%
  ) 1;
  box-shadow: 
    0 4px 30px rgba(0,242,255,0.1),
    0 0 0 1px rgba(0,242,255,0.1) inset;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  font-family: 'Orbitron';
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon-blue);
  text-shadow: 
    0 0 10px rgba(0,242,255,0.6),
    0 0 20px rgba(0,242,255,0.3),
    0 0 30px rgba(0,242,255,0.1);
  position: relative;
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 
    0 0 15px rgba(0,242,255,0.8),
    0 0 25px rgba(0,242,255,0.5),
    0 0 35px rgba(0,242,255,0.3);
  transform: scale(1.05);
}

.logo span {
  color: var(--neon-purple);
  text-shadow: 
    0 0 10px rgba(188,19,254,0.6),
    0 0 20px rgba(188,19,254,0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Orbitron';
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 8px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,242,255,0.5);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,242,255,0.6);
}

.nav-links a.active::after {
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--neon-blue);
}

/* ================= PAGE ================= */
.events-page { padding: 130px 6% 90px; }

.page-title {
  font-family: 'Orbitron';
  font-size: 2.5rem;
  text-align: center;
  color: var(--neon-blue);
}

.page-subtitle {
  text-align: center;
  opacity: .8;
  margin: 10px 0 50px;
}

/* ================= CONTROLS ================= */
.controls {
  max-width: 900px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.controls input {
  padding: 14px 22px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,242,255,0.35);
  color: #fff;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tabs button {
  padding: 8px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #cfd6ff;
  cursor: pointer;
}

.filter-tabs button.active {
  background: linear-gradient(90deg,var(--neon-blue),var(--neon-purple));
  color: #050508;
  font-weight: 700;
}

/* ================= GRID ================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width:1100px) {
  .events-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:768px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* ================= CARD ================= */
.event-card {
  background: #0b0f14;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: .3s;
}
.event-card:hover { transform: translateY(-6px); }

/* ================= ANIMATED BORDER (PURPLE, BOLDER, SMOOTH) ================= */

.event-card {
  position: relative;
  overflow: visible;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: -3px;                  /* 🔹 bolder than before */
  border-radius: 18px;
  background: conic-gradient(
    from var(--angle),
    transparent 70%,
    rgba(188,19,254,0.45) 80%,   /* 💜 stronger purple */
    rgba(188,19,254,0.9) 87%,    /* 💜 bright highlight */
    rgba(188,19,254,0.45) 94%,
    transparent 100%
  );
  z-index: -1;

  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;

  padding: 3px;                 /* 🔹 bolder glow ring */
  animation: borderRotate 10s linear infinite;
}

/* Rotation variable */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  to {
    --angle: 360deg;
  }
}



/* ================= POSTER ================= */
.poster {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.4);
}

/* Blur background fill */
.poster::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--poster-img);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2);
  opacity: 0.45;
  transform: scale(1.25);
  z-index: 0;
}

/* Vignette */
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 1;
}

/* Poster image */
.poster img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= TITLE ================= */
.event-title {
  margin-top: 10px;
  font-family: 'Orbitron';
  font-size: .95rem;
  text-align: center;
}

/* ================= TAP HINT ================= */
.tap-hint {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding: 4px 12px;
  font-family: 'Orbitron';
  font-size: .6rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,.85);
  background: rgba(0,242,255,.08);
  border-radius: 999px;
}

/* ================= MODAL ================= */
.event-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(14px);
  z-index: 9999;
}

.modal-box {
  width: min(92%,460px);
  background: #0b0f14;
  border-radius: 22px;
  padding: 34px;
  border: 1px solid rgba(0,242,255,.4);
}

.close {
  float: right;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ================= MODAL ACTIONS ================= */
.modal-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-actions a {
  flex: 1 1 160px;
  text-decoration: none;
}

.modal-actions button {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  font-family: 'Orbitron';
  cursor: pointer;
}

/* Register */
.btn-register {
  background: linear-gradient(90deg,var(--neon-blue),var(--neon-purple));
}

/* Rule Book — SIMPLE & STABLE */
.btn-rulebook {
  background: rgba(0,242,255,0.08);
  border: 1px solid rgba(0,242,255,0.6);
  color: var(--neon-blue);
  border-radius: 30px;
  padding: 14px;
  transition: .3s;
}

.btn-rulebook:hover {
  background: linear-gradient(90deg,var(--neon-blue),var(--neon-purple));
  color:#050508;
}

/* ================= MOBILE NAV ================= */
.hamburger { display:none; }
@media(max-width:768px){
  .hamburger { display:flex; flex-direction:column; gap:5px; }
  .hamburger span { width:26px; height:2px; background:var(--neon-blue); }

  .nav-links {
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#050508;
    flex-direction:column;
    align-items:center;
    gap:18px;
    padding:20px 0;
    display:none;
  }
  .nav-links.open { display:flex; }
}

/* ================= POSTER PREVIEW ================= */
.poster-preview{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.poster-preview img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,242,255,0.25);
}

.poster-close{
  position: fixed;
  top: 20px;
  right: 26px;
  font-size: 2.2rem;
  font-family: 'Orbitron';
  color: #fff;
  cursor: pointer;
}
