@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
}

:root {
    --main-color: #FE5B3D;
    --second-color: #FFAC38;
    --text-color: #444444;
    --gradient: linear-gradient(#FE5B3D, #FFAC38);
}

html::-webkit-scrollbar {
    width: 0.5rem;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5rem;
}

section {
    padding: 50px 100px;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #EEEFF1;
    padding: 15px 100px;
}

.logo img {
    width: 40px;
}

.navbar {
    display: flex;
}

.navbar li {
    position: relative;
}

.navbar a {
    font-size: 1rem;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
}

.navbar a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--gradient);
    bottom: -4px;
    left: 0;
    transition: .5s;
    position: absolute;
}

.navbar a:hover::after {
    width: 100%;
}

header .ri-close-line {
    display: none;
}

#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 110;
    display: none;
}

.header-btn a {
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
}

.header-btn .sign-in {
    background: #474FA0;
    color: #FFFFFF;
    border-radius: .5rem;
    transition: .5s;
}

.header-btn .sign-in:hover {
    background: var(--main-color);
}

/* ==========================================================================
   UPDATED: Home Section (Fixed Side-by-Side Flexbox Layout)
   ========================================================================== */
.home {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    /* ADDED: Extra bottom padding to push the layout up, clearing the form */
    padding: 100px 100px 160px;
}

/* Explicit layout widths for the content items */
.home .text {
    flex: 1;
    max-width: 45%;
    /* Limits text block to under half the screen */
    z-index: 5;
}

.text h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.text span {
    color: var(--main-color);
}

.text p {
    margin: 0.5rem 0 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
}


/* ==========================================================================
   UPDATED: Form Container (Cleaned positions and hover states)
   ========================================================================== */
.form-container form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    /* Aligns the button cleanly with the input boxes */
    gap: 1.5rem;
    background: #FFFFFF;
    padding: 24px;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* Styling for the dropdowns to match your input text design system */
.form-container form .spec-select {
    padding: 7px;
    outline: none;
    border: none;
    background: #EEEFF1;
    border-radius: .5rem;
    font-size: 1rem;
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    width: 100%;
    min-width: 180px;
    appearance: none;
    /* Removes default browser arrow styling */
    -webkit-appearance: none;
    /* Custom clean arrow that matches your text color */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M0 3l5 5 5-5z' fill='%23444444'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

/* Ensure form aligns properly beneath the layout elements */
.form-container {
    /* FIXED: Position absolute anchors it safely to the bottom of .home */
    position: absolute;
    bottom: 3rem;
    left: 100px;
    /* ADDED: Explicit right anchor forces the container to stretch horizontally */
    right: 100px;
    z-index: 10;
}

.form-container form .btn:hover {
    background: var(--main-color);
}

/* ==========================================================================
   UPDATED: Carousel Engine (Positions Slider Window inside Flexbox)
   ========================================================================== */
.carousel-container {
    flex: 1;
    max-width: 50%;
    /* Keeps carousel restricted to the right half */
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card {
    position: absolute;
    width: 290px;
    /* Standard sizing window for car assets */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, z-index 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.car-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 12px 15px rgba(0, 0, 0, 0.15));
    mix-blend-mode: multiply;
    /* Cuts out white background cards automatically */
}

/* --- THE 5 SLOTS MATRIX --- */
.far-left {
    transform: translateX(-180px) scale(0.55);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    /* Stops inactive items from blocking clicks */
}

.left-center {
    transform: translateX(-100px) scale(0.75);
    opacity: 0.6;
    z-index: 2;
}

.active-center {
    transform: translateX(0) scale(1.15);
    /* Scales hero car up beautifully */
    opacity: 1;
    z-index: 3;
}

.right-center {
    transform: translateX(100px) scale(0.75);
    opacity: 0.6;
    z-index: 2;
}

.far-right {
    transform: translateX(180px) scale(0.55);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

/* --- Navigation Controls --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FFFFFF;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background: #EEEFF1;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}


/* Ride */

.heading {
    text-align: center;
}

.heading span {
    font-weight: 500;
    text-transform: uppercase;
}

.heading h1 {
    font-size: 2rem;
}

.ride-container {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.ride-container .box {
    text-align: center;
    padding: 20px;
}

.ride-container .box i {
    font-size: 34px;
    padding: 10px;
    background: #EEEFF1;
    border-radius: .5rem;
    color: var(--main-color);
}

.ride-container .box i:hover {
    background: var(--gradient);
    color: #FFFFFF;
}

.ride-container .box h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 1.4rem 0 0.5rem;
}

/* Services */

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.services-container .box {
    padding: 10px;
    border-radius: 1rem;
    box-shadow: 1px 4px 41px rgba(0, 0, 0, .1);
}

.services-container .box .box-img {
    width: 100%;
    height: 200px;
}

.services-container .box .box-img img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;
}

.services-container .box p {
    padding: 0 10px;
    border: 1px solid var(--text-color);
    width: 58px;
    border-radius: .5rem;
    margin: 1rem 0 1rem;
}

.services-container .box h3 {
    font-weight: 500;
}

.services-container .box h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
    margin: 0.2rem 0 0.5rem;
}

.services-container .box h2 span {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-color);
}

.services-container .box .btn {
    display: flex;
    justify-content: center;
    background: #474FA0;
    color: #FFFFFF;
    padding: 10px;
    border-radius: .5rem;
    transition: .5s;
}

.services-container .box .btn:hover {
    background: var(--main-color);
}

/* About */

.about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.about-img img {
    width: 100%;
}

.about-text span {
    font-weight: 500;
    color: var(--main-color);
    text-transform: uppercase;
}

.about-text p {
    margin: 0.5rem 0 1.4rem;
}

.about-text .btn {
    padding: 10px 20px;
    background: #474FA0;
    color: #FFFFFF;
    border-radius: .5rem;
    transition: .5s;
}

.about-text .btn:hover {
    background: var(--main-color);
}

/* Reviews */

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    gap: 1rem;
    margin-top: 2rem;
}

.reviews-container .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 1px 4px 4px rgba(0, 0, 0, .1);
    border-radius: .5rem;
}

.reviews-container .box h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: .5rem 0 .5rem;
}

.reviews-container .box p {
    font-style: italic;
}

.reviews-container .box i {
    color: var(--main-color);
}

.rev-img {
    width: 70px;
    height: 70px;
}

.rev-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);
}

/* Newsletter */

.newsletter {
    background: linear-gradient(to top right, #FE5B3D, #FFAC38);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
}

.newsletter .box {
    margin-top: 1rem;
    background: #FFFFFF;
    border-radius: .5rem;
    padding: 4px 8px;
    width: 350px;
    display: flex;
    justify-content: space-between;
}

.newsletter .box input {
    border: none;
    outline: none;
}

.newsletter .box .btn {
    background: #474FA0;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: .5rem;
}

.copyright {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright span {
    font-family: 'Turret Road';
}

.social a {
    color: #444444;
    padding: 10px;
    font-size: 21px;
}

/* Responsive Customization Fixes */
@media(max-width: 1375px) {

    /* Kept text active so it does not completely disappear on medium layouts */
    .text {
        display: block;
    }
}

@media(max-width: 991px) {
    header {
        padding: 18px 40px;
    }

    section {
        padding: 50px 40px;
    }
}

@media(max-width: 881px) {
    .home {
        flex-direction: column;
        /* Stacks layout neatly on tablets */
        padding-bottom: 240px;
    }

    .form-container .form {
        bottom: 0.2rem;
        left: 40px;
    }

    .carousel-container {
        max-width: 100%;
        width: 100%;
    }
}

@media(max-width: 795px) {
    header {
        padding: 11px 40px;
    }

    #menu-icon {
        display: initial;
    }

    .sign-up {
        display: none;
    }

    .text h1 {
        font-size: 2.5rem;
        width: 100%;
    }

    .text p {
        font-size: .8rem;
        width: 100%;
    }

    .form-container form {
        position: unset;
    }

    header .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #FFFFFF;
        box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
        transition: .2s ease;
        text-align: left;
    }

    .navbar.active {
        top: 100%;
    }

    .navbar a {
        padding: 1rem;
        border-left: 2px solid var(--main-color);
        margin: 1rem;
        display: block;
        transition: .3s ease;
    }

    .navbar a:hover {
        color: #FFFFFF;
        background: var(--main-color);
        border: none;
    }

    .navbar a::after {
        display: none;
    }

    .heading span {
        font-size: .9rem;
        font-weight: 600;
    }

    .heading h1 {
        font-size: 1.3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img {
        padding: 1rem;
        order: 1;
    }

    .about-text {
        order: 2;
    }
}

@media(max-width: 568px) {
    .text h1 {
        width: 100%;
    }

    .text p {
        width: 100%;
    }

    .form-container {
        padding-top: 2rem;
    }

    .about-text p {
        font-size: 14px;
    }

    .copyright {
        flex-direction: column;
    }

    .newsletter .box {
        width: 284px;
    }

    .car-card {
        width: 200px;
    }

    /* Shrinks down carousel slots on tiny phones */
}

@media(max-width: 460px) {
    header {
        padding: 6px 14px;
    }

    .logo img {
        width: 30px;
    }

    section {
        padding: 50px 6px;
    }

    .header-btn .sign-in {
        padding: 7px 10px;
        font-size: 14px;
        font-weight: 400;
    }

    .text h1 {
        font-size: 2rem;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(254px, auto));
    }
}