/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, strong, .logo, .btn-primary, .stat-box h3, .driver-number {
  font-family: 'Orbitron', sans-serif;
}

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

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

ul {
  list-style: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 50, 120, 0.08);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #1a1a2e;
}

.logo span {
  color: #0066cc;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(26, 26, 46, 0.6);
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #0066cc;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO (stays dark — video background) ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.7) 0%,
    rgba(10, 15, 28, 0.4) 40%,
    rgba(10, 15, 28, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.driver-number {
  font-size: 140px;
  font-weight: 900;
  letter-spacing: 10px;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: -30px;
  animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #fff;
  animation: fadeUp 1.2s ease forwards;
}

.hero-content .category {
  margin-top: 16px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeUp 1.5s ease forwards;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 48px;
  border-radius: 50px;
  background: #0066cc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid #0066cc;
  cursor: pointer;
  transition: all 0.35s ease;
  animation: fadeUp 1.8s ease forwards;
}

.btn-primary:hover {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
  transform: scale(1.05);
}

/* ===== STATS BAR ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f5f7fa;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-box {
  padding: 50px 20px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.stat-box:last-child {
  border-right: none;
}

.stat-box h3 {
  font-size: 48px;
  font-weight: 900;
  color: #0066cc;
  margin-bottom: 8px;
}

.stat-box h3.coming-soon {
  font-size: 20px;
  letter-spacing: 2px;
  opacity: 0.4;
}

.stat-box p {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a2e;
  opacity: 0.5;
}

/* ===== SECTIONS ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-dark,
.section-light,
.section-premium {
  padding: 100px 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-dark.show,
.section-light.show,
.section-premium.show {
  opacity: 1;
  transform: translateY(0);
}

.section-dark {
  background: #ffffff;
}

.section-light {
  background: #f5f7fa;
}

.section-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #0066cc;
  margin-bottom: 40px;
  text-align: center;
}

/* ===== PROFILE CARD ===== */
.card {
  position: relative;
  background: #f0f4f8;
  border-radius: 16px;
  padding: 50px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: none;
  overflow: hidden;
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0%,
    transparent 47%,
    #0066cc 49%,
    #00aaff 50%,
    #0066cc 51%,
    transparent 53%,
    transparent 100%
  );
  transform-origin: center;
  animation: borderSpin 14s linear infinite;
  z-index: -2;
}

.card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #f0f4f8;
  border-radius: 14px;
  z-index: -1;
}

@keyframes borderSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.card ul li {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid #f0f2f5;
  letter-spacing: 0.5px;
  color: #1a1a2e;
}

.card ul li:last-child {
  border-bottom: none;
}

.card ul li strong {
  color: #0066cc;
  margin-right: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== GALLERY CAROUSEL ===== */
.gallery-carousel {
  position: relative;
}

.gallery-carousel .gallery-track-wrapper {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
}

.gallery-track img {
  flex: 0 0 calc(50% - 12px);
  width: calc(50% - 12px);
  border-radius: 14px;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #e8ecf1;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-btn:hover {
  background: #0066cc;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d5dd;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.gallery-dots .dot.active {
  background: #0066cc;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .gallery-track img {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* ===== TEAM SPLIT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split h2 {
  text-align: left;
}

.split p {
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a2e;
  opacity: 0.7;
}

.split img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: #e8ecf1;
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
}

.slider-track .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slider-track .slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: #0066cc;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: #0066cc;
  transform: scale(1.2);
}

/* ===== VIDEO SECTION ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-items: center;
}

.video-embed {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #e8ecf1;
}

.video-embed iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: none;
}

.video-cta {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  opacity: 0.6;
}

.video-cta a {
  color: #0066cc;
  font-weight: 600;
}

.video-cta a:hover {
  color: #1a1a2e;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PARTNERS / PREMIUM ===== */
.premium-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.premium-box > p {
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a2e;
  opacity: 0.65;
  margin-bottom: 50px;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.tier {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 40px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tier:hover {
  transform: translateY(-6px);
  border-color: #0066cc;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.1);
}

.tier h3 {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.tier p {
  font-size: 14px;
  color: #1a1a2e;
  opacity: 0.55;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-section.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-photo {
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
  background: #1a1a2e;
}

.contact-info h2 {
  text-align: left;
  color: #fff;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}

.contact-item svg {
  color: #0066cc;
  flex-shrink: 0;
}

.contact-item:hover {
  color: #fff;
}

.contact-info .btn-primary {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-photo {
    max-height: 500px;
  }

  .contact-info {
    padding: 50px 30px;
    align-items: center;
    text-align: center;
  }

  .contact-info h2 {
    text-align: center;
  }

  .contact-links {
    align-items: center;
  }

  .contact-info .btn-primary {
    align-self: center;
  }
}

/* ===== FOOTER ===== */
footer {
  padding: 40px;
  background: #f0f2f5;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: #1a1a2e;
  border-top: 1px solid #e2e8f0;
}

.footer-social {
  margin-bottom: 18px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0066cc;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.instagram-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.instagram-link:hover {
  color: #1a1a2e;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 16px;
}

.footer-contacts a {
  color: #0066cc;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-contacts a:hover {
  color: #1a1a2e;
}

footer p {
  opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* stat counter animation */
.stat-box h3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats.show .stat-box h3 {
  opacity: 1;
  transform: translateY(0);
}

.stats.show .stat-box:nth-child(1) h3 { transition-delay: 0.1s; }
.stats.show .stat-box:nth-child(2) h3 { transition-delay: 0.25s; }
.stats.show .stat-box:nth-child(3) h3 { transition-delay: 0.4s; }
.stats.show .stat-box:nth-child(4) h3 { transition-delay: 0.55s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
  }

  .navbar nav.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .driver-number {
    font-size: 80px;
    margin-bottom: -15px;
  }

  .hero-content h1 {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .hero-content .category {
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box {
    padding: 35px 15px;
  }

  .stat-box h3 {
    font-size: 36px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split h2 {
    text-align: center;
  }

  .sponsor-tiers {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px 24px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .driver-number {
    font-size: 60px;
  }

  .navbar {
    padding: 14px 20px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
