/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
    --primary-color: #1A2530;
    --secondary-color: #D4A373;
    --light-bg: #F9F9F9;
    --text-color: #333;
    
    /* Değerlendirme Bölümü Değişkenleri */
    --card-bg: #faf7f2;          
    --card-border: #8b5a2b;      
    --text-main: #2c1e16;        
    --text-muted: #5c4a3d;       
    --star-color: #d4af37; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================================
   2. ORTAK BİLEŞENLER (BUTONLAR, BÖLÜMLER)
   ========================================= */
section {
    padding: 80px 5%;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: #b88a5b;
}

/* Scroll Animasyonları */
.fade-in { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* =========================================
   3. HEADER (ÜST MENÜ)
   ========================================= */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* =========================================
   4. HERO (KARŞILAMA EKRANI)
   ========================================= */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/kitchen.webp'); 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-position: center; 
    background-color: var(--primary-color); /* Resim yüklenmezse fallback */
    min-height: 500px;    
    color: white;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-subtitle {
    color: azure;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   5. HESAPLAMA MODÜLÜ
   ========================================= */
.calculator { 
    background-color: #e8ecef; 
}

.calc-box { 
    max-width: 500px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.calc-box select, .calc-box input { 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 1rem; 
}

.result-box { 
    padding: 15px; 
    background: var(--primary-color); 
    color: white; 
    border-radius: 5px; 
    font-weight: bold; 
    margin-top: 10px; 
    display: none; 
}

/* =========================================
   6. HİZMETLER (KART YAPISI)
   ========================================= */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    flex: 1 1 250px;
    max-width: 320px;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* =========================================
   7. PORTFOLYO (MARQUEE VE ÖNCESİ/SONRASI)
   ========================================= */
.portfolio-subtitle {
    font-weight: bold;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0;
    margin-top: 30px;
}

.marquee-track {
    display: flex;
    width: max-content; 
    animation: scrollMarquee 25s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 30px; 
    padding-right: 30px; 
}

.marquee-item {
    width: 600px; 
    flex-shrink: 0;
    background: var(--light-bg);
    border-radius: 8px;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: translateZ(0); 
    will-change: transform;
}

.marquee-item h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
}

.image-after, .image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.image-before {
    clip-path: inset(0 50% 0 0); 
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    pointer-events: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* =========================================
   8. DEĞERLENDİRMELER (REVIEWS SLIDER)
   ========================================= */
.reviews-section {
    background-color: var(--bg-color);
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-main);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title2 {
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-slide {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    background: var(--card-bg);
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--card-border);
    padding: 40px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.review-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.review-slide p {
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.customer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.slider-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: var(--card-border);
    border: 1px solid #eaeaea;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--card-border);
    color: #fff;
}

.prev-btn { left: -60px; }
.next-btn { right: -60px; }

.slider-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #e0d8d0;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--card-border);
    transform: scale(1.2);
}

/* =========================================
   9. İLETİŞİM FORMU VE WHATSAPP BUTONU
   ========================================= */
.contact {
    background-color: var(--light-bg);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact select, .contact textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px;
}

/* =========================================
   11. RESPONSIVE (MOBİL UYUM) AYARLARI
   ========================================= */
@media (max-width: 850px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .marquee-item { 
        width: 350px; 
    }
    .before-after-container { 
        height: 250px; 
    }
}

/* =========================================
   12. SIKÇA SORULAN SORULAR (FAQ) BÖLÜMÜ
   ========================================= */
.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 10px;
}

.faq-answer p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 15px;
}

/* Akordeon Aktif Durumu (JS tetikleyince çalışır) */
.faq-item.active .faq-answer {
    max-height: 200px; /* İçeriğin rahat sığması için üst sınır */
    padding-top: 10px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* + ikonunu x işaretine çevirir */
    color: var(--secondary-color);
}

/* =========================================
   13. KARANLIK TEMA (DARK MODE) - GÜNCEL
   ========================================= */
/* Buton Stili */
.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
    padding-top: 2px;
}

.theme-btn:hover {
    transform: scale(1.15);
}

/* Dark Mode Aktifken Değişecek Renk Paleti */
body.dark-mode {
    --primary-color: #0d131a; /* Koyu arka plan */
    --light-bg: #1e2a38;      /* Kartlar ve formlar için koyu gri/mavi */
    --text-color: #e0e0e0;    /* Genel açık gri metin */
    
    /* Değerlendirme Bölümü ve Genel Başlıklar İçin */
    --bg-color: #0a0f14;
    --card-bg: #1e2a38;
    --text-main: #f5f5f5;     /* Parlak açık renk metin */
    --text-muted: #b0b0b0;    /* İkincil/silik açık metin */
    
    background-color: var(--primary-color);
}

/* --- Siyah Kalmayı Önleyen Tüm Metin ve Başlık Düzenlemeleri --- */
body.dark-mode section h1,
body.dark-mode section h2,
body.dark-mode section h3,
body.dark-mode section h4,
body.dark-mode .card h3,
body.dark-mode .marquee-item h3,
body.dark-mode .faq-question,
body.dark-mode .customer-name {
    color: var(--text-main); /* Siyah kalan tüm başlıkları açık renk yapar */
}

/* Ana Bölüm Başlıkları (Vurgu için Altın/Ahşap Tonunda Kalır) */
body.dark-mode section h1,
body.dark-mode section h2 {
    color: var(--secondary-color);
}

/* SSS (FAQ) Cevap Metinlerinin Sabit Koyu Kalmasını Engeller */
body.dark-mode .faq-answer p {
    color: var(--text-muted);
}

/* Bölüm Arka Plan Renk Sabitlemeleri */
body.dark-mode .faq-section,
body.dark-mode .calculator,
body.dark-mode .contact {
    background-color: var(--bg-color);
}

/* Form Elemanlarının İç Metin ve Arka Plan Renkleri */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid #444;
}

/* Dil Butonu Stili */
.lang-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* =========================================
   14. MOBİL HAMBURGER MENÜ VE EK ÖZELLİKLER
   ========================================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Telefonla Doğrudan Arama Sabit Butonu (WhatsApp'ın Üstünde Duracak) */
.phone-float {
    position: fixed;
    bottom: 80px; /* WhatsApp butonunun hizasına göre üstünde durur */
    right: 20px;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.phone-float:hover {
    transform: scale(1.05);
}

/* Mevcut Medya Sorgusunu (max-width: 768px) Bununla Güncelleyin veya Altına Ekleyin */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mobilde görünür yap */
    }

    nav {
        position: static;
    }

    nav ul {
        display: none; /* Menüyü varsayılan olarak gizle */
        flex-direction: column;
        gap: 15px;
        text-align: center;
        position: absolute;
        top: 100%; /* Header yüksekliğine göre ayarlandı */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* JavaScript ile tetiklenecek aktif sınıfı */
    nav ul.active {
        display: flex !important;
    }
    
    header {
        flex-direction: row; /* Mobilde logo ve hamburger yan yana dursun */
        justify-content: space-between;
    }
}

/* Footer Link Stilleri */
.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: #ccc;
    margin: 0 10px;
}