/* =========================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR (RESET)
========================================= */
:root {
    --primary-red: #da251d;
    --dark-red: #a81912;
    --dark-navy: #0e1e32;
    --accent-yellow: #f5b024;
    --text-dark: #222222;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(218, 37, 29, 0.15);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- KRİTİK: ZIRH --- */
html, body {
    overflow-x: hidden !important; 
    width: 100% !important;
    position: relative;
    background-color: var(--white);
    font-family: var(--font-main);
    color: var(--text-gray);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px !important;
}

/* =========================================
   HR (AYRAÇ) TAŞMA VE BOŞLUK FİXİ
========================================= */
hr {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block;
}

/* =========================================
   2. GENEL BİLEŞENLER (BUTONLAR & BAŞLIKLAR)
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary { background-color: var(--dark-navy); color: var(--white); border: 2px solid var(--dark-navy); }
.btn-primary:hover { background-color: var(--white); color: var(--dark-navy); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary-red); }
.btn-outline { border: 2px solid var(--primary-red); color: var(--primary-red); padding: 8px 20px; }
.btn-outline:hover { background-color: var(--primary-red); color: var(--white); }

.section-subtitle {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    color: var(--dark-navy);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.text-center { text-align: center; }

/* =========================================
   3. NAVBAR (HEADER)
========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--white);
    padding: 20px 0;
    z-index: 10000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--dark-navy); display: flex; align-items: center; }
.logo-img { height: 55px; width: auto; display: block; object-fit: contain; }
.logo span { color: var(--primary-red); margin-left: 10px; font-weight: 700; font-size: 22px; }
.logo i { color: var(--primary-red); margin-right: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--dark-navy); }
.nav-links a:not(.btn):hover { color: var(--primary-red); }

/* MOBİL MENÜ HAMBURGER BUTONU */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle .bar {
    width: 25px; height: 3px;
    background-color: var(--dark-navy);
    transition: var(--transition);
    border-radius: 3px;
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    padding: 180px 0 120px 0;
    background: linear-gradient(135deg, rgba(218, 37, 29, 0.95) 0%, rgba(130, 15, 10, 0.95) 100%), url('https://images.unsplash.com/photo-1605810754854-c9d31154ce69?auto=format&fit=crop&q=80') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backdrop-filter: blur(3px); z-index: 1; }
.hero-container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.hero-content { width: 65%; text-align: left; color: var(--white); padding-right: 40px; position: relative; z-index: 3; }
.hero-content .badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; max-width: 550px; }
.hero-buttons { display: flex; gap: 15px; justify-content: flex-start; flex-wrap: wrap; }

/* Desktop Hero Image */
.hero-image {
    position: absolute;
    right: -2%;
    bottom: -120px;
    width: 55%; 
    max-width: 850px;
    z-index: 10;
    pointer-events: none; 
}
.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 30px rgba(0,0,0,0.5));
    transform: scale(1.1);
}

/* =========================================
   5. ABOUT SECTION
========================================= */
.about-section { padding: 160px 0 100px 0; background-color: var(--white); position: relative; z-index: 2; }
.about-container { display: flex; align-items: center; gap: 60px; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 5px solid var(--white);
}
.experience-badge h2 { font-size: 36px; font-weight: 800; line-height: 1; }
.about-content { flex: 1; }
.about-desc { margin-bottom: 30px; font-size: 16px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; }
.feature-item { font-weight: 600; color: var(--dark-navy); display: flex; align-items: center; gap: 10px; }
.feature-item i { color: var(--primary-red); font-size: 18px; }
.progress-wrapper { background: var(--bg-light); padding: 20px; border-radius: var(--radius-md); }
.progress-info { display: flex; justify-content: space-between; font-weight: 700; color: var(--dark-navy); margin-bottom: 10px; }
.progress-bar { width: 100%; height: 8px; background-color: #e9ecef; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background-color: var(--primary-red); border-radius: 10px; }

/* =========================================
   6. SERVICES SECTION
========================================= */
.services-section { padding: 100px 0; background-color: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.service-card { background-color: var(--white); padding: 40px 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: var(--transition); position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.icon-box { width: 70px; height: 70px; background-color: rgba(218, 37, 29, 0.1); color: var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 25px; transition: var(--transition); }
.service-card h3 { color: var(--dark-navy); font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.service-card p { margin-bottom: 25px; font-size: 15px; }

.dark-card { background-color: var(--dark-navy); color: rgba(255,255,255,0.8); }
.dark-card h3 { color: var(--white); }
.dark-card .icon-box { background-color: rgba(255,255,255,0.1); color: var(--white); }
.yellow-card { background-color: var(--accent-yellow); color: var(--text-dark); }
.yellow-card h3 { color: var(--text-dark); }
.yellow-card .icon-box { background-color: rgba(0,0,0,0.1); color: var(--dark-navy); }

/* GALERİ TAMİR MERKEZİ */
.work-gallery { padding: 60px 0; width: 100%; overflow: hidden; display: block; }
.myGallerySwiper { width: 100% !important; padding: 20px 0 60px 0 !important; margin: 0 auto; }
.myGallerySwiper .swiper-slide { display: flex !important; justify-content: center !important; align-items: center !important; height: auto !important; width: auto; }
.gallery-item { width: 360px; max-width: 90vw; aspect-ratio: 4 / 3; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-red) !important; }
.swiper-pagination-bullet-active { background: var(--primary-red) !important; }

/* =========================================
   MARKALAR (CLIENTS) TASARIMI
========================================= */
.clients-section { padding: 80px 0; background-color: #ffffff; border-top: 1px solid #f1f1f1; overflow: hidden; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center; margin-top: 50px; }
.client-item { display: flex; justify-content: center; align-items: center; padding: 20px; transition: var(--transition); }
.client-item img { max-width: 100%; height: auto; max-height: 60px; filter: grayscale(100%); opacity: 0.4; transition: all 0.4s ease; }
.client-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* =========================================
   FAQ & İLETİŞİM ALANI
========================================= */
/* =========================================
   FAQ (SSS) AKORDİYON DÜZENLEMESİ
========================================= */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition); /* Temel geçiş[cite: 2] */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 22px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-question i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* İkon dönüş hızı */
    color: var(--primary-red);
}

/* --- KRİTİK GEÇİŞ AYARI --- */
.faq-answer {
    max-height: 0; /* Başlangıçta kapalı */
    overflow: hidden;
    /* 0.6 saniye süreli akıcı geçiş */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    background: #fff;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    margin: 0;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    opacity: 0;
    transition: opacity 0.4s ease; /* Yazının yavaşça belirmesi */
}

/* Aktif (Açık) Durum */
.faq-item.active .faq-answer {
    max-height: 500px; /* İçerik yüksekliğine göre bu değer yeterlidir */
}

.faq-item.active .faq-answer p {
    opacity: 1;
}

.faq-item.active .faq-question {
    color: var(--primary-red);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Oku ters çevir */
}

#map iframe { filter: grayscale(10%) contrast(1.1); transition: all 0.5s ease; width: 100%; }
#map iframe:hover { filter: grayscale(0%) contrast(1); }

/* =========================================
   7. FOOTER SECTION (SADECE TELİF HAKKI ŞERİDİ)
========================================= */
.footer {
    background-color: var(--dark-navy) !important;
    width: 100% !important;
    overflow: hidden !important;
}

.footer-bottom {
    padding: 25px 0 !important;
    text-align: center !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 15px !important;
    width: 100% !important;
}

/* =========================================
   MOBİL UYUM (768px ve altı)
========================================= */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column !important; /* Mobilde zorla alt alta al */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
    }
    
    .footer-col:first-child, 
    .footer-col:last-child {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-contact p {
        justify-content: center !important; /* Mobilde ikonları ortala */
    }
}


/* =========================================
   8. RESPONSIVE (MOBİL UYUM & KAYMA DÜZELTMELERİ)
========================================= */
@media (max-width: 992px) {
    .hero-container, .about-container { flex-direction: column; text-align: center; }
    .hero-content { width: 100%; padding-right: 0; margin-bottom: 50px; }
    .hero-content h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }
    
    .hero-image {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin-top: 40px;
    }
    .hero-image img {
        transform: scale(1) !important;
        max-width: 100%;
    }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { text-align: left; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; right: -100%; top: 70px;
        width: 80%; height: calc(100vh - 70px);
        background-color: var(--white); flex-direction: column;
        justify-content: flex-start; padding-top: 40px;
        transition: 0.4s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; text-align: center; margin-bottom: 20px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .experience-badge { right: 10px !important; bottom: -15px !important; padding: 20px; transform: scale(0.85); }
    .gallery-item img { height: 280px; }
    .logo-img { height: 40px; }
    .nav-container { padding: 10px 15px; }

    .seo-grid, .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    /* MOBİLDE FOOTER'I ORTALAR VE DÜZENLER */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================
   WHATSAPP & EKSTRALAR
========================================= */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { background-color: #128C7E; color: #FFF; transform: scale(1.1); animation: none; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* GÜVENLİK */
body { -webkit-user-select: none; -ms-user-select: none; user-select: none; -moz-user-select: none; }
input, textarea, .faq-answer { -webkit-user-select: text; user-select: text; }

<style>
    /* Premium Instagram Widget Tasarımı */
    .insta-premium-widget {
        margin-top: 40px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(230, 57, 70, 0.1);
        border-radius: 20px;
        padding: 25px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-decoration: none;
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
    }

    .insta-premium-widget:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
        background: #fff;
    }

    /* Arka plandaki hafif renk dalgası */
    .insta-premium-widget::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
        z-index: 0;
    }

    .insta-profile-img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        padding: 3px;
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        position: relative;
        z-index: 1;
    }

    .insta-profile-img img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
    }

    .insta-info { z-index: 1; }
    
    .insta-user {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }

    .insta-user h5 { 
        margin: 0; 
        color: #0e1e32; 
        font-size: 18px; 
        font-weight: 800; 
        letter-spacing: -0.5px;
    }

    .verify-icon { color: #3897f0; font-size: 16px; }

    .insta-stats {
        display: flex;
        gap: 15px;
        font-size: 13px;
        color: #64748b;
        margin-bottom: 10px;
    }

    .insta-stats span b { color: #0e1e32; }

    .insta-follow-link {
        color: #dc2743;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 5px;
    }
</style>