
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --red: #e52434;
    --dark-red: #a80e1b;
    --black: #080808;
    --silver: #c5c5c5;
    --white: #f5f5f5;
    --gray: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}


/* DEMO BİLGİ ÇUBUĞU */

.demo-bar {
    background: #d4af37;
    color: #080808;
    padding: 10px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    font-weight: 800;
}


/* ÜST MENÜ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 25px 6%;
    background: #101010;
    border-bottom: 1px solid #252525;
}

.logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    font-style: italic;
}

.logo span {
    color: var(--red);
}

.header nav {
    display: flex;
    gap: 28px;
}

.header nav a {
    font-size: 13px;
    color: var(--silver);
    transition: 0.3s;
}

.header nav a:hover {
    color: var(--red);
}


/* BUTONLAR */

.primary-button,
.outline-button {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    transition: 0.3s;
}

.primary-button {
    background: linear-gradient(
        135deg,
        var(--red),
        var(--dark-red)
    );
    color: white;
    border: 1px solid var(--red);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229,36,52,0.3);
}

.outline-button {
    background: transparent;
    border: 1px solid #555;
    color: var(--white);
}

.outline-button:hover {
    border-color: var(--red);
    color: var(--red);
}


/* ANA SAYFA */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 8%;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.95),
            rgba(0,0,0,0.25)
        ),
        radial-gradient(
            ellipse at right,
            #501018,
            #101010
        );
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease both;
}

.tag {
    display: inline-block;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 90px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--red);
}

.hero p {
    max-width: 550px;
    color: var(--silver);
    font-size: 16px;
    line-height: 1.9;
    margin: 30px 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* İSTATİSTİKLER */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #111111;
    padding: 40px 6%;
    border-top: 2px solid var(--red);
    border-bottom: 1px solid #252525;
}

.stats div {
    text-align: center;
    padding: 20px;
}

.stats strong {
    display: block;
    color: var(--red);
    font-size: 38px;
    font-weight: 800;
}

.stats span {
    color: var(--gray);
    font-size: 13px;
}


/* GENEL BÖLÜMLER */

.section {
    padding: 100px 7%;
    text-align: center;
}

.section h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-description {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}


/* ARAÇ FİLTRELEME */

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin: 40px 0 20px;
    padding: 20px;
    background: #121212;
    border: 1px solid #292929;
    border-radius: 8px;
}

.filters input,
.filters select {
    width: 100%;
    min-width: 0;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px;
    color: var(--white);
    outline: none;
    color-scheme: dark;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--red);
}

#carCount {
    text-align: left;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 25px;
}

#noCars {
    padding: 40px;
    color: var(--gray);
}


/* ARAÇ KARTLARI */

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.car-card {
    background: #141414;
    border: 1px solid #292929;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: 0.35s;
}

.car-card:hover {
    transform: translateY(-7px);
    border-color: var(--red);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.car-image {
    position: relative;
    height: 240px;
    background: radial-gradient(
        ellipse at center,
        #414141,
        #111111
    );
    background-size: cover;
    background-position: center;
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 4px;
}

.car-info {
    padding: 25px;
}

.car-brand {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.car-info h3 {
    font-size: 21px;
    margin: 12px 0 20px;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.car-specs span {
    background: #202020;
    color: var(--silver);
    border: 1px solid #303030;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    text-align: center;
}

.car-price {
    display: block;
    color: var(--white);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.detail-button {
    width: 100%;
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}

.detail-button:hover {
    background: var(--red);
    color: white;
}

.demo-notice {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 30px;
}


/* HAKKIMIZDA */

.about {
    background: #121212;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
}

.about p {
    max-width: 800px;
    margin: auto;
    color: var(--gray);
    line-height: 2;
}


/* TEST SÜRÜŞÜ FORMU */

.contact {
    background: radial-gradient(
        ellipse at center,
        #260d10,
        #080808
    );
}

#testDriveForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 35px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 10px;
}

#testDriveForm input,
#testDriveForm select,
#testDriveForm textarea {
    width: 100%;
    min-width: 0;
    background: #202020;
    color: var(--white);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 17px;
    outline: none;
    font-size: 14px;
    color-scheme: dark;
}

#testDriveForm input:focus,
#testDriveForm select:focus,
#testDriveForm textarea:focus {
    border-color: var(--red);
}

#testDriveForm textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

#testDriveForm button {
    grid-column: 1 / -1;
}

#formStatus {
    grid-column: 1 / -1;
    color: var(--silver);
    font-size: 14px;
    line-height: 1.8;
}


/* ARAÇ DETAY PENCERESİ */

.car-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(700px, 92%);
    max-height: 90vh;
    overflow-y: auto;
    background: #151515;
    color: white;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 30px;
}

.car-modal::backdrop {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

#closeModal {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--red);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
}

#modalContent h2 {
    font-size: 28px;
    margin: 20px 0;
}

#modalContent p {
    color: var(--silver);
    line-height: 1.8;
    margin: 15px 0;
}

#modalContent .car-image {
    border-radius: 8px;
    height: 300px;
}

#modalContact {
    width: 100%;
    margin-top: 20px;
}


/* ALT MENÜ */

footer {
    padding: 60px 5%;
    background: #080808;
    border-top: 1px solid #292929;
    text-align: center;
}

footer h2 {
    color: var(--white);
    font-size: 28px;
    font-style: italic;
}

footer p {
    color: var(--gray);
    font-size: 13px;
    margin: 20px 0;
}

footer a {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}


/* TABLET UYUMLULUĞU */

@media (max-width: 1100px) {

    .header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .car-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* TELEFON UYUMLULUĞU */

@media (max-width: 600px) {

    .demo-bar {
        flex-direction: column;
        text-align: center;
    }

    .header {
        flex-direction: column;
    }

    .header nav {
        gap: 15px;
    }

    .hero {
        min-height: 75vh;
        padding: 70px 6%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats strong {
        font-size: 30px;
    }

    .section {
        padding: 65px 5%;
    }

    .filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 220px;
    }

    #testDriveForm {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .car-modal {
        padding: 20px;
    }

    #modalContent .car-image {
        height: 200px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

}

/* =========================
   ELITE MOTORS FOTOĞRAFLAR
========================= */


/* ANA SAYFA ARKA PLANI */

.hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.92),
            rgba(0,0,0,0.25)
        ),
        url("images/showroom.jpg");

    background-size: cover;
    background-position: center;
}


/* BMW */

.bmw-image {
    background-image: url("images/bmw.jpg");
}


/* MERCEDES */

.mercedes-image {
    background-image: url("images/mercedes.jpg");
}


/* AUDI */

.audi-image {
    background-image: url("images/audi.jpg");
}


/* PORSCHE */

.porsche-image {
    background-image: url("images/porsche.jpg");
}


/* VOLKSWAGEN */

.volkswagen-image {
    background-image: url("images/volkswagen.jpg");
}


/* RANGE ROVER */

.range-image {
    background-image: url("images/range.jpg");
}


/* FOTOĞRAF EFEKTLERİ */

.car-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.03);
}


/* TELEFON ARKA PLAN AYARI */

@media (max-width: 600px) {

    .hero {
        background-image:
            linear-gradient(
                rgba(0,0,0,0.65),
                rgba(0,0,0,0.85)
            ),
            url("images/showroom.jpg");
    }

}
/* BMW VE PORSCHE FOTOĞRAF KONUMU */

.bmw-image {
    background-position: center 85%;
}

.porsche-image {
    background-position: center 85%;
}