/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Theme Variables */
:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #FF7300;
  --accent-hover: #FF914D;
  --card-bg: #111111;
  --nav-bg: #0a0a0a;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 1rem;
  font-family: 'Old English Text MT', serif;
  color: var(--accent-color);
  -webkit-text-stroke: 1px white;
  text-shadow: 2px 2px 4px black, -2px -2px 4px black;
}

h2, h3 {
  color: var(--accent-color);
}

/* Header */
header {
  background: var(--nav-bg);
  color: var(--text-color);
  padding: 1rem;
  text-align: center;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: var(--accent-color);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, border-bottom 0.3s;
}

nav a.active {
  border-bottom: 2px solid var(--accent-color);
}

nav a:hover {
  color: var(--accent-hover);
  border-bottom: 2px solid var(--accent-color);
}

/* Layout */
main {
  padding: 2rem;
}

section {
  max-width: 1000px;
  margin: auto;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(255, 115, 0, 0.2);
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: var(--accent-hover);
}

/* Features */
.features .cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.features .card {
  flex: 1 1 30%;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(255, 115, 0, 0.15);
  color: var(--text-color);
}

/* Hero Background Text */
.old-english {
  font-family: 'Old English Text MT', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent-color);
  -webkit-text-stroke: 1px white;
  text-shadow: 2px 2px 4px black, -2px -2px 4px black;
}

.hero-bg {
  font-size: clamp(2rem, 6vw, 3rem);
  font-family: 'Old English Text MT', serif;
  background: url('images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 0 auto;
  display: block;
  width: fit-content;
  text-shadow: none;
  padding: 1rem;
}

/* Slideshow */
.slideshow {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* keeps responsive widescreen ratio */
  max-height: 600px;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill container but keep proportions */
  border-radius: 20px;
}

.slide.active {
  display: block;
}

.slide:not(.active) {
  opacity: 0;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 50%;
  user-select: none;
  z-index: 2;
  transition: background 0.3s;
  background: rgba(0,0,0,0.4);
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

/* Bikes Grid */
.bikes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.box {
  background-color: #222;
  border: 2px solid #555;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.box:hover {
  transform: scale(1.05);
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.box figcaption {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  background: #111;
  color: #fff;
}

/* Footer */
footer {
  background: var(--nav-bg);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #444;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .features .cards {
    flex-direction: column;
  }

  .features .card {
    flex: 1 1 100%;
  }

  header, footer {
    padding: 0.5rem;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-bg {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  nav a {
    margin: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    aspect-ratio: 4/3;   /* keeps slides proportional on mobile */
    max-height: 300px;   /* prevents it from being too tall */
    height: auto;        /* removes the forced 40vh */
  }

  .box {
    height: 180px; /* slightly smaller thumbnails on phones */
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}


