/* --- style.css (FINAL SÜRÜM - KUSURSUZ MOBİL MENÜ) --- */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Playfair+Display:ital@0;1&display=swap');

:root {
    --ana-renk: #0f172a;       /* Gece Mavisi */
    --vurgu-renk: #f59e0b;     /* Altın Sarısı */
    --yazi-renk: #f8fafc;      /* Kırık Beyaz */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--ana-renk);
    color: var(--yazi-renk);
    overflow-x: hidden;
}

/* 2. PRELOADER */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--ana-renk);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo { width: 100px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loading-bar { width: 150px; height: 3px; background: rgba(255,255,255,0.1); margin: 0 auto; position: relative; overflow: hidden; border-radius: 5px; }
.loading-bar::after { content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: var(--vurgu-renk); animation: loading 1.5s infinite; }
@keyframes loading { 0% { left: -50%; } 100% { left: 150%; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
.loaded { opacity: 0; visibility: hidden; }

/* 3. SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: var(--vurgu-renk); border-radius: 5px; }

/* 4. NAVBAR (GENEL) */
.navbar { transition: all 0.4s ease-in-out; padding: 20px 0; }
.navbar-scrolled { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.navbar-brand img { height: 100px; width: auto; transition: all 0.3s ease; }

/* Menü Linkleri */
.nav-link { color: white !important; font-weight: 500; margin-left: 20px; position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--vurgu-renk); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    background: #0f172a;
    overflow: hidden;
    z-index: 1;
    height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-title {
    font-size: 5rem; font-weight: 900; letter-spacing: -2px; line-height: 1.1;
    background: -webkit-linear-gradient(#fff, #94a3b8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* SLIDER */
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1); animation: slideAnimation 15s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.05); }
    33% { opacity: 1; transform: scale(1.1); }
    43% { opacity: 0; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1); }
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 0; }

/* Hero Altı Kutular */
.hero-features {
    margin-top: 80px; background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px; padding: 30px;
}
.feature-box { display: flex; align-items: center; justify-content: center; color: white; border-right: 1px solid rgba(255, 255, 255, 0.2); }
.feature-box:last-child { border-right: none; }
.feature-box i { font-size: 2.5rem; color: var(--vurgu-renk); margin-right: 15px; }
.feature-text h6 { font-weight: 700; margin: 0; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.feature-text small { opacity: 0.7; font-size: 0.8rem; }

/* 6. HİZMET KARTLARI */
.service-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 40px 20px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); border-color: var(--vurgu-renk); }
.icon-box { font-size: 3rem; color: var(--vurgu-renk); margin-bottom: 20px; }

/* 7. GALERİ */
.gallery-item { overflow: hidden; border-radius: 10px; position: relative; cursor: pointer; height: 100%; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* 8. KURUCU BÖLÜMÜ (YENİLENMİŞ) */
.founder-section {
    position: relative;
    /* Fotoğrafın üzerine %75 siyah perde çekiyoruz */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/mehmet-gogus.jpg');
    background-size: cover; 
    background-position: center top; /* Yüz kısmına odaklan */
    background-repeat: no-repeat;
    padding: 150px 0;
    color: white;
}
.founder-text p { font-size: 1.2rem; line-height: 1.8; font-weight: 500; }
.quote-box { background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--vurgu-renk); padding: 20px; border-radius: 5px; }

/* 9. HARİTA */
.map-section iframe { filter: grayscale(100%) invert(92%) contrast(83%); display: block; }

/* --- MOBİL MENÜ VE GÖRÜNÜM AYARLARI --- */
@media (max-width: 991px) {
    /* 1. Başlık ve Logo */
    .hero-title { font-size: 2.5rem; }
    .navbar-brand img { height: 70px; }

    /* 2. Dede Bölümü Mobilde */
    .founder-section { 
        padding: 80px 0; 
        background-position: top center; 
    }

    /* 3. Hero Altı Kutular Mobilde */
    .hero-features { margin-top: 40px; padding: 20px; }
    .feature-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px; margin-bottom: 20px; justify-content: flex-start;
    }
    .feature-box:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

    /* 4. MOBİL MENÜNÜN KENDİSİ (AÇILIR KUTU) */
    .navbar-collapse {
        background-color: #020617; /* Koyu Lacivert Arka Plan */
        margin-top: 15px;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        text-align: center;
    }
    
    /* Menü Linkleri Mobilde */
    .nav-link {
        color: white !important;
        margin: 0 !important;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-link:last-child { border-bottom: none; }
}

/* MENÜ BUTONU SIFIRLAMA (ŞERİDİ KALDIRIR) */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-right: 0;
}

/* --- MOBİL İÇİN DEDE FOTOĞRAFI AYARI --- */
@media (max-width: 991px) {
    .founder-section {
        background-image: none !important; /* Mobilde arka plan resmini kapat */
        background-color: #020617;         /* Düz koyu renk yap */
        padding: 50px 0;
    }
}


@media (max-width: 991px) {
    .hero-section span.text-warning {
        display: inline-block;
        margin-left: 40px; /* Bu değeri artırarak daha sağa alabilirsin */
        position: relative;
        z-index: 1;
    }
}