/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;500;700;800&display=swap');

:root {
    /* Premium Palette */
    --primary-color: #4e54c8;
    --primary-gradient: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    --secondary-color: #1a1a2e;
    --accent-color: #ff2e63;
    --text-dark: #1a1a2e;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Components --- */

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 84, 200, 0.5);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid #4e54c8;
    color: #4e54c8;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Inputs */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    background: #fdfdfd;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.1);
    border-color: var(--primary-color);
}

/* --- Header & Nav --- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    font-size: 1rem;
    padding: 10px 18px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(78, 84, 200, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    /* Animation handled by AOS or initial load script if preferred */
}

.hero-btn-group {
    /* Animation handled by AOS */
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* --- Car Listing --- */
.car-box {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
    /* Only animate shadow on global hover */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}

.car-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
    transform: translateZ(20px);
    /* Pop out effect */
}

.car-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Image Zoom Effect */
.car-box:hover .car-thumbnail img {
    transform: scale(1.1);
}

/* Content Styling */
.car-content {
    padding: 25px;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: var(--secondary-color);
}

.car-box:hover .car-title {
    color: var(--primary-color);
}

.car-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

/* Feature Badges */
.car-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.car-feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.car-feature-badge i {
    margin-right: 8px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.car-feature-badge:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


/* --- Testimonials --- */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
}

/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    margin-top: 80px;
}

footer h6 {
    color: #fff;
    margin-bottom: 30px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
}

/* --- Why Choose Us --- */
.feature-box {
    background: #fff;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-box .icon-box {
    transition: transform 0.3s ease;
}

.feature-box:hover .icon-box {
    transform: scale(1.1);
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helpers */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-custom {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- Premium Google-Style Search Bar --- */
.futuristic-search-wrapper {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    /* Optimal reading width */
    margin-left: auto;
    margin-right: auto;
    z-index: 1000;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    /* Fully rounded */
    padding: 8px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Clean, subtle Google-like shadow */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.search-input-group:focus-within {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Lift effect */
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.05);
}

.search-icon {
    color: #9aa0a6;
    /* Google gray */
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.search-input-group:focus-within .search-icon {
    color: var(--primary-color);
    /* Highlight on focus */
}

.futuristic-search-input {
    border: none;
    background: transparent;
    padding: 12px 0;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    height: 100%;
}

.futuristic-search-input:focus {
    outline: none;
    box-shadow: none;
}

.futuristic-search-input::placeholder {
    color: #999;
    font-weight: 400;
    opacity: 1;
}

.search-highlight {
    display: none;
    /* Removed for cleaner look */
}

/* Suggestions Dropdown - Google Style */
.suggestions-dropdown {
    margin-top: 5px;
    /* Slight gap or attached */
    border-radius: 24px;
    /* Matches search bar curves */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
    padding: 10px 0;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .futuristic-search-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .search-input-group {
        padding: 6px 20px;
    }

    .futuristic-search-input {
        font-size: 1rem;
    }
}



/* --- Dynamic Search Hero --- */
.search-hero-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
    position: relative;
}

.search-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.search-hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}


.search-suggestions-wrapper {
    position: relative;
    z-index: 1001;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    /* Attach to input */
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: hidden;
    display: none;
    text-align: left;
    border-top: 1px solid #f0f0f0;
}

.suggestions-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.suggestion-item {
    padding: 10px 25px;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.suggestion-item:hover {
    background: #f1f3f4;
    /* Google hover color */
}

.suggestion-item i {
    color: #9aa0a6;
    margin-right: 15px;
    font-size: 0.9rem;
}


.suggestion-type {
    font-size: 0.75rem;
    color: #5f6368;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    display: none;
}

/* Google-like Active State from Keyboard */
.suggestion-item.active {
    background: #e8f0fe;
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-hero-content h2 {
        font-size: 2rem;
    }

    .search-input-group {
        padding: 5px 15px;
    }

    .futuristic-search-input {
        font-size: 1rem;
    }
}