body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('images/hero-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* HEADER */

.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    width: 240px;
    max-width: 90%;
    height: auto;
}

/* HERO */

.hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .hero h2 {
        font-size: 36px;
        margin-bottom: 10px;
    }

/* DASHBOARD */

.dashboard-flat {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.gauge-flat {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
}

.needle-flat {
    position: absolute;
    width: 4px;
    height: 70px;
    background: red;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.1s linear;
}

.digitalValue {
    position: absolute;
    bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    color: #00ffff;
}

/* GALLERY GRID */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px;
}

/* CAR CARD */

.car-card {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* IMAGE AREA (fixed ratio so all cards match) */

.car-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    /* IMAGE */

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* DETAILS */

.car-details {
    padding: 12px;
    text-align: center;
}

    .car-details h3 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .car-details p {
        margin: 3px 0;
        font-size: 14px;
    }

/* MOBILE */

@media screen and (max-width:768px) {

    .hero h2 {
        font-size: 28px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gauge-flat {
        width: 140px;
        height: 140px;
    }

    .needle-flat {
        height: 60px;
    }

    .digitalValue {
        font-size: 26px;
    }
}
