/* ==========================================
   CARLIFE - STYLE.CSS
   PART 1
   Reset • Global • Navbar • Hero • Buttons
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:#ffffff;
    line-height:1.6;
}

/* ===========================
   Links
=========================== */

a{
    text-decoration:none;
    color:inherit;
}

/* ===========================
   Images
=========================== */

img{
    max-width:100%;
    display:block;
}

/* ===========================
   Container
=========================== */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* ===========================
   Header
=========================== */

header{
    width:100%;
    background:#111827;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 3px 10px rgba(0,0,0,.25);
}

/* ===========================
   Navbar
=========================== */

.navbar{

    width:90%;
    max-width:1300px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

/* ===========================
   Logo
=========================== */

.logo img{

    width:160px;
    height:auto;

}

/* ===========================
   Navigation
=========================== */

.nav-links{

    display:flex;
    align-items:center;
    list-style:none;
    gap:35px;

}

.nav-links li{

    list-style:none;

}

.nav-links a{

    color:#ffffff;
    font-size:16px;
    font-weight:600;
    transition:.3s;

}

.nav-links a:hover{

    color:#ff5b2e;

}

/* ===========================
   Buttons
=========================== */

.btn{

    display:inline-block;

    background:#ff5b2e;

    color:white;

    padding:13px 30px;

    border-radius:40px;

    font-weight:bold;

    transition:.3s;

    border:none;

    cursor:pointer;

}

.btn:hover{

    background:#ff7a54;

    transform:translateY(-2px);

}

/* ===========================
   Hero
=========================== */

.hero{

    min-height:88vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:80px 20px;

    background:
    linear-gradient(
    rgba(0,0,0,.65),
    rgba(0,0,0,.65)
    ),
    url("images/car-bg.png");

    background-size:cover;

    background-position:center;

}

.hero-content{

    max-width:800px;

}

.hero h1{

    font-size:58px;

    margin-bottom:20px;

    font-weight:700;

}

.hero p{

    color:#d1d5db;

    font-size:20px;

    line-height:1.8;

    margin-bottom:35px;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

/* ===========================
   Section Title
=========================== */

.section-title{

    text-align:center;

    margin-bottom:50px;

}

.section-title h2{

    font-size:42px;

    color:#ff5b2e;

    margin-bottom:10px;

}

.section-title p{

    color:#cbd5e1;

    font-size:18px;

}

/* ==========================================
   PART 2
   Services • Inventory • About • Contact
========================================== */


/* ===========================
   Services
=========================== */

.services{

    padding:80px 5%;

}

.service-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.service-card{

    background:#ffffff;

    color:#111827;

    padding:35px 30px;

    border-radius:15px;

    text-align:center;

    transition:.35s;

    box-shadow:0 8px 25px rgba(0,0,0,.15);

}

.service-card:hover{

    transform:translateY(-10px);

}

.service-card h3{

    font-size:24px;

    margin-bottom:15px;

    color:#111827;

}

.service-card p{

    color:#555;

    line-height:1.7;

}


/* ===========================
   Inventory
=========================== */

.inventory{

    padding:80px 5%;

    min-height:100vh;

}


/* Search + Filter */

.inventory-filter,

.inventory-controls{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

    margin-bottom:45px;

}

.inventory-filter input,

.inventory-filter select,

.inventory-controls input,

.inventory-controls select{

    width:260px;

    padding:14px;

    border-radius:10px;

    border:1px solid #334155;

    background:#1e293b;

    color:white;

    font-size:15px;

    outline:none;

}

.inventory-filter input:focus,

.inventory-filter select:focus,

.inventory-controls input:focus,

.inventory-controls select:focus{

    border-color:#ff5b2e;

}


/* Vehicle Grid */

.inventory-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}


/* Vehicle Card */

.car-card{

    background:#1e293b;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

}

.car-card:hover{

    transform:translateY(-10px);

}

.car-card img{

    width:100%;

    height:230px;

    object-fit:cover;

}

.car-info{

    padding:22px;

}

.car-info h3{

    font-size:25px;

    margin-bottom:12px;

}

.car-info p{

    color:#cbd5e1;

    margin-bottom:12px;

}

.car-info h4{

    color:#ff5b2e;

    font-size:28px;

    margin-bottom:20px;

}

.car-info .btn{

    width:100%;

    text-align:center;

}


/* ===========================
   About
=========================== */

.about{

    padding:90px 5%;

    min-height:100vh;

}

.about-content{

    max-width:900px;

    margin:auto;

    text-align:center;

}

.about-content h3{

    font-size:38px;

    margin-bottom:25px;

}

.about-content p{

    color:#cbd5e1;

    line-height:1.9;

    font-size:18px;

    margin-bottom:25px;

}


/* ===========================
   Contact
=========================== */

.contact{

    padding:90px 5%;

    min-height:100vh;

}

.contact-form{

    max-width:700px;

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-form input,

.contact-form textarea{

    background:#1e293b;

    color:white;

    border:1px solid #334155;

    border-radius:12px;

    padding:16px;

    font-size:16px;

    outline:none;

}

.contact-form input:focus,

.contact-form textarea:focus{

    border-color:#ff5b2e;

}

.contact-form textarea{

    resize:vertical;

    min-height:170px;

}

.contact-form .btn{

    width:220px;

}


/* ===========================
   Floating WhatsApp
=========================== */

.whatsapp-float{

    position:fixed;

    bottom:25px;

    right:25px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    font-size:30px;

    box-shadow:0 8px 20px rgba(0,0,0,.30);

    transition:.3s;

    z-index:999;

}

.whatsapp-float:hover{

    transform:scale(1.1);

}

/* ==========================================
   PART 3
   Car Details • Admin • Login
========================================== */


/* ===========================
   Car Details
=========================== */

.car-details{

    width:90%;
    max-width:1300px;

    margin:60px auto;

    display:flex;

    gap:50px;

    align-items:flex-start;

}

.car-gallery{

    flex:1;

}

.car-gallery #mainImage{

    width:100%;

    height:450px;

    object-fit:cover;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

.thumbnail-container{

    display:flex;

    gap:12px;

    margin-top:18px;

    flex-wrap:wrap;

}

.thumbnail{

    width:90px;

    height:70px;

    object-fit:cover;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;

    border:2px solid transparent;

}

.thumbnail:hover{

    border-color:#ff5b2e;

    transform:scale(1.05);

}

.details-info{

    flex:1;

}

.details-info h1{

    font-size:42px;

    margin-bottom:15px;

}

.details-info h2{

    font-size:34px;

    color:#ff5b2e;

    margin-bottom:20px;

}

.details-info p{

    color:#d1d5db;

    margin-bottom:12px;

    font-size:17px;

}

.description{

    margin:30px 0;

    line-height:1.9;

}

.whatsapp{

    display:inline-block;

    background:#25D366;

    color:white;

    padding:14px 28px;

    border-radius:30px;

    transition:.3s;

}

.whatsapp:hover{

    background:#1EBE5D;

}


/* ===========================
   Dashboard Cards
=========================== */

.dashboard-cards{

    width:90%;

    max-width:1200px;

    margin:40px auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.dashboard-box{

    background:#1e293b;

    padding:30px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

}

.dashboard-box h3{

    margin-bottom:10px;

}

.dashboard-box p{

    font-size:40px;

    color:#ff5b2e;

    font-weight:bold;

}


/* ===========================
   Admin Panel
=========================== */

.admin-panel{

    width:90%;

    max-width:900px;

    margin:50px auto;

}

.car-form{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.car-form label{

    font-weight:bold;

}

.car-form input,

.car-form select,

.car-form textarea{

    padding:15px;

    border:1px solid #334155;

    background:#1e293b;

    color:white;

    border-radius:10px;

    font-size:16px;

    outline:none;

}

.car-form input:focus,

.car-form select:focus,

.car-form textarea:focus{

    border-color:#ff5b2e;

}

.car-form textarea{

    resize:vertical;

    min-height:150px;

}

.car-form button{

    width:220px;

}


/* ===========================
   Image Preview
=========================== */

#imagePreview{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin-top:10px;

}

#imagePreview img{

    width:120px;

    height:90px;

    object-fit:cover;

    border-radius:8px;

}


/* ===========================
   Manage Cars
=========================== */

.admin-cars{

    width:90%;

    max-width:1200px;

    margin:60px auto;

}

#adminCarList{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

}

.admin-car-card{

    background:#1e293b;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

}

.admin-car-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.admin-car-card h3{

    padding:18px 18px 10px;

    font-size:22px;

}

.admin-car-card p{

    padding:0 18px;

    color:#d1d5db;

    margin-bottom:8px;

}

.admin-car-card .actions{

    display:flex;

    gap:10px;

    padding:18px;

}

.admin-car-card button{

    flex:1;

    padding:12px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    font-weight:bold;

}

.admin-car-card button:first-child{

    background:#2563eb;

    color:white;

}

.admin-car-card button:last-child{

    background:#dc2626;

    color:white;

}


/* ===========================
   Login
=========================== */

.login-box{

    width:90%;

    max-width:400px;

    margin:100px auto;

    background:#1e293b;

    padding:35px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.30);

    text-align:center;

}

.login-box h2{

    margin-bottom:25px;

}

.login-box input{

    width:100%;

    padding:15px;

    margin-bottom:18px;

    border-radius:10px;

    border:1px solid #334155;

    background:#0f172a;

    color:white;

    outline:none;

}

.login-box input:focus{

    border-color:#ff5b2e;

}

.login-box button{

    width:100%;

}

#error{

    color:#ef4444;

    margin-top:15px;

    font-size:15px;

}

/* ==========================================
   PART 4
   Footer • Responsive • Animations
========================================== */


/* ===========================
   Footer
=========================== */

footer{

    margin-top:60px;

    padding:35px 20px;

    background:#111827;

    text-align:center;

    border-top:1px solid #1e293b;

}

footer p{

    color:#cbd5e1;

    margin-bottom:10px;

}

.admin-link{

    color:#ff5b2e;

    font-weight:600;

    transition:.3s;

}

.admin-link:hover{

    color:#ffffff;

}


/* ===========================
   Utility Classes
=========================== */

.text-center{

    text-align:center;

}

.mt-20{

    margin-top:20px;

}

.mt-30{

    margin-top:30px;

}

.mt-40{

    margin-top:40px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-30{

    margin-bottom:30px;

}

.hidden{

    display:none;

}


/* ===========================
   Smooth Animation
=========================== */

.car-card,
.service-card,
.dashboard-box,
.admin-car-card{

    transition:all .3s ease;

}

.car-card:hover,
.service-card:hover,
.dashboard-box:hover,
.admin-car-card:hover{

    transform:translateY(-8px);

}


/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#ff5b2e;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ff7a54;

}


/* ===========================
   Mobile
=========================== */

@media(max-width:992px){

    .hero h1{

        font-size:46px;

    }

    .hero p{

        font-size:18px;

    }

}


@media(max-width:768px){

    /* Navbar */

    .navbar{

        flex-direction:column;

        gap:20px;

        text-align:center;

    }

    .nav-links{

        flex-direction:column;

        gap:15px;

    }

    .btn{

        width:100%;

        max-width:260px;

        text-align:center;

    }

    /* Hero */

    .hero{

        padding:100px 20px 70px;

    }

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:16px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    /* Inventory */

    .inventory-grid{

        grid-template-columns:1fr;

    }

    .inventory-filter,
    .inventory-controls{

        flex-direction:column;

    }

    .inventory-filter input,
    .inventory-filter select,
    .inventory-controls input,
    .inventory-controls select{

        width:100%;

        max-width:350px;

    }

    /* Car Details */

    .car-details{

        flex-direction:column;

    }

    .car-gallery #mainImage{

        height:300px;

    }

    .details-info{

        width:100%;

    }

    /* Forms */

    .contact-form,
    .car-form{

        width:100%;

    }

    .contact-form .btn,
    .car-form button{

        width:100%;

    }

    /* Dashboard */

    .dashboard-cards{

        grid-template-columns:1fr;

    }

    #adminCarList{

        grid-template-columns:1fr;

    }

}


@media(max-width:480px){

    .section-title h2{

        font-size:30px;

    }

    .hero h1{

        font-size:28px;

    }

    .hero p{

        font-size:15px;

    }

    .car-info h3{

        font-size:22px;

    }

    .details-info h1{

        font-size:30px;

    }

    .details-info h2{

        font-size:26px;

    }

    .logo img{

        width:140px;

    }

    .whatsapp-float{

        width:55px;

        height:55px;

        font-size:24px;

        right:18px;

        bottom:18px;

    }

}

.thumbnail.active-thumb{

    border:3px solid #ff5b2e;

    opacity:1;

}

.thumbnail{

    opacity:.8;

}

/* ===========================
   Image Preview
=========================== */

.preview-item{

    position:relative;

    width:120px;

}

.preview-item img{

    width:120px;

    height:90px;

    object-fit:cover;

    border-radius:10px;

    border:2px solid #334155;

}

.remove-image{

    position:absolute;

    top:-8px;

    right:-8px;

    width:24px;

    height:24px;

    border:none;

    border-radius:50%;

    background:#dc2626;

    color:#fff;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

}

.remove-image:hover{

    background:#b91c1c;

}
/* ==========================================
   END OF STYLESHEET
========================================== */