/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #171a20;
    overflow-x: hidden;
    background: #fff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Tesla Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 250px;
    width: auto;
    max-width: 750px;
    filter: brightness(0);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: #171a20;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #171a20;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #5c5e62;
}

.nav-link::after {
    content: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Tesla Full Screen Style */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #000;
    color: white;
    padding: 80px 40px 60px;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1440px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.btn {
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #171a20;
    border: 3px solid transparent;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #171a20;
}

.btn-outline {
    background: transparent;
    color: #171a20;
    border: 3px solid #171a20;
}

.btn-outline:hover {
    background: #171a20;
    color: white;
}

.hero-image {
    display: none;
}

.car-showcase {
    display: none;
}

/* Features Section - Tesla Clean Style */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 4rem;
    color: #171a20;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: transparent;
    padding: 2rem 1rem;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #171a20;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #171a20;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: #5c5e62;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Featured Cars Section */
.featured-cars {
    padding: 100px 0;
    background: #f4f4f4;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.car-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Sold Car Styling */
.car-card.sold-car {
    opacity: 0.85;
}

.car-card.sold-car:hover {
    opacity: 1;
}

.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.3);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.5rem;
    user-select: none;
}

.sold-badge-small {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.05rem;
}

.carfax-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.carfax-badge img {
    display: block;
    width: 60px;
    height: auto;
    border-radius: 2px;
}

.car-image {
    height: 240px;
    background: linear-gradient(135deg, #e5e5e5, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #a0a0a0;
}

.car-info {
    padding: 1.75rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #171a20;
    letter-spacing: -0.3px;
}

.car-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #5c5e62;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #171a20;
    margin-bottom: 1rem;
}

.car-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* About Section - Tesla Minimalist Style */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #171a20;
    letter-spacing: -0.5px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #5c5e62;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #171a20;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #5c5e62;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e5e5e5, #f0f0f0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #a0a0a0;
}

/* Contact Section - Tesla Clean Style */
.contact {
    padding: 100px 0;
    background: #f4f4f4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: #171a20;
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #171a20;
    letter-spacing: -0.3px;
}

.contact-item p {
    color: #5c5e62;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #fff;
    color: #171a20;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #171a20;
    box-shadow: 0 0 0 1px #171a20;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer - Tesla Minimalist Style */
.footer {
    background: #171a20;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: transparent;
    color: #a0a0a0;
    border-radius: 0;
    border: 1px solid #3c3c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: white;
    color: #171a20;
    border-color: white;
}

.footer-bottom {
    border-top: 1px solid #3c3c3c;
    padding-top: 2rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.8125rem;
}

/* Responsive Design - Tesla Optimized */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 4px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .logo {
        height: 200px;
        max-width: 600px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hero {
        padding: 100px 20px 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
        max-width: 300px;
    }

    .features,
    .featured-cars,
    .about,
    .contact {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .navbar {
        padding: 2px 0;
    }

    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 16px 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .logo {
        height: 175px;
        max-width: 500px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-logo {
        gap: 12px;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 10px 30px;
    }
}

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

/* Loading animation - Tesla Style */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #171a20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages - Clean Style */
.message {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
    border-left: 3px solid;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
