/* ---------- BASE ---------- */
body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #eee;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ---------- 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;
    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 ---------- */
nav {
    background: #111;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid #222;
}

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

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

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.container h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.container p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 40px;
}

/* ---------- SWIPER GALLERY ---------- */
.swiper {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
    padding: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.swiper-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

/* ---------- IMAGES ---------- */
.swiper-slide img {
    width: auto;           /* let width scale proportionally */
    height: 220px;         /* uniform height */
    object-fit: contain;   /* ensure full image is visible */
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ---------- TEXT BELOW IMAGES ---------- */
.swiper-slide p {
    color: gold;
    font-size: 1.5rem;       /* larger car name */
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* ---------- SWIPER NAVIGATION & PAGINATION ---------- */
.swiper {
    --swiper-navigation-color: gold; /* make arrows gold */
}

.swiper-button-next,
.swiper-button-prev {
    transition: opacity 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.7;
}

/* Hide the pagination bullets (blue dots) */
.swiper-pagination {
    display: none;
}



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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .swiper-slide img {
        height: 180px;
    }

    .swiper-slide p {
        font-size: 1.3rem;
    }
}
