/* BestAutoSales.In - Modern Design 2025 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Modern Hero Section */
#heroCarousel {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Overlay removed - text directly on image with shadow */

.hero-slide > .container {
    position: relative;
    z-index: 2;
}

.hero-slide h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-slide p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-slide .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Buttons */
.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Modern Car Cards */
.car-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: var(--shadow-md);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.car-card:hover::before {
    opacity: 0.05;
}

.car-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover img {
    transform: scale(1.1);
}

.car-card .card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.car-card .badge {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-featured {
    background: var(--gradient-2);
    color: white;
}

/* Modern Feature Cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--gradient-1);
    color: white;
    font-size: 2rem;
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Modern Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Modern Gallery Slider */
#customerGallery {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

#customerGallery .carousel-item {
    transition: transform 0.8s ease-in-out;
}

#customerGallery .carousel-item img {
    height: 550px;
    object-fit: cover;
    border-radius: 30px;
    width: 100%;
}

#customerGallery .carousel-control-prev,
#customerGallery .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#customerGallery:hover .carousel-control-prev,
#customerGallery:hover .carousel-control-next {
    opacity: 1;
}

#customerGallery .carousel-control-prev:hover,
#customerGallery .carousel-control-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

#customerGallery .carousel-control-prev {
    left: 20px;
}

#customerGallery .carousel-control-next {
    right: 20px;
}

#customerGallery .carousel-control-prev-icon,
#customerGallery .carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

#customerGallery .carousel-indicators {
    bottom: 30px;
    gap: 8px;
}

#customerGallery .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#customerGallery .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.4);
    background: var(--primary);
}

@media (max-width: 768px) {
    #customerGallery .carousel-item img {
        height: 350px;
        border-radius: 20px;
    }
    
    #customerGallery {
        border-radius: 20px;
    }
    
    #customerGallery .carousel-control-prev,
    #customerGallery .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 0.8;
    }
    
    #customerGallery .carousel-control-prev {
        left: 10px;
    }
    
    #customerGallery .carousel-control-next {
        right: 10px;
    }
    
    #customerGallery .carousel-indicators {
        bottom: 15px;
    }
}

/* Modern Brand Grid */
.brand-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.brand-card img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s;
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Modern Stats Section */
.stats-section {
    background: var(--gradient-1);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Top Bar Styles */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    transition: all 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0 !important;
    }
    
    .top-bar .col-md-6:last-child {
        display: none;
    }
    
    .top-bar .mx-2 {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Modern Navbar Enhancement */
.navbar {
    backdrop-filter: blur(10px);
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary) !important;
}

/* Mobile Menu Fix */
.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(99, 102, 241, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* Desktop Menu Alignment */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
    
    .navbar-nav .btn {
        margin-left: 1rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: transparent;
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
        background: rgba(248, 250, 252, 0.8);
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1) !important;
        color: var(--primary) !important;
    }
    
    .nav-link.active {
        background: rgba(99, 102, 241, 0.15) !important;
        color: var(--primary) !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .navbar-nav .btn {
        margin-top: 1rem;
        width: 100%;
        padding: 0.875rem;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
    }
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 450px;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    #customerGallery .carousel-item img {
        height: 350px;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hover Effects for Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Brand Card Styles */
.brand-card {
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.5rem;
}

/* Brand logo images - no hover effect */
.brand-card img {
    transition: none;
}

.brand-card:hover img {
    transform: none;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    margin-top: 3rem;
}

.stats-section h2 {
    color: white;
}

.stats-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Mobile Filter Offcanvas */
.offcanvas {
    max-width: 320px;
}

.offcanvas-header {
    background: var(--gradient-1);
    padding: 1.5rem;
}

.offcanvas-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .form-label {
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offcanvas-body .form-select,
.offcanvas-body .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    transition: all 0.3s;
}

.offcanvas-body .form-select:focus,
.offcanvas-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

.offcanvas-body .btn {
    border-radius: 10px;
    padding: 0.875rem;
    font-weight: 600;
}

/* Mobile Filter Button */
.d-lg-none .btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.d-lg-none .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .carousel-control-prev, .carousel-control-next {
        display: none !important;
    }
}
