* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #ff0080;
  --secondary-pink: #ff1493;
  --dark-bg: #0a0e27;
  --card-bg: rgba(20, 20, 50, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --accent-gold: #ffd700;
  --neon-purple: #b100ff;
  --neon-cyan: #00ffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a3e 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* ===== PARTICLE BACKGROUND ===== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, var(--primary-pink), transparent);
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 20px var(--primary-pink);
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(50px, -50px) scale(1.5);
    opacity: 0.3;
  }
}

/* ===== MAIN CONTENT ===== */
main {
  position: relative;
  z-index: 2;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/hero.png") center/cover;
  background-attachment: fixed;
  opacity: 0.8;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 0, 128, 0.1),
    transparent
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  animation: slideUp 1s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  animation: fadeIn 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary-pink) 50%,
    var(--secondary-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
  letter-spacing: -2px;
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.8s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-pink);
  text-shadow: 0 0 20px var(--primary-pink);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cta-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 1s both;
}

.btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--secondary-pink)
  );
  color: white;
  box-shadow:
    0 0 30px var(--primary-pink),
    0 0 60px rgba(255, 0, 128, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 40px var(--primary-pink),
    0 0 80px rgba(255, 0, 128, 0.6);
}

.btn-secondary {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: rgba(255, 0, 128, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 0, 128, 0.2);
  box-shadow: 0 0 20px var(--primary-pink);
  transform: translateY(-4px);
}

/* ===== EVENTS SECTION ===== */
.events {
  padding: 100px 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  animation: slideUp 1s ease-out;
}

.section-title h2 {
  font-size: clamp(36px, 6vw, 60px);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  background: var(--card-bg);
  border: 2px solid rgba(255, 0, 128, 0.3);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: slideUp 1s ease-out;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.event-card:hover {
  border-color: var(--primary-pink);
  box-shadow:
    0 0 40px var(--primary-pink),
    inset 0 0 40px rgba(255, 0, 128, 0.1);
  transform: translateY(-10px);
}

.event-card:hover::before {
  opacity: 1;
}

.event-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-pink), var(--neon-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--primary-pink);
}

.event-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.event-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.event-prize {
  background: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--secondary-pink)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 0, 128, 0.2);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SPONSOR SECTION ===== */
.sponsor {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sponsor-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 1s ease-out;
}

.sponsor-label {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.sponsor-name {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  color: var(--primary-pink);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  letter-spacing: -1px;
}

.sponsor-tagline {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.sponsor-btn {
  padding: 14px 35px;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sponsor-btn:hover {
  background: var(--accent-gold);
  color: var(--dark-bg);
  box-shadow: 0 0 30px var(--accent-gold);
  transform: translateY(-3px);
}

/* ===== CTA SECTION ===== */
.final-cta {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 0, 128, 0.1),
    transparent
  );
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, var(--primary-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-style: italic;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 0, 128, 0.2);
  padding: 80px 20px 40px; /* ⬅️ increased top padding */
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  overflow: hidden; /* ⬅️ important */
}

footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: url("../img/footer.png") no-repeat center bottom;
  background-size: cover; /* 🔥 key change */

  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0) 100%
  );

  z-index: 1;
}

/* Keep text above everything */
footer * {
  position: relative;
  z-index: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-value {
    font-size: 20px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .cta-container {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.glow-text {
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow:
      0 0 10px var(--primary-pink),
      0 0 20px var(--primary-pink);
  }

  50% {
    text-shadow:
      0 0 20px var(--primary-pink),
      0 0 40px var(--primary-pink);
  }
}
