/* ============================================================
   MACHSPEED MADNESS 2026 — Global Styles
   Theme: Titanium Grey + Electric Purple + Dark Black
   Primary: #1E293B | Accent: #A855F7 | BG: #020617 | Text: #E2E8F0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── New Color Scheme ── */
  --black:      #020617;       /* Secondary / Deep BG */
  --dark:       #050d1a;       /* Slightly lighter BG */
  --dark2:      #0f172a;       /* Card backgrounds */
  --dark3:      #1e293b;       /* Primary / Surface */
  --dark4:      #273549;       /* Hover surfaces */

  --purple:     #a855f7;       /* Accent – Electric Purple */
  --purple-dark:#7c3aed;       /* Darker purple */
  --purple-light:#c084fc;      /* Lighter purple */
  --purple-xlight:#e9d5ff;     /* Very light purple */

  --neon-glow:  0 0 10px #a855f7, 0 0 22px #a855f7, 0 0 44px #a855f7;
  --neon-soft:  0 0 10px rgba(168,85,247,0.55);
  --neon-border: rgba(168,85,247,0.35);

  --white:      #e2e8f0;       /* Text */
  --white-pure: #ffffff;
  --gray:       #64748b;       /* Muted text */
  --gray-light: #94a3b8;       /* Secondary text */
  --border:     rgba(168,85,247,0.12);
  --border-light: rgba(168,85,247,0.25);

  /* Legacy aliases (keep consistent) */
  --red:        var(--purple);
  --red-dark:   var(--purple-dark);
  --red-light:  var(--purple-light);
  --neon:       var(--purple);
  --track-color: rgba(168,85,247,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* hide default cursor everywhere on desktop */
a, button, [role="button"], input, select, textarea, label { cursor: none; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* hidden in favour of custom cursor */
}

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
  box-shadow: 0 0 10px var(--purple), 0 0 20px var(--purple);
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s, border-color 0.2s;
  opacity: 0.6;
  will-change: left, top;
}
/* Grow ring when hovering clickable elements */
.cursor.cursor--hover  { transform: translate(-50%,-50%) scale(0.5); opacity: 0.8; }
.cursor-ring.cursor--hover { width: 56px; height: 56px; opacity: 0.35; border-color: var(--purple-light); }
/* Shrink on click */
.cursor.cursor--click  { transform: translate(-50%,-50%) scale(1.8); }
.cursor-ring.cursor--click { width: 24px; height: 24px; opacity: 0.9; }
/* Hide on mobile (touch) */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, [role="button"] { cursor: pointer; }
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
}
.section-title span { color: var(--purple); }

.section-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--purple-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.title-line {
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  margin: 12px 0 32px 0;
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--purple-dark));
  border-radius: 3px;
}

/* ── INSTITUTIONAL STRIP ───────────────────────────────── */
#inst-strip {
  background: linear-gradient(90deg, #050d1a, #0f172a, #050d1a);
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.3s;
}
#inst-strip .inst-logo {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
  
  transition: opacity 0.2s;
  flex-shrink: 0;
}
#inst-strip .inst-logo:hover { opacity: 0.75; }
#inst-strip .inst-logo .inst-icon { font-size: 1rem; line-height: 1; }
#inst-strip .inst-logo .inst-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  text-transform: uppercase;
  white-space: nowrap;
}
#inst-strip .divider {
  width: 1px; height: 18px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 999;
  background: rgba(2,6,23,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  transition: all 0.3s;
}
#navbar.scrolled {
  top: 0;
  box-shadow: 0 4px 32px rgba(168,85,247,0.1);
}

#navbar .nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
#navbar .nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--neon-soft);
  flex-shrink: 0;
}
#navbar .nav-logo .logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
#navbar .nav-logo .logo-text span { color: var(--purple); }

#navbar .nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
#navbar .nav-links a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}
#navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 10px; right: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0);
  transition: transform 0.25s;
}
#navbar .nav-links a:hover { color: var(--white-pure); }
#navbar .nav-links a:hover::after { transform: scaleX(1); }
#navbar .nav-links a.active { color: var(--white-pure); }
#navbar .nav-links a.active::after { transform: scaleX(1); }

#navbar .nav-register {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark)) !important;
  color: var(--white-pure) !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  box-shadow: var(--neon-soft) !important;
  transition: all 0.2s !important;
}
#navbar .nav-register:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple)) !important;
  box-shadow: var(--neon-glow) !important;
  transform: translateY(-1px);
}
#navbar .nav-register::after { display: none !important; }

/* Hamburger — hidden on desktop */
#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  border: none;
  background: none;
}
#nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
/* Animated X when open */
#nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE BREAKPOINTS ─────────────────────────────── */

/* Large desktop: full nav */
@media (min-width: 1100px) {
  #inst-strip { gap: 28px; }
  #navbar { padding: 0 40px; }
  #navbar .nav-links a { font-size: 0.62rem; padding: 8px 12px; }
  #navbar .nav-logo .logo-text { font-size: 0.82rem; }
}

/* Tablet / small laptop: compact nav, still visible */
@media (max-width: 1099px) and (min-width: 768px) {
  #navbar .nav-links a { font-size: 0.54rem; padding: 6px 7px; letter-spacing: 0.07em; }
  #navbar .nav-register { padding: 7px 12px !important; font-size: 0.54rem !important; }
  #navbar .nav-logo .logo-text { font-size: 0.66rem; }
  #inst-strip .inst-logo .inst-name { font-size: 0.55rem; }
}

/* Mobile: hamburger menu */
@media (max-width: 767px) {
  /* Strip: show only icons on very small screens */
  #inst-strip { gap: 12px; padding: 0 12px; height: 36px; }
  #inst-strip .inst-logo .inst-name { display: none; }
  #inst-strip .inst-logo .inst-icon { font-size: 1.1rem; }
  #inst-strip .divider { height: 14px; }

  /* Navbar */
  #navbar { top: 36px; height: 56px; padding: 0 16px; }
  #navbar.scrolled { top: 0; }
  #navbar .nav-logo .logo-text { font-size: 0.68rem; }
  #navbar .nav-logo .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; }

  /* Show hamburger */
  #nav-hamburger { display: flex; }

  /* Slide-down mobile menu */
  #navbar .nav-links {
    position: fixed;
    top: 92px; left: 0; right: 0;
    background: rgba(2,6,23,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 0 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-110%) scaleY(0.95);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
    pointer-events: none;
    z-index: 998;
  }
  #navbar .nav-links.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: all;
  }
  #navbar .nav-links li { width: 100%; }
  #navbar .nav-links a {
    display: block;
    padding: 13px 28px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(168,85,247,0.06);
  }
  #navbar .nav-links a::after { display: none; }
  #navbar .nav-links .nav-register {
    margin: 12px 28px 0 !important;
    display: block !important;
    text-align: center !important;
    border-bottom: none !important;
    padding: 10px 20px !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  #navbar .nav-logo .logo-text { font-size: 0.6rem; }
  #navbar .nav-logo gap { gap: 7px; }
}

/* ── PAGE WRAPPER — adjust for new strip+nav heights ─────── */
.page-wrap {
  padding-top: 100px;   /* 40px strip + 60px nav */
  min-height: 100vh;
  position: relative;
}
@media (max-width: 767px) {
  .page-wrap { padding-top: 92px; } /* 36px strip + 56px nav */
}

/* ── SCROLL PROGRESS — sits flush below navbar bottom edge ─── */
#scroll-progress {
  position: fixed;
  top: 100px; left: 0; right: 0; /* 40px strip + 60px nav = 100px */
  height: 3px;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple), var(--purple-light));
  z-index: 998; /* below navbar (999) */
  width: 0%;
  transition: width 0.12s linear;
  box-shadow: 0 0 8px rgba(168,85,247,0.7);
}
@media (max-width: 767px) {
  #scroll-progress { top: 92px; } /* 36px strip + 56px nav */
}

/* ── RC CAR TRACK ───────────────────────────────────────── */
#race-track-container {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}
.track-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.85) 40%, rgba(15,23,42,0.97) 100%);
  border-top: 2px solid rgba(168,85,247,0.3);
}
.track-line {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(168,85,247,0.25) 0px,
    rgba(168,85,247,0.25) 20px,
    transparent 20px,
    transparent 40px
  );
}
.track-edge {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  height: 1px;
  background: rgba(168,85,247,0.4);
}
#rc-car {
  position: absolute;
  bottom: 14px; left: 0;
  width: 64px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.85));
  will-change: transform;
}
#rc-car svg { width: 100%; height: 100%; }
.finish-flag {
  position: absolute;
  right: 16px; bottom: 14px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.5s;
}
.finish-flag.show { opacity: 1; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white-pure);
  box-shadow: var(--neon-soft);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: var(--neon-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  box-shadow: var(--neon-soft);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(168,85,247,0.08);
  color: var(--purple-light);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(168,85,247,0.16);
  box-shadow: var(--neon-soft);
  color: var(--white-pure);
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), transparent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.1);
}
.card:hover::before { transform: scaleX(1); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 112px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(168,85,247,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(168,85,247,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #020617 0%, #060c1f 50%, #020617 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
.hero-badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border-light);
  color: var(--purple-light);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%,100% { border-color: var(--border-light); box-shadow: none; }
  50% { border-color: var(--purple); box-shadow: 0 0 16px rgba(168,85,247,0.25); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-title .line1 { color: var(--white); display: block; }
.hero-title .line2 {
  color: var(--purple);
  display: block;
  /* Reduced glow intensity */
  text-shadow: 0 0 8px rgba(168,85,247,0.5), 0 0 18px rgba(168,85,247,0.3);
}
.hero-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 16px 0 12px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray-light);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  /* Ensure the text block itself is centred */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* ── COUNTDOWN ──────────────────────────────────────────── */
.countdown {
  display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.countdown-item {
  text-align: center;
  background: rgba(168,85,247,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 80px;
  position: relative;
}
.countdown-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.countdown-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
  text-shadow: var(--neon-soft);
}
.countdown-label {
  font-size: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 100px 0 80px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-header { margin-bottom: 60px; }

/* ── STATS ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 60px;
}
.stat-item {
  background: var(--dark2);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s;
}
.stat-item:hover { background: var(--dark3); }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
  text-shadow: var(--neon-soft);
}
.stat-label {
  font-size: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), rgba(168,85,247,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute;
  left: -42px; top: 6px;
  width: 16px; height: 16px;
  background: var(--dark);
  border: 2px solid var(--purple);
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
.timeline-item:hover .timeline-dot {
  background: var(--purple);
  box-shadow: var(--neon-soft);
}
.timeline-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.timeline-desc { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; }
.timeline-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.status-open   { background: rgba(0,200,80,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.status-upcoming { background: rgba(168,85,247,0.1); color: var(--purple-light); border: 1px solid var(--border-light); }
.status-tbd    { background: rgba(255,255,255,0.04); color: var(--gray); border: 1px solid var(--border); }

/* ── WINNERS PODIUM ─────────────────────────────────────── */
.podium-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
}
.podium-item { text-align: center; flex: 1; max-width: 280px; }
.podium-card {
  padding: 28px 20px;
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}
.podium-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.podium-1 .podium-card {
  background: linear-gradient(135deg, #1a1400, #2a2000);
  border: 1px solid rgba(255,215,0,0.3);
  min-height: 220px;
}
.podium-2 .podium-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(168,85,247,0.25);
  min-height: 180px;
}
.podium-3 .podium-card {
  background: linear-gradient(135deg, #120d09, #1a130e);
  border: 1px solid rgba(205,127,50,0.2);
  min-height: 160px;
}
.podium-medal  { font-size: 3rem; display: block; margin-bottom: 12px; }
.podium-place  { font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.podium-1 .podium-place { color: #ffd700; }
.podium-2 .podium-place { color: var(--purple-light); }
.podium-3 .podium-place { color: #cd7f32; }
.podium-team   { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.podium-college { font-size: 0.85rem; color: var(--gray-light); line-height: 1.4; }
.podium-base   { padding: 12px; font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 900; }
.podium-1 .podium-base { background: #ffd700; color: #111; }
.podium-2 .podium-base { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: #fff; }
.podium-3 .podium-base { background: #cd7f32; color: #111; }

/* ── GALLERY ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: 10px; overflow: hidden;
  position: relative; aspect-ratio: 16/10;
  background: var(--dark3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--gray);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.1em;
}
.gallery-placeholder .icon { font-size: 2rem; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(168,85,247,0.12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}

/* ── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--gray-light);
  text-transform: uppercase; margin-bottom: 8px;
}
.form-group label .req { color: var(--purple); }
.form-control {
  width: 100%;
  background: rgba(168,85,247,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}
.form-control::placeholder { color: rgba(148,163,184,0.35); }
.form-control:focus {
  border-color: var(--purple);
  background: rgba(168,85,247,0.08);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
.form-control.error { border-color: #f87171; }
.form-error { font-size: 0.8rem; color: #f87171; margin-top: 4px; }
/* Fix select dropdown option colors so they are not faded */
select.form-control { color: var(--white); appearance: auto; -webkit-appearance: auto; }
select.form-control option {
  background: #0f172a;
  color: #e2e8f0;
}
select.form-control option:disabled,
select.form-control option[value=""] {
  color: rgba(148,163,184,0.6);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.form-section {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
}
.form-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--purple);
  text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border-light);
}
.member-card {
  background: rgba(168,85,247,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px; margin-bottom: 16px;
  position: relative;
}
.member-card-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.member-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--purple);
  text-transform: uppercase;
}
.member-remove {
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--border-light);
  color: var(--purple-light);
  width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all 0.2s;
}
.member-remove:hover {
  background: rgba(168,85,247,0.2);
  box-shadow: var(--neon-soft);
}
.add-member-btn {
  width: 100%;
  background: rgba(168,85,247,0.05);
  border: 1px dashed var(--border-light);
  color: var(--purple);
  padding: 12px; border-radius: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-member-btn:hover {
  background: rgba(168,85,247,0.12);
  border-color: var(--purple);
  box-shadow: var(--neon-soft);
}
.add-member-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── ADMIN TABLE ─────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
  background: var(--dark3);
  padding: 12px 16px; text-align: left;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gray);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(168,85,247,0.06);
  color: var(--white);
}
.admin-table tr:hover td { background: rgba(168,85,247,0.04); }
.admin-table tr:last-child td { border-bottom: none; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.65rem; font-family: 'Orbitron', sans-serif;
  font-weight: 600; letter-spacing: 0.1em;
}
.badge-green { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.badge-red   { background: rgba(168,85,247,0.1); color: var(--purple-light); border: 1px solid var(--border-light); }

/* ── ALERT ──────────────────────────────────────────────── */
.alert {
  padding: 16px 20px; border-radius: 6px;
  font-family: 'Rajdhani', sans-serif; font-size: 1rem;
  margin-bottom: 20px; display: none;
}
.alert.show { display: block; }
.alert-success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.alert-error   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
  background: var(--dark2);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 80px;
  margin-top: 80px;
}
.footer-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo-item {
  display: flex; align-items: center; gap: 8px;
  opacity: 0.55; transition: opacity 0.2s; text-decoration: none;
}
.footer-logo-item:hover { opacity: 1; }
.footer-logo-item .icon {
  width: 32px; height: 32px;
  background: rgba(168,85,247,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-logo-item .name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--gray-light); text-transform: uppercase;
}
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--gray); }
.footer-bottom strong { color: var(--purple-light); }
.footer-links {
  display: flex; justify-content: center;
  gap: 24px; margin-top: 12px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.75rem; font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em; color: var(--gray);
  text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-light); }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(168,85,247,0.05), transparent);
}

/* ── RULEBOOK ────────────────────────────────────────────── */
.rulebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.rule-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; transition: all 0.3s;
}
.rule-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(168,85,247,0.08);
}
.rule-icon { font-size: 2rem; margin-bottom: 12px; }
.rule-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--white); margin-bottom: 12px;
}
.rule-list { list-style: none; }
.rule-list li {
  font-size: 0.9rem; color: var(--gray-light);
  padding: 5px 0 5px 16px;
  position: relative; line-height: 1.5;
}
.rule-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--purple); font-size: 0.7rem;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .podium-wrap { flex-direction: column; align-items: center; }
  .podium-item { max-width: 100%; width: 100%; }
  .podium-card { min-height: auto !important; }
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes glow-pulse {
  0%,100% { text-shadow: var(--neon-soft); }
  50%     { text-shadow: var(--neon-glow); }
}
.anim-fade-up   { animation: fadeInUp 0.7s ease forwards; }
.anim-slide-left{ animation: slideInLeft 0.7s ease forwards; }
/* Reduced-intensity glow pulse for line2 */
@keyframes glow-pulse-soft {
  0%,100% { text-shadow: 0 0 6px rgba(168,85,247,0.4), 0 0 14px rgba(168,85,247,0.2); }
  50%     { text-shadow: 0 0 10px rgba(168,85,247,0.6), 0 0 22px rgba(168,85,247,0.35); }
}
.glow-text      { animation: glow-pulse-soft 3s ease infinite; }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SPEED LINES ─────────────────────────────────────────── */
.speed-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.03; }
.speed-line {
  position: absolute; top: 50%; right: 0;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light));
  transform-origin: right center;
}

/* ── UPLOAD AREA ─────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px; padding: 24px;
  text-align: center; cursor: pointer;
  transition: all 0.2s;
  background: rgba(168,85,247,0.02);
}
.upload-area:hover {
  border-color: var(--purple);
  background: rgba(168,85,247,0.05);
}
.upload-area input[type="file"] { display: none; }
.upload-area .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-area .upload-text { font-size: 0.9rem; color: var(--gray-light); }
.upload-area .upload-hint { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }
.upload-area .file-name   { font-size: 0.85rem; color: var(--purple-light); margin-top: 8px; display: none; }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(168,85,247,0.25);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ABOUT GRID ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.highlight-box {
  background: rgba(168,85,247,0.06);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--purple);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p { font-size: 1rem; color: var(--gray-light); line-height: 1.7; }

/* ── SCORING TABLE ───────────────────────────────────────── */
.scoring-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.scoring-table th, .scoring-table td {
  padding: 12px 16px; border: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif; font-size: 0.95rem;
}
.scoring-table th {
  background: var(--dark3);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gray); text-transform: uppercase;
}
.scoring-table tr:hover td { background: rgba(168,85,247,0.04); }
.pts { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--purple); }

/* ── LAP PERCENTAGE BADGE ────────────────────────────────── */
#lap-badge {
  position: fixed;
  bottom: 72px;   /* above race-track-container (60px) + margin */
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dark2);
  border: 2px solid var(--purple);
  box-shadow: 0 0 14px rgba(168,85,247,0.45), inset 0 0 10px rgba(168,85,247,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  cursor: default;
  transition: box-shadow 0.3s;
  overflow: hidden;
}
#lap-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--purple) var(--lap-pct, 0%), transparent 0%);
  opacity: 0.22;
  transition: background 0.15s;
}
#lap-badge .lap-pct-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
  z-index: 1;
}
#lap-badge .lap-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.5rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
#lap-badge:hover {
  box-shadow: 0 0 24px rgba(168,85,247,0.7), inset 0 0 14px rgba(168,85,247,0.15);
}
@media (max-width: 767px) {
  #lap-badge { width: 48px; height: 48px; bottom: 72px; right: 12px; }
  #lap-badge .lap-pct-num { font-size: 0.6rem; }
}

/* ── GLOBAL EXHAUST PARTICLES ────────────────────────────── */
#exhaust-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
}
.g-exhaust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: gExhaustPuff 0.85s ease-out forwards;
  background: radial-gradient(circle, rgba(200,155,80,0.45) 0%, rgba(120,80,30,0.0) 100%);
}
@keyframes gExhaustPuff {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.65; }
  100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0; }
}
