/* ======================================================
   1. GENEL AYARLAR, DEĞİŞKENLER & YARDIMCI SINIFLAR
========================================================= */

/* Renk ve Font Değişkenleri */
:root {
    --primary-color: #FF6B00; /* Marka Turuncusu */
    --dark-color: #212529;    /* Koyu Antrasit */
    --gray-color: #343A40;    /* Koyu Gri (Metin) */
    --light-gray-color: #f4f4f4; /* Açık Gri Arka Plan */
    --white-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

/* Genel Sayfa Sıfırlama ve Ayarları */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Sayfa içi linklerde yumuşak kaydırma */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-color);
}

/* Tekrar Eden Yapılar İçin Yardımcı Sınıflar */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}


/* ======================================================
   2. BÖLÜM 1: HEADER & GİRİŞ (HERO) ALANI
========================================================= */
.hero-section {
    position: relative;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 10;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Yeni Kod */
.logo {
    height: 105px; /* Değeri 45px'ten 55px'e yükselttik */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}


/* ======================================================
   3. BÖLÜM 2: ÜRÜNLERİMİZ
========================================================= */
.products-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.btn-details {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-details:hover {
    text-decoration: underline;
}


/* ======================================================
   4. BÖLÜM 3: NEDEN M&F&D?
========================================================= */
.why-mfd-section {
    padding: 80px 0;
    background: var(--light-gray-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}


/* ======================================================
   5. BÖLÜM 4: MÜŞTERİ YORUMLARI
========================================================= */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-card cite {
    font-weight: 600;
}

/* ======================================================
   6. BÖLÜM 5: BÜLTEN KAYDI
========================================================= */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 12px;
    width: 300px;
    border-radius: 5px;
    border: none;
}

.newsletter-form .btn-primary {
    border-color: var(--white-color);
}
.newsletter-form .btn-primary:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

/* ======================================================
   7. BÖLÜM 6: FOOTER
========================================================= */
.footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 90px;
    margin-bottom: 15px;
    
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col i {
    margin-right: 10px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* ======================================================
   8. MOBİL UYUMLULUK (RESPONSIVE)
========================================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        /* Basit mobil menü: Şimdilik linkleri gizle */
        display: none; 
    }

    .product-grid,
    .feature-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        max-width: 400px;
    }
}

/* ======================================================
   9. JAVASCRIPT İLE KONTROL EDİLEN STİLLER
========================================================= */

/* Kaydırma sonrası Navbar stili */
.navbar.navbar-scrolled {
    background-color: var(--dark-color);
    position: absolute; /* Sayfa ile birlikte kayması için */
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.4s ease;
}


/* Ekrana gelirken belirecek bölümlerin başlangıç stili (görünmez hal) */
.products-section,
.why-mfd-section,
.testimonials-section,
.newsletter-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* JavaScript tarafından 'visible' sınıfı eklendiğinde uygulanacak stil (görünür hal) */
.products-section.visible,
.why-mfd-section.visible,
.testimonials-section.visible,
.newsletter-section.visible {
    opacity: 1;
    transform: translateY(0);
}
/* SSS Bölümü Stilleri (Kontrol amaçlı) */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray-color); /* Diğer bölümlerden ayırmak için */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    background: var(--white-color); /* Kart görünümü için */
    border-radius: 5px;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] {
    border: 1px solid var(--primary-color);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.7;
}
/* ======================================================
   11. WHATSAPP FLOATING ACTION BUTTON (FAB)
========================================================= */

.whatsapp-fab {
    position: fixed; /* Sayfa kaysa bile yerinin sabit kalmasını sağlar */
    width: 60px;
    height: 60px;
    bottom: 25px; /* Ekranın altından mesafe */
    right: 25px;  /* Ekranın sağından mesafe */
    background-color: #25D366; /* WhatsApp'ın resmi yeşil rengi */
    color: #FFF;
    border-radius: 50%; /* Tam yuvarlak yapar */
    text-align: center;
    font-size: 30px; /* İkon boyutu */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Diğer tüm elementlerin üzerinde kalmasını sağlar */
    
    /* İkonu tam ortaya hizalamak için */
    display: flex;
    justify-content: center;
    align-items: center;

    transition: transform 0.3s ease;
}

/* Üzerine gelince hafif büyüme efekti */
.whatsapp-fab:hover {
    transform: scale(1.1);
}