@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-dark: #042c64; 
    --accent-blue: #042c64;
    --accent-hover: #021a3d; 
    --bg-light: #f8fafc;
    --text-gray: #475569;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    line-height: 1.6;
}

/* Navbar (Menü) */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: auto;
    position: relative; /* Mobil menü açılır kapanır ayarı için zorunlu */
}

.logo img {
    height: 60px; 
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* MOBİL İÇİN HAMBURGER MENÜ İKONU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section (Ana Sayfa Karşılama) */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 6rem 5%; max-width: 1200px; margin: auto; gap: 4rem; }
.hero-content { flex: 1; }
.hero h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 2rem; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.btn-primary { background-color: var(--accent-blue); color: white; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.1rem; display: inline-block; transition: all 0.3s ease; box-shadow: 0 10px 15px -3px rgba(4, 44, 100, 0.3); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

/* Seksiyon Başlıkları */
.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; color: var(--primary-dark); }
.section-title span { color: var(--accent-blue); }

/* Hizmetler Grid */
.services-section { background-color: white; padding: 6rem 5%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: auto; }
.service-card { background: var(--bg-light); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 2rem; }
.service-content h3 { margin-bottom: 1rem; color: var(--primary-dark); }
.service-content p { color: var(--text-gray); }

/* Makinelerimiz / Teknoloji Section */
.machines-section { padding: 6rem 5%; max-width: 1200px; margin: auto; }
.machine-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 4rem; }
.machine-row:nth-child(even) { flex-direction: row-reverse; }
.machine-content { flex: 1; }
.machine-content h3 { font-size: 2rem; color: var(--accent-blue); margin-bottom: 1rem; }
.machine-content ul { list-style-position: inside; color: var(--text-gray); margin-top: 1rem; }
.machine-content li { margin-bottom: 0.5rem; }
.machine-image { flex: 1; }
.machine-image img { width: 100%; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Galeri Sayfası Stilleri */
.gallery-section { padding: 4rem 5% 6rem 5%; max-width: 1200px; margin: auto; }
.gallery-category { margin-bottom: 5rem; }
.gallery-category h3 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.gallery-category p { color: var(--text-gray); margin-bottom: 2rem; max-width: 800px; font-size: 1.1rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.video-box { background: #e2e8f0; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); position: relative; border: 1px solid #cbd5e1; }
.video-box video, .video-box iframe { width: 100%; height: 100%; object-fit: cover; border: none; }

/* Uyarı Bölümü Stilleri */
.warning-section { padding: 4rem 5%; background-color: #f1f5f9; border-top: 1px solid #e2e8f0; }
.warning-container { max-width: 1000px; margin: auto; background: white; padding: 3rem; border-radius: 16px; border-left: 8px solid #f59e0b; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
.warning-container h3 { color: #b45309; font-size: 1.8rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.warning-list { list-style: none; }
.warning-list li { margin-bottom: 1rem; position: relative; padding-left: 2rem; color: var(--primary-dark); font-size: 1.05rem; font-weight: 600; }
.warning-list li::before { content: "⚠️"; position: absolute; left: 0; top: 0; font-size: 1.2rem; }
.warning-list li span { display: block; font-weight: 400; color: var(--text-gray); font-size: 0.95rem; margin-top: 0.25rem; }

/* İletişim Sayfası Tasarım Kuralları */
.contact-section { padding: 6rem 5%; max-width: 1000px; margin: auto; }
.contact-container { background: white; padding: 3.5rem 2rem; border-radius: 24px; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.contact-item { padding: 2.5rem 1.5rem; background: var(--bg-light); border-radius: 16px; transition: all 0.3s ease; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-item:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 10px 20px -10px rgba(4, 44, 100, 0.15); }
.contact-item h4 { font-size: 1rem; color: var(--text-gray); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-item p a { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); text-decoration: none; transition: color 0.3s ease; }
.contact-item p a:hover { color: var(--accent-blue); }
.qr-image { width: 140px; height: auto; border-radius: 12px; margin-top: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.qr-image:hover { transform: scale(1.05); }

/* WhatsApp / Instagram Yüzen Butonları (Sabit Ayar) */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 1.1rem; padding: 12px 24px; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); z-index: 1000; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; white-space: nowrap; }
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 6px 14px rgba(37, 211, 102, 0.6); }
.instagram-float { position: fixed; bottom: 90px; right: 30px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #FFF; border-radius: 50px; text-align: center; font-size: 1.1rem; padding: 12px 24px; box-shadow: 0 4px 10px rgba(220, 39, 67, 0.4); z-index: 1000; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; white-space: nowrap; }
.instagram-float:hover { transform: scale(1.05); box-shadow: 0 6px 14px rgba(220, 39, 67, 0.6); }

footer { background-color: var(--primary-dark); color: white; text-align: center; padding: 3rem 5%; }

/* ======================================================
   MOBİL EKRANLAR İÇİN DÜZELTMELER (768px Altı Cihazlar)
   ====================================================== */
@media (max-width: 768px) {
    /* 1. Üç Çizgili Hamburger Menü Görünür Hale Gelir */
    .hamburger { display: flex; }
    
    /* 2. Linkler Gizlenir ve Tıklanınca Açılacak Dropdown Haline Gelir */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 0;
        gap: 0;
        z-index: 99;
    }

    /* JavaScript aktif ettiğinde menü açılır */
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Sayfa İçi Tasarımların Mobilde Alt Alta Gelmesi */
    .hero, .machine-row { flex-direction: column !important; text-align: center; gap: 2rem; }
    .machine-content ul { text-align: left; }
    .hero h2 { font-size: 2.5rem; }
    .contact-container { padding: 2rem 1rem; }
    .video-grid { grid-template-columns: 1fr; }
    .warning-container { padding: 1.5rem; }

    /* 3. MOBİLDE BUTONLARIN EKRAN DIŞINA TAŞMA SORUNU DÜZELTİLDİ */
    .whatsapp-float, .instagram-float {
        font-size: 0.85rem;      /* Yazılar mobilde küçültüldü */
        padding: 10px 16px;      /* Buton iç boşluğu daraltıldı */
        right: 15px;             /* Ekranın sağ kenarına daha çok yaklaştırıldı */
        max-width: 85vw;         /* Ekran genişliğini aşması engellendi */
    }
    
    .instagram-float { bottom: 80px; }
    .whatsapp-float { bottom: 20px; }
}

/* Ekstra küçük ekranlar için güvenlik (örneğin eski iPhone'lar) */
@media (max-width: 400px) {
    .whatsapp-float, .instagram-float {
        font-size: 0.8rem;
        padding: 8px 12px;
        right: 10px;
    }
    .instagram-float { bottom: 70px; }
}