/* Google Fonts - Poppins for a modern, clean look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #0f8bf7;
    /* Vibrant Blue */
    --primary-dark: #0a58ca;
    --primary-gradient: linear-gradient(135deg, #0f8bf7 0%, #06b6d4 100%);

    /* Neutral Colors */
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --bg-body: #f3f4f6;
    --bg-white: #ffffff;

    /* UI Elements */
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;
    --shadow-soft: 0 10px 40px -10px rgba(0, 64, 128, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(0, 64, 128, 0.1);

    /* Spacing */
    --section-padding: 5rem 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-medium);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-nav-cta {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(15, 139, 247, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 139, 247, 0.35);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: #0f172a;
    /* Dark fallback */
    padding: 160px 0 100px;
    overflow: hidden;
}

/* Dark overlay gradient */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1485291571150-772bcfc10da5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.search-widget label {
    color: #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.search-widget .form-select {
    background-color: #fff;
    border: none;
    height: 50px;
    font-weight: 500;
}

/* --- Cards (Vehicles) --- */
.vehicle-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.vehicle-img-wrapper {
    height: 240px;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-img-wrapper img {
    width: 90%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.badge-category {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.8em;
    border-radius: 6px;
    text-transform: uppercase;
}

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.spec-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item i {
    color: var(--primary-color);
    opacity: 0.8;
}

.price-section .label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.price-section .amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-card-action {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    box-shadow: 0 4px 10px rgba(15, 139, 247, 0.2);
}

.btn-card-action:hover {
    color: white;
    filter: brightness(105%);
    box-shadow: 0 6px 15px rgba(15, 139, 247, 0.3);
}

/* --- Features Section --- */
.feature-box {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #f3f4f6;
    height: 100%;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: rgba(15, 139, 247, 0.3);
    box-shadow: var(--shadow-soft);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 5rem;
    font-size: 0.95rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer a {
    color: #94a3b8;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- Page Headers --- */
.page-header {
    background: #1e293b;
    padding: 6rem 0 3rem;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
}

.page-header h1 {
    color: white;
}

/* --- Forms --- */
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 139, 247, 0.1);
}

/* --- Utilities --- */
.text-primary-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}