/* =========================================
   1. GENEL AYARLAR
   ========================================= */
:root {
    --primary: #000;
    --accent: #d62976;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 85px; /* Header boşluğu */
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   2. NAVBAR & HEADER İKONLARI
   ========================================= */
.navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 10px 0;
}

.navbar-brand img { height: 48px; width: auto; transition: 0.3s; }

/* Headerdaki Yuvarlak İkonlar (Masaüstü/Mobil Ortak) */
.header-icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #333;
    margin-right: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.header-icon-btn.phone:hover { background-color: #25d366; color: white; transform: rotate(-10deg); }
.header-icon-btn.map:hover { background-color: #4285F4; color: white; transform: translateY(-3px); }

/* Menü Linkleri */
.nav-link { color: #333 !important; font-weight: 600; margin: 0 10px; position: relative; }
.nav-link:hover { color: var(--accent) !important; }

/* Teklif Butonu */
.btn-quote {
    background: linear-gradient(45deg, #d62976, #962fbf);
    color: #fff !important;
    border-radius: 50px; padding: 8px 25px !important;
    font-weight: 600; box-shadow: 0 4px 10px rgba(214, 41, 118, 0.3);
}
.btn-quote:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(214, 41, 118, 0.5); }

/* =========================================
   3. GALERİ & İŞ ÖRNEKLERİ
   ========================================= */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 50px;
}

.gallery-item {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
    display: flex; flex-direction: column;
}
.gallery-item:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.gallery-item a.gallery-img-link {
    display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }

.item-info { padding: 15px; border-bottom: 1px solid #f0f0f0; flex-grow: 1; }
.item-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.item-cat { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.gallery-action-bar { padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.btn-action { background: none; border: none; font-size: 20px; color: #444; cursor: pointer; display: flex; align-items: center; gap: 5px;}
.btn-action.liked { color: #ed4956; animation: pop 0.3s ease; }
@keyframes pop { 0%{transform:scale(1);} 50%{transform:scale(1.3);} 100%{transform:scale(1);} }

/* =========================================
   4. SABİT ALT DOCK (MENÜ)
   ========================================= */
.fixed-bottom-dock {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 10px 15px; border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); z-index: 1050;
    width: 90%; max-width: 500px; border: 1px solid rgba(0,0,0,0.05);
}

.dock-main-btn {
    flex-grow: 1; background: linear-gradient(90deg, #d62976, #962fbf);
    color: white; border: none; padding: 12px; border-radius: 30px;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(214, 41, 118, 0.4);
    font-size: 14px;
}

.dock-btn {
    width: 45px; height: 45px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 22px;
    color: white !important; flex-shrink: 0; text-decoration: none;
}
.dock-whatsapp { background: #25D366; }
.dock-up { background: #222; }

/* =========================================
   5. RENKLİ İŞ ÖRNEKLERİ (Offcanvas İçi)
   ========================================= */
.cat-grid-btn {
    display: block; padding: 15px; border-radius: 10px;
    color: #fff !important; font-weight: 700; text-align: left;
    position: relative; overflow: hidden; transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: none;
}
.cat-grid-btn:hover { transform: scale(1.02); opacity: 0.9; }
.cat-grid-btn i { float: right; opacity: 0.3; font-size: 24px; margin-top: -2px; }

/* Otomatik Renklendirme Döngüsü */
.cat-col:nth-child(4n+1) .cat-grid-btn { background: linear-gradient(135deg, #FF512F, #DD2476); } /* Turuncu-Pembe */
.cat-col:nth-child(4n+2) .cat-grid-btn { background: linear-gradient(135deg, #4568DC, #B06AB3); } /* Mavi-Mor */
.cat-col:nth-child(4n+3) .cat-grid-btn { background: linear-gradient(135deg, #11998e, #38ef7d); } /* Yeşil */
.cat-col:nth-child(4n+4) .cat-grid-btn { background: linear-gradient(135deg, #FF9966, #FF5E62); } /* Açık Turuncu */
.cat-all-btn { background: #333; color: white !important; }

/* =========================================
   6. FOOTER & DİĞER
   ========================================= */
footer { background: #111 !important; color: #fff !important; padding: 60px 0 120px; margin-top: 80px; }
footer *, footer a { color: #fff !important; }
footer a { opacity: 0.7; text-decoration: none; }
footer a:hover { opacity: 1; }
.social-icon { margin: 0 10px; transition: transform 0.2s; display: inline-block; }
.social-icon:hover { transform: translateY(-5px); }

/* =========================================
   7. MOBİL UYUM & DÜZELTMELER (FİNAL VERSİYON)
   ========================================= */
@media (max-width: 991px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .navbar-collapse { background: #fff; padding: 20px; border-radius: 15px; margin-top: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .btn-quote { width: 100%; margin-top: 10px; display: block; }
}

@media (max-width: 576px) {
    /* Galeri tek sütun */
    .gallery-grid { grid-template-columns: 1fr; }

    /* --- MOBİL HEADER KESİN ÇÖZÜM --- */
    
    /* 1. Kapsayıcı: WRAP AÇIK! (Menünün aşağı inmesi için şart) */
    .navbar .container {
        display: flex !important;
        flex-wrap: wrap !important; /* DÜZELTME: Menü aşağı inebilsin diye wrap açıldı */
        align-items: center;
        justify-content: space-between;
        padding-left: 10px;
        padding-right: 10px;
        gap: 0;
    }

    /* 2. Logo: Genişliği sınırla ki diğerleri sığsın */
    .navbar-brand {
        margin-right: auto; 
        padding: 0;
        max-width: 50%; /* Logoya sınır koyduk */
    }
    .navbar-brand img {
        height: 32px !important; /* Mobilde logo boyutu */
        width: auto;
    }

    /* 3. İkon Grubu: Menüyle arayı aç */
    .header-icons-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: 10px; /* Menüye yapışmasın */
        margin-left: 5px;
    }

    /* 4. İkon Butonları */
    .header-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 0 !important;
        background-color: #f1f3f5;
    }

    /* 5. Hamburger Menü */
    .navbar-toggler {
        padding: 4px 6px;
        font-size: 18px;
        border: 1px solid rgba(0,0,0,0.1) !important;
    }

    /* 6. AÇILAN MENÜ: Tam genişlik verip aşağı itiyoruz */
    .navbar-collapse {
        flex-basis: 100%; /* Tam satır kapla */
        width: 100%;
    }
    
    .navbar { padding: 8px 0; }
}