/* Genel Ayarlar */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

p {
    font-family: 'Poppins', sans-serif;
}

/* --- Navbar --- */
header {
    background-color: #1B365D;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 50px;
    height: 100px;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.baslik {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: x-large;
}

/* --- Carousel --- */
.carousel {
    position: relative;
    overflow: hidden;
    width: 99vw;
    height: 650px;
    margin: 0;
    padding: 0;
}

.slides {
    /* DEĞİŞİKLİK YAPILDI: display: flex yerine display: block kullanıldı */
    display: block; 
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
 
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bu kural resmi keser, ancak alanı tam doldurur. */
}


.caption {
    position: absolute;
    top: 30%;
    left: 10%;
    color: white;
    padding: 20px;
    text-align: left;
}

.caption h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: -1px -1px 0 #1B365D, 1px -1px 0 #1B365D, -1px 1px 0 #1B365D, 1px 1px 0 #1B365D;
    margin: 0;
}

.caption h4 {
    font-size: 28px;
    font-weight: 500;
    color: white;
    text-shadow: -1px -1px 0 #1B365D, 1px -1px 0 #1B365D, -1px 1px 0 #1B365D, 1px 1px 0 #1B365D;
    margin-top: 10px;
}


/* --- Bölümler --- */
section {
    padding: 50px;
    text-align: center;
}

/* ÖNCEKİ VİDEO KURALI SİLİNDİ
.slide .carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
}
*/

/* Hakkımızda ve İhracat */
.about, .export {
    background-color: #f4f4f4;
    padding: 80px 20px;
    text-align: center;
}

.about h2, .export h2 {
    font-size: 36px;
    color: #1B365D;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.about p, .export p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* --- Ürünler (Ana Sayfa) --- */
.products {
    background-color: #1B365D;
    color: white;
}

/* Ürünler için sade 3'lü grid düzeni */
.product-grid {
    display: grid;
    /* 220px minimum genişlikte, mümkün olduğunca sığdır */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 16px;
    margin-top: 16px;
    /* Eski kaydırma stillerini temizledik */
    overflow-x: hidden; 
}

.product-grid .product {
    /* Kartın tamamının tıklanabilir olması için height: 100% kaldırıldı */
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
/* Linkin tüm kartı kaplamasını sağlayan kritik kural */
.product a {
    display: block; 
    height: 100%;
    width: 100%;
    text-decoration: none; 
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Metin Bilgisi (Her zaman görünür ve kartın ortasında) */
.product-grid .product .product-info {
    font-weight: 700; /* Kalınlaştırdık */
    font-size: 20px;
    text-align: center;
    color: #1B365D; /* Koyu renk yaptık */
    /* Resimli ürünün üzerine gelme stillerini iptal ettik (sadece metin kartı) */
    position: static !important; 
    opacity: 1 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* --- Ürün Sergileme Alanı (Video & Fotoğraf) --- */
.product-showcase {
    display: grid;
    /* 1. satır: Geniş fotoğraf için ayrılır. */
    /* 2. satır: İki video için ayrılır. */
    grid-template-columns: repeat(3, 1fr); /* 3 eşit sütun */
    grid-template-rows: auto auto; /* İki satır */
    gap: 15px;
    padding: 30px 0;
    margin-top: 30px;
}

.media-item {
    background-color: #1a2a41; /* Koyu arka plan */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* İlk öğeyi (Geniş Fotoğraf) 3 sütun genişletme */
.media-item.wide-image {
    grid-column: 1 / span 3;
    height: 350px; /* Sabit yükseklik */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Yazıyı aşağıda toplama */
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi keserek tam doldurma */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.media-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Başlık ve Açıklama (Caption) Stili */
.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: rgba(27, 54, 93, 0.8); /* Mavi yarı saydam arka plan */
    color: white;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

.media-caption h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.media-caption p {
    margin: 5px 0 0 0;
    font-size: 16px;
}


/* --- RESPONSIVE DÜZENLEME (Mobil Görünüm) --- */
@media (max-width: 768px) {
.product-showcase {
        /* MOBİL VE KÜÇÜK TABLET: ALT ALTA DİZİLİM İÇİN */
        flex-direction: column; 
        align-items: center; 
        padding: 30px 15px;
        gap: 20px;
    }
    
    .media-item {
        /* Alt alta dizilen öğeler mobil genişliğini kaplar, ancak dikey format bozulmaz */
        width: 100%; 
        /* YÜKSEKLİK KORUNDU (500px), ancak küçük telefonlar için 400px önerilir: */
        height: 500px;
        max-width: 350px; /* Çok geniş tabletlerde dahi formun dikey kalmasını garanti eder */
    }
/* ... (Diğer caption stilleri burada devam ediyor) ... */
}

/* --- Belgeler --- */
.certificates {
    background-color: #e1e1e1;
}

.certificate-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.certificate-grid img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}


/* --- Footer (Responsive) --- */
footer {
    background-color: #1a2a41;
    color: #f1f1f1;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    border-top: 5px solid #007bff;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    margin: 20px;
    text-align: left;
}

.footer-section.logo {
    text-align: left;
}

.footer-section.logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #ff8c00;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section.contact p {
    font-size: 16px;
    margin-bottom: 8px;
}


/* --- Mobile Menu --- */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #1B365D;
    position: absolute;
    top: 100px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
    z-index: 998;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    font-size: 18px;
}


/* --- RESPONSIVE Ayarlar --- */

/* Tablet Görünümü (1024px ve altı) */
@media (max-width: 1024px) {
    header {
        justify-content: center;
        height: auto;
        padding: 10px 20px;
    }

    header nav ul {
        display: none;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 15px; /* Navbar padding'ine göre ayarlandı */
    }

    /* Şirket ismi görünmesin */
    .baslik {
        display: none;
    }

    .carousel {
        height: 400px;
    }

    .caption h2 {
        font-size: 32px;
    }

    .caption h4 {
        font-size: 20px;
    }

    .certificate-grid img {
        width: 250px;
        height: 150px;
    }
}

/* Mobil Görünüm (768px ve altı) */
@media (max-width: 768px) {
    /* Genel Ayarlar */
    section {
        padding: 40px 15px;
    }

    /* Footer Responsive Düzeltmeleri */
    footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px; 
    }

    .footer-section {
        margin: 20px 0;
        text-align: center;
        min-width: 100%; 
    }

    .footer-section.logo {
        text-align: center;
    }

    .footer-section.logo img {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .footer-section h4 {
        margin-top: 15px; 
        font-size: 20px;
    }

    .footer-section ul li a,
    .footer-section p {
        font-size: 15px;
    }

    /* Carousel Küçültme */
    .carousel {
        height: 300px;
    }

    .caption {
        top: 20%;
        left: 5%;
    }

    .caption h2 {
        font-size: 24px;
    }

    .caption h4 {
        font-size: 16px;
    }
  
    /* Ürün Grid Mobil Düzeni */
    .product-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta tek sütun */
    }
  
    .product-grid .product-info {
        font-size: 18px;
    }

    .certificate-grid {
        flex-direction: column;
        align-items: center;
    }
  
    .certificate-grid img {
        width: 90%;
        height: auto;
    }
}

/* Çok küçük ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .caption h2 {
        font-size: 20px;
    }
    .caption h4 {
        font-size: 14px;
    }
    footer {
        padding: 20px 10px;
    }
}


/* WhatsApp */

.whatsapp-float {
    position: fixed; /* Ekrana sabitler */
    width: 60px;
    height: 60px;
    bottom: 40px; /* Alttan boşluk */
    right: 40px; /* Sağdan boşluk */
    background-color: #25d366; /* WhatsApp yeşili */
    color: #FFF;
    border-radius: 50px; /* Yuvarlak yapar */
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000; /* Diğer her şeyin üstünde görünmesini sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Daha koyu yeşil */
    transform: scale(1.1);
}

/* Küçük ekranlarda boyutunu küçültme (Opsiyonel) */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}