* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #172a32;
    color: #333;
}

/* NAVBAR */
nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    width: 100%;
    padding: 30px 40px;
}

.titleHeader {
    color: white;
    text-decoration: none;
    margin-bottom: 100px;
    transition: all 0.3s ease;
}

.titleHeader:hover {
    color: #00c6ff;
}


.navItems a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 30px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.navItems a:hover {
    color: #00c6ff;
}

.page-padding {
    padding-top: 90px;
}

.transparent-nav {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
}


/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("https://source.unsplash.com/1600x900/?car") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
}

.hero p {
    margin: 30px 0;
    font-size: 1.3rem;
}

.hero a {
    padding: 14px 30px;
    background: #00c6ff;
    color: black;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.hero a:hover{
    color: #00c6ff;
    background-color: white;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* GRID */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* CAR CARD */
.car-card {
    background: rgb(213, 213, 213);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-info {
    padding: 20px;
}

.price {
    font-weight: bold;
    margin: 10px 0;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    background: #2c5364;
    color: white;
    cursor: pointer;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-body {
    padding: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* CONTACT */
.contact-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-container h1{
    color: white;
}

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

.contact-box button {
    width: 100%;
    transition: all 0.2s ease;
}

.contact-box button:hover {
    scale: 1.01;
    background-color: #172a32;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        padding: 50px;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
        width: 100%;
        padding: 30px 0;
        justify-content: space-around;
    }

    .navItems {
        background-color: #2c5364;
        margin-top: 20px;
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .navItems a {
        font-size: 1rem;
        padding: 20px 0;
        align-items: center;
    }

    .titleHeader {
        font-size: 1.5rem;
    }
}
