/* Always tilt cards toward the center on hover/focus/active */
.cool-events-row {
  /* Ensure flex for nth-child to work as expected */
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
}
.cool-event-card {
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  will-change: transform;
}
/* 4 cards per row: 1st and 2nd tilt right, 3rd and 4th tilt left */
.cool-events-row > .col-md-3:nth-child(1) .cool-event-card.active,
.cool-events-row > .col-md-3:nth-child(1) .cool-event-card:hover,
.cool-events-row > .col-md-3:nth-child(1) .cool-event-card:focus-within,
.cool-events-row > .col-md-3:nth-child(2) .cool-event-card.active,
.cool-events-row > .col-md-3:nth-child(2) .cool-event-card:hover,
.cool-events-row > .col-md-3:nth-child(2) .cool-event-card:focus-within {
  transform: perspective(600px) rotateY(8deg) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
}
.cool-events-row > .col-md-3:nth-child(3) .cool-event-card.active,
.cool-events-row > .col-md-3:nth-child(3) .cool-event-card:hover,
.cool-events-row > .col-md-3:nth-child(3) .cool-event-card:focus-within,
.cool-events-row > .col-md-3:nth-child(4) .cool-event-card.active,
.cool-events-row > .col-md-3:nth-child(4) .cool-event-card:hover,
.cool-events-row > .col-md-3:nth-child(4) .cool-event-card:focus-within {
  transform: perspective(600px) rotateY(-8deg) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
}
/* For 3 cards per row (responsive), center card tilts less */
.cool-events-row > .col-md-3:nth-child(2):nth-last-child(2) .cool-event-card.active,
.cool-events-row > .col-md-3:nth-child(2):nth-last-child(2) .cool-event-card:hover,
.cool-events-row > .col-md-3:nth-child(2):nth-last-child(2) .cool-event-card:focus-within {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
}
/* Remove default tilt for all cards, only apply via nth-child above */
.cool-event-card.active,
.cool-event-card:hover,
.cool-event-card:focus-within {
  /* No default transform here */
}
/* Supported Events Canvas BG */
#events-bg-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  /* fallback gradient for no JS */
  background: radial-gradient(ellipse at 60% 40%, #1a1a40 0%, #232357 60%, #0d0d1a 100%);
  opacity: 1;
  transition: opacity 0.5s;
}
/* Rainbow tracking canvas background for the whole page */
#rainbow-bg-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  background: radial-gradient(ellipse at 60% 40%, #1a1a40 0%, #232357 60%, #0d0d1a 100%);
  opacity: 1;
  transition: opacity 0.5s;
}
body {
  position: relative;
  /* Remove background from #events, let canvas show through */
  background: none !important;
}
#events {
  position: relative;
  overflow: visible;
  background: none !important;
}
.cool-events-row {
  position: relative;
  z-index: 1;
}
/* Ensure all content is above the canvas */
body > *:not(#rainbow-bg-canvas) {
  position: relative;
  z-index: 1;
}
/* Remove z-index from .container in events section if present */
#events .container {
  position: relative;
  z-index: 1;
  background: none !important;
}
/* Cool border between header and features */
.cool-header-divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 64px;
  z-index: 2;
  pointer-events: none;
  background: none;
  /* fallback for no SVG */
  /* background: linear-gradient(90deg, #00ffe7 0%, #ff00cc 100%); */
}
.cool-header-divider::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  pointer-events: none;
  /* fallback for no SVG */
}
.cool-header-divider {
  /* SVG wave with animated gradient border */
  background: none;
}
.cool-header-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Benefits Section Styles */
#benefits::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, #00ffe7 0%, #232357 60%, #ff00cc 100%);
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}
/* Glassmorphism card style */
.benefit-card, .benefit-event-card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10), 0 1.5px 8px rgba(0,255,231,0.08);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(0,255,231,0.10);
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  position: relative;
  z-index: 1;
}
.benefit-card:hover, .benefit-event-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 48px rgba(0,0,0,0.16), 0 2px 12px #00ffe7a0;
}
.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 0.7rem;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  display: inline-block;
}
.benefit-event-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  display: inline-block;
}
.benefit-divider {
  border: none;
  border-top: 2px dashed #00ffe7;
  margin: 2.5rem 0 2.5rem 0;
  opacity: 0.5;
}
.benefit-section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #00ffe7, #ff00cc, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.benefit-event-title {
  font-weight: 600;
  color: #232357;
  margin-bottom: 0.5rem;
}
.benefit-event-row {
  margin-bottom: 2rem;
}
@media (max-width: 991px) {
  .benefit-event-row .col-md-6 {
    margin-bottom: 1.5rem;
  }
}
 /* Cool gradient background for benefits */
      #benefits::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(120deg, #00ffe7 0%, #232357 60%, #ff00cc 100%);
        opacity: 0.13;
        z-index: 0;
        pointer-events: none;
      }
      /* Glassmorphism card style */
      .benefit-card, .benefit-event-card {
        background: rgba(255,255,255,0.85);
        border-radius: 1.5rem;
        box-shadow: 0 6px 32px rgba(0,0,0,0.10), 0 1.5px 8px rgba(0,255,231,0.08);
        backdrop-filter: blur(6px);
        border: 1.5px solid rgba(0,255,231,0.10);
        transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
        position: relative;
        z-index: 1;
      }
      .benefit-card:hover, .benefit-event-card:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 12px 48px rgba(0,0,0,0.16), 0 2px 12px #00ffe7a0;
      }
      .benefit-icon {
        font-size: 2.5rem;
        margin-bottom: 0.7rem;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        display: inline-block;
      }
      .benefit-event-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        display: inline-block;
      }
      .benefit-divider {
        border: none;
        border-top: 2px dashed #00ffe7;
        margin: 2.5rem 0 2.5rem 0;
        opacity: 0.5;
      }
      .benefit-section-title {
        font-weight: 700;
        letter-spacing: 0.02em;
        background: linear-gradient(90deg, #00ffe7, #ff00cc, #ffd700);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
      }
      .benefit-event-title {
        font-weight: 600;
        color: #232357;
        margin-bottom: 0.5rem;
      }
      .benefit-event-row {
        margin-bottom: 2rem;
      }
      @media (max-width: 991px) {
        .benefit-event-row .col-md-6 {
          margin-bottom: 1.5rem;
        }
      }