html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* main container */
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #aa0000; /* لون النص الأساسي */
  overflow-x: hidden;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(255, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 100px;
  width: auto;
}

.logo-text {
  color: #ff0000;
  font-weight: bold;
  font-size: 24px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #aa0000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff0000;
}

/* ===== Home Section ===== */
.home {
  background-color: #fff;
  padding: 100px 0;
}

.home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; 
}

/* ======= Home Section ======= */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  background: #eee;
  overflow: hidden;
}

.home-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 0 40px;
  flex-wrap: wrap;
}

/* ======= Text Section with Animation ======= */
.home-text {
  flex: 1;
  opacity: 0;
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.2s;
}

.home-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.home-text h1 .highlight {
  color: #e4002b;
}

.home-text p {
  font-size: 1.2rem;
  color: #BC2D2D;
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 30px;
  background-color: #e4002b;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
  box-shadow: 0 0 10px #e4002b50;
}

.btn:hover {
  background-color: #b30022;
  box-shadow: 0 0 20px #e4002b90;
  transform: translateY(-3px);
}

/* ======= Image Section with Animation ======= */
.home-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.4s;
}

.home-image img {
  width: 100%;
  max-width: 700px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.home-image img:hover {
  transform: scale(1.03);
}

/* ======= Animations ======= */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


  .home-text h1 {
    font-size: 2.5rem;
  }

  .home-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
  }

/*===== About Section ===== */
.about {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.about .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about .about-image {
  flex: 1;
}

.about .about-image img {
  width: 100%;
  border-radius: 10px;
}

.about .about-content {
  flex: 1;
}

.about .about-content h2 {
  font-size: 32px;
  color: #cc0000;
  margin-bottom: 20px;
}

.about .about-content p {
  font-size: 18px;
  color: #aa0000;
  line-height: 1.6;
}

/* ====== Models Section ====== */
.models-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}
/* ====== Section Title ====== */
.section-title {
  text-align: center;
  font-size: 42px;
  color: #cc0000;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ====== Category Title ====== */
.category-title {
  font-size: 28px;
  color: #990000;
  margin: 40px 0 20px;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 2px solid #990000;
  display: inline-block;
  padding-bottom: 5px;
}

/* ====== Model Rows ====== */
.models-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 40px;
  margin-bottom: 50px;
}

/* ====== Model Card ====== */
.model-box {
  background: #fff;
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.5s ease;
  cursor: pointer;
  flex: 1 1 250px;
  max-width: 300px;
  overflow: hidden;
}

/* Hover Animation */
.model-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(204, 0, 0, 0.3);
}

/* ====== Car Image ====== */
.model-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.model-box:hover .model-img {
  transform: scale(1.05);
}

/* ====== Car Info ====== */
.model-box h3 {
  font-size: 20px;
  margin: 15px 0 8px;
  color: #cc0000;
}

.model-box p {
  font-size: 16px;
  margin-bottom: 12px;
  color: #561818;
}

/* ====== More Info ====== */
.more-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* Show More Info when checked */
.toggle-info:checked ~ .more-info {
  max-height: 200px;
  opacity: 1;
}

/* ====== Buttons ====== */
.model-btn {
  display: inline-block;
  background-color: #cc0000;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hide "Show Less" by default */
.model-btn.show-less {
  display: none;
}

/* Show/Hide Logic */
.toggle-info:checked ~ .more-info {
  max-height: 200px;
  opacity: 1;
}
.toggle-info:checked ~ .show-more {
  display: none;
}
.toggle-info:checked ~ .show-less {
  display: inline-block;
} 

.model-btn:hover {
  background-color: #a00000;
}

/* Hide checkbox input */
.toggle-info {
  display: none;
}

/* ===== Contact Section Styling with Labels ===== */
#contact {
  padding: 60px 20px;
  text-align: center;
}

#contact h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #F72626;
}

#contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #cc0000;
  font-weight: bold;
  font-size: 16px;
}

#contact input,
#contact textarea {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.3s ease;
}
#contact input:focus,
#contact textarea:focus {
  border-color: #cc0000;
  outline: none;
}

#contact .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#contact button {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #cc0000;
  color: #000;
  border: none;
}

#contact button:hover {
  background-color: #111;
  color: #cc0000;
  border: 1px solid #cc0000;
}

#contact button:active {
  transform: scale(0.97);
}

.contact-info {
  margin-top: 30px;
  text-align: center;
}

.contact-info hr {
  border: none;
  height: 2px;
  background-color: #cc0000;
  margin-bottom: 15px;
}

.contact-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: #cc0000;
  flex-wrap: wrap;
}

.contact-text p {
  margin: 0;
}

.contact-text span {
  color: #962727;
  font-weight: bold;
} 

.contact-footer-text {
  font-size: 14px;
  color: #722121;
  margin-top: 30px;
  text-align: center;
  line-height: 1.6;
} 

.footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  color: #cc0000;
  font-size: 14px;
} 
.footer .AUDY{
  font-weight: bold;
  color: #cc0000;
  text-shadow: 0 0 5px #F72626;
}
.footer p{
  margin: 0;
}
  /* Responsive */
@media screen and (max-width: 768px) {
  .home-container, .about .container {
    flex-direction: column;
    text-align: center;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
  }
}
  