﻿/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

a{
    color:inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn:hover {
        background-color: #e60000;
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: #333;
}

    .btn-secondary:hover {
        background-color: #000;
    }

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

    .section-title:after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: #ff4d4d;
        margin: 10px auto;
    }

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4d;
    text-decoration: none;
}

    .navbar-logo span {
        color: #333;
    }

.navbar-menu {
    display: flex;
    list-style: none;
}

    .navbar-menu li {
        margin-left: 30px;
    }

    .navbar-menu a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .navbar-menu a:hover {
            color: #ff4d4d;
        }

.navbar-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/hero3-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Search/Filter Section */
.search-section {
    background-color: #f9f9f9;
    padding: 30px 0;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-group select, .form-group input {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-bottom: 5px;
    }

.search-button {
    background-color: #ff4d4d;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    grid-column: 1 / -1;
    margin-top: 15px;
}

/* Brands Carousel */
.brands-carousel {
    padding: 50px 0;
    background-color: white;
}

.brands-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    gap: 30px;
}

.brand-item {
    min-width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .brand-item:hover {
        transform: translateY(-5px);
    }

    .brand-item img {
        max-width: 80%;
        max-height: 80%;
    }

/* Stoc Section */
.stoc-section {
    background-color: #f9f9f9;
}

.stoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .car-card:hover {
        transform: translateY(-10px);
    }

.car-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.car-brand-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

    .car-brand-logo img {
        width: auto;
    }

.car-details {
    padding: 20px;
}

.car-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .car-spec i {
        color: #ff4d4d;
    }

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #ff4d4d;
}

.price-original {
    text-decoration: line-through;
    color: #999;
}

.car-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-petrol {
    background-color: #ffe0b2;
    color: #e65100;
}

.badge-diesel {
    background-color: #b2dfdb;
    color: #00695c;
}

.badge-ev {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.badge-hybrid {
    background-color: #dcedc8;
    color: #33691e;
}

.badge-phev {
    background-color: #bbdefb;
    color: #0d47a1;
}

.badge-lpg {
    background-color: #e1bee7;
    color: #6a1b9a;
}

.badge-body {
    background-color: #dddddd;
    color: #333;
}

/* Financing Section */
.financing-section {
    background-color: white;
    text-align: center;
}

.financing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.financing-option {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

    .financing-option h3 {
        margin-bottom: 15px;
        text-align: center;
    }

    .financing-option ul {
        list-style: none;
        margin-bottom: 20px;
    }

    .financing-option li {
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
        white-space:nowrap;
    }

    .financing-option i {
        color: #ff4d4d;
        margin-right: 10px;
        margin-top: 5px;
    }

/* About Section */
.about-section {
    background-color: #f9f9f9;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

    .about-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.about-content {
    flex: 2;
    min-width: 300px;
}

    .about-content h2 {
        margin-bottom: 20px;
        font-size: 32px;
    }

    .about-content p {
        margin-bottom: 15px;
    }

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .about-badge i {
        color: #ff4d4d;
    }

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    background-color: #ff4d4d;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-text h4 {
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 15px;
    display: inline-block;
}

    .footer-logo span {
        color: white;
    }

.footer-about {
    flex: 2;
    min-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer h3:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 2px;
        background-color: #ff4d4d;
    }

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

    .footer-links a:hover {
        color: #ff4d4d;
    }

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #ff4d4d;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

        .navbar-menu.active {
            display: flex;
        }

        .navbar-menu li {
            margin: 0;
            padding: 10px 20px;
        }

    .navbar-toggle {
        display: block;
    }

    .hero {
        height: 500px;
        padding: 0 20px;
    }

        .hero h1 {
            font-size: 36px;
        }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container, .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        margin-bottom: 30px;
    }
}
