/* colors and fonts i use everywhere, put them here so i dont repeat myself */
:root {
  --bg: #0b0e11;
  --bg-alt: #14171c;
  --surface: #1c2027;
  --surface-raised: #232830;
  --line: #2c323b;

  --red: #e10600;
  --red-dark: #9c0400;
  --amber: #ffb800;
  --green: #00d26a;

  --white: #f5f5f2;
  --muted: #9199a3;
  --muted-dim: #5c6470;

  --header-bg: rgba(11, 14, 17, 0.92);

  --font-display: "Titillium Web", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 78px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* light mode colors, switched on by the moon/sun button */
[data-theme="light"] {
  --bg: #f4f2ee;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f0eee9;
  --line: #ddd8d0;

  --white: #17191c;
  --muted: #52585f;
  --muted-dim: #7a8087;

  --header-bg: rgba(255, 255, 255, 0.92);
}

/* basic reset so browsers stop adding weird default spacing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

section {
  padding: 96px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* turn off animations for people who dont like motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* the loading screen with the red lights before the page shows up */
.lights-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #05070a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.lights-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lights-rig {
  display: flex;
  gap: 18px;
  padding: 20px 28px;
  background: #101318;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.light {
  width: clamp(28px, 6vw, 46px);
  height: clamp(28px, 6vw, 46px);
  border-radius: 50%;
  background: #2a0403;
  box-shadow: inset 0 0 0 3px #3a0a08;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.light.is-lit {
  background: var(--red);
  box-shadow: 0 0 22px 4px rgba(225, 6, 0, 0.75), inset 0 0 0 3px #ff8a83;
}

.lights-caption {
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}

.lights-caption.go {
  color: var(--green);
}

/* top navbar stuff */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: var(--header-h);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 2px 8px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.primary-nav ul {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--amber);
}

.nav-link:hover .nav-code {
  color: var(--amber);
  border-color: var(--amber);
}

.header-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 60%, var(--amber) 100%);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.group-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

/* HERO SECTION - not touching how this looks, leaving as is */
.hero {
  position: relative;
  max-width: none;
  padding: calc(var(--header-h) + 90px) 24px 90px;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.hero-track {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(100deg, transparent 0px, transparent 120px, rgba(225, 6, 0, 0.05) 120px, rgba(225, 6, 0, 0.05) 124px),
    radial-gradient(ellipse at 80% 20%, rgba(225, 6, 0, 0.14), transparent 55%),
    var(--bg);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
}

.accent {
  color: var(--red);
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 52ch;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #ff1a10;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.98);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* the little red tag + heading combo used above each section */
.section-heading {
  margin-bottom: 44px;
  max-width: 640px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.section-sub {
  margin-top: 10px;
}

/* ABOUT SECTION - made the photo same height as the info card */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.driver-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  min-height: 480px; /* matches the photo below */
}

.driver-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.driver-flag {
  font-size: 1.4rem;
}

.driver-number {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

.driver-role {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.driver-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.driver-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 10px;
  color: var(--muted);
}

.driver-photo {
  display: flex;
}

.driver-photo-frame {
  position: relative;
  width: 100%;
  height: 480px; /* same as .driver-card so they line up */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface);
}

.driver-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-photo-number {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* HOBBIES SECTION */
.standings-board {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, opacity 0.25s ease;
}

.project-card:hover {
  transform: translateX(6px);
  border-color: var(--red);
}

.project-pos {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--amber);
  border-right: 1px solid var(--line);
}

.project-body {
  padding: 24px 28px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.project-top h3 {
  font-size: 1.15rem;
  margin: 0;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.project-stack li {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 3px;
}

/* CONTACT SECTION */
.contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.radio-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
  outline: none;
}

.form-status {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--green);
  margin: 0;
}

.pit-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pit-board h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 20px;
}

.channel-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.channel-list li:last-child {
  border-bottom: none;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-list a {
  color: var(--amber);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.channel-list a:hover {
  color: var(--white);
}

.pit-board-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.pit-board-note p {
  font-size: 0.85rem;
  margin: 0;
}

.pit-board-note strong {
  color: var(--green);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-dim);
}