/* ═══════════════════════════════════════
   Fast & Furious Birthday — style.css
   ═══════════════════════════════════════ */

/* ── Reset & Tokens ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg:       #0a0a0f;
  --blue:     #00d4ff;
  --orange:   #ff6600;
  --red:      #ff1a1a;
  --violet:   #b400ff;
  --gold:     #ffd700;
  --chrome:   #c0c0c0;
  --asphalt:  #16161e;
  --card-bg:  #111119;
  --font-title:   'Racing Sans One', cursive;
  --font-sub:     'Orbitron', sans-serif;
  --font-detail:  'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #eee;
  font-family: var(--font-detail);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════
   1. HERO
   ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, #0d1020 0%, var(--bg) 70%),
    repeating-linear-gradient(
      90deg,
      transparent 0 48px,
      rgba(255,255,255,.012) 48px 50px
    );
  overflow: hidden;
}

/* Speed lines */
.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.speed-lines span {
  position: absolute;
  left: -20%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.5), transparent);
  animation: speedline 2.5s linear infinite;
}
.speed-lines span:nth-child(1)  { top:  8%; width: 22%; animation-duration: 2.0s; animation-delay: 0s; }
.speed-lines span:nth-child(2)  { top: 18%; width: 18%; animation-duration: 2.8s; animation-delay: .4s; }
.speed-lines span:nth-child(3)  { top: 30%; width: 26%; animation-duration: 2.2s; animation-delay: .8s; }
.speed-lines span:nth-child(4)  { top: 42%; width: 15%; animation-duration: 3.0s; animation-delay: .2s; }
.speed-lines span:nth-child(5)  { top: 55%; width: 20%; animation-duration: 2.4s; animation-delay: 1.0s; }
.speed-lines span:nth-child(6)  { top: 64%; width: 24%; animation-duration: 2.6s; animation-delay: .6s; }
.speed-lines span:nth-child(7)  { top: 74%; width: 17%; animation-duration: 2.1s; animation-delay: 1.2s; }
.speed-lines span:nth-child(8)  { top: 82%; width: 21%; animation-duration: 2.9s; animation-delay: .3s; }
.speed-lines span:nth-child(9)  { top: 90%; width: 19%; animation-duration: 2.3s; animation-delay: .9s; }
.speed-lines span:nth-child(10) { top: 96%; width: 23%; animation-duration: 2.7s; animation-delay: 1.4s; }

@keyframes speedline {
  0%   { transform: translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(600%); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.3em;
  color: var(--chrome);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-title);
  font-size: clamp(4rem, 14vw, 10rem);
  color: var(--gold);
  line-height: 1;
  text-shadow:
    0 0 20px rgba(255,215,0,.6),
    0 0 60px rgba(255,215,0,.3),
    0 0 120px rgba(255,215,0,.15);
  animation: neonPulse 3s ease-in-out infinite alternate;
}

.hero-tagline {
  font-family: var(--font-sub);
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--blue);
  letter-spacing: 0.15em;
  margin-top: 0.4rem;
  text-shadow:
    0 0 10px rgba(0,212,255,.7),
    0 0 40px rgba(0,212,255,.4);
  animation: neonPulseBlue 2.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  0%   { text-shadow: 0 0 20px rgba(255,215,0,.6), 0 0 60px rgba(255,215,0,.3); }
  100% { text-shadow: 0 0 30px rgba(255,215,0,.9), 0 0 80px rgba(255,215,0,.5), 0 0 140px rgba(255,215,0,.2); }
}
@keyframes neonPulseBlue {
  0%   { text-shadow: 0 0 10px rgba(0,212,255,.7), 0 0 40px rgba(0,212,255,.4); }
  100% { text-shadow: 0 0 20px rgba(0,212,255,1),  0 0 60px rgba(0,212,255,.6), 0 0 100px rgba(0,212,255,.25); }
}

/* Checkered flags */
.checkered-flags {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2.4rem;
}
.flag { animation: flagWave 1.8s ease-in-out infinite alternate; }
.flag-right { animation-delay: .9s; }
@keyframes flagWave {
  0%   { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.1); }
}

/* ═══════════════════════════════
   2. CARS SHOWCASE
   ═══════════════════════════════ */
.cars {
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.road-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--asphalt) 20%, var(--asphalt) 80%, var(--bg) 100%);
  z-index: 0;
}

.cars-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Car cards */
.car-card {
  position: relative;
  text-align: center;
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}
.car-card.visible { opacity: 1; transform: translateX(0) !important; }
.car-left  { transform: translateX(-80px); }
.car-right { transform: translateX(80px); }

.car-img {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.6));
}

/* Underglow */
.car-underglow {
  position: absolute;
  bottom: 10%;
  left: 10%;
  right: 10%;
  height: 30px;
  border-radius: 50%;
  filter: blur(28px);
  z-index: 1;
  animation: glowPulse 2s ease-in-out infinite alternate;
}
.underglow-blue   { background: var(--blue); }
.underglow-orange { background: var(--orange); }

@keyframes glowPulse {
  0%   { opacity: .5; transform: scaleX(.9); }
  100% { opacity: .9; transform: scaleX(1.1); }
}

.car-label {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-top: 1rem;
}
.car-movie {
  font-family: var(--font-sub);
  font-size: clamp(.7rem, 1.5vw, .95rem);
  color: var(--chrome);
  letter-spacing: .15em;
  margin-top: .3rem;
}

/* Flame particles behind Charger */
.flame-particles {
  position: absolute;
  left: -5%;
  top: 30%;
  width: 60px;
  height: 80px;
  z-index: 1;
}
.flame-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: flame 1s ease-out infinite;
}
.flame-particles span:nth-child(1) { left: 10px; animation-delay: 0s;   background: var(--red); }
.flame-particles span:nth-child(2) { left: 25px; animation-delay: .15s; }
.flame-particles span:nth-child(3) { left: 40px; animation-delay: .3s;  background: var(--gold); }
.flame-particles span:nth-child(4) { left: 15px; animation-delay: .5s;  background: var(--red); }
.flame-particles span:nth-child(5) { left: 35px; animation-delay: .7s; }

@keyframes flame {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-50px) scale(0); opacity: 0; }
}

/* VS separator */
.vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-separator span {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--violet);
  text-shadow:
    0 0 15px rgba(180,0,255,.7),
    0 0 50px rgba(180,0,255,.4);
  animation: neonPulseViolet 2s ease-in-out infinite alternate;
}
@keyframes neonPulseViolet {
  0%   { text-shadow: 0 0 15px rgba(180,0,255,.7), 0 0 50px rgba(180,0,255,.4); }
  100% { text-shadow: 0 0 25px rgba(180,0,255,1),  0 0 70px rgba(180,0,255,.6); }
}

/* Road dashed line */
.road-line {
  position: relative;
  z-index: 1;
  height: 4px;
  max-width: 1200px;
  margin: 3rem auto 0;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 30px,
    transparent 30px 60px
  );
  background-size: 200% 100%;
  animation: roadScroll 2s linear infinite;
}
@keyframes roadScroll {
  0%   { background-position: 0 0; }
  100% { background-position: -60px 0; }
}

/* ═══════════════════════════════
   3. DETAILS — Race Ticket
   ═══════════════════════════════ */
.details {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.ticket {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 3rem 3.5rem;
  max-width: 520px;
  width: 100%;
  box-shadow:
    0 0 15px rgba(0,212,255,.2),
    inset 0 0 30px rgba(0,212,255,.05);
  animation: ticketFloat 4s ease-in-out infinite;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.ticket.visible { opacity: 1; transform: translateY(0); }

@keyframes ticketFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.ticket.visible { animation: ticketFloat 4s ease-in-out infinite; }

/* Perforations */
.ticket-perforation {
  position: absolute;
  top: 0; bottom: 0;
  width: 20px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 10px,
    var(--bg) 10px 14px
  );
}
.ticket-perforation-left  { left: -1px; border-radius: 16px 0 0 16px; }
.ticket-perforation-right { right: -1px; border-radius: 0 16px 16px 0; }

.ticket-title {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--blue);
  text-align: center;
  letter-spacing: .2em;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0,212,255,.5);
}

.ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255,255,255,.1);
  padding-bottom: .8rem;
}

.ticket-label {
  font-family: var(--font-sub);
  font-size: .85rem;
  color: var(--orange);
  letter-spacing: .15em;
  min-width: 70px;
}

.ticket-value {
  font-family: var(--font-detail);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .06em;
}
.ticket-value.placeholder {
  color: var(--chrome);
  font-style: italic;
}

/* ═══════════════════════════════
   4. COUNTDOWN
   ═══════════════════════════════ */
.countdown {
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.countdown-heading {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--chrome);
  letter-spacing: .3em;
  margin-bottom: 2.5rem;
}

.countdown-dashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.countdown-dashboard.visible { opacity: 1; transform: translateY(0); }

.countdown-block {
  background: var(--card-bg);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  min-width: 100px;
  box-shadow: 0 0 20px rgba(0,212,255,.1);
}

.countdown-number {
  display: block;
  font-family: var(--font-sub);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--blue);
  text-shadow: 0 0 15px rgba(0,212,255,.6);
  line-height: 1.1;
  transition: transform .3s ease;
}
.countdown-number.flip {
  animation: flipDigit .4s ease;
}
@keyframes flipDigit {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.countdown-unit {
  display: block;
  font-family: var(--font-sub);
  font-size: clamp(.55rem, 1.2vw, .75rem);
  color: var(--chrome);
  letter-spacing: .2em;
  margin-top: .5rem;
}

.countdown-sep {
  font-family: var(--font-sub);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--blue);
  opacity: .5;
  padding-bottom: 1.2rem;
}

/* ═══════════════════════════════
   5. RSVP / FOOTER
   ═══════════════════════════════ */
.rsvp {
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.rsvp-heading {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--chrome);
  letter-spacing: .25em;
  margin-bottom: 2rem;
}

.nos-btn {
  position: relative;
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: .05em;
  box-shadow:
    0 0 20px rgba(255,26,26,.5),
    0 0 60px rgba(255,26,26,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nos-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 30px rgba(255,26,26,.8),
    0 0 80px rgba(255,26,26,.4);
}
.nos-btn:active {
  transform: scale(.95);
}

.nos-label {
  position: relative;
  z-index: 1;
}

/* NOS flash overlay */
.nos-flash {
  position: fixed;
  inset: 0;
  background: rgba(0,212,255,.15);
  z-index: 9999;
  pointer-events: none;
  animation: nosFlash .4s ease-out forwards;
}
@keyframes nosFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Screen shake */
.shake {
  animation: screenShake .4s ease-out;
}
@keyframes screenShake {
  0%, 100% { transform: translate(0); }
  10%      { transform: translate(-4px, 2px); }
  20%      { transform: translate(4px, -2px); }
  30%      { transform: translate(-3px, 3px); }
  40%      { transform: translate(3px, -1px); }
  50%      { transform: translate(-2px, 2px); }
  60%      { transform: translate(2px, -2px); }
  70%      { transform: translate(-1px, 1px); }
  80%      { transform: translate(1px, -1px); }
}

.footer {
  margin-top: 4rem;
  padding-bottom: 2rem;
}
.footer p {
  font-family: var(--font-sub);
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .2em;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 767px) {
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .vs-separator {
    order: 0;
  }
  .car-left  { transform: translateX(-50px); }
  .car-right { transform: translateX(50px); }

  .ticket {
    padding: 2rem 1.6rem;
  }

  .countdown-block {
    min-width: 70px;
    padding: .9rem 1rem;
  }

  .countdown-sep {
    display: none;
  }

  .flame-particles {
    left: 5%;
  }
}

/* ═══════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
