.hero-section {
    /* Let content drive the height — no forced viewport fill */
    min-height: auto;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(2, 132, 199, 0.4) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Floating Animation for Hero Image */
@keyframes floatUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    /* reduced from -20px to stay within bounds */
    100% {
        transform: translateY(0);
    }
}

.float-animation {
    animation: floatUp 4s ease-in-out infinite;
    /* will-change keeps animation on GPU — avoids layout side-effects */
    will-change: transform;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hero-section .row {
    align-items: center;
}

.hero-section .btn {
    min-width: 180px;
    font-weight: 600;
    transition: all 0.3s ease;
}

a.explore-btn:hover,
a.explore-btn:focus {
    background-color: #e0f2fe !important;
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4) !important;
}

.hero-section .btn-outline-primary:hover {
    background-color: #e0f2fe !important;
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
}

.hero-section .d-flex.gap-3 {
    flex-wrap: wrap;
}

/* Quick Search Section Positioning & Overlap */
.quick-search-section {
    position: relative;
    z-index: 10;
    margin-top: -3.5rem;
}

@media (max-width: 991.98px) {
    .quick-search-section {
        margin-top: -1rem;
    }
}

@media (max-width: 576px) {
    .quick-search-section {
        margin-top: 0;
    }
}

#vehicles .card,
.vehicles-section .card,
.features-section .card {
    min-height: 260px;
}

#vehiclesList .card {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
}

#vehiclesList .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.premium-feature-card {
    min-height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.1) !important;
}

.premium-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.premium-feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--brand) !important;
    color: white !important;
}

.hero-section .vehicle-image {
    font-size: 7rem;
}

.faq .accordion-button {
    border-radius: 1rem;
}

.faq .accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* Reviews Carousel Styles */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.review-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: visible !important;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25) !important;
    background: rgba(255, 255, 255, 0.9);
}

.review-stars i {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.review-card:hover .review-stars i {
    transform: scale(1.2);
    color: #f59e0b !important;
}

.review-card:hover .review-stars i:nth-child(2) {
    transition-delay: 50ms;
}

.review-card:hover .review-stars i:nth-child(3) {
    transition-delay: 100ms;
}

.review-card:hover .review-stars i:nth-child(4) {
    transition-delay: 150ms;
}

.review-card:hover .review-stars i:nth-child(5) {
    transition-delay: 200ms;
}

.review-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

@media (max-width: 576px) {
    .review-avatar {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }
}

.review-card:hover .review-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--brand) !important;
}

.contact-section {
    background: var(--surface);
    border-radius: 2rem;
    padding: 2rem 1rem;
}

.contact-section .card {
    border-radius: 1.5rem;
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        /* padding handled by base.css .hero-section overrides */
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2.5rem 0;
    }

    .hero-section .col-lg-7,
    .hero-section .col-lg-5 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #vehicles .text-lg-end {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-section .vehicle-image {
        font-size: 5rem;
    }
}

/* ── MOBILE RESPONSIVE HERO ── */
.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem) !important;
    line-height: 1.2 !important;
}

.stat-number {
    font-size: clamp(1.2rem, 5vw, 2rem);
}

.stat-number i {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

.stat-label {
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: 20px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .hero-subtitle {
        max-width: 95%;
        font-size: 15px;
    }

    .hero-action-buttons {
        flex-direction: row;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    .hero-stats-row {
        margin-top: 24px !important;
        margin-bottom: 12px !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 576px) {
    .hero-action-buttons {
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-btn {
        width: 100%;
        height: 48px;
    }
}