/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: white;
    background-color: #1e1e1e;
    line-height: 1.6;
}

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

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

header .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

header .logo h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

header nav ul li a:hover {
    color: #ffcc00;
}

header .contact-btn {
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

header .contact-btn:hover {
    background-color: #e6e6e6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    /* Ensure the hamburger is above other content */
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg);
    top: -8px;
}

/* Sidebar Menu */
.sidebar {
    height: 100%;
    width: 300px;
    position: fixed;
    top: 0;
    left: -300px;
    background-color: #1e1e1e;
    z-index: 1050;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.sidebar ul li a:hover {
    color: #ffcc00;
}

.sidebar .contact-btn {
    margin-top: auto;
}

/* Hero Section */
#hero {
    position: relative;
    background: url('./images/m.png') no-repeat center center/cover;
    height: 100vh;
    /* Adjust to full height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    /* Ensure padding for small screens */
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 90%;
    /* Ensure content is well spaced */
}


.hero-content .button {
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-content .button:hover {
    background-color: #e6e6e6;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header nav ul {
        display: none;
    }

    header .contact-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #hero {
        height: auto;
        padding: 40px 20px;
    }


    .hero-content .button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .hero-content h1 {
        font-size: 20px !important;

    }


}

/* Hero Section */
#hero {
    position: relative;
    background: url('./images/m.png') no-repeat center center/cover;
    height: 726px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.hero-content {
    z-index: 1;
    max-width: 80%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content .button {
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-content .button:hover {
    background-color: #e6e6e6;
}

#about {
    padding: 50px 20px;
    background-color: #1e1e1e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#about h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.description {

    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
}

.about-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;

    border: 1px solid #444;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: #ffcc00;
}

.icon {

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4b4b4b;
    width: 64px;
    height: 64px;
    padding: 12px;
    border-radius: 24px;

}



.text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.text br {
    display: none;
}

@media (min-width: 768px) {
    .text br {
        display: inline;
    }


}


/* Adjusting body padding to avoid header overlay */
#order-process {
    width: 100%;
    padding: 50px 20px;
    background-color: #1e1e1e
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#order-process h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
    /* padding-left: 40px; */
}

.order-process-title {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;

}



/* .description {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #d3d3d3;
} */

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.step {
    flex: 1;
    padding: 20px;
    max-width: 220px;
    position: relative;
    /* Ensure step number stays relative to its parent */
    text-align: center;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    /* right: -10px; */
    /* right: -0px; */
    /* Adjust depending on spacing between steps */
    width: calc(150% + 200px);
    /* Extend to next step */
    height: 2px;
    background-color: #d3d3d3;
    z-index: 0;
}

.step:last-child::after {
    display: none;
    /* Remove the line after the last step */
}

.icon {
    margin-bottom: 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 50%;
    /* Aligns with the line */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e6e6e6;
    color: #262626;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
    /* Ensures step number stays on top */
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.step p {
    margin-top: 90px;
    font-size: 0.9rem;
    color: #d3d3d3;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        height: 100%;
    }

    .step {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .step::after {
        display: none;
        /* Remove the lines for mobile view */
    }
}

#brands {
    padding: 50px 20px;
    background-color: #1e1e1e
}

.brandcontainer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.content {
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

#brands h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    /* padding-left: 40px; */
}



.branddescription {
    font-size: 12px;
    margin-bottom: 40px;
    color: #d3d3d3;
}

.button {
    padding: 10px 20px;
    background: none;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #ffcc00;
    color: #262626;
    border-color: #ffcc00;
}

.brand-logos {
    width: 100%;
    overflow-x: scroll;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 20px;
    max-width: 50%;
}
.brand-logos img {
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .brand-logos {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

#car-brands {
    padding: 50px 20px;
    background-color: #1e1e1e
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#car-brands h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;

}



#car-brands p {
    font-size: 12px;
    text-align: start;
    margin-bottom: 40px;
    color: #d3d3d3;
}

.brand-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* gap: 20px; */
}

.brand-item {

    font-size: 1rem;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    /* Ensures consistent height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: calc(0.9rem + 0.2vw);
    /* Dynamic font size based on viewport width */
}

.brand-item.long-text {
    font-size: 0.9rem;
    /* Slightly smaller font size for longer text */
}

@media (max-width: 768px) {
    .brand-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .brand-list {
        grid-template-columns: 1fr;
    }

    .brand-item {
        white-space: normal;
        /* Allows text to wrap on smaller screens */
        font-size: 0.9rem;
        /* Adjust font size for smaller screens */
    }
}

#contact {
    padding: 50px 20px;
    background-color: #000000;
}

.contactcontainer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-form {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    max-width: 40%;

    flex: 1;
}

.contact-form h3 {
    font-size: 0.9rem;
    color: #d3d3d3;
    margin-bottom: 10px;
}

.contact-form h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-form form {
    display: flex;
    flex-direction: column;

}

.contact-form input {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #262626;
    color: white;
    font-size: 1rem;
}

.contact-form input::placeholder {
    color: #888;
}

.contact-form button {
    padding: 15px;
    background-color: white;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e6e6e6;
}

.contact-form .privacy {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
}

.contact-details {
    max-width: 40%;


    text-align: right;
    flex: 1;

    height: 100%;
}

.sizedbox {
    height: 120px;
}

.contact-details h3 {
    font-size: 0.9rem;
    color: #d3d3d3;
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 768px) {
    .contactcontainer {
        flex-direction: column;

    }

    .sizedbox {
        height: 20px;
    }

    .contact-form {
        width: 100%;

    }

    .contact-form,
    .contact-details {
        max-width: 100%;
        text-align: center;
        align-items: flex-start;
    }

    .contact-details {
        margin-top: 30px;
        text-align: start;
    }

    .social-icons {
        justify-content: start;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Optional: adds a slight upward movement */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    /* Initially hide the element */
    transform: translateY(10px);
    /* Optional: start with slight downward position */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    animation-fill-mode: forwards;
    /* Ensures the element stays in the end state of the animation */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease-out forwards;
    /* Play the fadeIn animation */
}