/* --- CSS DEĞİŞKENLERİ (Tema Yönetimi) --- */
:root {
    /* Varsayılan: DARK MODE */
    --bg-color: #050505;
    --bg-gradient-start: #050505;
    --bg-gradient-end: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --keyword-color: #c0c0c0;
    --border-color: rgba(255, 255, 255, 0.1);
    --logo-filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    --door-shadow: inset 0 0 30px rgba(0,0,0,0.3);
    
    /* Buton Renkleri */
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-hover: rgba(255, 255, 255, 0.2);
    --btn-text: #fff;
}

/* LIGHT MODE OVERRIDES */
body.light-mode {
    /* Tatlı, yumuşak bir krem/beyaz tonu */
    --bg-color: #faf9f6; 
    --bg-gradient-start: #faf9f6;
    --bg-gradient-end: #ece9e6; /* Hafif griye geçiş */
    
    /* Koyu Fontlar */
    --text-primary: #1a1a1a; 
    --text-secondary: #4a4a4a;
    --keyword-color: #2c3e50; /* Laciverte kaçan koyu gri */
    
    /* Kenarlıklar koyu olmalı */
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Logo gölgesi siyaha dönmeli */
    --logo-filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.1));
    
    /* Kapı üzerindeki gölgeyi biraz yumuşat */
    --door-shadow: inset 0 0 30px rgba(0,0,0,0.1);

    /* Butonlar */
    --btn-bg: rgba(0, 0, 0, 0.05);
    --btn-hover: rgba(0, 0, 0, 0.1);
    --btn-text: #333;
}

/* Genel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    
    min-height: 100vh; 
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- KONTROL BUTONLARI (SAĞ ÜST) --- */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100; /* Her şeyin üstünde */
}

.control-btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.control-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

/* Ana Taşıyıcı */
.main-container {
    text-align: center;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* Header */
.header-section {
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-section h1 {
    font-size: 0;
    margin: 0;
    padding: 0;
}

/* LOGO */
.brand-logo {
    width: auto;
    height: auto;
    max-height: 110px; 
    max-width: 90%;
    margin-bottom: 1rem; 
    filter: var(--logo-filter);
    animation: floatLogo 6s ease-in-out infinite;
    transition: filter 0.5s ease;
}

/* KELİMELER */
.keywords {
    font-family: 'Cinzel', serif; 
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--keyword-color); 
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    
    width: 100%; 
    max-width: 1000px;
    white-space: nowrap; 
}

.keywords span {
    display: inline-block;
    /* Light mode için gölgeyi kaldırdık veya azalttık */
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.1);
}

/* AÇIKLAMA METNİ */
.description {
    max-width: 800px; 
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-secondary);
    
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    padding: 0 20px;
    transition: color 0.5s ease, border-color 0.5s ease;
}

/* KAPILAR ALANI */
.doors-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}

.door-frame {
    display: block;
    width: 200px;          
    height: 490px;         
    perspective: 1000px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.door-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.door-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover; 
    background-position: center;
    border-radius: 4px;
    box-shadow: inset 0 0 20px #000; /* İçerisi her zaman karanlık kalsın */
    z-index: 1;
}

.dev-bg { background-image: url('images/dev-bg.png'); border: 1px solid #333; }
.music-bg { background-image: url('images/music-bg.png'); border: 1px solid #333; }

/* KAPI ÖN YÜZLERİ */
.door-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #222;
    border-radius: 2px;
    transform-origin: right; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    z-index: 2;
    /* Light Mode'da kapı görseli değişmesin ama üzerindeki gölge uyumlu olsun */
    box-shadow: var(--door-shadow); 
}

#dev-door .door-panel { background-image: url('images/dev-room.png'); }
#music-door .door-panel { background-image: url('images/music-room.png'); }

/* Hover Efektleri */
@media (hover: hover) {
    #dev-door:hover .door-panel { transform: rotateY(60deg); box-shadow: -5px 0 20px rgba(0, 255, 100, 0.2); }
    #music-door:hover .door-panel { transform: rotateY(60deg); box-shadow: -5px 0 20px rgba(255, 100, 50, 0.2); }
}

/* MOBİL Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    .main-container { gap: 1rem; }
    .brand-logo { max-height: 80px; }
    
    .keywords { 
        font-size: 0.6rem; 
        gap: 5px; 
        letter-spacing: 1px;
        padding-bottom: 1rem;
        width: 100%;
        overflow-x: auto; 
        border-bottom: 1px solid var(--border-color); 
    }
    
    .description {
        font-size: 0.85rem;
        padding: 0; 
        border: none;
        width: 100%;
        max-width: 90%;
    }

    .doors-wrapper { gap: 1.5rem; }
    .door-frame { width: 150px; height: 368px; }
}

@media (max-width: 400px) {
    .door-frame { width: 130px; height: 319px; }
    .keywords { font-size: 0.5rem; } 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.zoom-out-exit {
    transform: scale(3);
    opacity: 0;
    filter: blur(10px);
}