
/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --purple:       #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark:  #5b21b6;
  --blue:         #2563eb;
  --blue-light:   #93c5fd;
  --pink:         #db2777;
  --pink-light:   #f9a8d4;
  --cyan:         #0891b2;

  /* Light theme surfaces */
  --bg-page:      #f5f3ff;
  --bg-card:      #ffffff;
  --bg-navbar:    rgba(255, 255, 255, 0.85);

  /* Borders */
  --border:       rgba(124, 58, 237, 0.18);
  --border-hover: rgba(124, 58, 237, 0.5);

  /* Text */
  --text-main:    #1e0a3c;
  --text-muted:   #6b5b8f;
  --text-light:   #a395c4;

  --radius-card: 20px;
  --radius-sm:   10px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ============================================================
   PARTICLE CANVAS
============================================================ */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   ANIMATED BLOBS — pastel & airy for light theme
============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: blobDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, #c4b5fd, transparent 70%); /* lavender */
  top: -160px; left: -160px;
  animation-duration: 16s;
}

.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #bfdbfe, transparent 70%); /* sky blue */
  top: 80px; right: -130px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #fbcfe8, transparent 70%); /* blush pink */
  bottom: -120px; left: 40%;
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(124, 58, 237, 0.08);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--purple-dark), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { list-style: none; display: flex; gap: 36px; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--purple-dark); }
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 181, 253, 0.3) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeUp 0.8s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.40s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.70s; }

.hero-tag {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--purple);
  margin-bottom: 24px;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.07);
  font-weight: 500;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.9;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 35%, var(--blue) 65%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 24px rgba(124, 58, 237, 0.18));
  margin-bottom: 12px;
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title .year {
  font-size: 0.55em;
  letter-spacing: 14px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
}

.meta-icon { font-size: 1rem; }

.meta-divider {
  width: 1px; height: 20px;
  background: var(--border);
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 16px 44px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple-dark), var(--blue));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.cta-btn:hover::before { transform: translateX(100%); }

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.38);
}

/* ============================================================
   EVENTS SECTION
============================================================ */
.events-section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--purple-dark), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.section-sub { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   SEARCH BAR
============================================================ */
.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 56px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 1rem;
  pointer-events: none;
}

.search-bar {
  width: 100%;
  padding: 15px 50px 15px 48px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.08);
}

.search-bar::placeholder { color: var(--text-light); }

.search-bar:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 4px 20px rgba(124, 58, 237, 0.12);
}

.search-clear {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: none;
  transition: color var(--transition);
}

.search-clear:hover { color: var(--purple-dark); }

.no-results {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  display: none;
  padding: 40px 0;
}

/* ============================================================
   EVENTS GRID
============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ============================================================
   EVENT CARD
============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    opacity 0.5s ease;
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.07);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover: lift + soft violet glow */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--purple-light);
  box-shadow:
    0 0 0 2px rgba(124, 58, 237, 0.13),
    0 12px 40px rgba(124, 58, 237, 0.18),
    0 24px 60px rgba(124, 58, 237, 0.08);
}

/* Card image wrapper */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.95) saturate(1.05);
}

.card:hover .card-img-wrap img {
  transform: scale(1.08);
  filter: brightness(0.85) saturate(1.15);
}

/* Overlay on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.65), rgba(37, 99, 235, 0.5));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.card:hover .card-overlay { opacity: 1; }

.card-click-hint {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

/* Card body */
.card-body {
  padding: 18px 20px 22px;
  background: #fff;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: var(--text-main);
  line-height: 1.1;
  transition: color var(--transition);
}

.card:hover .card-title { color: var(--purple-dark); }

/* ============================================================
   MODAL
============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 60, 0.4);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: linear-gradient(145deg, #faf5ff, #eff6ff);
  border: 1.5px solid rgba(124, 58, 237, 0.22);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(196, 181, 253, 0.2),
    0 30px 80px rgba(124, 58, 237, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.08);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
}

.modal-backdrop.open .modal { transform: scale(1) translateY(0); opacity: 1; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(124, 58, 237, 0.07);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: var(--text-muted);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: rgba(124, 58, 237, 0.14); color: var(--purple-dark); }
.modalImage {
 
  border-radius: 24px;
}
.modal-icon{
  
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  
  filter: drop-shadow(0 0 18px var(--violet-glow));
}

.modal-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--purple);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--purple-dark), var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 50px;
}

.modal-cta {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--purple-dark), var(--blue));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.28);
}

.modal-cta:hover { transform: scale(1.04); box-shadow: 0 8px 30px rgba(124, 58, 237, 0.38); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.1));
}

.footer-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-content { position: relative; z-index: 1; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--purple-dark), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 1px;
}

.footer-links a:hover { color: var(--purple-dark); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 900px) {
  .navbar { padding: 16px 28px; }
  .events-section { padding: 80px 28px; }
  .hero { padding: 100px 20px 60px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.8rem; }

  .hero { padding: 90px 16px 60px; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .meta-divider { display: none; }

  .cta-btn { padding: 14px 32px; font-size: 0.9rem; }

  .events-section { padding: 60px 16px; }
  .events-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .card-img-wrap { height: 150px; }
  .card-title { font-size: 1.15rem; }

  .modal { padding: 36px 24px; }
  .modal-title { font-size: 2rem; }
}

@media (max-width: 420px) {
  .events-grid { grid-template-columns: 1fr; }
}
