/* ===== EVRE 2 TEXT LEGIBILITY FIX ===== */
#text-evre2 {
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 2px solid rgba(255,26,26,0.6);
  border-radius: 8px;
  padding: 20px 28px;
  max-width: min(340px, 40vw);
}
#text-evre2 .spec-label {
  text-shadow: 0 0 20px rgba(255,26,26,0.8), 0 2px 8px rgba(0,0,0,1);
}
#text-evre2 .spec-title {
  text-shadow:
    0 0 30px rgba(0,0,0,1),
    0 0 60px rgba(0,0,0,0.9),
    2px 2px 4px rgba(0,0,0,1);
}
#text-evre2 .spec-sub {
  text-shadow: 0 1px 6px rgba(0,0,0,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #000;
  --dark: #0a0a0a;
  --red: #ff1a1a;
  --blue: #00d4ff;
  --white: #fff;
  --grey: #888;
  --font-syn: 'Syncopate', sans-serif;
  --font-mon: 'Montserrat', sans-serif;
  --font-raj: 'Rajdhani', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--font-mon); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ===== HEADER ===== */
#main-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, transparent 100%);
}
#main-header.scrolled {
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,26,26,.15);
}
.logo { font-family: var(--font-syn); font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: .12em; }
.logo-gg { color: #fff; }
.logo-go { color: var(--red); margin-left: 4px; }
.coming-badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-syn); font-size: 11px; font-weight: 700; letter-spacing: .2em;
  border: 1px solid rgba(255,26,26,.5); padding: 8px 16px; border-radius: 40px;
  background: rgba(255,26,26,.08);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse-dot 1.2s ease-in-out infinite; box-shadow: 0 0 8px var(--red); }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ===== DRIVE SECTION ===== */
#drive-section { position: relative; height: 600vh; }
#drive-pin {
  position: sticky; top: 0; left: 0; width: 100%; height: 100vh;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.drive-bg-dark {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(20,0,0,.7) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, #0d0d0d 0%, #000 75%);
}
.drive-bg-dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.005) 3px, rgba(255,255,255,.005) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.008) 60px, rgba(255,255,255,.008) 61px);
}

/* Track canvas */
#track-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
/* Trail canvas */
#trail-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; z-index: 3;
}

/* ===== SPEED LINES ===== */
.speed-lines {
  position: absolute; inset: 0;
  display: flex; justify-content: space-around; align-items: stretch;
  opacity: 0; pointer-events: none; overflow: hidden; z-index: 4;
}
.sl { width: 2px; background: linear-gradient(to bottom, transparent 0%, var(--blue) 50%, transparent 100%); animation: sl-flow .4s linear infinite; transform: translateY(-100%); opacity: .6; }
.sl:nth-child(2n) { background: linear-gradient(to bottom, transparent 0%, var(--red) 50%, transparent 100%); width: 1px; opacity: .4; }
.sl:nth-child(3n) { width: 3px; opacity: .2; }
@keyframes sl-flow { from{transform:translateY(-100%)} to{transform:translateY(100%)} }
.sl1{animation-duration:.35s} .sl2{animation-duration:.45s} .sl3{animation-duration:.3s}
.sl4{animation-duration:.5s} .sl5{animation-duration:.38s} .sl6{animation-duration:.42s}
.sl7{animation-duration:.28s} .sl8{animation-duration:.55s}

/* ===== HORIZONTAL SPEED LINES ===== */
.h-speed-lines {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-around;
  opacity: 0; pointer-events: none; overflow: hidden; z-index: 4;
}
.hsl { height: 1px; background: linear-gradient(to right, transparent 0%, rgba(255,26,26,.8) 50%, transparent 100%); animation: hsl-flow .5s linear infinite; transform: translateX(-100%); }
.hsl:nth-child(2n){background:linear-gradient(to right, transparent 0%, rgba(0,212,255,.6) 50%, transparent 100%);}
@keyframes hsl-flow { from{transform:translateX(-100%)} to{transform:translateX(100%)} }
.hsl1{animation-duration:.4s} .hsl2{animation-duration:.55s} .hsl3{animation-duration:.35s}
.hsl4{animation-duration:.48s} .hsl5{animation-duration:.6s}

/* ===== BRAKE GLOW ===== */
.brake-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,26,26,.9) 0%, transparent 70%);
  opacity: 0; pointer-events: none; filter: blur(20px); z-index: 4;
}

/* ===== KART IMAGES — centred ===== */
.kart-wrapper {
  position: absolute;
  /* Centered: top/left 50% + GSAP xPercent:-50 yPercent:-50 */
  top: 48%; left: 50%;
  width: min(560px, 72vw);
  transform-origin: center center;
  z-index: 10;
  will-change: transform;
}
.kart-img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 40px rgba(255,26,26,.3));
  will-change: transform, opacity;
}
#img-on { opacity: 1; }

/* ===== PHASE TEXTS ===== */
.phase-text {
  position: absolute; opacity: 0; pointer-events: none;
  z-index: 20; will-change: transform, opacity;
}
#text-evre1 { bottom: 10vh; left: 0; right: 0; text-align: center; }
.tag-line { font-family: var(--font-syn); font-size: clamp(11px,1.5vw,14px); letter-spacing: .3em; color: var(--red); display: block; margin-bottom: 12px; }
.hero-headline {
  font-family: var(--font-syn); font-size: clamp(42px, 8vw, 110px); font-weight: 700; line-height: .9;
  background: linear-gradient(135deg, #fff 40%, #888 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-right { right: 5vw; top: 50%; transform: translateY(-50%); text-align: right; }
.text-left  { left: 5vw; top: 50%; transform: translateY(-50%); }
.text-bottom { bottom: 10vh; left: 0; right: 0; text-align: center; }
.spec-label { font-family: var(--font-syn); font-size: 11px; letter-spacing: .3em; color: var(--red); margin-bottom: 8px; display: block; }
.spec-title { font-family: var(--font-syn); font-size: clamp(26px, 4.5vw, 60px); font-weight: 700; line-height: .95; }
.spec-sub { font-family: var(--font-raj); font-size: 16px; color: var(--grey); letter-spacing: .1em; margin-top: 12px; display: block; }

/* ===== GLASS PANEL ===== */
.glass-panel {
  position: absolute; left: 5vw; top: 50%; transform: translateY(-50%);
  width: min(300px, 32vw);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px); border-radius: 16px; padding: 24px 28px;
  opacity: 0; z-index: 20;
}
.gp-title { font-family: var(--font-syn); font-size: 10px; letter-spacing: .25em; color: var(--red); margin-bottom: 18px; }
.gp-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.gp-list li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 8px; }
.gp-key { font-family: var(--font-raj); font-size: 13px; color: var(--grey); }
.gp-val { font-family: var(--font-raj); font-size: 13px; font-weight: 600; }

/* ===== PROGRESS BAR ===== */
.drive-progress {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: min(360px, 55vw); height: 2px;
  background: rgba(255,255,255,.1); border-radius: 2px; z-index: 30;
}
.dp-fill { height: 100%; width: 0%; background: linear-gradient(to right, var(--red), var(--blue)); border-radius: 2px; }
.phase-labels {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(360px, 55vw);
  display: flex; justify-content: space-between;
  font-family: var(--font-syn); font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.3); z-index: 30;
}

/* ===== FEATURES ===== */
#features { position: relative; background: var(--dark); padding: 120px 0; overflow: hidden; }
.feat-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-syn); font-size: clamp(100px, 20vw, 280px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,26,26,.07);
  white-space: nowrap; pointer-events: none;
}
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1300px; margin: 0 auto; padding: 0 48px; align-items: center; min-height: 70vh;
}
.feat-col-left { padding-right: 60px; }
.feat-tag {
  font-family: var(--font-syn); font-size: 11px; letter-spacing: .3em; color: var(--red);
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.feat-tag::before { content:''; display:inline-block; width:28px; height:1px; background:var(--red); }
.feat-heading { font-family: var(--font-syn); font-size: clamp(44px, 7vw, 90px); font-weight: 700; line-height: .9; margin-bottom: 24px; }
.feat-heading.sm { font-size: clamp(30px, 4.5vw, 58px); }
.feat-unit { color: var(--red); }
.feat-desc { font-family: var(--font-raj); font-size: 17px; line-height: 1.8; color: #aaa; margin-bottom: 36px; }
.feat-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-syn); font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; }
.stat-lbl { font-family: var(--font-syn); font-size: 9px; letter-spacing: .25em; color: var(--grey); }
.feat-img-container { position: relative; display: flex; align-items: center; justify-content: center; }
.feat-img-glow { position: absolute; width: 80%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(255,26,26,.2) 0%, transparent 70%); filter: blur(40px); }
.feat-kart { width: 100%; max-width: 580px; filter: drop-shadow(0 20px 60px rgba(255,26,26,.25)); position: relative; z-index: 1; }

.driver-block {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1300px; margin: 80px auto 0; padding: 0 48px; gap: 60px; align-items: center;
}
.driver-img-col { position: relative; }
.driver-kart { width: 100%; filter: drop-shadow(0 0 60px rgba(255,26,26,.3)); }
.driver-glow-red { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 80%; height: 50px; background: radial-gradient(ellipse, rgba(255,26,26,.6) 0%, transparent 70%); filter: blur(12px); }
.red-text { color: var(--red); }
.driver-specs { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.driver-specs li { font-family: var(--font-raj); font-size: 15px; color: #aaa; display: flex; align-items: center; gap: 12px; }
.ds-bullet { color: var(--red); font-size: 10px; }

.balance-block { position: relative; text-align: center; padding: 100px 48px; margin-top: 40px; overflow: hidden; }
.bal-outline-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-syn); font-size: clamp(70px, 15vw, 220px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(0,212,255,.06); white-space: nowrap; pointer-events: none; }
.bal-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.center-tag { justify-content: center; }
.center-tag::before { display: none; }
.bal-desc { font-family: var(--font-raj); font-size: 18px; line-height: 1.9; color: #999; }

/* ===== CONTACT ===== */
#contact { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 80px 24px; }
.contact-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.02) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.02) 40px),
    #050505;
}
#contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; width: 100%; max-width: 900px; }
.coming-main-badge { display: flex; align-items: center; gap: 16px; font-family: var(--font-syn); font-size: 10px; letter-spacing: .3em; color: var(--red); }
.cmb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse-dot 1.4s ease-in-out infinite; }
.contact-headline { font-family: var(--font-syn); font-size: clamp(40px, 9vw, 110px); font-weight: 700; line-height: .9; }
.contact-sub-hl { color: var(--red); }
.yakinda-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.yakinda-inner {
  display: flex; align-items: center; gap: 20px; padding: 14px 32px;
  border: 1px solid var(--red); border-radius: 4px;
  background: rgba(255,26,26,.05);
  animation: yakinda-glow 2s ease-in-out infinite;
}
@keyframes yakinda-glow {
  0%,100%{box-shadow:0 0 20px rgba(255,26,26,.2), inset 0 0 20px rgba(255,26,26,.05);}
  50%{box-shadow:0 0 50px rgba(255,26,26,.5), inset 0 0 30px rgba(255,26,26,.1);}
}
.y-line { display: block; height: 1px; width: 36px; background: var(--red); opacity: .6; }
.y-text { font-family: var(--font-syn); font-size: clamp(16px, 2.5vw, 26px); font-weight: 700; letter-spacing: .4em; color: var(--red); text-shadow: 0 0 20px var(--red); }
.yakinda-sub { font-family: var(--font-raj); font-size: 14px; letter-spacing: .15em; color: var(--grey); }
.contact-cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; width: 100%; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 220px; max-width: 270px; padding: 20px 24px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; transition: all .3s; backdrop-filter: blur(10px);
}
.contact-card:hover { border-color: rgba(255,26,26,.4); background: rgba(255,26,26,.06); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(255,26,26,.15); }
.cc-icon { width: 36px; height: 36px; color: var(--red); flex-shrink: 0; }
.cc-icon svg { width: 100%; height: 100%; }
.cc-info { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cc-label { font-family: var(--font-syn); font-size: 9px; letter-spacing: .25em; color: var(--grey); }
.cc-val { font-family: var(--font-raj); font-size: 14px; font-weight: 600; }

/* ===== FOOTER ===== */
#main-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 48px; border-top: 1px solid rgba(255,255,255,.05); background: #000; }
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-family: var(--font-syn); font-size: 18px; font-weight: 700; }
.footer-tagline { font-family: var(--font-raj); font-size: 12px; color: var(--grey); letter-spacing: .15em; }
.footer-copy { font-family: var(--font-raj); font-size: 12px; color: rgba(255,255,255,.3); }
.footer-badge-small { display: flex; align-items: center; gap: 8px; font-family: var(--font-syn); font-size: 10px; letter-spacing: .2em; color: var(--red); }
.fbs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse-dot 1.2s ease-in-out infinite; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #main-header { padding: 14px 20px; }
  .logo { font-size: 20px; }
  .coming-badge { font-size: 9px; padding: 6px 12px; letter-spacing: .1em; }
  .badge-dot { width: 6px; height: 6px; }

  .kart-wrapper { width: 90vw; top: 46%; }
  .phase-labels { display: none; }
  .drive-progress { width: 80vw; }

  .text-right { right: 4vw; top: auto; bottom: 28vh; transform: none; text-align: center; left: 4vw; right: 4vw; }
  .text-left  { left: 4vw; top: auto; bottom: 28vh; transform: none; }
  .spec-title { font-size: clamp(22px, 7vw, 40px); }

  .glass-panel { width: calc(100% - 40px); left: 20px; top: auto; bottom: 80px; transform: none; padding: 16px 20px; }

  .feat-grid { grid-template-columns: 1fr; padding: 0 20px; min-height: auto; gap: 40px; }
  .feat-col-left { padding-right: 0; }
  .feat-col-right { order: -1; }
  .feat-kart { max-width: 320px; margin: 0 auto; }

  .driver-block { grid-template-columns: 1fr; padding: 0 20px; gap: 30px; margin-top: 40px; }
  .driver-kart { max-width: 300px; margin: 0 auto; }

  .balance-block { padding: 60px 20px; }
  .bal-desc { font-size: 15px; }

  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { min-width: 280px; max-width: 100%; }

  #main-footer { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
  .footer-left { align-items: center; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(36px, 13vw, 60px); }
  .contact-headline { font-size: clamp(32px, 11vw, 60px); }
  .yakinda-inner { padding: 10px 20px; }
  .y-text { letter-spacing: .2em; }
}
