/* Custom CSS for AutoParts Pro */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat center bottom;
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Features Section */
.features-section {
    background: #fff;
}

.feature-box {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-box i {
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cars Section */
.cars-section {
    min-height: 600px;
}

.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.car-image {
    height: 250px;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.car-info {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.car-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.car-features li {
    display: inline-block;
    background: var(--light-color);
    padding: 5px 12px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Parts Section */
.parts-section {
    background: white;
}

.part-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.part-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.part-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.part-category h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.part-count {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Services Section */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.5rem;
}

.service-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--light-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.contact-info {
    padding: 1rem;
}

.contact-info h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

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

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #0056b3;
}

/* Filter Buttons */
.btn-group .btn {
    border-radius: 25px !important;
    margin: 0 5px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-group .btn {
        margin: 5px;
    }
    
    .car-features li {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    body {
        padding-top: 70px;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* About Page Styles */
.team-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
}

.mvv-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.timeline-item {
    padding: 0.5rem 0;
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.timeline-year {
    font-size: 1.1rem;
}

.certification-badge {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.certification-badge:hover {
    transform: scale(1.05);
}

/* Parts Page Styles */
.parts-search .search-box {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.brand-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.installation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.installation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.quality-metrics {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.metric-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.metric-item:last-child {
    border-bottom: none;
}

/* Car Gallery Styles */
.stats-section .stat-item {
    padding: 1rem;
}

.filter-section {
    border-bottom: 1px solid #e9ecef;
}

.payment-calculator {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-range {
    margin: 0.5rem 0;
}

.estimated-payment {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Enhanced Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Newsletter Section */
.newsletter-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .page-header {
        min-height: 250px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .team-card {
        margin-bottom: 2rem;
    }
    
    .payment-calculator {
        padding: 1rem;
    }
    
    .quality-metrics {
        padding: 1rem;
    }
    
    .installation-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 200px;
    }
    
    .stats-section .row > div {
        margin-bottom: 1rem;
    }
    
    .brand-card {
        margin-bottom: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        margin-top: 0.5rem;
        border-radius: 0.375rem !important;
    }
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}