/* --- Değişkenler --- */
:root {
    --primary-dark: #0a0c10;
    --secondary-dark: #12161d;
    --accent-gold: #f28f10; 
    --accent-glow: rgba(242, 143, 16, 0.4);
    --text-gray: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Genel Yapı --- */
body {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* --- Animasyonlar --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes goldGlow { 0%, 100% { text-shadow: 0 0 10px rgba(242, 143, 16, 0.2); } 50% { text-shadow: 0 0 20px rgba(242, 143, 16, 0.5); } }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

/* --- Top Bar --- */
.top-bar { 
    background: var(--secondary-dark); 
    padding: 8px 0; 
    font-size: 0.75rem; 
    border-bottom: 1px solid var(--glass-border); 
    position: relative; 
    z-index: 1001; 
}
.top-bar a { 
    color: #fff; 
    text-decoration: none; 
    transition: 0.3s; 
    font-weight: 500;
}
.top-bar a:hover { color: var(--accent-gold); }
.top-bar i { color: var(--accent-gold); margin-right: 6px; }
.top-info { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }

/* --- Navbar --- */
.navbar { padding: 0 0; background: transparent !important; transition: 0.4s; z-index: 1000; top: 15px; }
.navbar.scrolled { padding: 10px 0; background: rgba(10, 12, 16, 0.98) !important; backdrop-filter: blur(15px); top: 0; border-bottom: 1px solid var(--glass-border); }
.navbar-brand .logo-wrap { height: 160px; transition: 0.4s; }
.navbar.scrolled .logo-wrap { height: 130px; margin: -30px; }
.navbar-brand img { height: 100%; width: auto; object-fit: contain; }
.nav-link { color: #fff !important; font-weight: 500; margin-left: 25px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-link:hover { color: var(--accent-gold) !important; }

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 0;
    background-image: linear-gradient(rgba(10, 12, 16, 0.6), rgba(10, 12, 16, 0.9)), url('../img/background.png'); /* Yol güncellendi */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-main { flex-grow: 1; display: flex; align-items: center; padding-bottom: 50px; }
.hero-title { font-size: 3.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; animation: fadeInUp 0.8s ease-out; }
.text-gold-vurgu { color: var(--accent-gold); animation: goldGlow 3s infinite; }
.hero-desc-box { position: relative; padding-left: 20px; border-left: 3px solid var(--accent-gold); margin-bottom: 40px; max-width: 600px; animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero-desc { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; font-weight: 300; }

/* --- Vizyon Şeridi --- */
.vision-strip { background: rgba(18, 22, 29, 0.96); backdrop-filter: blur(15px); border-top: 1px solid var(--glass-border); position: relative; z-index: 10; }
.vision-item { display: flex; align-items: center; gap: 20px; padding: 35px 25px; border-right: 1px solid rgba(255,255,255,0.08); height: 100%; transition: 0.3s; text-decoration: none; color: inherit; }
.vision-item:last-child { border-right: none; }
.vision-item:hover { background: rgba(255, 255, 255, 0.03); }
.vision-icon-box i { font-size: 3rem; color: rgba(255,255,255,0.6); transition: 0.3s; }
.vision-item:hover .vision-icon-box i { color: var(--accent-gold); transform: scale(1.1); }
.vision-text h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.2); display: inline-block; padding-bottom: 3px; }
.vision-text p { font-size: 0.8rem; color: #b0b0b0; margin: 0; }

/* --- Hizmet Kartları --- */
.section-padding { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 60px; position: relative; text-align: center; }
.section-title::after { content: ''; position: absolute; width: 60px; height: 4px; background: var(--accent-gold); bottom: -15px; left: 50%; transform: translateX(-50%); }
.service-card { padding: 40px 30px; height: 100%; transition: 0.4s; border: 1px solid var(--glass-border); border-radius: 15px; background: var(--glass); text-align: center; }
.service-card:hover { border-color: var(--accent-gold); background: rgba(242, 143, 16, 0.05); transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.service-icon { font-size: 2.8rem; color: var(--accent-gold); margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; color: #fff; }

/* --- Projeler Bölümü --- */
.project-item { position: relative; overflow: hidden; border-radius: 15px; height: 350px; cursor: pointer; border: 1px solid var(--glass-border); }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(10, 12, 16, 0.95)); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: 0.4s; }
.project-item:hover .project-overlay { opacity: 1; }
.project-item:hover .project-img { transform: scale(1.1); }
.project-overlay h4 { color: var(--accent-gold); font-weight: 700; margin-bottom: 5px; }

/* --- Butonlar --- */
.btn-premium { background: var(--accent-gold); color: #000; font-weight: 700; padding: 12px 28px; border-radius: 4px; text-transform: uppercase; border: none; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn-premium:hover { background: #ffa500; transform: translateY(-3px); box-shadow: 0 10px 20px var(--accent-glow); }
.btn-outline-custom { border: 2px solid #fff; color: #fff; padding: 10px 28px; font-weight: 600; border-radius: 4px; text-decoration: none; transition: 0.3s; display: inline-block; }
.btn-outline-custom:hover { background: #fff; color: #000; }

/* --- Floating --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background: #25d366; color: #fff !important; border-radius: 50px; display: flex; align-items: center; justify-content: center; font-size: 32px; z-index: 10000; box-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: 0.3s; }

/* --- Footer --- */
.footer-section { 
    background-color: #0c0e12; 
    padding: 80px 0 30px; 
    border-top: 1px solid var(--glass-border); 
}
.footer-logo { height: 150px; margin: -7px; margin-top: -35px; }
.footer-about { color: var(--text-gray); font-size: 0.9rem; line-height: 1.8; margin-bottom: 30px; }
.footer-title { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent-gold); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 0.9rem; display: flex; align-items: center; }
.footer-links a i { margin-right: 10px; font-size: 0.8rem; color: var(--accent-gold); }
.footer-links a:hover { color: var(--accent-gold); padding-left: 5px; }

.footer-contact-info { display: flex; flex-direction: column; gap: 15px; }
.contact-pill { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: rgba(255,255,255,0.03); 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: 0.3s;
}
.contact-pill:hover { background: rgba(242, 143, 16, 0.05); border-color: var(--accent-gold); }
.contact-pill i { color: var(--accent-gold); font-size: 1.1rem; }
.contact-pill span { color: #fff; font-weight: 600; font-size: 1rem; }

/* --- Harita --- */
.footer-map-container { 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--glass-border); 
    height: 180px; 
    margin-top: 15px;
}
.custom-footer-map {
    filter: grayscale(100%) invert(90%) contrast(90%);
    transition: filter 0.5s ease;
}
.custom-footer-map:hover {
    filter: none;
}

.footer-bottom { border-top: 1px solid var(--glass-border); margin-top: 50px; padding-top: 25px; text-align: center; }
.footer-bottom p { color: #555; font-size: 0.75rem; margin: 0; }

/* --- Media Queries --- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .navbar-brand .logo-wrap { height: 80px; }
    .vision-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .navbar { top: 41px; }
    .top-address { display: none; }
    .footer-title { margin-top: 40px; }
    .footer-col { margin-bottom: 40px; }
}

/* --- Dropdown Menü (Hover Özelliği ile) --- */
.bg-dark-custom {
    background-color: var(--secondary-dark) !important;
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-gold) !important; /* Üstte altın sarısı çizgi */
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    padding: 10px 0;
}

.dropdown-item {
    color: #fff !important;
    font-size: 0.85rem;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(242, 143, 16, 0.1) !important;
    color: var(--accent-gold) !important;
    padding-left: 28px; /* Hover'da hafif sağa kayma efekti */
}

/* Masaüstünde (992px ve üzeri) Hover ile Açılma */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Fare geçişinde kopukluk olmaması için */
        animation: fadeInDown 0.3s ease-out; /* Küçük bir açılış animasyonu */
    }
}

/* Menü açılış animasyonu */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gold {
    color: var(--accent-gold);
}

    .btn-detail {
        color: var(--accent-gold);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        letter-spacing: 1px;
        transition: 0.3s;
        border-top: 1px solid var(--glass-border);
        padding-top: 15px;
        display: block;
    }
    .btn-detail:hover {
        color: #fff;
        letter-spacing: 2px;
    }


    /* ==========================================================================
   SADECE MOBİL VE TABLET DÜZENLEMELERİ (MAX-WIDTH: 991PX)
   ========================================================================== */
@media (max-width: 991px) {
    
    /* 1. Navbar Menü Arka Planı (Yazıların birbirine girmesini engeller) */
    .navbar-collapse {
        background-color: rgba(18, 22, 29, 0.98) !important; /* Koyu arka plan */
        backdrop-filter: blur(10px); /* Modern buzlu cam efekti */
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    }

    /* 2. Menü Linkleri (Daha okunaklı ve dokunması kolay) */
    .nav-link {
        text-align: center;
        padding: 12px !important;
        margin-left: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.9rem !important;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* 3. Hero Başlık Düzenlemesi (Projeler sayfasındaki taşmayı çözer) */
    .hero-title {
        font-size: 2.1rem !important; /* 3.5rem mobilde çok büyük, sığmıyordu */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    /* 4. Hero Alanı Boşlukları (Mobilde ekranı çok doldurmaması için) */
    .hero-section {
        padding: 110px 0 40px !important;
        min-height: auto !important;
    }

    /* 5. Logo Boyutu (Mobilde menüye yer açar) */
    .navbar-brand .logo-wrap {
        height: 60px !important;
    }

    /* 6. Proje Kartları (Mobilde daha derli toplu durur) */
    .project-item {
        height: 260px !important;
        margin-bottom: 15px;
    }

    /* 7. Footer Başlıkları (Mobilde üst üste binmemesi için boşluk) */
    .footer-title {
        margin-top: 30px;
    }
}

/* Tüm cihazlarda sağa kaymayı kesin olarak engelleyen global kural */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Proje resimlerinin tam görünmesi ve tıklanabilir hissi için */
.project-item {
    cursor: pointer;
    background: #000; /* Resim yanlardan boşluk kalırsa siyah görünsün */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'cover' yerine 'contain' resmin tamamını gösterir */
    background-color: #12161d;
    transition: 0.5s;
}

/* Modal (Lightbox) Karartma Arka Planı */
.modal-content {
    background-color: transparent;
    border: none;
}
.modal-body {
    padding: 0;
}
.modal-close-btn {
    position: absolute;
    right: -30px;
    top: -30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}