/* Custom Stiller */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modal veya Menü açıkken body scroll'u engelle */
body.modal-open, body.menu-open {
    overflow: hidden;
}

/* Header Animasyonları */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-visible {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav Link Hover Efekti */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    background-color: #4f46e5;
    transition: all 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Animasyonları */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in-down { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s 0.2s ease-out forwards; }
.animate-zoom-in { animation: zoomIn 0.8s 0.4s ease-out forwards; }

/* Scroll ile Gelen Bölüm Animasyonu */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Stilleri */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Mobil Menü Stilleri */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Başlangıçta ekran dışında */
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: white;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
}
#mobile-menu.show {
    right: 0; /* İçeri kaydır */
}

/* Galeri Thumbnail Stilleri (GÜNCELLENDİ) */
.thumbnail {
    cursor: pointer;
    transition: border-color 0.2s ease-in-out;
    border: 3px solid transparent;
}
.thumbnail:hover {
    border-color: #a5b4fc; /* indigo-300 */
}
.thumbnail.active-thumb {
    border-color: #4f46e5; /* indigo-600 */
}

#main-image {
    transition: opacity 0.3s ease-in-out;
}

/* Thumbnail slider butonları için geçiş efekti */
#thumb-prev, #thumb-next {
    transition: opacity 0.3s ease;
}

/* Scrollbar Gizleme Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Açıklama alanı için stil (Prose) */
.prose p {
    margin-bottom: 1em;
}

/* === YENİ VE GÜNCELLENMİŞ STİLLER === */

/* === GÜNCELLEME: Sayfa açılış animasyonu (Artık body yerine #page-wrapper'ı hedefliyor) === */
#page-wrapper {
    /* Başlangıçta gizli (HTML'den gelen opacity-0 class'ı ile) */
    /* Geçiş süresi (HTML'den gelen duration-500 class'ı ile) */
    transition-property: opacity;
}

#page-wrapper.loaded {
    opacity: 1 !important;
}
/* ================================== */


/* Sayfa Geçiş (Kapanış) Animasyonu */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.page-exiting #page-wrapper {
    /* Sayfadan ayrılırken içeriği karartma animasyonu (body yerine #page-wrapper hedeflendi) */
    animation: fadeOut 0.4s ease-out forwards;
}


/* Yukarı Çık Butonu */
#scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================== */
/* YENİ EKLENEN SABİT BUTON STİLLERİ  */
/* ================================== */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
    transform: scale(1);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.floating-btn svg,
.floating-btn i {
    width: 28px;
    height: 28px;
}
/* ================================== */


/* === YENİ: PRELOADER STİLLERİ BAŞLANGIÇ === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f9fafb; /* body'nin bg-gray-50 rengiyle uyumlu */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Animasyon bittiğinde bu class eklenecek */
#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader .preloader-logo {
    max-width: 180px; /* Sitenizdeki logoya benzer bir boyut */
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Metin logo için stil (eğer resim logo yoksa) */
#preloader .preloader-logo-text {
     margin-bottom: 20px;
     animation: pulse 1.5s infinite ease-in-out;
}

#preloader-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    /* GÜNCELLEME: Yükleme yüzdesi rengi */
    color: #ad8330; 
    font-family: 'Poppins', sans-serif; /* Sitenizin fontuyla eşleşti */
    margin-bottom: 20px; /* Bar ile arasında boşluk */
}

/* Logo için basit bir nabız animasyonu */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Yükleme Barı Stilleri */
.progress-bar {
    width: 300px; /* Barın genişliği */
    height: 20px; /* Barın yüksekliği */
    background-color: #e0e0e0; /* Barın arka plan rengi */
    border-radius: 10px; /* Köşe yuvarlaklığı */
    overflow: hidden; /* İç dolgunun dışarı taşmasını engelle */
    position: relative;
    border: 1px solid #cccccc; /* Barın kenarlığı */
}

.progress-bar-fill {
    height: 100%;
    /* GÜNCELLEME: Yükleme barı dolgu rengi */
    background-color: #ad8330; 
    width: 0%; /* Başlangıçta 0 genişlik */
    border-radius: 10px;
    transition: width 0.1s linear; /* Yüzde artışıyla yumuşak geçiş */
    /* Resimdeki gibi çizgili doku için gradient kullanıldı */
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px; /* Çizgi boyutları */
    animation: animateStripes 1s linear infinite; /* Çizgilerin akış animasyonu */
}

@keyframes animateStripes {
    from { background-position: 40px 0; }
    to { background-position: 0 0; }
}

/* === YENİ: PRELOADER STİLLERİ BİTİŞ === */

