/* === GENEL AYARLAR VE RENK PALETİ === */
:root {
    --primary-blue: #005A9C;
    --light-blue: #E6F7FF;
    --dark-text: #222222;
    --light-text: #555;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #DEE2E6;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #f4f8fc;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d6b;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

img {
    max-width: 100%;
    height: auto;
}

/* === HEADER, MOBİL MENÜ VE WHATSAPP BUTONU STİLLERİ === */

.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0 15px;
    min-height: 80px;
}
.logo {
    flex: 0 0 auto;
}
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.header-contact {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-left: 24px;
}

/* Logo */
.site-header .logo img {
    height: 50px; /* Logonun yüksekliğini ayarla */
    max-height: 50px;
}

/* Desktop Navigasyon */
.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.main-nav ul li a {
    padding: 10px 15px;
    font-weight: 500;
    color: var(--dark-text);
    border-radius: 5px;
    position: relative;
    display: block;
    background: transparent;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,90,156,0.10);
    text-decoration: none;
}

/* Telefon Numarası */
.header-contact {
    display: flex; /* Varsayılan olarak göster */
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Hamburger Menü İkonu (Varsayılan olarak gizli) */
.hamburger {
    display: none; /* Desktop'ta gizli */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1002; /* Menünün üzerinde olmalı */
}
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Navigasyon Paneli (Mobil için) */
/* Medya sorgusu dışında tanımlanır ki, transform animasyonu çalışsın */
.main-nav {
    transition: transform 0.3s ease-in-out;
}

/* Body scroll'u engelleme */
body.nav-open {
    overflow: hidden;
}

/* Arka Plan Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* WhatsApp Butonu */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 998;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.whatsapp-fab i {
    font-size: 2rem;
}
.whatsapp-fab span {
    font-weight: bold;
    margin-left: 10px;
}
/* Küçük ekranlarda yazıyı gizle, sadece ikon kalsın */
@media (max-width: 480px) {
    .whatsapp-fab span {
        display: none;
    }
    .whatsapp-fab {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    .whatsapp-fab i {
        font-size: 1.8rem;
    }
}

/* === ANA İÇERİK === */
main {
    padding: 3rem 0;
}

/* === MAKİNALAR SAYFASI FİLTRELEME === */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* === MAKİNA KARTLARI === */
.makine-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.makine-kart {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Animasyon için */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
    min-height: 420px; /* Kartların hizalı ve eşit görünmesi için */
}

.makine-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.makine-kart .resim-cerceve {
    width: 100%;
    height: 180px; /* Daha orantılı bir yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.makine-kart .resim-cerceve img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Resmin taşmasını engeller, orantılı gösterir */
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.makine-kart:hover img {
    transform: scale(1.05);
}

.kart-icerik {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* içeriğin kartı doldurmasını sağlar */
}

.kart-icerik h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.kart-icerik p {
    color: var(--light-text);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.detay-link {
    display: inline-block;
    align-self: flex-start; /* Butonu sola yaslar */
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.detay-link:hover {
    background: #003d6b;
    color: var(--white);
}

/* === FOOTER === */
.site-footer {
    background: var(--dark-text);
    color: var(--light-gray);
    padding: 3rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #ccc;
}
.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* === JAVASCRIPT ANİMASYONLARI === */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DÜZENLEMELER === */
@media (max-width: 992px) {
    .site-header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        padding: 0 8px;
    }
    .logo {
        flex: 0 0 auto;
    }
    .hamburger {
        display: flex;
        margin-left: 12px;
        align-items: center;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        z-index: 1001;
        transform: translateX(100%);
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .main-nav ul li a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    .header-contact {
        align-items: flex-start;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Masaüstü navbar büyütme */
@media (min-width: 993px) {
    .site-header .container {
        min-height: 80px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .main-nav ul {
        gap: 24px;
    }
    .main-nav ul li a {
        font-size: 1.15rem;
        padding: 16px 28px;
        border-radius: 8px;
        transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    }
    .main-nav ul li a:hover, .main-nav ul li a:focus {
        background: var(--primary-blue-light, #eaf4fb);
        color: var(--primary-blue-dark, #3b82c4);
        box-shadow: 0 2px 12px rgba(108,178,235,0.10);
        text-decoration: none;
    }
}

/* Gerekirse eski mobil menü ve hamburger stillerini kaldırdım */
@media (max-width: 600px) {
  .makine-listesi {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .makine-kart {
    min-height: 270px;
  }
  .makine-kart .resim-cerceve {
    height: 90px;
  }
  .kart-icerik {
    padding: 10px;
  }
  .kart-icerik h3 {
    font-size: 1rem;
  }
  .kart-icerik p {
    font-size: 0.92rem;
    margin-bottom: 0.7rem;
  }
  .detay-link {
    padding: 7px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .makine-listesi {
    grid-template-columns: 1fr;
  }

}


/* Magmaweld Yetkili Bayi Stilleri */
.magmaweld-fab {
    position: fixed; /* Sayfada sabit kalmasını sağlar */
    top: 10px; /* Üstten boşluk */
    right: 20px; /* Sağdan boşluk */
    background-color: #ffffff; /* Arka plan rengi (isteğe bağlı) */
    color: #333333; /* Metin rengi */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Gölgelik */
    text-decoration: none; /* Alt çizgiyi kaldırır */
    z-index: 1000; /* Diğer elementlerin üzerinde kalmasını sağlar */
    transition: all 0.3s ease;
}

.magmaweld-fab:hover {
    transform: scale(1.05); /* Üzerine gelince hafif büyüme efekti */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.magmaweld-content {
    display: flex; /* Logo ve metni yan yana hizalar */
    align-items: center; /* Dikey olarak ortalar */
    justify-content: center; /* Yatay olarak ortalar */
}

.magmaweld-content img {
    height: 30px; /* Logo yüksekliği */
    margin-right: 0px; /* Logo ile metin arası boşluk */
}

.magmaweld-content span {
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif; /* Yazı tipi */
}
/* Mobil Cihazlar İçin (Ekran genişliği 768px ve altı) */
@media (max-width: 768px) {
    .magmaweld-fab {
        /* Masaüstü pozisyonlarını sıfırla */
        top: auto;
        right: auto;

        /* Mobil için yeni pozisyon ata (Sol Alt) */
        bottom: 20px;
        left: 20px;
    }