/* Reset or Normalize Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
:root {
  --primary-color: #1a8754;
  --secondary-color: #ffffff;
  --background-dark: #121212;
  --text-light: #ffffff;
  --text-dark: #000000;
  --spacing-unit: 1rem;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-dark);
  color: var(--text-light);
  background-image: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)),
    url("/images/turn12_450.JPG");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
}

/* Layout Styles */
header {
  font-family: 'Racing Sans One', Arial, sans-serif;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--text-light);
  text-align: center;
  padding: 1.5em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Component Styles */
section {
  padding: 4em 2em;
  margin: 2em auto;
  max-width: 1200px;
  background-color: rgba(18, 18, 18, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.bike-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.bike-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5em;
  border-radius: 10px;
  transition: transform 0.3s ease;
  height: auto;
}

.bike-item:hover {
  transform: translateY(-5px);
}

.bike-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bike-item p {
  color: var(--text-light);
  margin: 1em 0;
  font-size: 1.1rem;
}

/* Typography Styles */
h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 1em 0;
}

p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Racing Status Section */
#racing-status {
  background-color: rgba(26, 135, 84, 0.1);
}

/* Gallery Section */
.gallery-item {
  margin: 1em 0;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
form {
  display: grid;
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
}

input, textarea {
  padding: 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1rem;
}

button {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1em 2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #146c43;
}

/* Footer */
footer.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--text-light);
  text-align: center;
  padding: 1em;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

/* Media Queries */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 2em 1em;
  }
  
  .bike-container {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.6s ease-out forwards;
}
