/* 
   Wuling EV Motors - Custom Stylesheet
   Modern & Sleek Design for EV Car Dealership
*/

:root {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --accent-color: #0d47a1;
    --light-color: #f5f5f5;
    --dark-color: #212121;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, #64b5f6, #1976d2);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--gradient-secondary);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.6);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-weight: 800;
    font-size: 1.5rem;    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 10px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 10px;
    position: relative;
    padding: 10px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    margin-top: -76px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(13, 71, 161, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-img {
    max-width: 100%;
    transform: scale(1.1);
    filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.3));
}

.hero-btns {
    margin-top: 2rem;
}

/* Models Section */
.model-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.model-img-container {
    height: 220px;
    overflow: hidden;
}

.model-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-img-container img {
    transform: scale(1.1);
}

.model-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.specs {
    margin: 1.5rem 0;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.spec-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
}

.price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Features Section */
.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Promo Section */
.promo-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #eee;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.promo-card.special {
    background: var(--gradient-secondary);
    color: white;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.promo-card.special .promo-badge {
    background: white;
    color: var(--accent-color);
}

.promo-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.promo-features {
    padding: 0;
    list-style-type: none;
    margin: 1.5rem 0;
}

.promo-features li {
    margin-bottom: 10px;
}

.promo-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.promo-card.special .promo-features i {
    color: white;
}

.promo-card.special .btn-primary {
    background: white;
    color: var(--primary-color);
}

.promo-card.special .btn-primary:hover {
    background: #f5f5f5;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Test Drive Section */
.test-drive-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.img-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.img-container img {
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #ffc107;
    margin-right: 3px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #f0f0f0;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: -1;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-user h5 {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-user span {
    color: #666;
    font-size: 0.9rem;
}

/* About Section */
.about-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
}

.about-img-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-img-grid img:hover {
    transform: scale(1.05);
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.about-feature i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
}

/* Contact Section */
.contact-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 5px;
}

.contact-item h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 5px;
    color: #666;
}

.social-media {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
}

/* Footer */
.footer {
    background-color: #0a2540;
    color: #fff;
}

.footer h4, .footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3b3b3;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    display: flex;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    transition: var(--transition);
}

.footer-social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-newsletter .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.footer-newsletter .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 12px 20px;
}

.footer-newsletter .btn {
    border-radius: 0 50px 50px 0;
    padding: 0 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
}

.footer-bottom-links li {
    margin-left: 20px;
}

.footer-bottom-links a {
    color: #b3b3b3;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.floating-btn i {
    font-size: 1.5rem;
}

/* Contact Modal */
.contact-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background: #f5f5f5;
    color: var(--dark-color);
    flex: 1;
    margin: 0 5px;
    transition: var(--transition);
}

.contact-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-option i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 10px 0;
        margin: 0;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-img {
        margin-top: 3rem;
    }
    
    .about-img-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .footer-bottom-links li {
        margin-left: 0;
        margin-right: 20px;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .back-to-top, .floating-contact {
        bottom: 20px;
    }
    
    .back-to-top {
        right: 20px;
    }
    
    .floating-contact {
        left: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Custom Animations for Sections */
[data-aos="custom-fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="custom-fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
