/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
}
.back{
    position: absolute;
}

.btn i {
    margin-right: 10px;
}
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 15px 20px;
    }
}

.auth-buttons {
    display: flex;
    gap: 20px;
}

/* Button Styling */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Sign Up Button Style */
.signup-btn {
    background-color: #e50914; /* Red color for Sign Up */
}

.signup-btn:hover {
    background-color: #ff1a1a; /* Brighter red on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Login Button Style */
.login-btn {
    background-color: #333333; /* Dark gray color for Login */
}

.login-btn:hover {
    background-color: #444444; /* Lighter gray on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    padding: 1rem 2rem;
   
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;  
}

.auth-buttons1 {
    display: flex;
   
    gap: 20px;
   margin-top: -6px;
    
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #b3b3b3;
    transition: color 0.3s;
    font-size: 20px;
}

nav ul li a:hover {
    color: #fff;
   
    
}


.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background-color: black;
    
}

.hero-section h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.2rem;
    color: #292626;
    position: relative;
    z-index: 2;
    font-family:algerian;

}

.btn1 {
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    position: relative;
    z-index: 2;
}

.btn1:hover {
    background-color: #ff1a1a;
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}


.cars-section {
    padding: 2rem;
    background-color: #1f1f1f;
    text-align: center;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.car-item {
    background-color: #282828;
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.car-item img {
    width: 100%;
    border-radius: 10px;
    object-position: top;
}

.car-item h3 {
    color: #fff;
    margin: 0.5rem 0;
}

.car-item:hover {
    transform: translateY(-10px);
}

.booking-section {
    padding: 2rem;
    background-color: #121212;
    text-align: center;
}

.booking-section form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.booking-section label {
    font-size: 1.2rem;
}

.booking-section select,
.booking-section input {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    background-color: #282828;
    color: #fff;
}

footer {
    background-color: #1f1f1f;
    text-align: center;
    padding: 1rem;
}

footer p {
    color: #b3b3b3;
}

.car-item {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .car-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* booking side part */

/* Container for the Booking Form */
.booking-form-container {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

/* Form Title Animation */
.animate-title {
    text-align: center;
    color: #e50914;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    animation: slideDown 1s ease-in-out;
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: formFadeIn 1.5s forwards ease-in-out;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #b3b3b3;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    border: none;
    background-color: #282828;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border: 1px solid #e50914; /* Red border on focus */
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

/* Button Animation */
.btn1 {
    padding: 0.75rem;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn1:hover {
    background-color: #ff1a1a;
    transform: scale(1.05); /* Button slightly zooms on hover */
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.5);
}
.bookin-box{
    width: 100%;
    height: 100vh;
    background-color: rgb(35, 36, 36);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keyframes for Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-form-container {
        padding: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    .btn1 {
        font-size: 0.9rem;
        padding: 0.65rem;
    }
}

@media (max-width: 480px) {
    .booking-form-container {
        width: 90%;
    }
}

/* Style the video section */
.video-section {
    width: 100%;
    height: 100vh; /* Fullscreen video */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* In case the video doesn't load */
    position: absolute;
    z-index: 1;
  }
  
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
  }
  
  body {
    background-color: #111; /* Dark background */
    color: #fff;
  }
  
  h2, p {
    text-align: center;
    color: #fff;
  }
  
  /* Contact Section */
  .contact-section {
    background-color: #000; /* Black background */
    padding: 60px 20px;
  }
  
  .contact-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #d32f2f; /* Red color */
  }
  
  .contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc; /* Light gray text */
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Input Styles */
  .contact-form input[type="text"], 
  .contact-form input[type="email"], 
  .contact-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #222;
    border: 2px solid #444;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .contact-form input::placeholder, 
  .contact-form textarea::placeholder {
    color: #bbb; /* Light gray placeholder */
  }
  
  /* Button Styles */
  .contact-form button {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    background-color: #d32f2f; /* Red button */
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #b71c1c; /* Darker red on hover */
  }
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .contact-section {
      padding: 40px 20px;
    }
    
    .contact-form input[type="text"], 
    .contact-form input[type="email"], 
    .contact-form textarea, 
    .contact-form button {
      width: 100%;
    }
  }
/* Fade-in Animation for the Contact Form */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .contact-form {
    animation: fadeIn 0.8s ease-in-out;
  }
    


  /* the new code */


  h1 {
    text-align: center;
    color: #ff3d3d;
    animation: fadeIn 1.2s ease-in-out;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 61, 61, 0.3);
    animation: slideIn 0.8s ease-in-out;
}

.featured-cars {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.car-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    width: 280px;
    margin: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.car-card:hover img {
    transform: scale(1.1);
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 61, 61, 0.7);
}

.car-info {
    padding: 15px;
    color: #fff;
    text-align: left;
}

.car-info h3 {
    margin: 0;
    color: #ff3d3d;
}

.car-info p {
    font-size: 14px;
    color: #cccccc;
    margin-top: 5px;
}

.car-info .price {
    color: #28a745;
    font-size: 18px;
    margin-top: 10px;
}

.btn-explore {
    background-color: #ff3d3d;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.btn-explore:hover {
    background-color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-cars {
        flex-direction: column;
        align-items: center;
    }

    .car-card {
        width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}