@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@100;300;400;500;600&display=swap');

:root{
    --yellow: #f1c40f;
  --menu-yellow: #f39c12;
    --blue-black: #2d3436;
    --red: #fc6969 ;
    --light-red: #f55c5c;
    --blue: #5470be;
    --light-blue: #365bc0;
    --border:.1rem solid rgba(99, 110, 114,1.0);
    --box-shadow:0 .5rem 1rem rgba(52, 73, 94,1.0);
}



*{
    font-family: 'Poppins', sans-serif;
    margin:0;
    padding:0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none ;
    text-transform: capitalize;
    transition: all .2s linear;
}


html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

section{
    padding: 2rem 9%;
}

.btn{
    display: inline-block;
    margin-top: 1rem;
    border-radius: .5rem;
    background: var(--blue);
    color: #ffff;
    font-weight: 500;
    font-size: 1.7rem;
    cursor: pointer;
    padding: .6rem 3rem;
}

.btn:hover{
    background: var(--light-blue);
}

.btn-reg{
    background: var(--blue);
    color: #fff;
}

.btn-reg:hover{
    background: var(--light-blue);
    color: #fff;
}



.header{
    position: fixed;
    display: flex;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 9%;
    
}


.header .logo{
    font-size: 2.5rem;
    color: var(--yellow);
    font-weight: bolder;
}

.header .logo span{
    color: var(--light-blue);
}

.header .navbar a{
    display: inline-block;
    font-size: 1.6rem;
    margin: 0 1rem;
    color: var(--blue-black);
}

.header .navbar a:hover{
    color: var(--menu-yellow);
}

.header .btn{
    margin-top: 0;
}


.header #admin-login i{
    font-size: 2.5rem;
    color: grey;
    cursor: pointer;
    display: none;
}

#menu-btn{
    font-size: 2.5rem;
    color: black;
    cursor: pointer;
    display: none;
}


.header.active{
    box-shadow: var(--box-shadow);
    padding: 2rem 9%;
}


.message{
    font-size: 1.2rem!important;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    background-color: #f0efef; 
    color: #f36674; 
    
}



.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #333;
    z-index: 1; 
}


.login-form-container{
    position: fixed;
    top: -105%;left: 0;
    z-index: 1000;
    height: 100%;
    width: 100%;
    background: rgba(60, 99, 130,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.login-form-container.active{
    top: 0;
    opacity: 1;
}

.login-form-container form{
    padding: 2rem;
    margin: 2rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    background: #fff;
    border: var(--border);
    text-align: center;
    width: 40rem;
}

.login-form-container form h3{

    color: var(--blue-black);
    font-size: 2.5rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

.login-form-container form .box{
    margin: .7rem 0;
    width: 100%;
    text-transform: none;
    color: var(--blue-black);
    font-size: 1.6rem;
    padding: 1rem 1.2rem;
    border: var(--border);
    border-radius: .5rem;
}

.login-form-container form p{
    padding: 1rem 0;
    font-size: 1.5rem;
    color: var(--blue);
}

.login-form-container form p a{
 color: var(--yellow);
text-decoration: underline;
}

.login-form-container #close-form{
    position: absolute;
    top: 1.5rem; right: 2.5rem;
    font-size: 5rem;
    color: var(--blue-black);
    cursor: pointer;
}






/* end of login form container */


/* Signup Form Container */
.signup-form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: var(--menu-yellow);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Header */
.signup-form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--blue-black);
    text-align: center;
}

/* Input Fields */
.signup-form-container .box {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.signup-form-container .box:focus {
    border-color: var(--menu-yellow);
}

/* Submit Button */
.signup-form-container .btn {
    width: 100%;
    padding: 0.8rem 0;
    background: var(--menu-yellow);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.signup-form-container .btn:hover {
    background: var(--blue);
}

/* Link Styling */
.signup-form-container p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.signup-form-container a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.signup-form-container a:hover {
    text-decoration: underline;
}





/*end of signup container*/

.home {
    padding-top: 10rem;
    text-align: center;
    overflow-x: hidden;
    height: 100vh;
    background: url('../images/wrangler.jpeg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.home::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* semi-transparent dark overlay */
    z-index: 1;
}

.home * {
    position: relative;
    z-index: 2;
}

.home .home-content {
    color: white;
    text-align: center;
}

.home .home-content h1 {
    font-size: 5.5vw;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease 0.5s forwards;
    opacity: 0;
}


.home .btn {
    margin-top: 2rem;
    font-size: 1.8rem;
}

#btn-land {
    background: var(--blue);
    color: #fff;
    font-size: 1.8rem;
    margin-top: 2rem;
    opacity: 0;
    animation: bounceIn 1s ease forwards;
    animation-delay: 0.5s;
    z-index: 5;
    position: relative;
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* About section  */
.about {
  background: #f8f9fc;
  padding: 6rem 3rem;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--blue-black);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.about-subtitle {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 4rem;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card {
  background: white;
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-card i {
  font-size: 3.8rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 2rem;
  color: var(--blue-black);
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1.5rem;
  color: #666;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* end of about section */

.cars span{
color: var(--blue-black);
}


.heading{
    font-size: 2rem;
    color: var(--blue-black);
    text-align: center;
}

.heading span{
    color: var(--blue-black);
}

.cars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for better responsiveness */
    gap: 1rem;
    margin-top: 1rem;
}

.cars-container .box {
    padding: 10px;
    border-radius: 1rem;
    box-shadow: 1px 4px 41px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Align items vertically */
}

.cars-container .box .box-image {
    width: 100%; /* Ensure it uses full width of the box */
    height: 200px;
    overflow: hidden; /* Prevent overflow */
}

.cars-container .box .box-image img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;
}

.cars-container .box .details {
    padding: 10px; /* Add padding for details */
}

.cars-container .box p {
    display: block;
    padding: 0 10px;
    border: 1px solid grey;
    width: fit-content; /* Adjust to fit content */
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.cars-container .box h3 {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
}

.cars-container .box h2 {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-black);
    margin: 0.2rem 0 0.5rem;
}

.cars-container .box h2 span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222f3e;
}

.cars-container .box .btn {
    display: flex;
    justify-content: center;
    background: var(--blue);
    color: #fff;
    padding: 10px;
    border-radius: 0.5rem;
    text-align: center; /* Center align text */
    transition: background-color 0.3s;
}

.cars-container .box .btn:hover {
    background-color: var(--light-blue);
}

/* Security Fee Style */
.cars-container .box .security-fee {
    font-size: 1.3rem;
    color: var(--menu-yellow);
    margin: 0.5rem 0 1rem;
    font-weight: 500;
}

/* Box animation and hover styling */
.cars-container .box {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInCard 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInCard {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cars-container .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Heading Enhancement */
.heading h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--blue-black);
    margin-top: 0.5rem;
}

/* Classification tag refinement */
.cars-container .box p {
    background-color: #f1f2f6;
    color: var(--blue-black);
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    border: none;
}



/*  Booking   */

.mast{
    width: 100%;
    height: 100vh;
    display: block;
    background-image: url('../images/back1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.booking-section {
    position: relative;
    max-width: 400px;
    justify-content: center;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    opacity: 0.9;

   
}

.booking-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background: var(--blue);
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--light-blue);
}



/*   end of booking segment       */



.footer {
    font-size: 1.5rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light-blue); /* matches your current palette */
}

.footer-text {
    color: #d1d1d1;
    max-width: 500px;
}

.footer-links a {
    display: block;
    color: #cccccc;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-blue);
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 0.8rem;
    color: #cccccc;
    font-size: 1.5rem;
}

.footer-contact i {
    font-size: 1.6rem;
    color: var(--light-blue);
    margin-right: 0.6rem;
}

.small-text {
    font-size: 1.3rem;
    color: #aaa;
}













/* media - queries */

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem;
    }

    .header.active {
        padding: 2rem;
    }

    section {
        padding: 2rem;
    }

    .about-container h1 {
        font-size: 1.7rem;
    }

    .about-subline {
        width: 500px; /* Ensures the text fits well */
    }

    .about-info {
        gap: 15px;
        justify-content: center;
    }

    .about-info-box {
        width: 100%; /* Makes it flexible */
        height: auto;
        max-width: 350px;
    }
}





@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }

    #menu-btn.fa-times {
        transform: rotate(90deg);
    }

    .header #admin-login i {
        display: block;
    }

    .header #admin-login .btn {
        display: none;
    }

    .header .navbar {
        position: absolute;
        top: 100%; 
        left: 0; 
        right: 0;
        background: #fff;
        border-top: var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .header .navbar a {
        display: block;
        margin: 1.5rem;
        font-size: 1.8rem;
    }

    .about-container h1 {
        font-size: 1.4rem;
        padding: 15px 0;
    }

    .about-subline {
        font-size: 1.3rem;
        width: 80%;
    }

    .about-info-box i {
        font-size: 4rem;
    }

    .about-info-box h5 {
        font-size: 1.4rem;
    }

    .about-info-box p {
        font-size: 1.2rem;
        width: 80%;
    }

    .cars-container .box img {
        width: 40%;
        margin: 0 auto;
    }
    
    .header {
    padding: 2rem 4%;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .home .home-content h1 {
    font-size: 3rem;
  }

  .signup-form-container {
    width: 90%;
  }
}





@media (max-width: 600px) {
    html {
        font-size: 50%;
    }

    .about-container h1 {
        font-size: 1.3rem;
        padding: 15px 0;
    }

    .about-subline {
        font-size: 1.1rem;
    }

    .about-info-box {
        max-width: 100%;
        min-height: auto;
    }

    .about-info-box i {
        font-size: 2.5rem;
    }

    .about-info-box h5 {
        font-size: 1.5rem;
    }

    .about-info-box p {
        font-size: 1rem;
    }

    .booking-section {
        width: 100%; /* Ensures it fits within mobile screens */
        padding: 10px;
    }

    .form-group label,
    .form-group input,
    .form-group select {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}
