/* ==========================================
   GLOBAL STYLES & RESET
=========================================== */
:root {
    --primary-color: #2563eb;    /* Royal Blue */
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;  /* Dark Slate */
    --accent-color: #f59e0b;     /* Amber/Gold */
    --bg-light: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================
   BUTTONS
=========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1e293b;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f1f5f9;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==========================================
   HEADER & NAVIGATION
=========================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================
   HERO BANNER & SEARCH TABS
=========================================== */
.hero {
    background: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
    padding: 120px 0 140px 0;
    color: var(--white);
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 650px;
    margin-bottom: 40px;
}

/* Search Wrapper */
.search-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    width: 100%;
    max-width: 950px;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    text-align: left;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
}

.btn-search {
    height: 46px;
    justify-content: center;
}

/* ==========================================
   CAR GRID & CARDS (Rent / Buy)
=========================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 30px;
    color: var(--secondary-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 5px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    z-index: 10;
}

.rent-badge {
    background-color: #059669; /* Green */
}

.buy-badge {
    background-color: var(--accent-color); /* Amber */
}

.car-img {
    height: 200px;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-img img {
    transform: scale(1.05);
}

.car-content {
    padding: 20px;
}

.car-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.car-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-color);
}

.car-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.car-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================
   FEATURES SECTION
=========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    text-align: center;
    padding: 35px 25px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px auto;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   CTA SECTION
=========================================== */
.cta-section {
    padding: 40px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.cta-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.cta-text p {
    color: #e2e8f0;
}

/* ==========================================
   FOOTER
=========================================== */
.footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 70px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN (Mobile & Tablet)
=========================================== */
@media (max-width: 992px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .header-actions {
        display: none; /* Hide header CTA on mobile */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}