/* ========================================
   Modern CSS Variables & Design System
   ======================================== */
:root {
    /* Primary Colors */
    --orange-primary: #e67e22;
    --orange-hover: #cf6d1e;
    --orange-light: #eb984e;
    --dark-blue: #1e3a8a;
    --dark-blue-light: #2563eb;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e67e22 0%, #eb984e 100%);
    --gradient-dark: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(230, 126, 34, 0.3) 100%);
    --gradient-card: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(230, 126, 34, 0.4) 100%);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.2);
    --shadow-orange: 0 8px 24px rgba(230, 126, 34, 0.35);
    --shadow-blue: 0 8px 24px rgba(30, 58, 138, 0.25);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    background-color: var(--gray-50);
    line-height: 1.7;
    color: var(--gray-700);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.lead {
    font-size: 1rem;
}

.display-3 {
    font-size: 2.5rem;
}

.display-5 {
    font-size: 2rem;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: var(--transition-base);
    border-bottom: 1px solid var(--gray-100);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
    transition: var(--transition-base);
}

.navbar-brand:hover {
    color: var(--orange-primary);
}

.navbar a {
    transition: var(--transition-base);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.navbar a:hover {
    color: var(--orange-primary) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Cards
   ======================================== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: white;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

#services .card {
    height: 100%;
}

#services .card:hover {
    border-color: var(--gray-300);
}

.card-body {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.card-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Vehicle Cards
   ======================================== */
.vehicle-card {
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.vehicle-image {
    height: 220px;
    background-image: url('../images/car-photo-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vehicle-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    transition: var(--transition-base);
    z-index: 1;
}

.vehicle-image > div {
    position: relative;
    z-index: 1;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    border: none;
}

.btn-orange {
    background: var(--orange-primary);
    color: white;
}

.btn-orange:hover {
    background: var(--orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.btn-orange:active {
    transform: translateY(0);
}

.btn-orange.active {
    background: var(--orange-primary) !important;
}

.btn-outline-orange {
    border: 1.5px solid var(--orange-primary);
    color: var(--orange-primary);
    background-color: transparent;
}

.btn-outline-orange:hover {
    background-color: var(--orange-primary);
    color: #fff !important;
    border-color: var(--orange-primary);
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    border: none;
}

.btn-success:hover {
    background: #059669 !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-outline-secondary {
    transition: var(--transition-base);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--gray-700);
    border-color: var(--gray-700);
    color: white;
}

/* ========================================
   Forms
   ======================================== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
    font-size: 0.9rem;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--dark-blue-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none;
    background-color: white;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--dark-blue-light) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   Badges & Status
   ======================================== */
.badge {
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    font-size: 0.7rem;
}

.status-badge-new {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.status-badge-used {
    background: var(--orange-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

/* Status badge on vehicle image */
.vehicle-image .badge.position-absolute {
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Vehicle price styling */
.vehicle-price {
    font-size: 1em;
    color: var(--dark-blue);
}

/* View Details Link */
.view-details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dark-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: var(--transition-base);
}

.view-details-link:hover {
    background-color: var(--orange-primary);
    color: #fff;
}

.view-details-link i {
    transition: transform 0.3s ease;
}

.view-details-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   Filter Buttons
   ======================================== */
.filter-btn {
    background-color: var(--gray-300);
    color: var(--gray-700);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-smooth);
    padding: 2px 12px!important;
    border-radius: 3px;
}

.filter-btn:hover {
    background-color: var(--gray-400);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark-blue);
    padding: 3.5rem 0 2rem;
    color: var(--gray-400);
    position: relative;
    overflow: hidden;
    font-size: 12px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

footer a {
    color: var(--gray-400);
    transition: var(--transition-base);
    text-decoration: none;
}

footer a:hover {
    color: white !important;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 5rem 0;
    position: relative;
}

section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-2xl);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
}

.hero-content h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange-primary);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-orange {
    color: var(--orange-primary);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.min-vh-50 {
    min-height: 250px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transition: var(--transition-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-section {
        padding: 60px 0;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .card-body {
        padding: var(--spacing-lg);
    }
}

/* ========================================
   Smooth Scrolling
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Selection Style
   ======================================== */
::selection {
    background-color: var(--orange-primary);
    color: white;
}

::-moz-selection {
    background-color: var(--orange-primary);
    color: white;
}

/* ========================================
   Loading States
   ======================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   Accessibility
   ======================================== */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--orange-primary);
    outline-offset: 2px;
}

/* ========================================
   Social Media Icons
   ======================================== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.1);
}

/* ========================================
   Service Cards & Icons
   ======================================== */
.service-card {
    transition: var(--transition-base);
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300) !important;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    background: var(--orange-primary);
}

.service-icon {
    font-size: 2rem;
    color: var(--dark-blue);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    color: white;
}

/* ========================================
   Vehicle Specs List
   ======================================== */
.vehicle-specs {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.vehicle-specs li {
    display: flex;
    align-items: center;
    padding: 0.20rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.vehicle-specs li:last-child {
    border-bottom: none;
}

.vehicle-specs i {
    width: 20px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* ========================================
   Category Cards
   ======================================== */
.category-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    background: white;
    border: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card:hover h5 {
    color: var(--orange-primary);
}

.category-image {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .category-image {
        height: 80px;
    }

    .category-card {
        padding: 1rem 0.75rem;
    }

    .category-card h5 {
        font-size: 0.9rem;
    }
}

/* ========================================
   Navbar Social Icons
   ======================================== */
.navbar-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--gray-600);
    transition: var(--transition-base);
    text-decoration: none;
}

.navbar-social-icon:hover {
    background: var(--gray-100);
    color: var(--orange-primary) !important;
    transform: translateY(-2px);
}


.navbar-social-icon i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.navbar-social-icon:hover i {
    transform: scale(1.1);
}

/* ========================================
   VIN Check Results
   ======================================== */
.vin-results .bg-white {
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.vin-results .bg-white:hover {
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-sm);
}

.vin-results small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#vin-result .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    color: #065f46;
}

#vin-result .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
}

#vin-result .alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #991b1b;
}