@import url('https://fonts.googleapis.com/css2?family=Anton&family=Public+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Spline+Sans+Mono:wght@500;700&display=swap');

:root {
  /* Colors */
  --primary-blue: #2336C4;
  --deep-navy: #101B3E;
  --accent-green: #4E9E27;
  --bright-lime-green: #8FD44E;
  --amber: #B9750B;
  
  /* Light theme */
  --background: #F5F8F2;
  --surface: #FFFFFF;
  --ink: #131F3A;
  --ink-soft: #4B5670;
  --line: #DCE3D8;
  
  /* Layout */
  --max-width: 1100px;
  --section-pad-y: 100px;
  --section-pad-x: 24px;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(16, 27, 62, 0.08);
  
  /* Typography */
  --font-display: 'Anton', Arial Narrow, Impact, sans-serif;
  --font-body: 'Public Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0D1426;
    --surface: #151F38;
    --ink: #E8EDF9;
    --ink-soft: #A0ABC0;
    --line: #2A3655;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

section {
  padding: var(--section-pad-y) 0;
}

/* Typography Classes */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--primary-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 3rem;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--bright-lime-green);
  color: var(--deep-navy);
}

.btn-primary:hover {
  background-color: var(--accent-green);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--surface);
  border: 2px solid var(--surface);
}

.btn-secondary:hover {
  background-color: var(--surface);
  color: var(--deep-navy);
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-blue);
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--ink);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: var(--deep-navy);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 70px;
  border-bottom: 8px solid var(--bright-lime-green);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(35, 54, 196, 0.4) 0%, rgba(16, 27, 62, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--bright-lime-green);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-subheadline {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: #E8EDF9;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bright-lime-green);
  text-transform: uppercase;
}

.fact-value {
  font-weight: 700;
  font-size: 1.1rem;
}

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

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bright-lime-green);
}

.cd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #A0ABC0;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

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

.stat-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.stat-card h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-blue);
  line-height: 1;
}

/* Prizes */
/* Add Mesh Gradient Backgrounds so Glassmorphism is visible */
#prizes, #eligibility, #about {
  position: relative;
}
#prizes::before, #eligibility::before, #about::before {
  content: "";
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background: radial-gradient(circle at 10% 20%, rgba(143, 212, 78, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(35, 54, 196, 0.1) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.prizes-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Pro Max UI - Glassmorphism Cards */
.prize-card, .stat-card, .rule-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(35, 54, 196, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  .prize-card, .stat-card, .rule-card {
    background: rgba(21, 31, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

.prize-card:hover, .stat-card:hover, .rule-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(143, 212, 78, 0.15);
}

.prize-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prize-card.highlight {
  background: var(--deep-navy);
  color: #fff;
  border: none;
}

.prize-card.highlight .prize-amount {
  color: var(--bright-lime-green);
}

.prize-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.prize-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.prize-card.highlight .prize-title {
  color: #A0ABC0;
}

.prize-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--amber);
  line-height: 1;
}

/* Eligibility */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.rule-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
}

.rule-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.rule-card p {
  color: var(--ink-soft);
}

/* Squad */
.squad-bar {
  background: var(--deep-navy);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.squad-roster {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
}

.roster-item {
  text-align: center;
}

.roster-count {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--bright-lime-green);
  line-height: 1;
}

.roster-role {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.squad-note {
  font-style: italic;
  color: #A0ABC0;
}

/* Rules Tabs */
.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--line);
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-blue);
}

.tab-content {
  display: none;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.tab-content li {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.rules-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

/* Schedule */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 4px solid var(--surface);
  margin-bottom: 1rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}

.timeline-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Sponsors */
.sponsors-strip {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 3rem 0;
}

.sponsor-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-width: 200px;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Register Form */
.register-section {
  background: var(--deep-navy);
  color: #fff;
}

.register-section h2 {
  color: #fff;
}

.form-card {
  background: var(--surface);
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.step-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  color: var(--ink-soft);
}

.step-indicator.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: #fff;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-top: 5px;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-locations {
  color: var(--ink-soft);
}

/* Footer */
.main-footer {
  background: var(--deep-navy);
  color: #fff;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #A0ABC0;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--bright-lime-green);
}

.copyright {
  color: #A0ABC0;
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 60px;
  }
  
  .about-grid, .eligibility-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .prizes-grid, .prizes-sub-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .squad-roster {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
    padding-left: 2rem;
    gap: 2rem;
  }
  
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 11px;
    height: auto;
    width: 4px;
  }
  
  .timeline-item {
    flex-direction: row;
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }
  
  .timeline-dot {
    margin-right: 1.5rem;
    margin-bottom: 0;
    position: relative;
    left: -16px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-y: 48px;
  }
  
  .prizes-grid, .prizes-sub-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-facts {
    flex-direction: column;
    align-items: center;
  }
  
  .form-card {
    padding: 1.5rem;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
