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

:root {
  --bg-darker: #02040a;
  --bg-dark: #050814;
  --bg-card: rgba(10, 16, 32, 0.55);
  
  --accent-cyan: #00f0ff;
  --accent-purple: #bd00ff;
  --accent-magenta: #ff007a;
  --text-primary: #f0f3f8;
  --text-secondary: #8f9cae;
  
  --font-tech: 'Orbitron', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  --glass-bg: rgba(10, 16, 32, 0.45);
  --glass-border: rgba(0, 240, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
  
  --neon-glow-cyan: 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
  --neon-glow-purple: 0 0 10px rgba(189, 0, 255, 0.3), 0 0 20px rgba(189, 0, 255, 0.1);
}

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
}

img, svg {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .hero-title, .logo, .section-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Background layers */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: all;
}

.circuit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(189, 0, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.04) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Tech Grid Background */
.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Typography & Layout Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-title {
  font-family: var(--font-tech);
  font-size: clamp(1.5rem, 5.5vmin, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto 3rem auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

/* Glassmorphism card */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.glass-panel:hover::before {
  left: 125%;
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
  transform: translateY(-5px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 4, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  gap: 0.5rem;
}

.logo {
  font-family: var(--font-tech);
  font-size: clamp(1.05rem, 4vmin, 1.6rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo span {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile nav open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(2, 4, 10, 0.97);
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  gap: 1.5rem;
  z-index: 99;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #02040a;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan);
  box-shadow: inset 0 0 5px rgba(0, 240, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

/* Floating Planets, Satellites & Space Visuals */
.space-element {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
  animation: float-around 20s infinite ease-in-out alternate;
}

.planet-cyan {
  top: 15%;
  right: 8%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #00ffff, #005f73, #001219);
  border-radius: 50%;
  box-shadow: inset -10px -10px 30px rgba(0,0,0,0.8), 0 0 30px rgba(0, 240, 255, 0.3);
  animation-duration: 25s;
}

.planet-purple {
  bottom: 15%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, #ee9b00, #9b2226, #37000a);
  border-radius: 50%;
  box-shadow: inset -10px -10px 25px rgba(0,0,0,0.8), 0 0 25px rgba(238, 155, 0, 0.25);
  animation-duration: 30s;
}

.satellite {
  top: 45%;
  right: 15%;
  width: 50px;
  height: auto;
  opacity: 0.6;
  animation: orbit 45s infinite linear;
}

@keyframes float-around {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser address bar so height is consistent across devices */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 2rem;
  overflow: visible;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-tech);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: var(--neon-glow-cyan);
}

.hero-title {
  font-family: var(--font-tech);
  /* Sized against the smaller of width/height so rotating a device to
     landscape (wide but short) no longer inflates the text past what
     fits on screen. */
  font-size: clamp(2.1rem, 8vmin, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: clamp(0.5px, 0.3vmin, 4px);
  background: linear-gradient(to right, #ffffff, #8be6ff, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.15));
  /* Wrap as a safety net instead of forcing one line — nowrap is what
     was pushing the title past the edge of the screen on some devices. */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  display: block;
  max-width: 100%;
}

.hero-tagline {
  font-family: var(--font-tech);
  font-size: clamp(1rem, 3.6vmin, 1.6rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: clamp(0.95rem, 2.6vmin, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 0 0.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.meta-icon {
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.meta-label {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.meta-val {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Countdown */
.countdown-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  max-width: 600px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(10, 16, 32, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  padding: clamp(0.7rem, 2vw, 1rem) clamp(0.9rem, 3vw, 1.5rem);
  min-width: 72px;
  flex: 1 1 72px;
  max-width: 110px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.countdown-num {
  font-family: var(--font-tech);
  font-size: clamp(1.4rem, 5vmin, 2.2rem);
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: var(--neon-glow-cyan);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* Registration Page Hero */
.reg-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 0 4rem;
  overflow: hidden;
}

/* Main Sections */
section {
  padding: 8rem 0;
  position: relative;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feat-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: all 0.3s;
}

.about-feat-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.03);
}

.about-feat-card i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.about-feat-card h4 {
  font-family: var(--font-tech);
  margin-bottom: 0.5rem;
}

.about-feat-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Highlights Section */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-card {
  text-align: center;
}

.highlight-icon {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin: 0 auto 1.5rem;
  text-shadow: var(--neon-glow-cyan);
  box-shadow: var(--neon-glow-cyan);
}

.highlight-title {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Tracks Section */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.track-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.track-title {
  font-family: var(--font-tech);
  font-size: clamp(1.25rem, 1.05rem + 0.5vmin, 1.8rem);
  color: var(--accent-cyan);
  text-shadow: var(--neon-glow-cyan);
}

.track-icon {
  font-size: clamp(1.6rem, 1.4rem + 0.4vmin, 2.2rem);
  color: var(--accent-cyan);
}

.track-desc {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.track-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.track-detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.track-detail-item span:first-child {
  color: var(--text-secondary);
}

.track-detail-item span:last-child {
  font-family: var(--font-tech);
  font-weight: 700;
}

/* Prize Pool Section */
.prize-section {
  text-align: center;
}

.prize-box {
  max-width: 700px;
  margin: 0 auto;
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(189, 0, 255, 0.15);
}

.prize-title {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prize-amount {
  font-family: var(--font-tech);
  font-size: clamp(2.2rem, 10vmin, 4rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Timeline */
.timeline-centered {
  max-width: 600px;
  margin: 0 auto;
}

.timeline-centered .timeline {
  display: inline-block;
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-date {
  font-family: var(--font-tech);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Venue Section */
.venue-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.venue-info h3 {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.venue-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hud-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hud-panel {
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.02);
  padding: 1.2rem;
  border-radius: 8px;
  position: relative;
}

.hud-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

.hud-title {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hud-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.venue-map-btn {
  display: inline-flex;
  margin-top: 2rem;
}

.radar-container {
  display: flex;
  justify-content: center;
  position: relative;
  height: 300px;
  align-items: center;
}

.radar-scan {
  width: 250px;
  height: 250px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  position: relative;
  animation: pulse-radar 4s infinite linear;
}

.radar-scan::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.15) 0deg, transparent 90deg);
  border-radius: 50%;
  animation: rotate-radar 6s infinite linear;
  transform-origin: center;
}

.radar-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  top: 40%;
  left: 55%;
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: ping-effect 2s infinite ease-out;
}

@keyframes rotate-radar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-radar {
  0%, 100% { border-color: rgba(0, 240, 255, 0.15); }
  50% { border-color: rgba(0, 240, 255, 0.35); }
}

@keyframes ping-effect {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Sponsors */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.sponsor-card {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  transition: all 0.3s;
}

.sponsor-card:hover {
  background: rgba(0, 240, 255, 0.02);
  border-color: rgba(0, 240, 255, 0.2);
}

.sponsor-logo {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: all 0.3s;
}

.sponsor-card:hover .sponsor-logo {
  color: #fff;
  opacity: 1;
  text-shadow: var(--neon-glow-cyan);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 16, 32, 0.3);
}

.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-header:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -2px;
}

.faq-question {
  font-weight: 600;
  font-size: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(2, 4, 10, 0.2);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.faq-card.active .faq-icon {
  transform: rotate(180deg);
}

/* Registration Form */
.registration-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

.form-control {
  width: 100%;
  background: rgba(2, 4, 10, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

input[type="file"].form-control {
  padding: 0.7rem 1rem;
  cursor: pointer;
}

input[type="file"].form-control::-webkit-file-upload-button {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #02040a;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 1rem;
}

/* Form error message */
.form-error {
  background: rgba(255, 0, 100, 0.1);
  border: 1px solid rgba(255, 0, 100, 0.3);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: #ff4d8d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Form success / info message */
.form-success {
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Payment Page */
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.pay-section-heading {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  text-shadow: var(--neon-glow-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fee-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.fee-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  align-items: center;
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-header {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.fee-amount {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: var(--neon-glow-cyan);
}

.pay-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pay-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pay-step strong {
  color: var(--text-primary);
}

.pay-step-num {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pay-note {
  background: rgba(255, 160, 0, 0.07);
  border: 1px solid rgba(255, 160, 0, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: #ffb347;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pay-cta {
  width: 100%;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  padding: 1rem 2rem;
}

.pay-cta-secondary {
  width: 100%;
  justify-content: center;
}

/* Footer */
footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Animations on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

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

/* Rules Pages */
.rules-layout {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.rules-back-btn {
  align-self: flex-start;
}

.rules-panel {
  width: 100%;
}

.rules-list {
  list-style: none;
  counter-reset: rules-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.rules-list li {
  counter-increment: rules-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rules-list li strong, .rules-list li b {
  font-weight: 400;
  color: inherit;
}

.rules-list li::before {
  content: counter(rules-counter, decimal-leading-zero);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rules-list li strong {
  color: var(--text-primary);
}

.rules-pay-btn {
  width: 100%;
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

@media (max-width: 768px) {
  .rules-layout {
    gap: 1.5rem;
  }
  .rules-panel {
    padding: 1.5rem 1rem;
  }
  .rules-list li {
    font-size: 0.88rem;
    gap: 0.75rem;
  }
  .rules-pay-btn,
  .rules-back-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* ============================================================
   Responsive Design
   Ordered from largest breakpoint to smallest. Each block only
   contains rules unique to that range — duplicates that used to
   exist across separate blocks have been merged here.
   ============================================================ */

/* Tablets and below (~1024px): nav doesn't fit in one row, so use
   the same hamburger menu phones use. Width-based, applies in both
   portrait and landscape on tablets. */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .navbar .btn-secondary {
    display: none;
  }
}

@media (max-width: 992px) {
  .about-grid, .venue-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .radar-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-meta,
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .about-grid,
  .tracks-grid,
  .timeline-schedule-grid,
  .venue-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .countdown-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    letter-spacing: 0.5px;
  }
}

/* Registration section mobile */
@media (max-width: 600px) {
  .registration-container .glass-panel {
    padding: 1.8rem 1.2rem;
  }
  /* Prevent iOS zoom on inputs */
  .registration-container .form-control {
    font-size: 16px;
  }
  /* Phone prefix row */
  .registration-container .form-group > div[style*="display:flex"] {
    gap: 0.4rem;
  }
}

/* Extra-small phones (≤480px) */
@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .countdown-box {
    min-width: 64px;
    max-width: 90px;
  }

  .track-card {
    min-height: auto;
  }

  .pay-cta,
  .pay-cta-secondary {
    font-size: 0.85rem;
  }
}

/* Very narrow phones (≤360px) */
@media (max-width: 360px) {
  .logo {
    letter-spacing: 0.5px;
  }

  .hero-title {
    letter-spacing: 0.5px;
  }

  .countdown-container {
    gap: 0.5rem;
  }

  .countdown-box {
    min-width: 58px;
    padding: 0.6rem;
  }
}

/* Short screens in landscape (phones rotated sideways). Height-based
   rather than width-based, since the problem here is limited vertical
   space, not narrow width — this is what keeps the hero section from
   feeling oversized or cut off when a phone is rotated. 100vh/dvh is
   often taller than the actual usable space here, so switch to a
   comfortable min-height instead of forcing full-screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 90px;
  }
  .hero-actions,
  .hero-meta {
    flex-direction: row;
  }
  .countdown-container {
    margin-bottom: 1rem;
  }
}

/* Problem Statements Dropdown */
.ps-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.ps-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(2, 4, 10, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.12);
}

.ps-dropdown.open {
  display: block;
}

.ps-dropdown a {
  display: block;
  padding: 0.75rem 1.2rem;
  color: var(--accent-cyan);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}

.ps-dropdown a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.ps-dropdown a:hover {
  background: rgba(0, 240, 255, 0.1);
}

@media (max-width: 480px) {
  .ps-dropdown-wrap {
    width: 100%;
  }
  .ps-dropdown-wrap .btn {
    width: 100%;
  }
  .ps-dropdown {
    left: 0;
    right: 0;
    transform: none;
    min-width: 0;
  }
}

/* RIT Transport Button */
.venue-transport {
  margin-top: 1rem;
}

.btn-transport {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-cyan);
  background: transparent;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 240, 255, 0.08);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.btn-transport:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: scale(1.04);
}

.venue-transport-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Venue info badges (food, etc.) */
.venue-info-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: fit-content;
}

/* Disabled item in Problem Statements dropdown */
.ps-dropdown-disabled {
  display: block;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: rgba(143, 156, 174, 0.5);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  cursor: default;
  line-height: 1.5;
}

/* AI rules page — info notice */
.rules-info-notice {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3-card highlights grid — centered single row on desktop */
.highlights-grid-3 {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.highlights-grid-3 .highlight-card {
  flex: 1 1 260px;
  max-width: 340px;
}

@media (max-width: 768px) {
  .highlights-grid-3 .highlight-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Dropdown group label */
.ps-group-label {
  padding: 0.45rem 1.2rem 0.3rem;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.ps-group-label--border {
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  margin-top: 0.25rem;
  padding-top: 0.6rem;
}

/* Sub-items inside grouped dropdown */
.ps-sub-item {
  display: block;
  padding: 0.6rem 1.2rem 0.6rem 1.8rem;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

a.ps-sub-item:hover {
  background: rgba(0, 240, 255, 0.1);
}

/* Open Innovation tooltip item */
.ps-oi-item {
  color: var(--text-secondary);
  position: relative;
  user-select: none;
}

.ps-oi-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.ps-oi-icon {
  font-size: 0.75em;
  margin-left: 0.3em;
  opacity: 0.6;
}

.ps-oi-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  background: rgba(2, 4, 10, 0.97);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: normal;
  width: 200px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.ps-oi-item:hover::after,
.ps-oi-item:focus::after {
  opacity: 1;
}

/* On small screens, show tooltip below instead of to the right */
@media (max-width: 600px) {
  .ps-oi-item::after {
    left: 0;
    top: 100%;
    transform: none;
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
  }
}

/* ── Scroll-fix overrides ─────────────────────────────────────
   These rules override earlier declarations that caused the page
   to lose scroll when the Problem Statements dropdown was open.
   • .hero overflow changed to visible so the absolutely-positioned
     dropdown is not clipped by the hero section.
   • .ps-dropdown gets overflow-y:auto + max-height so it can scroll
     internally without ever locking the page scroll.
   • z-index raised to 9999 so it always renders on top.
   No JS changes are needed — the existing close-on-outside-click
   script never touches document.body.style.overflow.
   ─────────────────────────────────────────────────────────── */
.hero {
  overflow: visible;
}

.ps-dropdown {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 80vh;
  z-index: 9999;
}

@media (max-width: 480px) {
  .ps-dropdown {
    /* On mobile the dropdown is full-width and anchored below the
       button — keep it within the viewport */
    max-height: 60vh;
  }
}

/* Closed registration button styles */
.btn-closed-primary {
  cursor: not-allowed !important;
  opacity: 0.82 !important;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.15) !important;
  transform: none !important;
}
.btn-closed-primary:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.15) !important;
}

.btn-closed-secondary {
  cursor: not-allowed !important;
  opacity: 0.75 !important;
  transform: none !important;
}
.btn-closed-secondary:hover {
  transform: none !important;
  background: transparent !important;
}

.btn-closed-payment {
  cursor: not-allowed !important;
  opacity: 0.82 !important;
}

.deadline-notice {
  font-weight: bold;
  text-align: center;
  color: #ff4d4d;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.4), 0 0 20px rgba(255, 77, 77, 0.2);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  display: block;
}


