/* --- Genel Ayarlar --- */
:root {
    --primary-red: #D32F2F; 
    --bg-white: #ffffff;
    --bg-light: #f4f4f4;
    --text-dark: #222;
}

html{
    scroll-behavior: smooth;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: poppins,sans-serif;
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}
section{
    padding: 2vh 2vh;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero-page {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-y: hidden;
}
.home-background {
    position: absolute;
    top: 0;   /* Üstten 0 boşluk (Bunu eklemeyi unutmuşuz) */
    left: 0;  /* Soldan 0 boşluk */
    width: 100%;
    height: 100%;
    z-index: -3;
    /* Flex özelliklerine gerek yok, resim zaten %100 kaplayacak */
}

.home-background img {
    width: 100%;  /* Genişliği tamamen doldur */
    height: 100%; /* Yüksekliği tamamen doldur */
    
    /* İŞTE SİHİRLİ KOD BU (BACKGROUND İÇİN): */
    object-fit: cover; /* Resmi sündürmeden, orantılı şekilde tüm ekranı kaplamaya zorlar (gerekirse kenarlardan kırpar) */
    /* Logo için kullandığımız max-height kodlarını siliyoruz */
    display: block; 
    transition: opacity 0.5s ease-in-out;
    opacity: 1
}
.home-background img.fade-out {
    opacity: 0;
}
.hero-container{
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 35%;
    
}
.hero-logo-wrapper{
    width: 2000px;
    max-width: 100%;
    height: 50%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1;
}
.hero-button-wrapper{
    width: 2000px;
    max-width: 100%;
    height: 50%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
}
.hero-img{
    height: 20%;
    display: flex;
    align-items: center;
}
.hero-img .img{
    height: px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}
.hero-text{
    background-color: #ffffff;
    font-size: 3vmin;
    font-style: italic;
    font-weight: lighter;
    max-width: 85%;
    display: flex;
    text-align: justify;
    flex-direction: column;
    position: relative;
    margin-left: 2vh;
    margin-top: 4vh;
    border-radius: 12px; 
}
.hero-logo {
    height: 100%;
    display: flex; 
    border-radius: 12px; 
    align-items: center; /* Resmi dikeyde ortala */
    justify-content: center;
}

/* Logo Resmi */
.hero-logo img {
    height: 80%;
    max-height: 100%;
    max-width: 95%; /* SİHİRLİ KOD: Asla üstündeki kutunun (header) boyunu geçme */
    object-fit: contain; /* Resmi sıkıştırma, oranını koruyarak sığdır */
}

/* --- Buton ---*/
.explore-btn {
    margin-bottom: 10vh;
    padding: 15px 40px;
    font-size: 1rem;
    border: 2px solid #000000;
    background: #000000;
    color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 2px;
}

.explore-btn:hover {
    background: #000000;
    color: white;
    box-shadow: 0 0 20px #ffffff;
}
/* --- Slider İndikatörleri (Çizgiler) --- */
.slider-caption{
    border-left: 5px solid white;
    /* 1. Önce pozisyonu açalım ('none' diye bir şey yok) */
    position: absolute; 
    flex-direction: column;

    /* 2. Alttan yerleşim (Burası kalsın) */
    bottom: 5vh;
    
    /* 3. ORTALAMA SİHRİ BURADA BAŞLIYOR */
    left: 4vh; /* Ekranın tam ortasına git */        
    /* Diğer ayarların */
    display: flex;
    z-index: 10;
    padding: 0; /* Bazen ul/ol listelerinden default padding gelir, sıfırlayalım */
    margin-bottom: 1vh;        
}
.slider-caption p{
    color: #ffffff; 
    font-size: 3vh;
    padding-left: 1vh;
}
.slider-caption h1{
    color: #ffffff;
    font-size: 4vh;
    padding-left: 1vh;

}
.slider-indicators {
    position: absolute;
    bottom: 4vh;  /* Alttan boşluk */
    left: 4vh;    /* Soldan boşluk */
    display: flex; /* Yan yana dizilmeleri için */
    gap: 2vh;     /* Çizgiler arası boşluk */
    z-index: 10;   /* Arka planın ve diğer öğelerin üstünde dursun */
}

.indicator {
    width: 4vh;       /* Çizgi uzunluğu */
    height: 0.4vh;       /* Çizgi kalınlığı */
    background-color: #ffffff; /* Çizgi rengi (Beyaz) */
    opacity: 0.4;      /* Varsayılan: Yarı şeffaf */
    border-radius: 2px; /* Kenarları hafif yuvarlat */
    transition: opacity 0.5s ease; /* Yumuşak geçiş efekti */
}

/* Aktif olan çizgi için stil */
.indicator.active {
    opacity: 1; /* Tamamen opak (görünür) */
    /* İstersen aktif olunca rengi de değişsin: */
    /* background-color: var(--primary-red); */
}
/* --- Başlık Alanı --- */
header{
    background-color: #EEEEEE;
    width: 100%;
    height: 10vh;
    max-height: 10vh; 
    position: fixed;
    margin-left: 0px; 
    padding: 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    /* GİZLEME HAMLESİ: Kendi boyu kadar yukarı ötele */
    transform: translateY(-100%);
    /* Animasyon süresi */
    transition: transform 0.4s ease-in-out;
}
header.active {
    transform: translateY(0); /* Yerine geri gelsin */
}
/* Logo Kapsayıcısı */
.logo {
    margin-left: 3vh;
    height: 120%; /* Header'ın yüksekliği neyse o kadar ol */
    display: flex; 
    align-items: center; /* Resmi dikeyde ortala */
}

/* Logo Resmi */
.logo img {
    height: auto;
    width: auto;
    max-height: 100%; /* SİHİRLİ KOD: Asla üstündeki kutunun (header) boyunu geçme */
    object-fit: contain; /* Resmi sıkıştırma, oranını koruyarak sığdır */
}

nav .navlinks{
    list-style-type: none;
}
nav .navlinks li{
    display: inline-block;
}
nav .navlinks li a{
    color: #000000;
    margin-right: 2.5rem;
    text-decoration: none;
}
/* --- Mevcut koduna ek/düzeltme --- */

nav .togglebtn {
    /* vh yerine px veya rem kullanmak daha güvenli, buton boyutu ekran yüksekliğine göre değişmesin */
    width: 4vh; 
    height: 3vh;
    color: #000000;
    margin: 1.5vh;
    cursor: pointer;
    display: none;
    z-index: 2000;
    /* Çizgileri alt alta dizmek için: */
    flex-direction: column; 
    justify-content: space-between;
    background: transparent; /* Butonun kendi arka planını temizle */
    border: none;
    padding: 0;
}

nav .togglebtn span {
    display: block;
    background-color: #000 !important;
    width: 100%;
    height: 3px;
    border-radius: 2px; /* Köşeleri yumuşatır */
    transition: 0.3s ease-in-out;
    z-index: 2000;
}

/* --- Media Query İçindeki Düzeltmeler --- */
@media screen and (max-width: 768px) {
    header{
        transform: translateY(0);
    }
    nav .togglebtn {
        display: flex;
        right: 5%;
    }
    nav .togglebtn span {
        width: 100%;
        height: 3px;
        background-color: #000; /* Menü kapalıyken rengi (Siyah) */
        transition: all 0.4s ease; /* Dönme animasyonu hızı */
        border-radius: 2px;
        transform-origin: left; /* Soldan dönmeye başlasın */
    }
    nav .navlinks {
        display: none; /* Başlangıçta gizli */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff; /* İSTEĞİN: Beyaz Arka Plan */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 1001; /* Butonun altında kalacak */
    }

    nav .navlinks li a {
        color: #000000; /* İSTEĞİN REVİZESİ: Beyaz zeminde SİYAH yazı */
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
    }

    nav .navlinks.active {
        display: flex;
    }

    /* Üst çizgi: 45 derece dön */
    nav .togglebtn.active span:nth-child(1) {
        transform: rotate(45deg) translate(0px, -2px); /* Konum düzeltmesi */
        background-color: #000; /* Açıkken de siyah kalsın */
    }

    /* Orta çizgi: Kaybol */
    nav .togglebtn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    /* Alt çizgi: -45 derece dön */
    nav .togglebtn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0px, 2px); /* Konum düzeltmesi */
        background-color: #000;
    }
    .hero-page{
        height: 70vh;
        min-height: 70vh;
    }
    .home-background img{
        object-fit: contain;
    }
    .hero-container{
        background-color: rgba(255, 255, 255, 0);
    }
    .hero-logo{
        display: none;
    }
    .home-background {
        margin-top: 5vh;
        display: flex;
        align-items: flex-start;
        height: 50%;
    }
    .explore-btn{
        display: none;
    }
    .slider-caption{
        border-left: 5px solid white;
        /* 1. Önce pozisyonu açalım ('none' diye bir şey yok) */
        position: absolute; 
        flex-direction: column;

        /* 2. Alttan yerleşim (Burası kalsın) */
        bottom: 5vh;
        
        /* 3. ORTALAMA SİHRİ BURADA BAŞLIYOR */
        left: 4vh; /* Ekranın tam ortasına git */        
        /* Diğer ayarların */
        display: flex;
        z-index: 10;
        padding: 0; /* Bazen ul/ol listelerinden default padding gelir, sıfırlayalım */
        margin-bottom: 1vh;        
    }
    .slider-caption p{
        color: #ffffff;
        font-size: 1.5vh;
        padding-left: 1vh;
    }
    .slider-caption h2{
        color: #ffffff;
        font-size: 2vh;
        padding-left: 1vh;
    }
    .slider-indicators {
        /* 1. Önce pozisyonu açalım ('none' diye bir şey yok) */
        position: absolute; 
        
        /* 2. Alttan yerleşim (Burası kalsın) */
        bottom: 4vh;
    
        /* 3. ORTALAMA SİHRİ BURADA BAŞLIYOR */
        left: 4vh; /* Ekranın tam ortasına git */
         /* Kendi genişliğinin yarısı kadar geri gel */
        
        /* Diğer ayarların */
        display: flex;
        gap: 20px; /* 'vh' yerine px kullanmak daha güvenli (aşağıda açıkladım) */
        z-index: 10;
        padding: 0; /* Bazen ul/ol listelerinden default padding gelir, sıfırlayalım */
        margin: 0;
    }
    
    .indicator {
        width: 40px;      /* 5vh yerine sabit piksel */
        height: 4px;      /* 0.4vh yerine sabit piksel */
        background-color: #ffffff;
        opacity: 0.4;
        border-radius: 2px;
        transition: opacity 0.5s ease;
        cursor: pointer; /* Tıklanabilir olduğu belli olsun */
    }


}
/*--- About Section ---*/
.about{
    max-width: 1000px;
}
#about-section {
    scroll-margin-top: 80px; /* Navbar yüksekliğin ne kadarsa buraya yaz */
}
.about-title{
    margin-bottom: 2vh;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;    
}
.about-title p{
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000000;
    transition: all 0.3s ease;
}
.about-text p{
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: justify;
    color: #000000;
    transition: all 0.3s ease;
}
@media screen and (max-width: 768px) {
    .about-text p{
        text-align: left;
    }
}
/* --- Grid Yapısı (MOBİL: Tek Sütun) --- */
.gallery{
    max-width: 1600px;
}
#gallery-section {
    scroll-margin-top: 80px; /* Navbar yüksekliğin ne kadarsa buraya yaz */
}
.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px; /* Boşluğu biraz artırdım, gölge daha iyi görünsün */
}
.gallery-text{
    height: 4rem;
    margin-bottom: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-text p{
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000000;
    transition: all 0.3s ease;
}

/* --- Grid Yapısı (MASAÜSTÜ: 3'lü Satır) --- */
@media (min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* --- Kart Tasarımı --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    /* DEĞİŞİKLİK 1: Köşeler daha yuvarlak (12px) */
    border-radius: 12px; 
    background: var(--bg-white);
    /* Normal durumda çok hafif, renksiz gölge */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
    /* Tüm kartlar eşit boyut (3/4 dikey dikdörtgen) */
    aspect-ratio: 4 / 3; 
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* NOT: Kırmızı çerçeve (::after) kodları buradan tamamen silindi. */

/* --- Parlama (Shine) Animasyonu Katmanı --- */
.gallery-item::before {
    position: absolute;
    top: 0;
    left: -85%;
    z-index: 3;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

/* --- Hover (Üzerine Gelme) Durumları --- */
.gallery-item:hover {
    transform: translateY(-8px);
    /* DEĞİŞİKLİK 2: Kırmızı yumuşak gölge efekti */
    /* İki katmanlı gölge: Biri daha yayvan kırmızı, diğeri daha yakın ve koyu */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::before {

}

/* --- Keyframes (Animasyonlar) --- */
@keyframes shine {
    100% {
        left: 125%;
    }
}
@media screen and (max-width: 768px) {
    .gallery-text p{
        font-size: 3vh;
    }
    .gallery-text{
        height: 3vh;
    }

}

/*--- Modal ---*/
/* Modal Arka Planı (Tüm ekranı kaplar) */
.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* En üstte durması için yüksek sayı */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.95); /* Arka plan koyuluğu */
}

/* Modal İçindeki Resim */
.modal-content {
    margin: auto;
    display: block;  
    width: auto;
    max-width: 90%;
    max-height: 85vh; /* Ekrandan taşmaması için yükseklik sınırı */
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s; /* Açılış efekti */
}

/* Açılış Animasyonu */
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Kapatma Butonu (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.close-btn:hover {
    color: #bbb;
}

/* İleri ve Geri Butonları */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Hafif belirgin olsun */
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer Genel Alanı */
.footer-section {
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Okunabilirlik için biraz daha koyu */
    padding: 30px 0; /* Sabit yükseklik (vh) yerine padding verdik, içerik kadar uzasın */
    color: white; /* Tüm yazıları beyaz yap */
}

/* İç Taşıyıcı (Flexbox Yapısı) */
.footer-container {
    width: 90%; /* Kenarlara yapışmasın */
    max-width: 1200px; /* Çok geniş ekranlarda dağılmasın */
    margin: 0 auto; /* Ortala */
    display: flex;
    flex-direction: column; /* ÖNCE MOBİL: Alt alta sırala */
    align-items: center; /* Ortala */
    gap: 20px; /* İki kutu arası boşluk */
    text-align: center; /* Yazıları ortala */
}

/* Yazı Stilleri */
.footer-brand p, 
.footer-copyright p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; /* Mobilde çok büyük olmasın */
    line-height: 1.6; /* Satır aralarını aç, okuması kolay olsun */
    margin: 0;
}

/* --- MASAÜSTÜ İÇİN AYARLAR (Media Query) --- */
/* Ekran genişliği 768px'den büyükse (Tablet ve PC) bu kodlar çalışır */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row; /* Yan yana diz */
        justify-content: space-between; /* Biri en sola, biri en sağa */
        text-align: left; /* Yazıları sola hizala */
        align-items: flex-start; /* Üstten hizala */
    }

    .footer-copyright p {
        text-align: right; /* Copyright yazısını sağa yasla */
    }
}

@media screen and (max-width: 768px) {
   
}
.line {
    border: 0;           /* Varsayılan kenarlığı kaldır */
    height: 1px;         /* Çizgi kalınlığı */
    margin-bottom: 3vh;
    margin-top: 2vh;
    background: #333;    /* Çizgi rengi */
    width: 100%;         /* Genişlik (İstersen %50 yapıp ortalayabilirsin) */
  }