/* Genel Ayarlar */
/* Mobil cihazlarda içeriğin kaymasını engellemek için genel sabitleme */

:root {
    --primary-color: #004c8c;
    --secondary-color: #ff6600;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding-top: 0; /* Başlık sabit olmadığı için dolgu kaldırıldı */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header Stil Ayarları */
.header {
    background: #fff;
    border-bottom: 1px solid var(--light-gray);
    position: relative; 
    z-index: 1000;
}

/* Yeni Flexbox Container: Logo(Sol) | Navigasyon(Orta) | Diller(Sağ) */
.main-header-content {
    display: flex;
    justify-content: space-between; /* Öğe aralarına boşluk koyar */
    align-items: center;
    padding: 20px 0; /* İç dolgu ayarlandı */
}

.logo img {
    height: 60px; /* Logo boyutu ayarlandı */
}

.main-nav {
    flex-grow: 1; /* Navigasyonun ortada daha geniş yer kaplamasını sağlar */
    text-align: center;
}

.main-nav ul {
    display: flex;
    justify-content: center; /* Menü linklerini ortalar */
    gap: 25px;
}

.main-nav a {
    /* ... mevcut main-nav a stilleri burada kalacak ... */
}

/* Hamburger Butonu (Masaüstünde Gizli) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--primary-color);
    padding: 5px;
}

/* Sosyal linkleri, isteğiniz olan ana header'da tutmadık */
.social-links-container {
    display: none;
}


/* -------------------------------------- */
/* MOBİL DÜZENLEME (992px Altı) - GÜNCELLENDİ */
/* -------------------------------------- */
@media (max-width: 992px) {
    
    /* Mobil Kayma Önlemleri */
    html, body { max-width: 100%; overflow-x: hidden; }

    /* Ana Header Düzenlemesi (Hamburger butonu görünecek) */
    .main-header-content {
        justify-content: space-between; 
        padding: 15px 20px;
    }
    
    /* Masaüstü Navigasyonunu Gizle */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; /* Header'ın hemen altında başlar */
        left: 0;
        width: 100%;
        min-height: 100vh;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 900; 
        text-align: left;
    }
    
    /* Hamburger butonunu göster */
    .menu-toggle {
        display: block; 
        order: 3; /* Sağ tarafa atar */
    }

    /* Dil seçeneğini gizle (Mobil menü içine alabiliriz) */
    .language-selector {
        display: none;
    }
    
    /* Navigasyonu dikey listeye çevir */
    .main-nav ul {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 0;
        gap: 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    /* JS ile açılan menü sınıfı */
    .main-nav.is-open {
        display: block;
    }
    
    /* Footer ve Diğer Bölümler için mevcut mobil düzenlemeleriniz burada kalmalı. */
    /* ... (Mevcut @media 992px içindeki diğer stilleriniz) ... */

}
/* Genel Bölüm Stilleri */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Hakkımızda Bölümü */
.about-us-section {
    background-color: var(--bg-color);
}

.text-block p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Ürünler Bölümü */
.products-section {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.details-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.details-button:hover {
    background: var(--secondary-color);
}

/* Makine Parkuru Liste Sayfası */
.machine-park-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.machine-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.machine-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.machine-card a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.machine-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.machine-card .machine-info {
    padding: 15px;
    text-align: center;
}

.machine-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.machine-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* Makine Detay Sayfası Stilleri */
.machine-detail-page {
    padding: 80px 0;
}

.machine-detail-page .page-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.machine-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.machine-media {
    flex-basis: 70%;
    max-width: 70%;
}

.machine-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.machine-media .additional-images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.machine-media .additional-images img {
    width: calc(50% - 5px);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 150px;
}

.machine-media .youtube-video {
    width: 60%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.machine-media .youtube-video iframe {
    width: 100%;
    height: 100%;
}

.machine-text {
    flex-basis: 30%;
    max-width: 30%;
}

.machine-text h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.machine-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.machine-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.machine-text ul li {
    margin-bottom: 10px;
    display: list-item;
}

/* Projeler Bölümü */
.projects-section {
    background-color: var(--bg-color);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 15px 15px;
}

/* Referanslar Bölümü */
.references-section {
    padding-bottom: 80px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.reference-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reference-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.reference-card img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.reference-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* İletişim Bölümü */
.contact-section {
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info,
.contact-form-container {
    flex: 1;
}

.contact-info h3,
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form-container button {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background: var(--secondary-color);
}

/* Harita Bölümü */
.map-section {
    padding-top: 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
}

/* Ortak Bölümler */
.catalog-button-container {
    text-align: center;
    padding: 50px 0;
}

.catalog-button {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.catalog-button:hover {
    background: #e65100;
    transform: translateY(-5px);
}

/* WhatsApp Butonu */
.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100px;
}

.footer-contact,
.footer-newsletter {
    max-width: 300px;
}

.footer-contact h4,
.footer-newsletter h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-newsletter button:hover {
    background: #e65100;
}

.footer-bottom {
    text-align: center;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .top-header {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav {
        margin-top: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .contact-content {
        flex-direction: column;
    }
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    .footer-newsletter form {
        max-width: 350px;
        margin: 15px auto 0;
    }
    .machine-content {
        flex-direction: column;
    }
    .machine-media,
    .machine-text {
        flex-basis: 100%;
        max-width: 100%;
    }
    .machine-media .additional-images img {
        height: auto;
    }
    .machine-media .youtube-video {
        width: 100%;
        max-width: 100%;
    }
}
/* Ürün görseli için yeni konteyner */
.product-image-container {
    width: 100%; /* Ürün kartının genişliğini kapla */
    padding-top: 100%; /* Genişlik kadar yükseklik vererek kare olmasını sağlar */
    position: relative;
    overflow: hidden; /* Taşmaları gizle */
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görseli, oranını bozmadan kare alana sığdırır ve kırpar */
    object-position: center; /* Görseli merkeze hizala */
}
/* ========================================================================= */
/* AKORDEON STİLLERİ (Index.html içindeki Akordeon Yapısı için) */
/* ========================================================================= */

.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: var(--bg-color); /* Hafif arka plan */
    color: var(--primary-color);
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2em;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: var(--light-gray);
}

.accordion-header i {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

/* Aktif (açık) başlık stili */
.accordion-header.active {
    background-color: var(--primary-color); /* Kurumsal renk vurgusu */
    color: white;
}

/* Aktif başlıkta ikonun yönünü değiştirme */
.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--secondary-color); /* İkon rengini vurgu rengi yap */
}

/* Akordeon İçeriği (Çalışmanın Sırrı Buradadır!) */
.accordion-content {
    padding: 0 25px; 
    background-color: white;
    overflow: hidden;
    max-height: 0; /* Kapalı durum: JS bu değeri değiştirerek açar */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

/* İçerik Açıkken JS ile eklenen sınıf */
.accordion-content.show {
    /* JS tarafında max-height ayarlanacak, ancak padding'i burada belirleyelim */
    padding: 25px; 
}

/* Akordeon İçindeki Ürün Kartları için Boşluk Düzeltmesi */
.accordion-content .product-grid {
    margin-top: 0;
    padding-top: 0;
}

/* "Tüm Ürün Listesine Git" butonu */
.full-list-link {
    text-align: center;
    margin-top: 40px;
}

.button-small {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    font-size: 0.9em;
}
.button-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Ekstra: Slider'daki Buton Stili (Eğer HTML'de "button" sınıfı kullanıyorsanız) */
.slider-caption .button {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}
.slider-caption .button:hover {
    background-color: #e65100; /* Daha koyu turuncu */
}

