/* Font Classes */
.orbitron { font-family: 'Orbitron', sans-serif; }
.kanit { font-family: 'Kanit', sans-serif; font-weight: 200; }

/* Header Styles */
header {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  margin: 0 auto;
  padding: 15px 0;
  border-bottom: 2px solid #000000;
  align-items: center;
  justify-content: space-between;
}

.orbitron {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-right: 15px;
}

#right {
  display: flex;
  margin-left: auto;
  padding-top: 0;
}

/* Updated Button Styles with Hover Effect */
.btn-underline {
  background: transparent;
  border: none;
  font-family: 'Kanit', sans-serif;
  padding: 10px 20px;
  position: relative;
  cursor: pointer;
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  white-space: nowrap;
  color: black;
  transition: all 0.3s ease;
  transform: scale(1);
}

.btn-underline:hover {
  color: #333;
  transform: scale(1.05);
}

.btn-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 5px;
  left: 50%;
  background: black;
  transition: all 0.3s ease;
}

.btn-underline:hover::after {
  width: 100%;
  left: 0;
}

.get-started-btn {
  background-color: black;
  color: white;
  padding: 8px 16px;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-family: sans-serif;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: 15px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.get-started-btn:hover {
  background-color: #fffbfb09;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.arrow {
  margin-left: 8px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.get-started-btn:hover .arrow {
  transform: translateX(3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  #right {
    display: none;
    width: 100%;
    margin: 10px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
  }
  
  #right.active {
    display: flex;
  }
  
  .btn-underline {
    padding: 10px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .btn-underline:hover {
    transform: none;
  }
  
  .get-started-btn {
    margin: 10px 0 0 0;
    width: 100%;
    justify-content: center;
  }
  
  .mobile-menu-btn {
    display: block;
    order: 1;
  }
  
  .orbitron {
    order: 0;
    margin-right: auto;
  }
  
  .get-started-btn {
    order: 2;
    margin-left: 0;
  }
}

.arrow {
  margin-left: 8px;
}

/* Car Selection Grid */
.car-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 95%;
  margin: 30px auto;
  padding: 0 10px;
}

.car-link {
  display: block;
  overflow: hidden;
  height: 100%;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(70%);
  transition: all 0.3s ease;
  transform: scale(1);
}

.car-image:hover {
  filter: grayscale(0%) brightness(100%);
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
  border-top: 2px solid #535353;
  width: 95%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
}

footer p, footer a {
  padding: 0 1.25%;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

footer a {
  color: black;
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  #right {
    width: 100%;
    justify-content: center;
    margin: 10px 0;
  }
  
  .get-started-btn {
    margin: 10px auto 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .car-selection {
    grid-template-columns: 1fr;
  }
}

a {
  text-decoration: none;
  color: #000000; /* For Example */
}