:root {
  --accent: #03fe09;
  --accent-light: #03fe09;
  --bg: #0b0b0e;
  --bg-light: #1a1a1f;
  --text: #ffffff;
  --text-muted: #b8b8b8;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero Section */

.hero-img {
  width: 100vw;
  background-color: var(
    --bg
  );
  margin-top: 50px
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero {
  position: relative;
  height: 115vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
  background-image: url("/assets/img/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(224, 25, 25, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 51, 51, 0.1) 0%,
      transparent 50%
    );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.detail-item {
  text-align: center;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  text-align: center;
}

.btn-primary {
  background: rgba(2, 254, 10, 0.7);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 254, 10, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Content Sections */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.about-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.about-card h3 {
  color: var(--accent-light);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Race Format */
.race-format {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leg-card {
  background: rgba(2, 254, 10, 0.1);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(2, 254, 10, 0.3);
  text-align: center;
}

.leg-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.leg-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Schedule */
.schedule-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-time {
  font-weight: 700;
  color: var(--accent-light);
  min-width: 120px;
  font-size: 1.1rem;
}

.timeline-event {
  flex: 1;
  padding-left: 30px;
}

/* Registration Forms */
.registration {
  background: var(--bg-light);
}

.forms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.form-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-section h3 {
  color: var(--accent-light);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.iframe-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
}

.iframe-placeholder {
  color: var(--text-muted);
  text-align: center;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.safety-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.safety-item h4 {
  color: var(--accent-light);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Bento grid layout for desktop */
.safety-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
}

.safety-item:nth-child(2) {
  grid-column: span 1;
  grid-row: span 1;
}

.safety-item:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}

.safety-item:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
}

.safety-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Tablet layout */
@media (max-width: 1024px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .safety-item:nth-child(1),
  .safety-item:nth-child(2),
  .safety-item:nth-child(3),
  .safety-item:nth-child(4),
  .safety-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .safety-item {
    padding: 20px;
  }
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.contact-card h4 {
  color: var(--accent-light);
  margin-bottom: 15px;
}

/* Downloads */
.downloads {
  text-align: center;
  margin-top: 40px;
}

.download-btn {
  background: rgba(2, 254, 10, 0.7);
  color: white;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 10px;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(2, 254, 10, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 12px 0;
  }

  .hero-img {
    padding-top: 0px;
  }

  nav {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-details {
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .forms-container {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .about-grid,
  .race-format,
  .safety-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content {
    padding: 20px 15px;
  }

  .form-section,
  .about-card,
  .safety-item,
  .contact-card {
    padding: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.2s;
}
.hero-details {
  animation-delay: 0.4s;
}
.cta-buttons {
  animation-delay: 0.6s;
}

.power-container {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  /* justify-content: flex-end; */
  gap: 8px;
  width: 100%;
}

.power-container p {
  margin: 0px;
  font-size: 14px;
  color: var(--text-muted);
}

.power-container a {
  text-decoration: none;
  margin: 0px;
}

.sponsors-section {
  padding: 2rem 1rem;
  margin-top: 50px;
}

.sponsor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.sponsor-container img {
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.sponsor-container img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive image sizing */
.sponsor-container img {
  width: clamp(100px, 20vw, 220px);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .sponsors-section {
    padding: 1.5rem 0.5rem;
    margin-top: 30px;
  }
  
  .sponsor-container {
    gap: 1.5rem;
  }
  
  .sponsor-container img {
    width: 120px;
  }
  
}

@media (max-width: 480px) {
  .sponsor-container {
    gap: 1rem;
    flex-direction: column;
  }
  
  .sponsor-container img {
    width: 140px;
  }
  
}


  /* Tab Styles */
  .registration-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }

  .tab-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 254, 10, 0.3);
  
  }

  .tab-btn.active {
    background: rgba(2, 254, 10, 0.7);
    color: white;
  }

  /* Form Section Styles */
  .form-section {
    display: none;
  }

  .form-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  /* Downloads Styles */
  .downloads {
    display: none;
  }

  .downloads.active {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }