/* ---------- 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: 35vh;
    background: url('images/lexus-hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

header h1 {
    position: relative;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    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 CONTENT ---------- */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.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 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature {
    width: 320px; /* Match model-card width */
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.feature img {
    width: 100%;
    height: 200px; /* Match featured model image height */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.feature h3 {
    color: #d4af37;
    font-size: 22px; /* Slightly larger to match model cards */
    margin-bottom: 10px;
    text-align: center;
}

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

/* ---------- FEATURED MODELS ---------- */
.model-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.model-card {
    background: #1a1a1a;
    border-radius: 12px;
    width: 320px;
    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;
    transition: transform 0.3s ease, background 0.3s ease;
}

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

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

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

.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;
}

.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: 768px) {
    header {
        height: 30vh;
    }
    header h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
    .hero-content h2 {
        font-size: 32px;
    }
    .section-title {
        font-size: 20px;
    }
    .feature, .model-card {
        width: 100%;
    }
}

/* ---------- SCROLL ANIMATION ---------- */
section, .feature, .model-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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


/* ---------- HEADER (fade in synced with page content) ---------- */
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;
}

/* Make fade-in animation consistent across sections, features, model cards, and header */
section, .feature, .model-card, header {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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