/* -------------------------------------------------------------
 * JOLLOF AND JAMS - IMMERSIVE OVERHAUL (RETRO POSTER / Y2K COLLECTIVE)
 * Vibe: Editorial, Artsy, Soft Purple, Analog Grain, Creative Overlaps
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

:root {
  /* Color System */
  --bg-dark: #050508;
  --bg-deep: #0b0914;
  --primary-purple: #4c1d95; /* Vibrant retro violet */
  --deep-purple: #1e1b4b; /* Indigo base */
  --lavender: #d8b4fe; /* Bright neon lavender */
  --gold: #facc15; /* Contrast micro accent */
  --text-light: #f8f4ec;
  --text-muted: #a1a1aa;
  
  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif; /* Editorial serif */
  
  /* Motion & Animations */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* Reset & Base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-dark);
}

/* Dynamic Moving Film Grain texture for retro analog print feel */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.08; /* Boosted grain visibility */
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%, 100% { transform:translate(0, 0); }
  10% { transform:translate(-5%, -10%); }
  20% { transform:translate(-15%, 5%); }
  30% { transform:translate(7%, -25%); }
  40% { transform:translate(-5%, 25%); }
  50% { transform:translate(-15%, 10%); }
  65% { transform:translate(15%, -15%); }
  80% { transform:translate(3%, 35%); }
  90% { transform:translate(-10%, 10%); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--deep-purple);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lavender);
}

/* Typography Overhaul */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-light);
  line-height: 1;
}

p {
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 9rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

/* Artsy Typography Classes */
.font-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 244, 236, 0.8);
}

.font-italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--lavender);
}

.text-gold {
  color: var(--gold);
}

.yellow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 10px var(--gold);
}

/* Decorative soft lighting glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  z-index: 1;
  opacity: 0.25;
  pointer-events: none;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-purple) 0%, rgba(91, 33, 182, 0) 80%);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--deep-purple) 0%, rgba(30, 27, 75, 0) 80%);
  bottom: 20%;
  left: -200px;
}

/* Artsy Duotone & Grayscale image wrapper */
.retro-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #0b0914;
  border-radius: 12px;
}

.retro-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(85%) contrast(135%) brightness(85%); /* High contrast film look */
  mix-blend-mode: luminosity;
  transition: var(--transition-smooth);
}

.retro-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.4) 0%, rgba(11, 9, 20, 0.75) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Interaction: scale and restore color on hover */
.retro-image-wrapper:hover img {
  filter: grayscale(10%) contrast(110%) brightness(95%);
  mix-blend-mode: normal;
  transform: scale(1.03);
}

.retro-image-wrapper:hover::after {
  opacity: 0.2;
}

/* Buttons: Pill shape with lavender glow border */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
}

.btn-primary {
  background: rgba(13, 12, 22, 0.9);
  color: var(--text-light);
  border-color: var(--lavender);
  box-shadow: 0 0 15px rgba(216, 180, 254, 0.15);
}

.btn-primary:hover {
  background: var(--lavender);
  color: var(--bg-dark);
  box-shadow: 0 0 25px rgba(216, 180, 254, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: var(--text-light);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Header Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(5, 5, 8, 0.95);
  border-bottom-color: rgba(216, 180, 254, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(216, 180, 254, 0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--lavender);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* Hero Section: Immersion Layout */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: #030305;
}

/* Background image - Stylish man portrait with high contrast */
.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* Positioned on the right half */
  height: 100%;
  background-image: linear-gradient(to right, rgba(5, 5, 8, 1) 0%, rgba(5, 5, 8, 0.4) 60%, rgba(5, 5, 8, 0.8) 100%), url('images/new-3.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.65; /* Higher visibility */
  filter: grayscale(15%) contrast(145%) brightness(75%); /* Custom photo treatment */
  z-index: 0;
}

/* Left side dark vignette mask */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(to right, rgba(5, 5, 8, 1) 75%, rgba(5, 5, 8, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Rotating Poster Stamp */
.rotating-stamp {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 10;
  animation: rotateStamp 25s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-svg {
  width: 100%;
  height: 100%;
  fill: var(--lavender);
  opacity: 0.6;
}

@keyframes rotateStamp {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Funky staggered typography */
.hero h1 {
  font-size: 5.5rem;
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero h1 .stagger-1 {
  transform: translateX(-5px);
}

.hero h1 .stagger-2 {
  transform: translateX(15px);
  margin: 0.3rem 0;
}

.hero h1 .stagger-3 {
  transform: translateX(5px);
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

/* Y2K Horizontal Marquee */
.text-marquee {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-deep);
  border-top: 1px solid rgba(216, 180, 254, 0.1);
  border-bottom: 1px solid rgba(216, 180, 254, 0.1);
  padding: 0.75rem 0;
  z-index: 20;
  transform: rotate(-1deg);
  margin-top: -3rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marquee-content {
  display: inline-block;
  animation: marqueeRun 28s linear infinite;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-right: 4rem;
}

.marquee-content span.highlight {
  color: var(--lavender);
}

@keyframes marqueeRun {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
  .hero-bg-image {
    width: 100%;
    opacity: 0.45;
  }
  .hero::before {
    width: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.6) 0%, rgba(5, 5, 8, 0.95) 85%);
  }
  .rotating-stamp {
    width: 90px;
    height: 90px;
    top: 12%;
    right: 5%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.8rem;
  }
  .hero h1 .stagger-2 {
    transform: translateX(5px);
  }
}

/* Next Event Section: Asymmetrical Retro Ticket Stub */
.next-event-section {
  position: relative;
  z-index: 5;
  background-color: var(--bg-dark);
}

.ticket-stub {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 480px;
  border-radius: 20px;
  border: 1px solid rgba(216, 180, 254, 0.15);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  overflow: visible;
  position: relative;
  background: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(10px);
}

/* Ticket Side Notch cutouts */
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  border-radius: 50%;
  z-index: 10;
  border: 1px solid rgba(216, 180, 254, 0.15);
}

/* Notch at the grid split */
.ticket-stub::before {
  top: -17px;
  left: 54.5%;
  transform: translateX(-50%);
}

.ticket-stub::after {
  bottom: -17px;
  left: 54.5%;
  transform: translateX(-50%);
}

.ticket-visual {
  position: relative;
  border-radius: 19px 0 0 19px;
  overflow: hidden;
  min-height: 400px;
}

/* Event poster visual with duotone filter */
.ticket-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) contrast(140%) brightness(80%);
}

.ticket-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 9, 20, 0) 60%, rgba(11, 9, 20, 0.95) 100%),
              linear-gradient(to bottom, rgba(76, 29, 149, 0.3), rgba(0,0,0,0.6));
  z-index: 2;
}

.ticket-visual .event-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--primary-purple);
  color: var(--text-light);
  border: 1px solid var(--lavender);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 10;
  box-shadow: 0 0 15px rgba(216, 180, 254, 0.3);
}

.ticket-details {
  padding: 4rem 3rem 4rem 4rem;
  border-left: 2px dashed rgba(216, 180, 254, 0.15); /* Perforated ticket stub separator */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-details-header {
  margin-bottom: 2rem;
}

.ticket-details-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.ticket-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--lavender);
  font-size: 1.1rem;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.ticket-meta-grid .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ticket-meta-grid .meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.ticket-meta-grid .meta-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
}

.ticket-meta-grid .meta-value.accented {
  color: var(--lavender);
}

.ticket-rsvp-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-rsvp-group {
  display: flex;
  gap: 0.5rem;
}

.ticket-rsvp-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0 1.25rem;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.ticket-rsvp-input:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 15px rgba(216, 180, 254, 0.2);
}

@media (max-width: 992px) {
  .ticket-stub {
    grid-template-columns: 1fr;
  }
  .ticket-stub::before, .ticket-stub::after {
    left: auto;
    width: 24px; height: 24px;
  }
  .ticket-stub::before {
    top: 48%; left: -12px;
  }
  .ticket-stub::after {
    top: 48%; right: -12px;
  }
  .ticket-details {
    padding: 3rem 2rem;
    border-left: none;
    border-top: 2px dashed rgba(216, 180, 254, 0.15);
  }
  .ticket-visual {
    border-radius: 19px 19px 0 0;
  }
}

/* Our Story Section: Immersive Overlaps */
.about-section {
  position: relative;
  background-color: var(--bg-deep);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual-panel {
  position: relative;
  padding-right: 2rem;
}

.about-visual-panel .main-panel {
  height: 520px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Overlapping sub-image for collage look */
.about-overlap-card {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.about-text-panel h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 0.95;
}

.about-text-panel .lead-p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-feature-item {
  display: flex;
  gap: 1.5rem;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--lavender);
}

.about-feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.about-feature-content p {
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .about-visual-panel {
    padding-right: 0;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Recaps Section - Poster Covers */
.gallery-section {
  background-color: var(--bg-dark);
}

.gallery-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

.gallery-header h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  background-color: var(--bg-deep);
  transition: var(--transition-smooth);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) contrast(135%) brightness(80%);
  mix-blend-mode: luminosity;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 9, 20, 0.95) 0%, rgba(11, 9, 20, 0.3) 60%, rgba(11, 9, 20, 0) 100%);
  z-index: 10;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 20;
  transition: var(--transition-smooth);
}

.gallery-info h5 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.gallery-info p {
  font-size: 0.75rem;
  color: var(--lavender);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Cover art look on hover */
.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 180, 254, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-image {
  filter: grayscale(10%) contrast(110%) brightness(95%);
  mix-blend-mode: normal;
  transform: scale(1.02);
}

/* Grid Spanning */
.gallery-item.col-span-2 {
  grid-column: span 2;
}

.gallery-item.row-span-2 {
  grid-row: span 2;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }
  .gallery-item.col-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .gallery-item.row-span-2 {
    grid-row: span 1;
  }
}

/* Past Events Section - Vinyl Sleeve aspect ratios */
.past-events-section {
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-dark));
}

.past-events-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

.past-events-header h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.past-event-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(216, 180, 254, 0.05);
}

.past-event-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.past-event-date {
  font-size: 0.75rem;
  color: var(--lavender);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.past-event-card h4 {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.past-event-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.past-event-recap-link {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  width: fit-content;
  padding-bottom: 2px;
  transition: var(--transition-smooth);
}

.past-event-recap-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-light);
  transition: var(--transition-elastic);
}

.past-event-recap-link:hover {
  color: var(--lavender);
  border-bottom-color: var(--lavender);
}

.past-event-recap-link:hover svg {
  transform: translateX(3px);
  stroke: var(--lavender);
}

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

@media (max-width: 768px) {
  .past-events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .past-event-card {
    aspect-ratio: auto;
    min-height: 240px;
  }
}

/* Community Section - Poster Overlay layout */
.community-section {
  position: relative;
  background-color: var(--bg-dark);
}

.community-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: rgba(11, 9, 20, 0.7);
  border: 1px solid rgba(216, 180, 254, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.community-details {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.community-details h2 {
  font-size: 3.5rem;
  line-height: 0.95;
}

.community-details p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.community-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.social-handle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--lavender);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.social-handle:hover {
  color: var(--text-light);
}

.community-visual-panel {
  height: 100%;
  min-height: 480px;
  border-radius: 0 19px 19px 0;
}

@media (max-width: 992px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-details {
    padding: 4rem 2rem;
  }
  .community-visual-panel {
    border-radius: 0 0 19px 19px;
    min-height: 350px;
  }
}

/* Footer Section */
footer {
  background-color: #030305;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 6rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
}

.footer-logo-text span {
  color: var(--lavender);
}

.footer-brand-col p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links-col h5 {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--text-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.02);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-light);
  transition: var(--transition-elastic);
}

.lightbox-close:hover svg {
  transform: scale(1.1) rotate(90deg);
  stroke: var(--lavender);
}

/* Scroll Fade In Animation */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
