:root {
    --bg-color: #0d0d0d;
    --surface-color: #161616;
    --primary-red: #E50914;
    --primary-red-hover: #B8070F;
    --text-light: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #262626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    /* SAĞA SOLA KAYMA / TAŞMA PROBLEMİNİN KESİN ÇÖZÜMÜ */
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
    scroll-padding-top: 100px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; color: inherit; }

/* HEADER & NAVBAR */
header {
    background-color: rgba(13, 13, 13, 0.95); padding: 12px 5%;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; z-index: 1001; }
.brand-logo { max-height: 70px; width: auto; display: block; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.03); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1.05rem; transition: color 0.3s ease; position: relative; cursor: pointer; }
.nav-links a:hover { color: var(--primary-red); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary-red); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* YENİ PREMIUM HAMBURGER MENÜ IKONU (X Animasyonlu) */
.menu-toggle {
    display: none; flex-direction: column; cursor: pointer; gap: 7px; z-index: 1001; padding: 5px;
}
.menu-toggle .bar {
    width: 30px; height: 2px; background-color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 2px;
}
/* Menü açıldığında 'X' şeklini alması */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* HERO BÖLÜMÜ */
.hero {
    text-align: center; padding: 160px 20px; width: 100%;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.95)), url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-bottom: 2px solid var(--primary-red);
}
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero h1 span { color: var(--primary-red); }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 35px; max-width: 650px; text-align: center; }

/* HERO BUTONU ŞEFFAFLIK */
.hero-btn {
    background-color: rgba(229, 9, 20, 0.85) !important; backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.btn-primary { background-color: var(--primary-red); color: white; padding: 16px 35px; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.5px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4); }

h2 { font-size: 2.5rem; margin-bottom: 40px; text-align: center; position: relative; font-weight: 800; }
h2::after { content: ''; width: 80px; height: 4px; background-color: var(--primary-red); display: block; margin: 15px auto 0; border-radius: 2px; }

/* VİTRİN & KART ESTETİĞİ */
.showcase { padding: 90px 5%; width: 100%; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.car-card { background-color: var(--surface-color); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.4s ease, border-color 0.4s ease; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-10px); border-color: var(--primary-red); box-shadow: 0 15px 40px rgba(229, 9, 20, 0.15); }
.car-img-wrapper { position: relative; width: 100%; height: 240px; overflow: hidden; }
.car-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.car-card:hover .car-img { transform: scale(1.08); }
.badge { position: absolute; top: 15px; right: 15px; color: white; padding: 6px 14px; font-size: 0.85rem; font-weight: 700; border-radius: 4px; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.badge-new { background-color: var(--primary-red); }
.badge-trust { background-color: #10b981; }
.car-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.car-header-info { display: flex; flex-direction: column; margin-bottom: 12px; }
.car-year { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; margin-bottom: 5px; }
.car-title { font-size: 1.3rem; font-weight: 700; color: var(--text-light); line-height: 1.4; }
.car-price { color: var(--primary-red); font-weight: 800; font-size: 1.7rem; margin-bottom: 25px; }
.car-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.spec-item { display: flex; align-items: center; gap: 10px; }
.spec-icon { font-size: 1.1rem; }
.spec-value { font-size: 0.95rem; color: #d4d4d4; font-weight: 500; }
.btn-detail { margin-top: auto; width: 100%; background-color: transparent; color: var(--text-light); border: 1px solid #404040; padding: 14px; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
.car-card:hover .btn-detail { background-color: var(--primary-red); border-color: var(--primary-red); color: white; }

/* DEVAMINI GÖR BUTONU STİLLERİ */
.hidden-card { display: none !important; }
.load-more-container { text-align: center; margin-top: 50px; width: 100%; }
.btn-load-more {
    background-color: transparent; color: var(--text-light);
    border: 1px solid var(--primary-red); padding: 14px 40px;
    border-radius: 30px; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.5px;
}
.btn-load-more:hover { background-color: var(--primary-red); color: white; box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3); }

/* MODAL STİLLERİ */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); overflow-y: auto; overflow-x: hidden; }
.modal-content { background-color: var(--surface-color); margin: 5vh auto; border: 1px solid var(--border-color); width: 90%; max-width: 1000px; border-radius: 12px; position: relative; animation: modalFadeIn 0.4s ease; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.8); }
.close-btn { position: absolute; top: 15px; right: 25px; color: #fff; font-size: 35px; font-weight: bold; cursor: pointer; z-index: 10; text-shadow: 0 2px 4px rgba(0,0,0,0.8); transition: color 0.3s; }
.close-btn:hover { color: var(--primary-red); }
@keyframes modalFadeIn { from {opacity: 0; transform: translateY(-30px) scale(0.95);} to {opacity: 1; transform: translateY(0) scale(1);} }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-container { width: 100%; height: 100%; position: relative; }
.modal-img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.modal-details { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.modal-description { color: var(--text-muted); margin-bottom: 25px; line-height: 1.7; font-size: 1.05rem; }

/* HAKKIMIZDA */
.about { padding: 90px 5%; background-color: #111111; width: 100%; }
.about-content { max-width: 900px; margin: 0 auto; text-align: center; }
.about-text h3 { color: var(--primary-red); margin-bottom: 20px; font-size: 1.8rem; font-weight: 700; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.15rem; line-height: 1.8; }

/* İLETİŞİM / FOOTER */
footer { background-color: #080808; padding: 80px 0 30px 0; border-top: 1px solid var(--border-color); width: 100%; }
footer h2 { padding: 0 5%; }
.footer-wrapper { width: 90%; max-width: 1600px; margin: 0 auto; }
.footer-container { display: grid; grid-template-columns: 1fr 2.5fr; gap: 50px; align-items: stretch; }
.contact-details { display: flex; flex-direction: column; justify-content: center; gap: 25px; }
.contact-card { background-color: var(--surface-color); padding: 25px; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.contact-label { font-size: 0.95rem; color: var(--primary-red); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 1px; }
.contact-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; font-weight: 500; color: #fff; }
.copy-btn { background-color: #222; color: var(--text-light); border: 1px solid #444; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; }
.copy-btn:hover { background-color: var(--primary-red); color: white; border-color: var(--primary-red); }
.contact-slogan { margin-top: 10px; padding: 20px; background-color: rgba(229, 9, 20, 0.05); border-left: 4px solid var(--primary-red); border-radius: 4px; }
.contact-slogan p { color: var(--text-light); font-weight: 600; margin: 0; font-size: 1.1rem; }
.map-container { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); min-height: 450px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }

.dev-badge { margin-top: 80px; padding-top: 25px; border-top: 1px solid #1a1a1a; font-size: 1rem; color: #777; text-align: center; }
.eroglu-link { color: var(--text-light); font-weight: 800; letter-spacing: 0.5px; transition: color 0.3s ease; text-decoration: none; margin-left: 5px; }
.eroglu-link:hover { color: var(--primary-red); }

/* TOAST BİLDİRİMİ */
.toast { visibility: hidden; min-width: 250px; background-color: var(--surface-color); color: #fff; text-align: center; border-radius: 4px; padding: 18px; position: fixed; z-index: 9999; left: 50%; bottom: 30px; transform: translateX(-50%); border-left: 5px solid var(--primary-red); box-shadow: 0 10px 30px rgba(0,0,0,0.8); opacity: 0; transition: opacity 0.4s, bottom 0.4s; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem; }
.toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.fade-in-section { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, visibility; }
.fade-in-section.is-visible { opacity: 1; transform: none; }

/* %100 MOBİL UYUM (SAĞA SOLA KAYMA KÖKTEN ENGELLENDİ) */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr; }
    .map-container { min-height: 350px; }
}

@media (max-width: 768px) {
    header { position: relative; justify-content: space-between; padding: 15px 20px; }
    .brand { position: absolute; left: 50%; transform: translateX(-50%); }
    .brand-logo { max-height: 55px; }
    .hero { padding: 120px 15px; }
    .hero h1 { font-size: 2.2rem; }
    .menu-toggle { display: flex; }

    /* Mobil Premium Menü Dropdown */
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100vw; background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column; align-items: center; padding: 0; max-height: 0; overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1); border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { max-height: 400px; padding: 25px 0; }
    .nav-links a { font-size: 1.2rem; padding: 10px 0; width: 100%; text-align: center; }

    /* Mobil Grid Sistemi: Kesin tek sütun, taşma yapmaz */
    .showcase { padding: 60px 20px; }
    .car-grid { grid-template-columns: 1fr; gap: 20px; }

    .contact-info-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .copy-btn { width: 100%; }

    /* Modal Mobil */
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { min-height: 250px; height: 250px; }
    .modal-details { padding: 25px; }
    .modal-content { margin: 10vh auto; width: 95%; }
}
