/* ---------- 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::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;
}

/* ---------- LAYOUT ---------- */
.models-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    width: 250px;
    background: #111;
    color: gold;
    padding: 30px 20px;
    border-right: 1px solid #222;
}

.sidebar h3 {
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 15px;
    border-left: 3px solid gold;
    padding-left: 10px;
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 12px 0;
}

.sidebar a {
    display: block;
    color: #ccc;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: gold;
    color: #000;
}

/* ---------- CONTENT AREA ---------- */
.models-content {
    flex: 1;
    padding: 50px 40px;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

/* ---------- CATEGORY SECTIONS ---------- */
.category-section {
    display: none;
    margin-bottom: 80px;
}

.category-section.active {
    display: block;
}

/* ---------- CATEGORY TITLE ---------- */
.category-title {
    text-align: center;
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid gold;
    padding-left: 12px;
    margin-bottom: 40px;
    display: inline-block;

    /* Fade-in setup */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.category-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- MODEL GRID ---------- */
.model-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* ---------- MODEL CARD ---------- */
.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;

    /* Fade-in setup */
    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;
}

/* IMAGE */
.model-card .img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.model-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.model-card:hover .img-wrap img {
    transform: scale(1.08);
}

/* TEXT */
.model-card h3 {
    color: gold;
    margin-bottom: 10px;
    font-size: 22px;
    text-transform: uppercase;
}

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

/* BUTTON */
.model-card .button {
    background: gold;
    color: #000;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: auto;
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .models-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #222;
        text-align: center;
    }

    .sidebar ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .models-content {
        padding: 30px 20px;
    }

    .model-card {
        width: 100%;
    }

    header {
        height: 30vh;
    }

    header h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
}


/* ---------- 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);
}
