:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --card: #17171b;
  --text: #f4f4f2;
  --muted: #8b8b93;
  --accent: #ff3b30;
  --line: rgba(255,255,255,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

h1, h2, .nav-logo {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-logo,
.hero-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #c2c6cb 18%,
    #6b7075 36%,
    #f5f7f9 50%,
    #8a8f94 62%,
    #e8ebee 80%,
    #4b4f53 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.nav-logo::first-letter,
.hero-title::first-letter {
  text-transform: uppercase;
}

.dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
  filter: none;
}

/* NAV */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(11,11,13,0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-size: 22px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(11,11,13,0.95);
  border-top: 1px solid transparent;
}
.nav-links-mobile.open {
  max-height: 300px;
  border-top-color: var(--line);
}
.nav-links-mobile a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.nav-links-mobile a:hover { color: var(--text); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background: #000;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, transparent 1px, transparent 2px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(64px, 14vw, 160px);
  line-height: 0.95;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  margin-top: 18px;
  font-weight: 600;
}
.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.scroll-cta:hover {
  border-color: var(--accent);
  background: rgba(255,59,48,0.08);
  transform: translateY(-2px);
}
.scroll-cta svg { animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* SECTIONS */
section { padding: 120px 24px; }
.section-head { max-width: 700px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-head h2, .about h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* CAR GRID */
.garage { background: var(--bg); }
.car-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.car-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.car-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg,
    #1a2036 0%,
    #33395c 22%,
    #7a5f7a 42%,
    #d97e56 60%,
    #f2a85c 70%,
    #2b2320 82%,
    #17171b 100%);
}
.car-media::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 66%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,214,150,0.95), rgba(255,150,80,0.25) 60%, transparent 75%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(1px);
}
.car-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 8px rgba(255,255,255,0.15);
}
.car-media.has-photo {
  background-size: cover;
  background-position: center;
}
.car-media.has-photo::before,
.car-media.has-photo::after {
  content: none;
}
.car-media.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.car-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 100px;
}
.car-icon {
  width: 55%;
  color: var(--accent);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
  transition: transform 0.35s ease;
}
.car-card:hover .car-icon { transform: scale(1.08) translateY(-4px); }
.car-info { padding: 22px 24px 26px; }
.car-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.car-tag { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ABOUT */
.about { background: var(--bg-alt); text-align: center; }
.about-inner { max-width: 640px; margin: 0 auto; }

/* FOOTER */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer .nav-logo { display: block; margin-bottom: 12px; font-size: 20px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.social-link:visited { color: var(--text); }
.social-link:hover,
.social-link:visited:hover { color: var(--accent); }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.car-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.car-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.car-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.car-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.car-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links-mobile { display: flex; }
  .car-grid { grid-template-columns: 1fr; }
  section { padding: 80px 20px; }
}
