/* ---------- BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #eee;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- HEADER ---------- */
header {
    position: relative;
    height: 40vh;
    background: url('../images/lexus.webp') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

header.visible {
    opacity: 1;
    transform: translateY(0);
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

header h1 {
    position: relative;
    font-size: 3rem;
    font-weight: 600;
    z-index: 1;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: #111;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid #222;
}

.navbar a {
    color: #ccc;
    text-decoration: none;
    margin: 0 20px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: gold;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    height: 500px;
    background: url('../images/lexus-hero.jpg') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 700px;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

/* ---------- BUTTONS ---------- */
.button {
    background: gold;
    color: #000;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.button:hover {
    background: #caa400;
    transform: translateY(-2px);
}

/* ---------- SECTIONS ---------- */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid gold;
    padding-left: 12px;
    margin-bottom: 40px;
}

/* ---------- FEATURES ---------- */
/* ---------- FEATURES (Why Choose Lexus) ---------- */
.features {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: center;    /* Center horizontally */
    gap: 30px;              /* Space between boxes */
}

.feature {
    width: 320px;           /* Fixed width for consistency */
    max-width: 90%;         /* Ensure it scales on mobile */
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature:hover {
    transform: translateY(-5px);
    background: #222;
}

.feature img {
    width: 100%;
    height: auto; /* Make responsive */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.feature h3 {
    color: #d4af37;
    font-size: 22px;
    margin-bottom: 10px;
}

.feature p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}



/* ---------- FEATURED MODELS ---------- */
.model-grid {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: center;    /* Center horizontally */
    gap: 30px;              /* Space between cards */
    margin-top: 30px;
}

.model-card {
    background: #1a1a1a;
    border-radius: 12px;
    width: 320px;          /* Fixed width for consistency */
    max-width: 90%;        /* Ensure it scales on mobile */
    padding: 20px;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}


.model-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.model-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.model-card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.model-card h3 {
    color: #d4af37;
    font-size: 22px;
    margin-bottom: 10px;
}

.model-card p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ---------- CALL TO ACTION ---------- */
.about-cta {
    background: linear-gradient(135deg, #111, #1a1a1a);
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #333;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.about-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-cta h2 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 28px;
}

.about-cta p {
    color: #ccc;
    font-size: 17px;
    margin-bottom: 25px;
}

/* ---------- FOOTER ---------- */
footer {
    background: #0a0a0a;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 13.5px;
    border-top: 1px solid #222;
    letter-spacing: 0.5px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .features, .model-grid {
        justify-content: center;
        gap: 20px;
    }

    .feature, .model-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    header {
        height: 30vh;
    }

    header h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }

    .hero {
        height: 350px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .features, .model-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature, .model-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .feature img, .model-card img {
        height: auto;
    }

    .about-cta {
        padding: 40px 15px;
    }

    .about-cta h2 {
        font-size: 24px;
    }

    .about-cta p {
        font-size: 15px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    header {
        height: 25vh;
    }

    header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .navbar a {
        margin: 0 5px;
        font-size: 13px;
    }

    .hero {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .feature, .model-card {
        width: 95%;
    }

    .about-cta {
        padding: 30px 10px;
    }

    .about-cta h2 {
        font-size: 20px;
    }

    .about-cta p {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
        padding-left: 8px;
        border-left-width: 2px;
    }
}
