/* ========================================================================== */
/* RESET */
/* ========================================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f4f7fb;
    color:#1e293b;
    line-height:1.7;
    overflow-x:hidden;
}

/* ========================================================================== */
/* CONTAINER */
/* ========================================================================== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ========================================================================== */
/* NAVBAR */
/* ========================================================================== */

.navbar{
    width:100%;
    height:90px;
    position:fixed;
    top:0;
    left:0;
    z-index:9999;
    background:rgba(0,0,0,0.95);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nav-container{
    height:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color: #d4d43c; /* MK Plast renk  */
    font-size:28px;
    font-weight:800;
}

/* NAV LINKS */

.nav-links{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-size:16px;
    font-weight:500;
    transition:0.3s;
    position:relative;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background: #d4d43c; /* renk vurgusu */
    transition:0.3s;
}

.nav-links a:hover::after{
    width:100%;
}

.nav-links a:hover{
    color: #d4d43c;
}

/* MENU */

.menu-toggle{
    display:none;
    color:white;
    font-size:32px;
    cursor:pointer;
}

/* ========================================================================== */
/* BUTTON - YERİ KORUNDU, RENKLER GÜNCELLENDİ */
/* ========================================================================== */

.btn{
    display:inline-block;
    padding:15px 40px;
    background: #d4d43c; /* Turuncu Arka Plan */
    color: white;
    text-decoration:none;
    border-radius:12px;
    font-weight:700;
    transition:0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover{
    transform:translateY(-5px);
    background: #000000; /* Hoverda Siyah */
    color: #d4d43c;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

/* ================= SLIDER ================= */

.products-wrapper{
    position:relative;
    width:90%;
    max-width:1200px;
    margin:140px auto;
    overflow:hidden;
    border-radius:25px;
    box-shadow:0 20px 50px rgba(0,0,0,0.2);
}

/* SLIDER */

.slider-container{
    display:flex;
    transition:transform 0.6s ease-in-out;
    touch-action:pan-y;
}

/* SLIDE */

.product-slide{
    min-width:100%;
    height:600px;
    position:relative;
}

.product-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(0.6);
}

/* TEXT */

.slider-text-content{
    position:absolute;
    left:40px;
    bottom:40px;
    color:white;
    z-index:5;
}

/* SLIDER OKLARI */

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,0.5);
    color:white;
    font-size:28px;
    cursor:pointer;
    z-index:10;
    transition:0.3s;
}

.slider-btn:hover{
    background: #d4d43c; /* Oklar hoverda turuncu olur */
    transform: translateY(-50%) scale(1.1);
}

/* SOL OK */

.prev-btn{
    left:20px;
}

/* SAĞ OK */

.next-btn{
    right:20px;
}
/* ========================================================================== */
/* DETAYLI BİLGİ BUTONU (LİNKİ BUTONA ÇEVİRME) */
/* ========================================================================== */

/* Görseldeki linkin class ismini 'detail-link' varsayarak hazırladım */
.slider-text-content a, 
.detail-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px; /* Detay butonu için biraz daha kompakt boyut */
    background: #d4d43c;/* MK Plast Kurumsal Turuncu */
    color: white !important; /* Yazı rengi her zaman beyaz kalsın */
    text-decoration: none;
    border-radius: 8px; /* Daha modern bir köşe yapısı */
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    border: none;
}

.slider-text-content a:hover, 
.detail-link:hover {
    background: #000000; /* Üzerine gelince kurumsal siyah */
    color:white !important; /* Yazı beyaza  döner */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Mevcut CSS yapındaki çakışmaları önlemek için genel btn yapısını da sabit tutuyoruz */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: #FF8C00; /* Marka rengi */
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
    background: #000000;
    color: #FF8C00;
}


.sosyal-medya{
    position:fixed;
    left:0;
    top:40%;
    display:flex;
    flex-direction:column;
    z-index:999;
}

.kart{
    width:160px;
    padding:15px;
    margin:3px 0;
    color:white;
    text-decoration:none;
    font-weight:bold;
    border-radius:0 10px 10px 0;
    transition:0.3s;
}

.kart:hover{
    transform:translateX(10px);
}

.instagram{
    background:#ec0955;
}

.facebook{
    background:#0972fa;
}

.whatsapp{
    background:#25D366;
}

.youtube{
    background:#990101;
}
.kart{
    width:180px;
    padding:12px;
    margin:3px 0;
    color:white;
    text-decoration:none;
    font-weight:bold;
    border-radius:0 10px 10px 0;

    display:flex;
    align-items:center;
    gap:10px;

    transition:0.3s;
}

.kart img{
    width:28px;
    height:28px;
}

.sosyal-medya i {
    font-size: 24px; /* İkon boyutu */
    margin-right: 10px; /* Metinle arasındaki boşluk */
    vertical-align: middle;
}

.instagram i { color: #ac4769; }
.facebook i { color: #0450b4; }
.whatsapp i { color: #1c9448; }
.youtube i { color: #FF0000; }

/* ========================================================================== */
/* SOSYAL MEDYA KARTLARI MOBİL DÜZENLEME */
/* ========================================================================== */

@media (max-width: 768px) {
    .sosyal-medya {
        top: auto;            /* Masaüstü üstten hizalamayı iptal et */
        bottom: 0;           /* Ekranın en altına yapıştır */
        left: 0;
        width: 100%;         /* Tüm genişliği kapla */
        flex-direction: row; /* Kartları yan yana diz */
        justify-content: space-around; /* Kartları eşit aralıklarla dağıt */
        padding: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .kart {
        width: 100%;         /* Her kart ekranın bir parçasını kaplar */
        margin: 0;           /* Boşlukları kaldır */
        border-radius: 0;    /* Köşeleri sıfırla */
        justify-content: center; /* İkonu ve metni ortala */
        padding: 12px 5px;
        font-size: 0;        /* Yazıları mobilde gizlemek daha şıktır (sadece ikon) */
    }

    .kart:hover {
        transform: translateY(-5px); /* Mobilde yana değil yukarı kaysın */
    }

    .kart i {
        font-size: 24px;     /* İkon boyutu */
        margin-right: 0;     /* Yazı gizlendiği için boşluğu sıfırla */
    }

    .kart img {
        width: 24px;
        height: 24px;
    }

    /* Yazıları mobilde de göstermek istersen yukarıdaki font-size: 0; satırını silip 
       aşağıdakini aktif edebilirsin (Tavsiye edilmez, ekran daralır) */
    /* 
    .kart { font-size: 10px; flex-direction: column; gap: 5px; } 
    */
}



/* SİYAH TAM BOY FOOTER */
.black-footer {
    background-color: #000000; /* Tam siyah */
    color: #ffffff;
    width: 100%;
    padding: 60px 0 20px 0; /* Üstten ve alttan boşluk */
    text-align: center;
    position: relative;
    clear: both;
    display: block;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.black-footer h2 {
    color: #d4d43c; /* Başlık rengi (Logo renginle uyumlu) */
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-items p {
    font-size: 18px;
    margin: 10px 0;
    color: #e2e8f0;
}

.contact-items strong {
    color: #ffffff;
}

/* Telif Hakkı Alt Çizgisi */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

/* Sayfa içeriği az olsa bile footer'ı en aşağıda tutmak için body ayarı */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.black-footer {
    margin-top: auto;
}

/* ========================================================================== */
/* 7. MOBİL UYUMLULUK (CRITICAL FIXES) */
/* ========================================================================== */
/* ... (Masaüstü kodların aynı kalsın) ... */

@media (max-width: 768px) {
    /* Hamburger butonu her zaman en üstte ve tıklanabilir olmalı */
    .menu-toggle {
        display: block !important; 
        position: relative;
        z-index: 10001; /* Nav-links'ten daha yüksek olmalı */
    }

    .nav-links {
        /* Varsayılan kapalı hali */
        display: none; 
        flex-direction: column;
        position: fixed; /* Absolute yerine Fixed daha güvenlidir */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Tam ekran kaplaması mobilde daha iyi çalışır */
        background: rgba(0, 0, 0, 0.98);
        padding-top: 100px; /* Logo ve butonun altında kalmasın */
        text-align: center;
        gap: 30px;
        z-index: 10000;
        overflow-y: auto;
    }

    /* JS tıklandığında bu sınıf devreye girer */
    .nav-links.active {
        display: flex !important;
    }

    /* Mobilde linklerin daha kolay tıklanması için */
    .nav-links a {
        font-size: 24px;
        display: block;
        padding: 10px;
    }

    /* Hero ve diğer içeriklerin menü butonunu kapatmasını engelle */
    .navbar {
        z-index: 10002;
    }
}


/* HAMBURGER ÇİZGİLERİ TASARIMI */
.menu-toggle {
    display: none; /* Masaüstünde gizli */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white; /* Çizgi rengi */
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important; /* Block yerine Flex yaparak çizgileri alt alta diziyoruz */
    }

    /* MENÜ AÇIKKEN ÇİZGİLERİN "X" ŞEKLİNİ ALMASI (Opsiyonel ama şıktır) */
    /* JS tarafında toggle yaparken nav-links'e active verdiğinde 
       eğer menu-toggle'a da active verirsen çalışır */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        padding-top: 100px;
        text-align: center;
        gap: 30px;
        z-index: 10000;
    }

    .nav-links.active {
        display: flex !important;
    }
}