/* ==========================================================================
   BAYKAN DİZAYN - AUTOMOTIVE UI SYSTEM
   THEME: DARK MODE / AUTOMOTIVE / PREMIUM
   ========================================================================== */

:root {
    --primary: #0f1115;
    --primary-light: #1c1f26;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --text-main: #ecf0f1;
    --text-light: #bdc3c7;
    --border: #2c3e50;
    --surface: #15181e;
    --white: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 0 20px rgba(231, 76, 60, 0.4);
    --blur: blur(12px);
    --container: 1280px;
    --radius: 12px;
    --radius-sm: 6px;
    --font-body: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Yatay taşmayı engelle */
    width: 100%;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: var(--container); margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-surface { background-color: var(--surface); }
.bg-dark { background-color: #000; }
.w-full { width: 100%; }
.center-btn { text-align: center; margin-top: 40px; }
.highlight { color: var(--accent); }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; font-weight: 700; border-radius: 4px;
    cursor: pointer; border: none; font-size: 1.1rem; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-display);
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    text-align: center;
}
.btn-primary { 
    background: linear-gradient(45deg, var(--accent), #c0392b); 
    color: var(--white); 
    box-shadow: var(--shadow-neon);
}
.btn-primary:hover { 
    background: linear-gradient(45deg, #c0392b, #a93226); 
    transform: translateY(-3px); 
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.6);
}
.btn-outline {
    border: 2px solid var(--accent); color: var(--accent); background: transparent; box-shadow: none;
}
.btn-outline:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; z-index: 1000;
    background: rgba(15, 17, 21, 0.95); backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-wrapper {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.brand-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--white);
    letter-spacing: 1px; z-index: 1002;
}
.brand-logo i { color: var(--accent); font-size: 1.8rem; }
.nav-menu {
    display: flex; gap: 30px;
}
.nav-link {
    font-weight: 600; font-size: 1rem; color: var(--text-main); position: relative; text-transform: uppercase;
}
.nav-link:hover { color: var(--accent); }
.mobile-toggle {
    display: none; font-size: 1.8rem; cursor: pointer; color: var(--white); z-index: 1002;
}

/* HERO SECTION */
.hero-section {
    padding: 180px 0 100px; position: relative; overflow: hidden;
    background: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?q=80&w=1920') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.8) 50%, rgba(15,17,21,0.4) 100%);
    z-index: 0;
}
.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; z-index: 1;
}
.badge-vision {
    display: inline-block; padding: 8px 16px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent); font-size: 0.85rem; font-weight: 700;
    border-radius: 4px; margin-bottom: 20px; letter-spacing: 2px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 20px; line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.hero-text h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
    display: block;
}
.hero-text p {
    font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; max-width: 580px;
}
.hero-actions { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.trust-metrics {
    display: flex; gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;
    flex-wrap: wrap;
}
.metric strong {
    display: block; font-size: 1.8rem; color: var(--accent); font-family: var(--font-display);
}
.metric span { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; }

.hero-visual-3d {
    position: relative;
    width: 100%;
    margin: auto;
    perspective: 1000px;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: 0.5s;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-height: 400px; object-fit: cover;
}

.floating-card {
    position: absolute;
    background: rgba(28, 31, 38, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: var(--white);
    animation: float 4s ease-in-out infinite;
    z-index: 5; border-left: 4px solid var(--accent);
    font-size: 0.9rem;
}
.floating-card i { color: var(--accent); font-size: 1.2rem; }
.c1 { top: 20px; left: -20px; }
.c2 { bottom: 30px; right: -20px; animation-delay: 2s; }
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-10px); } 
}

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 15px; }
.section-header p { font-size: 1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* INSTAGRAM VIDEO FIX */
.instagram-media {
    margin: 0 auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    max-width: 100% !important;
    min-width: unset !important;
    width: 100% !important;
}
.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.video-grid > div {
    flex: 1 1 300px; /* Esnek genişlik: minimum 300px */
    max-width: 400px; /* Maksimum genişlik sınırı */
}

/* BEFORE/AFTER SLIDER */
.ba-container { width: 100%; margin: 0 auto; }
.ba-slider-wrapper {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xl); border: 2px solid var(--border);
    aspect-ratio: 16/9; /* Oranı koru */
}
.ba-image-container { position: relative; width: 100%; height: 100%; }
.ba-image-container img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.img-after { clip-path: inset(0 0 0 50%); }
.slider-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
    background: var(--accent); z-index: 10; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px var(--accent);
}
.handle-circle {
    width: 40px; height: 40px; background: var(--primary); border: 2px solid var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white); cursor: ew-resize; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.slider-range {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize; z-index: 20;
    margin: 0;
}
.ba-labels {
    position: absolute; top: 15px; left: 15px; right: 15px;
    display: flex; justify-content: space-between; z-index: 5; pointer-events: none;
}
.ba-labels span {
    background: rgba(0,0,0,0.8); color: white; padding: 6px 10px;
    border-radius: 4px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.2);
}

/* SERVICES GRID */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.service-card {
    background: var(--primary-light); padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border); transition: all 0.4s ease; position: relative;
    display: flex; flex-direction: column; gap: 15px; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent); transform: scaleY(0); transition: 0.4s; transform-origin: bottom;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
    transform: translateY(-10px); box-shadow: var(--shadow-neon); border-color: var(--accent);
}
.card-icon {
    width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--accent); transition: 0.3s;
}
.service-card:hover .card-icon { background: var(--accent); color: var(--white); }
.service-card h3 { font-size: 1.3rem; margin: 0; }
.category-tag {
    font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid var(--border); padding: 4px 10px; width: fit-content; border-radius: 4px;
}
.card-arrow {
    position: absolute; bottom: 30px; right: 30px; opacity: 0; transition: 0.3s; color: var(--accent); font-size: 1.2rem;
}
.service-card:hover .card-arrow { opacity: 1; transform: translateX(5px); }

/* FEATURES */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.feature-card {
    background: var(--primary); padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border); text-align: center; transition: 0.4s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.feature-icon {
    font-size: 2.2rem; color: var(--accent); margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* BRANDS */
.brands-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px;
}
.brand-logo-item {
    background: var(--primary-light); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900; color: var(--text-light); font-size: 1rem;
    transition: 0.3s; text-align: center;
}
.brand-logo-item:hover { color: var(--white); border-color: var(--accent); background: #000; }

/* LOCATIONS */
.locations-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.location-pill {
    padding: 10px 12px; background: var(--primary); border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.85rem; font-weight: 600; color: var(--text-light);
    text-align: center; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.location-pill:hover {
    border-color: var(--accent); color: var(--white); background: var(--accent);
}
.location-pill i { font-size: 0.8rem; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: var(--primary); padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 1rem; }
.testimonial-card p { font-size: 1rem; font-style: italic; color: var(--text-light); }
.user-info { display: flex; align-items: center; gap: 15px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.avatar {
    width: 40px; height: 40px; background: var(--accent); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.user-info strong { display: block; color: var(--white); font-size: 0.95rem; }
.user-info span { font-size: 0.8rem; color: var(--text-light); }

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    padding: 60px 0; position: relative; overflow: hidden; border-top: 1px solid var(--border);
}
.cta-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(231, 76, 60, 0.2), transparent 70%);
}
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-buttons {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 30px;
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.2); color: var(--white); background: transparent;
}
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* PAGE HEADER */
.page-header {
    background: url('https://images.unsplash.com/photo-1605218427360-36390f855a29?w=1920&q=80') no-repeat center center/cover;
    padding: 140px 0 60px; position: relative;
}
.page-header::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--primary), rgba(15,17,21,0.8));
}
.page-header .container { position: relative; z-index: 1; text-align: center; }
.breadcrumb { color: var(--text-light); margin-bottom: 15px; font-size: 0.85rem; }
.breadcrumb a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.3); }
.breadcrumb i { font-size: 0.6rem; margin: 0 8px; opacity: 0.5; }

/* CONTENT WRAPPER */
.content-wrapper {
    display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; margin: 40px auto; align-items: flex-start;
}
.main-content {
    background: var(--primary-light); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border);
}
.main-content h2 { margin-top: 30px; margin-bottom: 20px; font-size: 1.8rem; color: var(--accent); }
.main-content p { margin-bottom: 20px; font-size: 1rem; color: var(--text-light); }
.dynamic-img-wrapper img {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 20px 0;
}
.cta-box {
    background: linear-gradient(45deg, #1a1d24, #0f1115); padding: 30px; border-radius: var(--radius);
    text-align: center; margin-top: 30px; border: 1px solid var(--accent);
    position: relative; overflow: hidden;
}
.cta-phones { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }

/* SIDEBAR */
.sidebar-widget {
    background: var(--surface); padding: 25px; border-radius: var(--radius);
    margin-bottom: 25px; border: 1px solid var(--border);
}
.sidebar-widget h3 { margin-bottom: 20px; font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.phone-box {
    margin-top: 15px; padding: 15px; background: var(--primary); border-radius: 4px;
    display: flex; align-items: center; gap: 15px; border: 1px solid var(--border);
}
.phone-box i { font-size: 1.5rem; color: var(--accent); }
.phone-box span { display: block; font-size: 0.8rem; color: var(--text-light); }
.phone-box a { font-size: 1rem; font-weight: 700; color: var(--white); }
.mini-loc-grid, .other-services-grid {
    display: grid; grid-template-columns: 1fr; gap: 10px;
}
.service-mini-card {
    padding: 12px; background: var(--primary); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.85rem;
}
.service-mini-card:hover { border-color: var(--accent); color: var(--white); transform: translateX(5px); }

/* FOOTER */
footer { background: #000; padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-light); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-light); font-size: 0.95rem; }
.contact-list i { color: var(--accent); margin-top: 5px; }
.footer-bottom { background: rgba(255,255,255,0.05); padding: 20px 0; text-align: center; color: var(--text-light); font-size: 0.85rem; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.4s; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background: var(--surface); width: 100%; max-width: 500px; padding: 30px;
    border-radius: var(--radius); position: relative; border: 1px solid var(--border);
    box-shadow: var(--shadow-neon); transform: translateY(50px); transition: 0.4s;
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-light); cursor: pointer;
}
.modal-header { text-align: center; margin-bottom: 25px; }
.icon-box {
    width: 60px; height: 60px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 15px;
    font-size: 1.8rem; color: white;
}
.spatial-form .form-group { margin-bottom: 15px; }
.spatial-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-light); font-size: 0.9rem; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.input-wrapper input, .input-wrapper textarea, .input-wrapper select {
    width: 100%; padding: 12px 12px 12px 45px; background: var(--primary);
    border: 1px solid var(--border); color: var(--white); border-radius: 6px;
    font-family: var(--font-body); font-size: 1rem;
}
.input-wrapper input:focus { border-color: var(--accent); outline: none; }

/* FLOATING WA */
.floating-wa {
    position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background: #25D366; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 2rem; cursor: pointer;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4); z-index: 999;
}

/* ==========================================================================
   RESPONSIVE (MOBIL UYUMLULUK)
   ========================================================================== */

/* TABLET & KÜÇÜK MASAÜSTÜ */
@media (max-width: 1024px) {
    .container { width: 95%; }
    .hero-grid, .content-wrapper, .footer-grid { grid-template-columns: 1fr; }
    .hero-visual-3d { display: none; } /* Performans için mobilde 3D gizle */
    .sidebar { margin-top: 40px; }
    .hero-text h1 { font-size: 3.5rem; }
    .section-padding { padding: 80px 0; }
}

/* MOBİL (TELEFONLAR) */
@media (max-width: 768px) {
    /* Genel Ayarlar */
    .section-padding { padding: 60px 0; }
    .btn { width: 100%; font-size: 1rem; padding: 12px 20px; }
    
    /* Navbar */
    .navbar { height: 70px; }
    .brand-logo { font-size: 1.3rem; }
    .mobile-toggle { display: block; }
    .nav-wrapper > .btn { display: none; }
    .nav-menu {
        position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
        background: var(--primary); flex-direction: column; padding: 30px;
        transform: translateX(-100%); transition: transform 0.3s ease;
        box-shadow: none; border-top: 1px solid var(--border); overflow-y: auto;
    }
    body.menu-open .nav-menu { transform: translateX(0); }
    .nav-link { font-size: 1.2rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: block; }

    /* Hero */
    .hero-section { padding: 120px 0 60px; min-height: auto; text-align: center; }
    .hero-grid { gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1rem; margin-bottom: 25px; }
    .hero-actions { justify-content: center; }
    .trust-metrics { justify-content: center; gap: 20px; }
    .metric { text-align: center; width: 30%; }
    .metric strong { font-size: 1.5rem; }

    /* Hizmetler & Gridler */
    .services-grid, .features-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 20px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .contact-list li { justify-content: center; }
    .brand-logo.light { justify-content: center; }
    .footer-col a:hover { padding-left: 0; color: var(--accent); }

    /* Diğer Bileşenler */
    .ba-container { width: 100%; }
    .ba-slider-wrapper { aspect-ratio: 4/3; } /* Mobilde daha kare */
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-buttons { flex-direction: column; gap: 10px; }
    .main-content { padding: 25px 15px; }
    .page-header { padding: 100px 0 40px; }
    .page-header h1 { font-size: 2rem; }
    
    /* Floating WA */
    .floating-wa { width: 50px; height: 50px; font-size: 1.6rem; bottom: 15px; right: 15px; }
}

/* KÜÇÜK MOBİL (ESKİ CİHAZLAR) */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .trust-metrics { gap: 10px; }
    .metric { width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
    .metric:last-child { border-bottom: none; }
    .brands-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px; }
    .section-header h2 { font-size: 1.6rem; }
}