:root {
    --bg-white: #ffffff;
    --bg-light-gray: #f4f5f7;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --primary-color: #34495e;
    --blue-accent: #3498db;
}

html {
    zoom: 0.9; /* %90 boyutuna çeker. Daha da küçük istersen 0.85 yapabilirsin. */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: var(--bg-light-gray); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    padding-top: 150px; /* Zıplamayı %100 engelleyen boşluk kalkanı */
}

/* ==============================================================
   1. HEADER VE LOGO (MASAÜSTÜ)
   ============================================================== */
.site-header {
    position: fixed; /* Sticky iptal edildi, Fixed ile sarsıntı bitti */
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 150px; /* Sabit başlangıç yüksekliği */
    padding-top: 20px;
}

.site-header.scrolled {
    height: 80px; /* Kaydırıldığında ineceği tam yükseklik */
    padding-top: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.logo-container {
    width: 100%;
    text-align: center;
    line-height: 0;
}

.logo-container img {
    display: block;
    margin: 0 auto;
    max-width: 250px;
    height: 80px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.site-header.scrolled .logo-container img {
    height: 45px; /* %50 pürüzsüz küçülme */
}

/* ==============================================================
   2. NAVİGASYON VE MENÜLER (MASAÜSTÜ)
   ============================================================== */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
    margin-top: 15px;
}

.site-header.scrolled .main-nav {
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--blue-accent); }

.nav-links li { position: relative; padding-bottom: 15px; margin-bottom: -15px; } 
.sub-menu { 
    display: none; position: absolute; top: 100%; left: 0; 
    background: var(--bg-white); box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    list-style: none; min-width: 220px; border-radius: 8px; 
    overflow: hidden; border: 1px solid #f1f5f9; z-index: 100;
}
.nav-links li:hover .sub-menu { display: block; }
.sub-menu li a { padding: 12px 20px; display: block; text-transform: none; border-bottom: 1px solid #f4f5f7; font-size: 13px;}
.sub-menu li:last-child a { border-bottom: none; }

/* ==============================================================
   3. SLIDER VE DİĞER BİLEŞENLER
   ============================================================== */
.slider-container { position: relative; width: 100%; height: 60vh; overflow: hidden; background: #000; }
.slider { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.slide-content { color: white; background: rgba(0,0,0,0.6); padding: 20px 40px; border-radius: 8px; text-align: center; backdrop-filter: blur(5px); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; font-size: 24px; padding: 10px 15px; cursor: pointer; z-index: 5; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; transition: background 0.3s; color: #2c3e50;}
.slider-btn:hover { background: rgba(255,255,255,1); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 768px) {
    /* 1. Kapsayıcıyı mutlak hizalamaya hazırla (Flexbox'ı eziyoruz) */
    .slide {
        position: relative !important; 
        display: block !important; 
    }

    /* 2. Kutuyu hayalet boşluklardan kurtar ve tam alta çivile */
    .slide-content {
        position: absolute !important;
        bottom: 15px !important;  /* Ekranın en altından tam olarak 15 piksel yukarıda durur */
        left: 5% !important;      /* Ekranı ortalamak için soldan %5 pay */
        width: 90% !important;    /* Genişliği %90'a sabitler */
        margin: 0 !important;
        
        transform: scale(0.70) !important; 
        transform-origin: bottom center !important; /* Aşağıdan yukarı doğru küçülmesini zorunlu kılar */
        backdrop-filter: blur(3px);
    }

    /* İçerik metinlerinin hassas ayarları */
    .slide-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }
    .slide-content p {
        font-size: 0.95rem !important;
    }
}



/* ==============================================================
   4. MOBİL ARAYÜZ VE DÖNEN BUTON
   ============================================================== */
.mobile-menu-toggle { 
    display: none; background: none; border: none; font-size: 30px; 
    cursor: pointer; color: var(--text-dark); z-index: 10002; 
    padding: 5px 10px; transition: all 0.4s ease; /* Dönme efekti için hız */
}

@media (max-width: 768px) {
    body { padding-top: 80px; } /* Mobilde başlangıç boşluğu */
    
    .site-header { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 0 20px; 
        height: 80px;
        align-items: center;
    }
    
    .site-header.scrolled { height: 60px; padding: 0 20px; }

    .logo-container { width: auto; text-align: left; }
    .logo-container img { margin: 0; height: 50px; max-width: 180px; }
    .site-header.scrolled .logo-container img { height: 40px; }
    
    /* Butonu sağa yaslama operasyonu */
    .main-nav { 
        width: auto; 
        margin-top: 0 !important; 
        display: flex;
        flex: 1; 
        justify-content: flex-end; 
    }
    
    .mobile-menu-toggle { display: block !important; margin-left: auto; }

    /* Yandan süzülen mobil menü */
    .nav-links { 
        position: fixed; top: 0; right: -100%; 
        width: 80%; height: 100vh; 
        background: var(--bg-white); 
        flex-direction: column; align-items: flex-start; 
        padding: 90px 30px 30px 30px; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.15); 
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 10001; 
        overflow-y: auto;
    }
    
    .nav-links.active { right: 0; }
/* Yandan süzülen mobil menü içindeki butonların yeni, şık ayarları */
    .nav-links li { 
        width: 100%; 
        border-bottom: 1px solid #f1f5f9; 
        padding: 8px 0; /* Boşlukları 15 pikselden 8 piksele düşürdük */
        margin: 0; 
    }
    
    .nav-links a { 
        font-size: 15px; /* Yazı boyutunu 18'den 15'e çekerek daha kibar yaptık */
        width: 100%; 
        display: block; 
        padding-left: 5px; /* Yazıları sola sıfır yapışmaktan kurtaran minik bir nefes boşluğu */
    }
    .sub-menu { 
        position: static; box-shadow: none; padding-left: 15px; 
        margin-top: 10px; display: block; border: none;
        background: #f8fafc;
    }
}