@import url("variables.css");
@import url("common.css");
@import url("responsive.css");



.hero{

    width:95%;

    margin:18px auto;

}

.hero img{

    width:100%;

    height:620px;

    object-fit:cover;

    border-radius:28px;

}

.search-card{
    width:60%;
    background:var(--surface-color);
    border: var(--card-border);
    margin:auto;
    margin-top:-95px;
    position:relative;
    z-index:10;
    border-radius:22px;
    padding:35px;
    box-shadow:var(--shadow);
    color: var(--text-main);
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.top h1{
    font-size:42px;
    color: var(--text-main);
}

.top p{
    display:flex;
    align-items:center;
    gap:5px;
}

.search-city{
    display:flex;
    flex-direction: row;
    align-items:center;
    gap:5px;
    background-color: #00000000;
    border : none;
    font-size: 20px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-city:hover {
    color: var(--primary-color);
}

.tabs{
    margin:30px 0;
    display: flex;
    gap: 15px;
}

.tabs button{
    padding:13px 32px;
    border:none;
    border-radius:30px;
    font-size:20px;
    cursor:pointer;
    background: var(--bg-color);
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.tabs button:hover {
    background: var(--surface-hover);
    color: var(--text-main);
}

.tabs button.active{
    background:var(--primary-color);
    color:white;
}

.input-box{
    display:flex;
    align-items:center;
    border:1px solid var(--border-color);
    background: var(--bg-color);
    border-radius:40px;
    padding:15px 25px;
    transition: var(--transition);
}

.input-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.15);
    background: var(--surface-color);
}

.input-box input{
    width:100%;
    border:none;
    outline:none;
    font-size:18px;
    background: transparent;
    color: var(--text-main);
}

/*==============================
SECTION
===============================*/

.popular{

    margin-top:150px;
    padding:40px 0;

}

/*==============================
HEADER
===============================*/

.section-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:30px;

}

.section-header h2{

    font-size:32px;
    color:var(--black);

}

.section-header a{

    color:var(--primary-color);
    text-decoration:none;
    font-weight:600;

}

/*==============================
GRID
===============================*/

.car-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

/*==============================
CARD
===============================*/

.car-card{

    background:var(--white);

    border-radius:var(--radius-lg);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.car-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-hover);

}

.car-image{

    height:220px;

    overflow:hidden;

}

.car-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.4s;

}

.car-card:hover img{

    transform:scale(1.08);

}

.car-details{

    padding:20px;

}

.car-details h3{

    margin-bottom:10px;

}

.price{

    color:var(--primary-color);

    font-weight:600;

    margin-bottom:10px;

}

.rating{

    color:var(--primary-color);

    margin-bottom:20px;

}

.car-details button{

    width:100%;

    height:45px;

    border:none;

    border-radius:var(--radius-md);

    background:var(--primary-color);

    color:var(--text-on-primary, #000000);

    cursor:pointer;

    transition:.3s;

    font-weight: 600;

}

.car-details button:hover{

    background:var(--text-main);
    color: var(--surface-color);

}

/*==================================
BRAND SLIDER
==================================*/

.brand-slider-section{
    padding:60px 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.slider{
    width:100%;
    overflow:hidden;
    position:relative;
}

.slide-track{
    display:flex;
    align-items:center;
    width:max-content;
    animation:scroll 25s linear infinite;
}

.slide-track:hover{
    animation-play-state:paused;
}

.brand-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin: 0 25px;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(229, 169, 59, 0.25);
    border-color: var(--primary-color);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



@keyframes scroll{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(-50%);

    }

}

/*==============================
Upcoming Cars
==============================*/

.upcoming{

    padding:70px 0;

}

.launch-date{

    color:var(--light-text);

    margin:12px 0;

    font-size:15px;

}

.electric{

    padding:70px 0;

}

/*==============================
LATEST NEWS
==============================*/

.news{

    padding:70px 0;

}

.news-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.news-card{

    background:var(--white);

    border-radius:var(--radius-lg);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.news-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-hover);

}

.news-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.news-content{

    padding:20px;

}

.news-content h3{

    font-size:20px;

    margin-bottom:15px;

}

.news-content p{

    color:var(--light-text);

    line-height:1.6;

    margin-bottom:15px;

}

.news-content span{

    color:var(--primary-color);

    font-weight:600;

}










