/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: #e94560;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e94560;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/337909/pexels-photo-337909.jpeg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/2127733/pexels-photo-2127733.jpeg');
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideUp 1s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 1.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #e94560;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    animation: slideUp 1.4s ease;
}

.btn-primary:hover {
    background: #c73652;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-nav button {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(255,255,255,0.6);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #e94560;
}

/* Search Section */
.search-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.search-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.search-bar {
    max-width: 900px;
    margin: 0 auto;
}

.search-bar form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 150px;
}

.btn-search {
    padding: 12px 30px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #c73652;
}

/* Car Types */
.car-types {
    padding: 60px 0;
}

.car-types h2 {
    text-align: center;
    margin-bottom: 40px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.type-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.type-item:hover {
    transform: translateY(-5px);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.type-item h3 {
    font-size: 1rem;
}

/* Featured Vehicles */
.featured-vehicles {
    padding: 60px 0;
    background: #fafafa;
}

.featured-vehicles h2 {
    text-align: center;
    margin-bottom: 40px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e94560;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.vehicle-info .brand {
    color: #666;
    margin-bottom: 10px;
}

.vehicle-info .price {
    font-size: 1.5rem;
    color: #e94560;
    font-weight: bold;
    margin-bottom: 10px;
}

.vehicle-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.vehicle-actions {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-inquiry {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view {
    background: #1a1a2e;
    color: #fff;
}

.btn-view:hover {
    background: #2a2a4e;
}

.btn-inquiry {
    background: #e94560;
    color: #fff;
}

.btn-inquiry:hover {
    background: #c73652;
}

/* About Us */
.about-us {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.achievement-item h3 {
    font-size: 2.5rem;
    color: #e94560;
    margin-bottom: 5px;
}

.achievement-item p {
    margin: 0;
    opacity: 0.8;
}

/* Brands */
.brands-section {
    padding: 60px 0;
}

.brands-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.brand-item img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.brand-item h3 {
    font-size: 0.9rem;
    text-align: center;
}

/* Reviews */
.reviews-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.star.filled {
    color: #ffc107;
}

.star {
    color: #ddd;
}

.review-card p {
    margin-bottom: 15px;
    font-style: italic;
}

.review-card h4 {
    color: #1a1a2e;
}

/* Partners */
.partners-section {
    padding: 60px 0;
}

.partners-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.partners-marquee {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.partner-item {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 20px;
}

.partner-item img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #c73652;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .search-bar form {
        flex-direction: column;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-nav button {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 20% 20px;
        padding: 20px;
    }
}