/* --- ESTETİK & SOFT TASARIM --- */
:root {
    /* -- Varsayılan (Aydınlık) Tema -- */
    --primary-dark: #20272b;    /* Yumuşak Lacivert/Antrasit */
    --primary-light: #5d6d7e;   
    --accent-gold: #ab7a16;     /* Sıcak Altın */
    --text-main: #4a4a4a;       /* Tam siyah değil, koyu gri */
    --text-light: #95a5a6;
    --bg-body: #fdfdfd;         /* Kırık beyaz */
    --bg-card: #ffffff;
    --bg-alt: #f4f6f7;
    
    /* Fontlar */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Yuvarlaklık Ayarları */
    --radius-btn: 50px;   
    --radius-card: 20px;  
    --radius-img: 20px;
    
    /* Gölgeler */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-strong: 0 20px 50px -10px rgba(0,0,0,0.15);
}

/* -- Karanlık Tema -- */
[data-theme="dark"] {
    --primary-dark: #ecf0f1;    
    --primary-light: #bdc3c7;
    --accent-gold: #eebb77;     
    --text-main: #dcdde1;
    --text-light: #7f8c8d;
    --bg-body: #121212;         
    --bg-card: #1e1e1e;         
    --bg-alt: #181818;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
}

[data-theme="dark"] .btn-upload {
    color: #1a1a1a !important; /* Arka plan beyazsa yazı koyu (siyahımsı) olsun */
    background-color: #ffffff; /* Butonun kendisi beyaz kalsın */
    border-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: background-color 0.4s ease, color 0.3s ease; }

body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s;}
ul { list-style: none; }
img { width: 100%; display: block; border-radius: var(--radius-img); }

/* --- NAVBAR --- */

/* --- MODERN OVAL NAVBAR (GÜNCEL & HATASIZ) --- */
header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- KARANLIK MOD UYUMU --- */
[data-theme="dark"] nav {
    background: rgba(30, 30, 30, 0.8); /* Koyu transparan arka plan */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-links a {
    color: #ffffff;
}

[data-theme="dark"] .logo-dark-part,
[data-theme="dark"] .logo-text-part {
    fill: #ffffff; /* Logo ve metin beyaz olsun */
}

[data-theme="dark"] .burger div {
    background-color: #ffffff;
}

/* --- NAV LİNKLERİ VE BUTON --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}


.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn-nav {
    border: 1px solid var(--primary-dark);
    padding: 8px 25px;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

.btn-nav:hover {
    background: var(--accent-gold) !important;
    color: white !important;
    border-color: var(--accent-gold);
}

 
/* --- MOBİL TASARIM (MENÜ GİZLEME) --- */
@media screen and (max-width: 768px) {

    header{
        width: 99%;
    }

    .nav-links {
      position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 1; /* Navbar'dan daha üstte olmalı */
        
        /* GİZLEME KOMUTLARI */
        transform: translateX(100%); /* Ekranın tamamen dışına at */
        visibility: hidden;         /* Tamamen görünmez yap */
        pointer-events: none;       /* Kapalıyken üzerine tıklanamasın */
        
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: transform 0.4s ease-in-out, visibility 0.4s;
    }

/* MENÜ AÇIKKEN */
    .nav-active {
        transform: translateX(0%);
        visibility: visible;        /* Görünür yap */
        pointer-events: auto;       /* Tıklanabilir yap */
    }

    [data-theme="dark"] .nav-links {
        background: rgba(20, 20, 20, 0.98);
    }

    .burger {
        display: block;
        z-index: 1002; /* Burger menü her zaman en üstte */
    }
}

/* Burger Animasyonu (X işareti olması için gereken eksik kod) */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);

}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 20px; /* Aralarındaki boşluk */
    z-index: 2000; /* Her zaman en üstte görünsünler */
}

/* --- LOGO VE DİĞERLERİ --- */
.logo-container { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; transition: transform 0.3s ease; display: block; }
.theme-switch { cursor: pointer; font-size: 1.2rem; color: var(--primary-dark); transition: 0.3s; margin-left: 10px; display: flex; align-items: center; }
[data-theme="dark"] .theme-switch { color: #ffffff; }
/* Burger Menu (Mobil için Eksikti, Eklendi) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--text-main); margin: 5px; transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('/İmages/headerphoto.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffffc6;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.btn-main {
    background:#2d373cbd;
    color: #fff;
    padding: 12px 38px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-main:hover {
    transform: translateY(-3px);
    background:rgba(99, 58, 26, 0.544);
    box-shadow: 0 15px 30px rgba(212, 172, 110, 0.6);
}

/* --- ORTAK SECTION --- */
.section { padding: 6rem 10%; }
.bg-alt { background-color: var(--bg-alt); }
.bg-pattern {
    background-color: var(--bg-card);
    background-image: radial-gradient(var(--text-light) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.9;
}

.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.section-title p { color: var(--accent-gold); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;}

/* --- HAKKIMIZDA --- */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.2rem; color: var(--primary-dark); font-family: var(--font-heading); margin-bottom: 1.5rem; }
.about-img img { box-shadow: var(--shadow-strong); border-radius: var(--radius-card); }

/* --- SANAL STÜDYO (TAM UYUMLU & HATASIZ) --- */

/* Ana Kapsayıcı */
.studio-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Yumuşak gölge */
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Sol Panel: Kontroller */
.studio-controls {
    position: relative;
    flex: 1;
    min-width: 280px; /* Biraz genişletildi */
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- STÜDYO YÜKLEME ANİMASYONU --- */

/* Yükleyici Kutusu */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px; /* Listenin yaklaşık yüksekliği kadar */
    width: 100%;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    gap: 15px;
}

.loader-container p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Dönen Çember (Spinner) CSS'i */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1); /* Hafif gri çerçeve */
    border-left-color: var(--accent-gold); /* Temana uygun altın rengi */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Dönme animasyonu */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Başlangıçta gizlemek için kullanılan sınıf */
.hidden-opacity {
    opacity: 0;
    /* display: none yerine opacity kullanıyoruz ki geçiş yumuşak olsun. 
       Ancak yer kaplamaması için height'ı da sıfırlayabiliriz ama şimdilik opacity yeterli. */
    pointer-events: none; /* Görünmezken tıklanamasın */
    transition: opacity 0.5s ease;
}

/* Liste görünür olduğunda yumuşak geçiş yapsın */
.furniture-list {
    transition: opacity 0.5s ease;
}

/* Sağ Panel: Sahne */
.studio-stage {
    flex: 3;
    min-width: 300px;
    height: 600px; /* Yükseklik artırıldı */
    background-color: #f4f4f4; /* Hafif gri zemin */
    touch-action: none;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    transition: border 0.3s;
}

[data-theme="dark"] .studio-stage {
    background-color: #2a2a2a;
    border-color: #444;
}

#roomImage {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Resmi alana doldur */
    display: none;
    pointer-events: none; /* Resim sürüklenmesin, sadece mobilya sürüklensin */
}

/* --- ÜRÜN LİSTESİ (HTML'deki ID: studio-container) --- */
.furniture-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3'lü ızgara */
    gap: 10px;
    max-height: 200px; /* Çok uzamasın, scroll olsun */
    overflow-y: auto;
    padding: 5px;
}

/* Listedeki mobilya resimleri */
.furniture-list img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.furniture-list img:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- AYARLAR PANELİ (Item Controls) --- */
.item-controls {
   display: none; /* Başlangıçta kapalı */
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--accent-gold);
    /* Ürün listesiyle aynı boyutta kalması için */
    width: 100%;
    animation: slideInLeft 0.3s ease-out;
}
.hidden-list {
    display: none !important;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.item-controls h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.flip-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-tool {
    flex: 1;
    background: var(--bg-alt);
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
    color: var(--text-main);
}

.btn-tool:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

/* Aktiflik durumu için (opsiyonel) */
.btn-tool.active {
    background: var(--primary-dark);
    color: white;
}


/* Slider Grupları */
.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

/* Range Slider Özelleştirme */
input[type=range]::-webkit-slider-thumb  {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    transition: background 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
}

/* --- SAHNEDEKİ MOBİLYA --- */
.added-furniture {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Bu JS ile ezilecek ama başlangıç için kalsın */
    cursor: grab;
    z-index: 100;
    /* transition: transform 0.1s; <- Sürüklerken takılma yaparsa bunu kaldır */ 
}

.added-furniture:active {
    cursor: grabbing;
}

/* Mobilya Seçildiğinde */
/* .added-furniture.selected {
    border: 2px dashed var(--accent-gold);
    padding: 2px; 
} 

/* Butonlar */
.btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-dark);
    color: #fff;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    font-weight: 500;
}

.btn-upload:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-delete {
    width: 100%;
    padding: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-delete:hover {
    background: #ff6b81;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobilde Düzen */
@media screen and (max-width: 768px) {
    .studio-controls {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        padding-right: 0;
    }
    
    .furniture-list {
        grid-template-columns: repeat(4, 1fr); /* Mobilde yan yana daha çok sığsın */
    }
}

.item-controls { margin-top: 20px; border-top: 1px solid var(--bg-alt); padding-top: 20px; }
.item-controls label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; margin-top: 10px; }
.btn-danger {
    background: #e74c3c; color: white; border: none; padding: 10px; border-radius: var(--radius-btn); cursor: pointer; width: 100%;
}
.small-text { font-size: 0.8rem; color: var(--text-light); }
.note-text { font-size: 0.8rem; color: var(--text-light); margin-top: 15px; text-align: center; font-style: italic; }

/* Range Slider */
input[type=range] {
    width: 100%; height: 6px; 
    background: #ddd; 
    border-radius: 5px; 
    outline: none; 
    -webkit-appearance: none;
    appearance: none; /* Standart özellik eklendi */
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-gold); cursor: pointer;
}

/* --- PORTFOLYO (DÜZELTİLDİ) --- */
.filter-buttons { margin-bottom: 3rem; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    border: 1px solid transparent;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-dark);
    color: var(--bg-card);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-grid {
    display: grid; /* IZGARA YAPISI GERİ EKLENDİ */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

    /* YENİ EKLENEN KAYDIRMA ÖZELLİKLERİ */
    max-height: 800px;       /* Yükseklik sınırı (İstediğin kadar artırıp azaltabilirsin) */
    overflow-y: auto;        /* İçerik taşarsa kaydırma çubuğu çıkar */
    /* overscroll-behavior: contain;  */
    /* Sayfanın komple aşağı kaymasını engeller */
    
    padding-right: 15px;     /* Scrollbar ile resimler arasına boşluk */
    padding-bottom: 15px;    /* Alt kısımda biraz boşluk */
    
    /* Grid içeriğinin yukarıda toplanmasını sağlar (Az ürün varken dağılmayı önler) */
    align-content: start; 
}

/* Mobilde yükseklik biraz daha az olsun ki ekranı kaplamasın */
@media (max-width: 768px) {
    .portfolio-grid {
        max-height: 500px;
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}


.portfolio-item {
    position: relative;
    cursor: pointer;
    height: 300px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.portfolio-item img {
    height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.1); }

.overlay-info {
    position: absolute;
    pointer-events: none;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: 0.3s;
}
.portfolio-item:hover .overlay-info { bottom: 0; }
.overlay-info h3 { color: white; font-family: var(--font-heading); }

/* --- İLETİŞİM (YENİLENMİŞ) --- */
.contact-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-strong);
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yarı yarıya böl */
    overflow: hidden;
    min-height: 450px;
}

/* Sol Taraf: Bilgiler */
.contact-info {
    padding: 50px;
    background: var(--bg-card); /* Koyu değil, kart rengi */
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header { margin-bottom: 40px; }
.contact-header h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 10px; }
.contact-header p { color: var(--text-light); font-size: 1rem; }

.info-list { display: flex; flex-direction: column; gap: 30px; }

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* İkon Kutuları (Modern Görünüm) */
.icon-box {
    width: 60px; height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.info-item h4 { font-size: 1.1rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 2px; }
.info-item span { color: var(--text-light); font-size: 0.95rem; }

/* Sosyal Medya */
.socials { margin-top: 50px; display: flex; gap: 15px; }
.socials a {
    width: 45px; height: 45px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}
.socials a:hover { background: var(--accent-gold); color: #fff; transform: translateY(-3px); }

/* Sağ Taraf: Harita */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Mobil için yükseklik garantisi */
    position: relative;
}
.map-container iframe {
    filter: grayscale(0.2); /* Haritaya hafif gri ton vererek daha şık gösterir */
    transition: 0.5s;
}
.map-container:hover iframe { filter: grayscale(0); }

/* --- SABİT WHATSAPP BUTONU --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366; /* WhatsApp Yeşili */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999; /* Her şeyin üstünde dursun */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Sonsuz Nabız Animasyonu */
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RESPONSIVE AYARLAR */
@media screen and (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
    .contact-info { padding: 30px; order: 2; /* Bilgiler altta */ }
    .map-container { order: 1; height: 300px; /* Harita üstte */ }
    
    .whatsapp-btn {
        width: 55px; height: 55px; font-size: 30px;
        bottom: 20px; right: 20px;
    }
}

/* Footer */
footer { text-align: center; padding: 20px; background: var(--primary-dark); color: white; margin-top: 50px; font-size: 0.9rem; }

/* --- ANIMASYONLAR --- */
.hidden-left { opacity: 0; transform: translateX(-50px); transition: all 1s ease; }
.hidden-right { opacity: 0; transform: translateX(50px); transition: all 1s ease; }
.hidden-up { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.show { opacity: 1; transform: translateX(0) translateY(0); }

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-card);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 50px;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .burger { display: block; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .about-container, .studio-wrapper, .contact-wrapper { grid-template-columns: 1fr; display: block; }
    .studio-controls { border-right: none; border-bottom: 1px solid #eee; margin-bottom: 20px; }
    .contact-info { border-radius: var(--radius-card) var(--radius-card) 0 0; }
}

/* --- WHY US SLIDER --- */
.why-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.why-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px); /* Sağdan gelme başlangıcı */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.why-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.why-content {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    background: var(--bg-card);
    padding: 40px;
}

.why-text { flex: 1; }
.why-text h3 { 
    font-family: var(--font-heading); 
    font-size: 2.2rem; 
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.why-text p { font-size: 1.1rem; color: var(--text-main); }

.why-image { flex: 1; height: 100%; }
.why-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius-card);
}

/* Mobilde alt alta gelmesi için */
@media (max-width: 768px) {
    .why-slider { height: auto; }
    .why-content { flex-direction: column; text-align: center; }
    .why-slide { position: relative; display: none; transform: none; }
    .why-slide.active { display: block; }
    .why-image { height: 250px; }
}



/* --- ORTAK KAYDIRMA ÇUBUĞU TASARIMI (SCROLLBAR) --- */
/* Bu kodlar kaydırma çubuklarının kaba görünmesini engeller, siteye uyumlu ince hale getirir */
.scroll-area::-webkit-scrollbar {
    width: 8px;
}
.scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.scroll-area::-webkit-scrollbar-thumb {
    background: var(--primary-dark); 
    border-radius: 4px;
}
.scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold); 
}

/* --- 1. SANAL STÜDYO ÜRÜN LİSTESİ --- */
.furniture-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Yan yana 2 ürün olsun (Mobilde daha şık) */
    gap: 15px;
    
    /* Kaydırma Ayarları */
    max-height: 60vh; /* Ekran yüksekliğinin %60'ı kadar yer kaplasın */
    overflow-y: auto; /* Dikey kaydırma aç */
    /* overscroll-behavior: contain;  */
    /* ÖNEMLİ: Sayfanın kaymasını engeller */
    
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Mobilya görselleri kutuya sığsın */
.furniture-list img {
    width: 100%;
    height: 100px; /* Sabit yükseklik verelim ki düzen bozulmasın */
    object-fit: cover;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.furniture-list img:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}


/* --- LIGHTBOX (RESİM BÜYÜTME) STİLLERİ --- */
.image-modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 20000; /* WhatsApp butonu ve her şeyin üstünde */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Siyah şeffaf arka plan */
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    cursor: pointer;
    animation: zoomIn 0.3s ease; /* Açılış animasyonu */
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent-gold);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* Mobilde resim tam genişlikte olsun */
@media only screen and (max-width: 700px){
    .modal-content { width: 100%; }
}

/* --- ÇEREZ BİLDİRİMİ --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95); /* Koyu, hafif saydam */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* Ortala */
    align-items: center;
    gap: 20px;
    z-index: 9999; /* Her şeyin üstünde */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%); /* Başlangıçta aşağıda gizli */
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0); /* Yukarı kayarak gelir */
}

.cookie-banner p {
    font-size: 0.85rem;
    margin: 0;
}

.btn-accept {
    background-color: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap; /* Buton yazısı kırılmasın */
    transition: 0.2s;
}

.btn-accept:hover {
    background-color: #fff;
    color: var(--primary-dark);
}

/* Mobilde alt alta olsun */
@media screen and (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}