:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --fg: #f0f0f5;
  --muted: #6b6b80;
  --accent: #00e5c7;
  --accent-alt: #ff3366;
  --card: rgba(20, 20, 30, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(0, 229, 199, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
}
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* Background Scene */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #00e5c7 0%, #0066ff 100%);
  top: -200px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #ff3366 0%, #ff6b00 100%);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.02); }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

nav.scrolled { padding: 0.75rem 2rem; }

.nav-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ================================================== */
/* HERO SECTION: Removed min-height to kill empty space */
/* ================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem; /* Top padding for navbar, reduced bottom */
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 50%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 30px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--glow); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card); border-color: var(--accent); }

.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ================================================== */
/* GLOBAL SECTIONS: Reduced vertical padding */
/* ================================================== */
section { 
  padding: 2rem 1.5rem; /* Significantly reduced from 3rem/6rem */
  position: relative; 
}

.section-header { text-align: center; margin-bottom: 2rem; } /* Reduced from 3rem */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; }
.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

/* Events */
.events-container { max-width: 1200px; margin: 0 auto; }
.events-tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover { color: var(--fg); border-color: var(--accent); }
.tab-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.event-card:hover { transform: translateY(-3px); }
.event-card:hover::before { transform: scaleX(1); }

.event-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.event-icon svg { width: 20px; height: 20px; color: var(--bg); }
.event-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.event-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.event-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.event-meta-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--muted);
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}
.event-meta-item svg { width: 12px; height: 12px; }

/* About */
.about-content { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .about-content { grid-template-columns: 1fr; gap: 1.5rem; } }
.about-text h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 0.75rem; line-height: 1.7; font-size: 0.95rem; }

.about-visual { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; max-width: 300px; margin: 0 auto; }
.rotating-text { position: absolute; width: 100%; height: 100%; animation: rotate 30s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.center-logo {
  width: 150px; height: 150px;
  border-radius: 20px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(0, 229, 199, 0.3));
}

/* Registration */
.registration-box {
  max-width: 600px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  text-align: center;
}
.price-tag { display: inline-flex; align-items: baseline; gap: 0.25rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-alt)); border-radius: 100px; margin-bottom: 1rem; }
.price-currency { font-size: 1.25rem; font-weight: 700; color: var(--bg); }
.price-amount { font-size: 2.5rem; font-weight: 900; color: var(--bg); line-height: 1; }
.price-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.features-list { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 1.5rem; text-align: left; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.feature-check { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-check svg { width: 12px; height: 12px; color: var(--bg); }

/* Footer */
footer { padding: 3rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.footer-content { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; text-align: center; } }
.footer-brand h4 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }
.footer-links h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; color: var(--accent); }
.footer-links a { display: block; color: var(--muted); text-decoration: none; font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { max-width: 1000px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 0.75rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ====================================================== */
/* MOBILE OPTIMIZATION */
/* ====================================================== */
@media (max-width: 768px) {
  /* Tighten hero on mobile */
  .hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }

  /* Tighten sections further on mobile */
  section { padding: 1.5rem 1rem; }
  
  .section-header { margin-bottom: 1.5rem; }
  .hero-badge { margin-bottom: 1rem; }
  .hero-subtitle { margin-bottom: 1.5rem; }
  .scroll-indicator { display: none; }

  /* Performance fixes */
  .backdrop-filter { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  nav { background: rgba(10, 10, 15, 0.95); }
  .hero-badge, .stat-card, .event-card, .registration-box { background: rgba(20, 20, 30, 0.95); }
  .gradient-orb { display: none; }
  .rotating-text { animation: none; }
  .event-card:hover { transform: none; }
}
