@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Oswald:wght@400;600&display=swap");

:root {
  --bg-dark: #050607;
  --bg-panel: #131715;
  --bg-panel-alt: #1c211c;
  --accent: #c8702f;
  --accent-light: #f0a35a;
  --text-body: #e3e3e1;
  --text-muted: #9aa098;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-body);
  background: radial-gradient(circle at top, #0f1411, var(--bg-dark));
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

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

a {
  color: var(--accent-light);
}

a:hover {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
}

#wrapper {
  max-width: 1200px;
  margin: 30px auto;
  background: rgba(6, 7, 8, 0.9);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

nav {
  width: 100%;
  background-color: rgba(5, 6, 7, 0.85);
  padding: 12px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  padding: 6px 14px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: .85em;
  letter-spacing: .1em;
  border: 1px solid transparent;
}

nav a:hover,
nav a:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(200,112,47,0.35);
}

header {
  min-height: 360px;
  padding: 120px 40px 60px 40px;
  border-bottom: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%);
  position: relative;
}

body.home-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_3443.JPG");
  background-size: cover;
  background-position: center;
}

body.about-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_3516.JPG");
  background-size: cover;
  background-position: center;
}

body.portfolio-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_3461.JPG");
  background-size: cover;
  background-position: center;
}

body.gallery-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_3503.JPG");
  background-size: cover;
  background-position: center;
}

body.contact-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_6038.JPG");
  background-size: cover;
  background-position: center;
}

body.devices-page header {
  background-image: linear-gradient(180deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0.35) 65%), url("New_images/IMG_3517.JPG");
  background-size: cover;
  background-position: center;
}

#logo .wordmark {
  color: #fff;
  text-decoration: none;
  font-size: 2em;
  display: inline-block;
  letter-spacing: .2em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
}

.tagline {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: .12em;
  margin-top: 16px;
  color: rgba(255,255,255,0.8);
}

main {
  display: block;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-panel);
  border-bottom: 2px solid rgba(255,255,255,0.05);
}

.featured {
  flex: 1 1 300px;
  padding: 24px;
  text-align: left;
  background: var(--bg-panel-alt);
  border-top: 3px solid rgba(255,255,255,0.06);
}

.featured img {
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.35);
}

aside {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  padding: 40px 30px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(14,16,15,0.96), rgba(34,23,18,0.9));
}

aside img {
  flex: 0 0 320px;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

aside div {
  flex: 1;
}

#handbook {
  background: linear-gradient(120deg, rgba(5,6,7,0.95), rgba(12,18,15,0.7));
  padding: 40px 30px 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tutorial {
  background: rgba(0,0,0,0.55);
  padding: 18px;
  margin: 0;
  border-top: 3px solid var(--accent);
  flex: 1 1 240px;
}

.tutorial img {
  border-radius: 6px;
  margin-bottom: 12px;
}

#handbook a {
  font-weight: 600;
}

#handbook blockquote {
  flex-basis: 100%;
  margin: 30px 0 0 0;
  color: var(--text-body);
  background-color: rgba(0,0,0,0.75);
  border-left: 4px solid var(--accent-light);
  padding: 30px 30px 20px 50px;
  position: relative;
}

#handbook blockquote::before {
  content: '\201c';
  color: var(--accent-light);
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 4em;
  font-family: 'Oswald', sans-serif;
}

#handbook blockquote p.quote {
  font-style: italic;
  font-size: 1.2em;
}

#handbook blockquote p.credit {
  color: var(--text-muted);
  margin-bottom: 0;
}

.ride-gallery {
  background: var(--bg-panel);
  padding: 40px 30px 50px 30px;
  border-top: 2px solid rgba(255,255,255,0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  background: rgba(0,0,0,0.5);
  padding: 12px;
  border-top: 3px solid var(--accent);
}

.gallery-grid img {
  border-radius: 4px;
}

.contact-section {
  background: var(--bg-panel-alt);
  padding: 40px 30px;
  border-top: 2px solid rgba(255,255,255,0.05);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-card {
  flex: 1 1 280px;
  background: rgba(0,0,0,0.45);
  padding: 22px;
  border-top: 3px solid var(--accent);
}

.contact-card a {
  color: var(--accent-light);
  text-decoration: none;
}

.contact-form label {
  display: block;
  font-size: .85em;
  letter-spacing: .05em;
  margin-top: 12px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
}

.contact-form button {
  margin-top: 18px;
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent-light);
}

.device-grid {
  padding: 40px 30px;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.device-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  border-top: 3px solid var(--accent);
  padding-top: 20px;
}

.device-shell {
  flex: 1 1 360px;
  background: #070707;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0,0,0,0.55);
}

.device-bezel {
  background: #111;
  border-radius: 12px;
  padding: 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.device-bezel iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.device-copy {
  flex: 1 1 260px;
}

.btn {
  color: white;
  font-size: 1.05em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 18px;
  letter-spacing: .08em;
}

.btn:hover {
  background-color: rgba(200,112,47,.4);
}

footer {
  font-size: .85em;
  padding: 30px 40px 40px 40px;
  color: var(--text-muted);
  letter-spacing: .08em;
}

@media screen and (max-width: 1024px) {
  header {
    padding: 100px 30px 50px 30px;
  }

  .featured {
    flex: 1 1 100%;
  }

  aside {
    flex-direction: column;
    text-align: center;
  }

  aside img {
    width: 100%;
    max-width: 520px;
  }

  .device-card {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  nav {
    position: static;
  }

  #handbook blockquote {
    margin-left: 0;
  }

  .tutorial {
    margin-right: 0;
  }

  .contact-grid {
    flex-direction: column;
  }
}

@media screen and (max-width: 540px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 80px 20px 40px 20px;
  }

  #wrapper {
    margin: 0;
  }
}
