/* ==========================================
   GLOBAL STYLES & RESET
=========================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --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;
}

/* ==========================================
    মোবাইল রেস্পন্সিভ ও টেক্সট কন্ট্রোল
=========================================== */
/* ডিফল্টভাবে মোবাইল টেক্সট ডেস্কটপে হাইড থাকবে */
.hero-mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        aspect-ratio: 4 / 3; /* মোবাইলের জন্য চাইলে অনুপাত এডজাস্ট করতে পারেন, ১৬:৯ রাখতে চাইলে এটি বাদ দিতে পারেন */
        max-height: 350px; /* মোবাইল স্ক্রিনের জন্য উচ্চতা সীমিত রাখা */
        padding-bottom: 20px;
    }

    /* মোবাইল ভার্সনে ডেস্কটপের মূল টেক্সট (h1 এবং p) হাইড থাকবে */
    .hero-text {
        display: none !important;
    }

    /* মোবাইল ভার্সনে শুধু এই ছোট টেক্সটটি শো করবে */
    .hero-mobile-text {
        display: block !important;
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
        letter-spacing: 0.5px;
    }
}


/* ==========================================
   HERO BANNER (16:9 Clear Image/Video & Text Position)
=========================================== */
.hero {
    background: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=1920&q=95') center/cover no-repeat;
    width: 100%;
    aspect-ratio: 16 / 9; /* ডেস্কটপ ও মোবাইলে ১৬:৯ অনুপাত */
    max-height: 550px;
    position: relative;
    display: flex;
    align-items: flex-end; /* লেখাগুলো একদম নিচের দিকে থাকবে */
    justify-content: center;
    padding-bottom: 40px; /* নিচের দিকে মার্জিন */
}

/* যদি ভিডিও ব্যবহার করেন তবে তার স্টাইল */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* পরিষ্কারভাবে ফুটিয়ে তুলতে শ্যাডো */
}

.hero-text p {
    font-size: 16px;
    color: #f8fafc;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* ==========================================
   HERO SERVICES SECTION (Strictly Below Hero Image/Video)
=========================================== */
.hero-services-section {
    position: relative;
    margin-top: 35px; /* হিরো ইমেজের নিচে গ্যাপ রাখার জন্য পজিটিভ মার্জিন */
    z-index: 10;
    padding: 0 15px;
}

/* Desktop: 4 Columns in a Row */
.hero-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual Hero Card */
.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 1. Rent a Car (Soft Blue - প্রায় ৭০% টোন) */
.hero-card:nth-child(1) {
    background-color: #dbeafe;
    border-color: #bfdbfe;
}
.hero-card:nth-child(1) .card-icon {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.15);
}
.hero-card:nth-child(1) .card-content h3 {
    color: #1e3a8a;
}

/* 2. Buy a Car (Soft Green) */
.hero-card:nth-child(2) {
    background-color: #d1fae5;
    border-color: #a7f3d0;
}
.hero-card:nth-child(2) .card-icon {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}
.hero-card:nth-child(2) .card-content h3 {
    color: #064e3b;
}

/* 3. Car Parts (Soft Orange) */
.hero-card:nth-child(3) {
    background-color: #ffedd5;
    border-color: #fed7aa;
}
.hero-card:nth-child(3) .card-icon {
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}
.hero-card:nth-child(3) .card-content h3 {
    color: #7c2d12;
}

/* 4. Hire Driver (Soft Red) */
.hero-card:nth-child(4) {
    background-color: #fee2e2;
    border-color: #fecaca;
}
.hero-card:nth-child(4) .card-icon {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}
.hero-card:nth-child(4) .card-content h3 {
    color: #7f1d1d;
}

/* Card Icon Box Style */
.hero-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Card Title Style */
.hero-card .card-content h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Hover Effects */
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hero-card:hover .card-icon {
    transform: scale(1.08);
}

/* Responsive Design: Mobile Devices (2x2 Grid) */
@media (max-width: 768px) {
    .hero-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .hero-card .card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .hero-card .card-content h3 {
        font-size: 13px;
    }
}

/* ==========================================
   CAR GRID & OTHER SECTIONS
=========================================== */
.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;
}

.buy-badge {
    background-color: var(--accent-color);
}

.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 & CTA (Optimized & Responsive)
=========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px; /* উপরের অতিরিক্ত খালি জায়গা কমানো হলো */
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md, 12px);
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 10px 25px rgba(0, 0, 0, 0.06));
    border-color: #cbd5e1;
}

.feature-icon {
    width: 65px;
    height: 65px;
    background-color: #eff6ff;
    color: var(--primary-color, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px auto;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-color, #0f172a);
}

.feature-box p {
    color: var(--text-muted, #64748b);
    font-size: 13.5px;
    line-height: 1.5;
}

.cta-section {
    padding: 25px 0; /* উপরের ও নিচের খালি জায়গা কমিয়ে ব্যালেন্স করা হলো */
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--primary-dark, #1d4ed8));
    border-radius: var(--radius-md, 14px);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white, #fff);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    gap: 20px;
}

.cta-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-text p {
    color: #e2e8f0;
    font-size: 14px;
    margin: 0;
}

/* ==========================================
   মোবাইল রেস্পন্সিভ অপ্টিমাইজেশন
=========================================== */
@media (max-width: 768px) {
    .features-grid {
        margin-top: 15px;
        gap: 16px;
    }

    .feature-box {
        padding: 24px 18px;
    }

    .cta-section {
        padding: 15px 0;
    }

    .cta-box {
        flex-direction: column; /* মোবাইলে লেখা ও বাটন নিচে নিচে সেন্টারে থাকবে */
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 20px;
    }
    
    .cta-text p {
        font-size: 13px;
    }
}



/* ==========================================
   CTA SECTION STYLES
=========================================== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

/* ব্যাকগ্রাউন্ড ডেকোরেশন (ঐচ্ছিক লুক বাড়াতে) */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cta-text p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* বাটন প্রাইমারি স্টাইল */
.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 'কার বিক্রি করুন' বাটন */
.cta-buttons .btn-sell {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-buttons .btn-sell:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 'ড্রাইভার হিসেবে যোগ দিন' বাটন */
.cta-buttons .btn-driver {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.cta-buttons .btn-driver:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN (Mobile & Tablet)
=========================================== */
@media (max-width: 991px) {
    .cta-box {
        padding: 30px;
    }
    .cta-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .cta-text p {
        font-size: 14px;
    }

    .cta-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}
