/*General*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: gray;
}

/*Contant*/
.contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.contact-info i {
    color: #e63946;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons a {
    color: #777;
    font-size: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    color: red;
    transform: translateY(-2px);
}

/*Latest*/
.latest {
    padding: 110px 8%;
    background-color: #dedfe0;
}


.latest-grid {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.latest-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #ed0606;
}

.latest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 1s;
}


.latest-item:hover img {
    transform: scale(1.07);
}

.latest-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.85)
        );
    color: rgb(255, 255, 255);
}

.latest-info h3 {
    margin-bottom: 7px;
    font-size: 18px;
    letter-spacing: 1px;
}

.latest-info p {
    color: #e63946;
    font-size: 12px;
    font-weight: bold;
}

/*Top Bar*/

.top-bar{
    height: 35px;
    background-color: #e6e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8%;
    font-size: 12px;
    color: #f30808;
}

/*Navigation*/

.navbar{
    height: 85px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0.8%;
    border-bottom: 1px solid red;
    font-size: 30px;
    font-weight: bold;
    color: #ff0000;
    letter-spacing: 2px;
}

nav{
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a{
    position: relative;
    padding: 12px 14px;
    text-decoration: none;
    color: black;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

nav a:hover{
    color: red;
}


nav a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    background-color: red;
    transform: translateX(-50%);
    transition: 1s;
}

nav a:hover::after{
    width: 70%;
}

nav a.active{
    color: red;
}

nav a.active::after{
    width: 70%;
}

.search-icon{
    font-size: 16px;
    color: black;
    cursor: pointer;
    transition: 0.3s;
    float: left;
}

.search-icon:hover{
    color: red;
    transform: scale(1.1);
}


/*Logo*/

.logo{
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo span:nth-child(1){
    color: black;
}

.logo span:nth-child(2){
    color: red;
}
.logo span:nth-child(3){
    color: black;
}

/*Hero*/
.hero{
    height: 650px;
    background-image: linear-gradient(rgba(0,0,0,0.7))
    ,url(../images/hero.png);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content{
    color: rgb(246, 244, 244);
    max-width: 850px;
    padding: 20px;
}

.hero-subtitle{
    display: block;
    margin-bottom: 18px;
    color: red;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero-content h1{
    line-height: 1.05;
    font-weight: 900;
    font-size: 68px;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.hero-content h1 span{
    color: red;
}

.hero-content p{
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 17px;
    line-height: 1.8;
    color: #ee0101;
}

.hero-button{
    align-items: center;
    gap: 12px;
    display: inline-block;
    padding: 16px 28px;
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 0, 0, 0.971);
    text-decoration: none;
    font-weight: bold;
    transition: 0.5s;
}

.hero-button:hover{
    transform: translateY(-3px);
    color: #0a0909;
    background-color: #ffffff;
}

.hero-button:hover i{
    transform: translateX(5px);
}

/*Section Title*/

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 32px;
    color: #ff0000;
    margin-bottom: 20px;
}

.section-title p {
    color: #fe0000;
    line-height: 1.8;
    font-size: 15px;
}

/*About*/
.about {
    padding: 100px 8%;
    background-color: rgb(251, 249, 249);
    color: #fbf8f8;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

.about-box {
    flex: 1;
    text-align: center;
    padding: 45px 30px;
    background-color: #976666;
    border: 1px solid red;
    transition: 0.5s;
    color: white;
}

.about-box:hover{
    transform: translateY(-10px);
    box-shadow: 20px 55px 40px rgba(0, 0, 0, 0.363);
}

.about-box h3{
    font-size: 17px;
    margin-bottom: 15px;
    color: #faf3f3;
    letter-spacing: 1px;
    transition: 0.3s;
}

.about-box:hover h3{
    color: red;
}

.about-box p{
    color: #777777;
    line-height: 1.8;
    font-size: 14px;
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border: 2px solid #fb0015;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ff0015;
    font-weight: bold;
    font-size: 28px;
    transition: 1s;
}

.about-box:hover .about-icon{
    background-color: red;
    color: rgb(0, 0, 0);
    transform: scale(1.08);
}

.performance-shape{
    border: 3px solid red;
    transform: rotate(45deg);
    border-radius: 12px;
}

.about-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0a0303;
}


.about-box p {
    color: #000000;
    line-height: 1.8;
    font-size: 14px;
}

/*  Cars */
.cars {
    padding: 100px 8%;
      background-color: rgb(249, 249, 249);
}

.cars-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 25px;
    background-color: rgb(251, 250, 250);
}

.car-card {
    flex: 1;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 1s;
    background-color: rgb(246, 245, 245);
}

.car-card:hover {
    transform: translateY(-8px);
}

.car-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    background-color: rgb(254, 250, 250);
}

.car-info {
    padding: 25px;
    text-align: center;
}

.car-info h3 {
    font-size: 16px;
    color: #030404;
    margin-bottom: 10px;
}

.car-info p {
    color: #fa0000;
    font-size: 13px;
}

/* CTA */
.cta {
    padding: 100px 20px;
    text-align: center;
    background-color: #ff7e7e;
}

.cta-content {
    max-width: 700px;
    margin: auto;
}

.cta h2 {
    font-size: 34px;
    color: #000000;
    margin-bottom: 20px;
}

.cta p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 30px;
}

/*Footer */
.footer {
    background-color: #ee1000;
    color: rgb(0, 0, 0);
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 70px 8%;
    display: flex;
    gap: 60px;
}

.footer-column {
    color: #000000;
    flex: 1;
}

.footer-column h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #000000;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-column p {
    color: #000000;
    line-height: 1.8;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-column a {
    display: block;
    color: #020101;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-column a:hover {
    color: rgb(250, 246, 246);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.6);
    padding: 20px 8%;
    text-align: center;
}

.footer-bottom p {
    color: #000000;
    font-size: 12px;
}

/*Responsive*/
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 25px;
        gap: 25px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        height: 500px;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .about-container {
        flex-direction: column;
        gap: 20px;
    }
    .cars-container {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
        gap: 35px;
    }

}