:root {
  --bg-deep: #020205;
  --bg-darker: #050508;
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --secondary: #7000ff;
  --secondary-rgb: 112, 0, 255;
  --accent: #ff00c8;
  --text-main: #ffffff;
  --text-muted: #888899;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-primary: 0 0 30px rgba(var(--primary-rgb), 0.2);
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

p, h1, h2, h3, h4, h5, h6, span, li, input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
}

input, textarea {
  cursor: text;
  caret-color: auto;
}

a, button, .btn, label, select, .cursor-pointer {
  cursor: pointer;
}

/* Moving Noise Mesh Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%);
  filter: contrast(120%) brightness(120%);
}

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

/* Modern Card Tokens */
.card-v3 {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 2.5rem;
  transition: var(--transition);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.card-v3:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Bento Grid Enhanced */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

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

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
}

/* Typography V3 */
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar Premium V3 */
/* Navbar Ultra-Premium Full-Width to Pill V5 */
nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 2.5rem;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav.scrolled {
  top: 1rem;
  width: calc(100% - 2rem);
  max-width: 1200px;
  padding: 0.85rem 2.5rem;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 99px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.nav-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important; /* Override container padding */
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
  pointer-events: none;
}

nav:hover::before {
  left: 150%;
  transition: 1.5s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) skewY(2deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) skewY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.event-card-v2 {
  position: relative;
}

/* --- PREMIUM EVENT PAGE OVERRIDES --- */
.event-hero {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 65vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  z-index: 0 !important;
}

.event-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,2,5,0.2) 0%, rgba(2,2,5,0.8) 60%, var(--bg-deep) 100%) !important;
  z-index: 1;
}

.event-hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: brightness(0.9) contrast(1.1) saturate(1.2);
}

main:has(.event-hero) {
  padding-top: 45vh !important;
  position: relative;
  z-index: 10;
}

.v2-content-card {
  background: rgba(10, 10, 15, 0.5) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), inset 0 2px 20px rgba(255, 255, 255, 0.05) !important;
  border-radius: 40px !important;
  position: relative;
  overflow: hidden;
}

.v2-content-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.v2-content-card .bg-white\/5 {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.1) 100%) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2) !important;
  position: relative;
  overflow: hidden;
}

.v2-content-card .bg-white\/5::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* --- PREMIUM KEY TAKEAWAYS & BUTTONS --- */
.v2-content-card .space-y-6 > .glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.4) 100%) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
  border-top: 1px solid rgba(var(--primary-rgb), 0.5) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 10px 20px rgba(255,255,255,0.02) !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
}

.v2-content-card .space-y-6 > .glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.v2-content-card .space-y-6 > .glass h4 {
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
  margin-bottom: 1.5rem !important;
  display: inline-block;
  border-bottom: 2px dashed rgba(var(--primary-rgb), 0.3);
  padding-bottom: 0.5rem;
}

.v2-content-card .space-y-6 > .glass li {
  background: rgba(255,255,255,0.02);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  align-items: center;
}

.v2-content-card .space-y-6 > .glass li:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: #fff;
}

/* Premium Sidebar Buttons */
.v2-content-card .space-y-6 .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2rem !important;
  border-radius: 99px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none;
}

.v2-content-card .space-y-6 .btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4) !important;
}

.v2-content-card .space-y-6 .btn-primary:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(var(--secondary-rgb), 0.6) !important;
}

.v2-content-card .space-y-6 .btn.glass {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.v2-content-card .space-y-6 .btn.glass:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: var(--primary) !important;
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.3) !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
