@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --navy: #0A192F;
    --gold: #C5A059;
    --white: #FFFFFF;
    --overlay: linear-gradient(to top, rgba(10,25,47,0.9), rgba(10,25,47,0.2));
}

body { font-family: 'Manrope', sans-serif; background: #fff; color: #1e293b; overflow-x: hidden; }

/* NAVBAR */
.navbar { background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px); padding: 15px 0; }
.navbar-brand img { height: 100px; filter: brightness(0) invert(1); }
.nav-link { color: rgba(255,255,255,0.8) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.nav-link:hover { color: var(--gold) !important; }

/* HERO SECTIONS */
.hero-dynamic {
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,25,47,0.6); }
.hero-content { position: relative; z-index: 2; color: white; }

/* SERVICE CARDS */
.visual-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.visual-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.visual-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: var(--overlay);
    color: white;
}
.visual-card:hover .visual-bg { transform: scale(1.1); }
.btn-link-gold { color: var(--gold); text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* BUTONLAR */
.btn-gold { background: var(--gold); color: white; padding: 15px 40px; border-radius: 0; font-weight: 700; border: none; }
.btn-gold:hover { background: white; color: var(--navy); }

/* FOOTER */
footer { background: #050A14; color: white; padding-top: 80px; padding-bottom: 30px; margin-top: 50px; }

/* =========================================
   MOBİL UYUMLULUK (RESPONSIVE) DÜZELTMELERİ
   Bu kodları style.css dosyasının EN ALTINA yapıştırın.
   ========================================= */

@media (max-width: 991px) {

    /* 1. HTML VE BODY TAŞMALARINI ENGELLEME */
    html, body {
        overflow-x: hidden !important; /* Yatay kaydırmayı kapat */
        width: 100% !important;
        padding-top: 70px !important; /* Header boşluğunu ayarla */
    }

    /* 2. ARKA PLAN RESİMLERİNİ DÜZELTME (EN ÖNEMLİ KISIM) */
    /* Fixed özelliği mobilde resmi bozar, Scroll yaparak düzeltiyoruz */
    .hero-wrap, 
    .page-header, 
    .hero-dynamic,
    section[style*="background-image"] {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        height: auto !important; /* Sabit yüksekliği iptal et */
        min-height: 50vh !important; /* Ekranın yarısı kadar olsun */
        padding: 60px 0 !important;
    }

    /* 3. DEVASA BAŞLIKLARI KÜÇÜLTME */
    h1.display-1, h1.display-2, h1.display-3, h1.display-4 {
        font-size: 2.2rem !important; /* 80px yerine 35px civarı */
        line-height: 1.2 !important;
        word-wrap: break-word; /* Uzun kelimeleri alt satıra at */
    }

    h2.display-5, h2.display-6 {
        font-size: 1.8rem !important;
    }

    p.lead {
        font-size: 1rem !important;
        width: 100% !important;
        padding: 0 15px;
    }

    /* 4. GENEL BOŞLUKLARI DARALTMA */
    section, .section-padding {
        padding: 40px 0 !important; /* 100px boşluk mobilde çok fazla */
    }
    
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 5. RESİMLERİN TAŞMASINI ENGELLEME */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 6. HEADER VE LOGO AYARLARI */
    .navbar-brand img {
        height: 90px !important; /* Mobilde logo küçülsün */
    }
    .navbar-collapse {
        background-color: #0A192F !important;
        padding: 20px;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    /* Mobilde Top-Bar'ı (Telefon/Mail şeridi) gizle */
    .top-bar { display: none !important; } 
    .navbar-custom { top: 0 !important; }

    /* 7. ATATÜRK TIMELINE DÜZELTMESİ (Çizgilerin kaymasını önler) */
    .timeline::after { left: 20px !important; }
    .timeline-row { 
        width: 100% !important; 
        padding-left: 50px !important; 
        padding-right: 0 !important; 
        text-align: left !important; 
    }
    .timeline-row::after { left: 11px !important; right: auto !important; }
    .timeline-time { 
        position: relative !important; 
        top: 0 !important; 
        left: 0 !important; 
        right: auto !important; 
        font-size: 1.5rem !important; 
        margin-bottom: 10px; 
        display: block;
    }
    
    /* 8. KARTLAR VE HİZMETLER */
    .card, .service-card-modern, .visual-card {
        margin-bottom: 20px;
        height: auto !important; /* Kart yüksekliklerini serbest bırak */
    }
    
    /* 9. BUTONLAR */
    .btn {
        width: 100%; /* Butonlar tam genişlik olsun */
        margin-bottom: 10px;
        display: block;
    }
    .d-flex.gap-3 {
        flex-direction: column; /* Yan yana butonları alt alta al */
    }
}

/* --- MOBİL ÜST BOŞLUK DÜZELTMESİ (WHITE GAP FIX) --- */
@media (max-width: 991px) {
    
    /* 1. Body üst boşluğunu azalt (Masaüstünde 108px idi, mobilde 60px yeter) */
    body {
        padding-top: 60px !important;
    }

    /* 2. Menüyü (Navbar) en tepeye zorla yapıştır */
    .navbar-custom {
        top: 0 !important;
        margin-top: 0 !important;
        background-color: #0A192F !important; /* Arka planın lacivert olduğundan emin ol */
    }

    /* 3. Üst Bilgi Çubuğunu (Top Bar) Mobilde Kesin Gizle */
    .top-bar {
        display: none !important;
        height: 0 !important;
        overflow: hidden;
    }

    /* 4. Hero (Büyük Resim) Bölümünün Üstündeki Boşluğu Al */
    .hero-wrap, .page-header, .hero-dynamic {
        margin-top: 0 !important;
        background-position: center top !important; /* Resmin yukarıdan başlamasını sağla */
    }
    
    /* 5. Ekstra Güvenlik: Eğer hala boşluk varsa HTML arkaplanını lacivert yap */
    html {
        background-color: #0A192F;
    }
}