/* home-modern.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ff6f00;
    /* Existing orange */
    --primary-dark: #e65100;
    --primary-light: #ffb74d;
    --secondary-color: #111827;
    /* Deep modern navy/slate */
    --light-bg: #fafafa;
    /* Off-white background */
    --card-bg: #ffffff;
    --border-color: #f3f4f6;
    --text-main: #374151;
    --text-muted: #6b7280;
    --success-color: #10b981;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Island Navbar */
.island-navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.75rem 0;
}

.island-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    padding: 0.5rem 0;
}

.navbar-brand img.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.navbar-brand:hover img.brand-logo {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    border-radius: 30px;
    transition: all 0.2s ease;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255, 111, 0, 0.08);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(175deg);
}

@media (max-width: 991px) {
    .island-navbar {
        border-radius: 20px;
        padding: 0.5rem 0;
    }

    .island-navbar .collapse {
        background: white;
        margin-top: 1rem;
        border-radius: 15px;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Modern Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 111, 0, 0.3);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 111, 0, 0.4);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Glass Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    background: transparent;
    border: none;
    padding: 0 1rem;
    min-width: 160px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* Modern Card Design (Vehicles & Sellers) */
.vehicle-card,
.seller-card,
.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.vehicle-card:hover,
.seller-card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.vehicle-image,
.blog-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.vehicle-image img,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehicle-card:hover img,
.blog-card:hover img {
    transform: scale(1.05);
}

/* Badges */
.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 111, 0, 0.95);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.featured-badge,
.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Card Content Details */
.vehicle-info,
.blog-content {
    padding: 1.75rem;
}

.vehicle-title,
.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Swiper overrides */
.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Buttons */
.btn-view-details {
    width: 100%;
    background: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sellers */
.seller-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.seller-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--light-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.seller-stats {
    display: flex;
    justify-content: space-around;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.seller-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-view-seller {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-seller:hover {
    background: var(--primary-color);
    color: white;
}

.verified-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--secondary-color), #1e293b);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.testimonial-rating i {
    color: #fbbf24;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-transform: uppercase;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 3rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-stat {
        min-width: 100%;
        padding: 0.5rem;
    }

    .hero-stat:not(:last-child)::after {
        display: none;
    }

    .hero-stat-number {
        font-size: 2.2rem;
    }
    
    .hero-section {
        background-attachment: scroll; /* Fix for mobile background zoom bug */
    }
}