:root { 
    --yesil: #009245; 
    --beyaz: #ffffff; 
    --koyu: #1a1a1a; 
    --gri: #f8f9fa; 
    --font: 'Montserrat', sans-serif;
}

/* --- Temel Sıfırlama ve Kesin Taşma Engeli --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }

html, body { 
    width: 100%; 
    overflow-x: hidden !important; /* Sağa kaymayı kökten engeller */
    position: relative; 
    -webkit-text-size-adjust: 100%;
} 

body { background: var(--gri); color: var(--koyu); }

/* --- Header (Mobil Patlamayı Gideren Güncel Kısım) --- */
.main-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: var(--beyaz); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
    min-height: 70px;
}

.logo { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--yesil); 
    text-decoration: none; 
    white-space: nowrap; 
    flex-shrink: 1;
}
.logo span { color: var(--koyu); }

.desktop-nav { display: flex; gap: 20px; align-items: center; }
.desktop-nav a { text-decoration: none; color: var(--koyu); font-weight: 600; transition: 0.3s; white-space: nowrap; }
.desktop-nav a:hover { color: var(--yesil); }

.call-btn-header { 
    background: var(--yesil); 
    color: white; 
    padding: 10px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0; /* Butonun mobilde ezilmesini önler */
}
.call-btn-header:hover { opacity: 0.9; transform: scale(1.05); }

/* --- Gelişmiş Slider (Hero) --- */
.hero-slider-wrapper { position: relative; height: 550px; width: 100%; background: #000; overflow: hidden; }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.slide.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 2; 
}

.slider-img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay { 
    position: absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center; 
    z-index: 3;
}

.hero-text { padding: 0 5%; width: 100%; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 15px; font-weight: 800; line-height: 1.1; }
.hero-text h1 span { color: var(--yesil); }
.hero-text p { font-size: 1.2rem; margin-bottom: 25px; opacity: 0.9; }

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-call, .btn-whatsapp { 
    padding: 15px 35px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s; 
}
.btn-call { background: var(--yesil); color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-call:hover, .btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- Slider Navigasyon --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.slider-nav:hover { background: var(--yesil); border-color: var(--yesil); }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

/* --- Slider Progress Bar --- */
.slider-progress-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.progress-item { width: 60px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--yesil); transition: width 0.1s linear; }

/* --- Hizmetler & Bento Grid --- */
.services-section { padding: 80px 5%; max-width: 1300px; margin: 0 auto; width: 100%; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.5rem; color: var(--yesil); font-weight: 800; }

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 25px; }
.bento-item { 
    background: white; 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: 0.3s;
    border: 1px solid transparent;
}
.bento-item:hover { transform: translateY(-5px); border-color: var(--yesil); }
.bento-item.green { background: var(--yesil); color: white; }
.bento-item.green i { color: white !important; }
.bento-item i { font-size: 2.5rem; color: var(--yesil); margin-bottom: 20px; display: block; }
.bento-item h3 { margin-bottom: 15px; font-size: 1.5rem; }

.wide { grid-column: span 2; }

/* --- Sihirbaz Konteynırı (Wizard) --- */
#wizard-container {
    max-width: 95%; /* Kenarlara çok yapışmasın */
    width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.wizard-step h3 { font-size: 1.6rem; font-weight: 800; color: #1e293b; margin-bottom: 30px; }

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

.wizard-card {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    text-align: center;
}
.wizard-card i { font-size: 2.5rem; margin-bottom: 15px; color: #64748b; }
.wizard-card span { font-weight: 700; font-size: 1.1rem; color: #334155; }
.wizard-card:hover { border-color: var(--yesil); background: #f0fdf4; transform: translateY(-5px); }
.wizard-card:hover i { color: var(--yesil); transform: scale(1.1); }

.phone-step-container { max-width: 400px; margin: 0 auto; width: 100%; }
#user_phone { width: 100%; padding: 18px; font-size: 1.2rem; border: 2px solid #e2e8f0; border-radius: 15px; text-align: center; margin-bottom: 20px; }
.submit-btn { width: 100%; background: var(--yesil); color: white; padding: 18px; border: none; border-radius: 15px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --- Sabit Alt Aksiyonlar (Mobil) --- */
.fixed-actions { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    display: none; 
    z-index: 2000; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.action-call, .action-whatsapp { flex: 1; text-align: center; padding: 18px; text-decoration: none; font-weight: 700; font-size: 1rem; }
.action-call { background: var(--yesil); color: white; }
.action-whatsapp { background: #25d366; color: white; }

/* --- RESPONSIVE (MOBİL UYUMLULUK) --- */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .wide { grid-column: span 2; }
    .hero-text h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Header Mobil Fix: Linkler gizlendi, logo ve buton hizalandı */
    .main-header { padding: 10px 15px !important; height: 70px; }
    .desktop-nav { display: none !important; } 
    .logo { font-size: 16px !important; }
    .call-btn-header { padding: 8px 15px !important; font-size: 12px !important; }
    
    .hero-slider-wrapper { height: 420px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .btn-call, .btn-whatsapp { width: 100%; padding: 12px; }

    /* Bento Grid Mobil */
    .bento-grid { grid-template-columns: 1fr; }
    .wide { grid-column: span 1; }
    .bento-item { padding: 25px; }
    
    /* Wizard Mobil (Sağa Kaydırılabilir Grid) */
    .wizard-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 15px;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
    .wizard-card {
        flex: 0 0 145px !important;
        scroll-snap-align: start;
        aspect-ratio: 1 / 1 !important;
    }

    /* Alt Sabit Menü Göster */
    .fixed-actions { display: flex; }
    body { padding-bottom: 70px; } 
    
    .slider-nav { width: 35px; height: 35px; font-size: 14px; }
    .slider-progress-container { bottom: 15px; }
    .progress-item { width: 35px; }
}

/* Sayfa içeriği taşma engeli (page.php için) */
.custom-page-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.fade-out { opacity: 0; transform: translateY(-20px); transition: opacity 1s ease, transform 1s ease; pointer-events: none; }