/* =========================================
   1. TEMEL AYARLAR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

.bg-index {
    background-image: url('fon-resmi.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.bg-systems {
    background-image: url('fon-dış-mekan.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* =========================================
   2. ÜST MENÜLER (HER SAYFAYA ÖZEL)
   ========================================= */

/* ANA SAYFA MENÜSÜ (SARI/FÜME) */
.navbar {
    background-image: url('Gemini_Generated_Image_hgninkhgninkhgni.png');
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; 
}

/* MİMARİ SİSTEMLER MENÜSÜ (KIRMIZI/SARI) */
.navbar-mimari {
    background-image: url('Gemini_Generated_Image_i7fjypi7fjypi7fj.png'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; 
}

/* DIŞ MEKAN SİSTEMLERİ MENÜSÜ (MOR/MAVİ/SARI) */
.navbar-dismekan {
    background-image: url('Gemini_Generated_Image_uujis5uujis5uuji.png'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0; 
}

/* =========================================
   MENÜ İÇERİK AYARLARI
   ========================================= */
.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    padding: 0 50px; 
}

.logo img { 
    max-height: 85px; 
    background-color: #ffffff; 
    padding: 4px 8px; 
    border-radius: 6px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: transform 0.4s ease; 
    display: block;
}

.logo img:hover { transform: scale(1.05); }

.nav-menu {
    display: flex;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 5px 25px; 
    border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu > li:hover > a::after { width: 70%; }
.nav-menu > li:hover > a { color: #3498db; }
.premium-link { color: #e74c3c !important; }
.nav-menu > li:hover > .premium-link { color: #c0392b !important; }

/* =========================================
   3. ANA SAYFA %50 BÖLÜNMÜŞ ZIG-ZAG YERLEŞİM
   ========================================= */
.vertical-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 115px); 
    overflow: hidden;
    gap: 3vh;
    padding: 2vh 0;
}

.row-group {
    position: relative;
    flex: 1; 
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent; 
    cursor: pointer; 
}

.row-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%; 
    z-index: 100;
}

.content-left { left: 0; padding: 0 5% 0 50px; text-align: left; }
.content-right { right: 0; padding: 0 50px 0 5%; text-align: right; }

.row-content h2 {
    color: #383E42; 
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.row-content p {
    color: #50533C; 
    font-family: 'NewBerolinaMT', 'New Berolina MT', cursive, serif; 
    font-size: 1.25rem; 
    line-height: 1.4;
    font-weight: normal; 
}

.row-track {
    position: absolute;
    width: 50%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-left { left: 0; }
.track-right { right: 0; }

.cf-img {
    position: absolute;
    height: 60%; 
    aspect-ratio: 16 / 9; 
    object-fit: contain;
    background: transparent;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
}

.pos-center { transform: translateX(0) scale(1.5); z-index: 10; opacity: 1; }
.pos-left-1 { transform: translateX(-110%) scale(1.0); z-index: 5; opacity: 0.9; }
.pos-right-1 { transform: translateX(110%) scale(1.0); z-index: 5; opacity: 0.9; }
.pos-left-2 { transform: translateX(-210%) scale(0.66); z-index: 4; opacity: 0.7; }
.pos-right-2 { transform: translateX(210%) scale(0.66); z-index: 4; opacity: 0.7; }
.pos-left-3 { transform: translateX(-300%) scale(0.44); z-index: 3; opacity: 0.5; }
.pos-right-3 { transform: translateX(300%) scale(0.44); z-index: 3; opacity: 0.5; }
.pos-left-4 { transform: translateX(-380%) scale(0.29); z-index: 2; opacity: 0.3; }
.pos-right-4 { transform: translateX(380%) scale(0.29); z-index: 2; opacity: 0.3; }
.pos-hidden-left { transform: translateX(-500%) scale(0.1); opacity: 0; }
.pos-hidden-right { transform: translateX(500%) scale(0.1); opacity: 0; }

/* =========================================
   4. ALT SAYFALAR (MİMARİ & DIŞ MEKAN) 4'LÜ IZGARA
   ========================================= */
.page-container {
    max-width: 1500px; 
    margin: 50px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #383E42;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.4rem;
    color: #50533C;
    font-family: 'NewBerolinaMT', 'New Berolina MT', cursive, serif;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 250px)); 
    justify-content: center; 
    gap: 80px; 
    position: relative; 
    z-index: 1;
}

.cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: transparent; 
    position: relative;
    transition: all 0.3s ease;
    z-index: 10; 
    cursor: pointer; 
}

.cat-card:hover { z-index: 1000; }

.cat-image {
    width: 100%;
    aspect-ratio: 2 / 3; 
    height: auto; 
    position: relative; 
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* =========================================
   ARKAPLANDAKİ LOGO AYARLARI (DAHA BÜYÜK)
   ========================================= */
.cat-image::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('logo1.png'); 
    
    /* Logo boyutu %100'den %120'ye çıkartıldı */
    background-size: 120%; 
    
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Başlangıçta daha silik (şeffaf) */
    opacity: 0.25; 
    z-index: 1; 
    
    filter: grayscale(100%);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Fare üzerine geldiğinde logo orijinal renklerine ve netliğine (%100) kavuşur */
.cat-card:hover .cat-image::before { 
    filter: grayscale(0%); 
    opacity: 1;
}

.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 8px; 
    transform-origin: center bottom; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    z-index: 20; 
}

.cat-card:hover .cat-image img {
    transform: scale(1.5) translateY(20px); 
    z-index: 50; 
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.4)); 
}

.cat-title {
    background-color: #383E42; 
    color: #ffffff;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 5; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    margin-top: 15px;
}

.cat-card:hover .cat-title { background-color: #50533C; }

/* =========================================
   5. MOBİL UYUM (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(2, minmax(150px, 250px)); }
}

@media screen and (max-width: 768px) {
    .vertical-layout { height: auto; min-height: calc(100vh - 115px); gap: 5vh; padding: 5vh 0; }
    .row-group { height: auto; flex-direction: column; align-items: center; }
    .row-content { position: relative; width: 90%; transform: none; padding: 0 !important; text-align: center !important; margin-bottom: 2vh; }
    .row-track { position: relative; width: 100%; height: 25vh; }
    
    .category-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .nav-container { flex-direction: column; padding: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; margin-top: 15px; }
}