@charset "UTF-8";
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* Projects CSS - CORE (TR base V7 + cross-site hero lock + DE global CSS çakışma kalkanı) */

/* Hero */
:root{
    --kale-accent: #00a3e0; /* brand accent */
    --kale-ink: #0b1f3b;
    --ff: 'Poppins','Popins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;

    --card-h: 320px;
    --cap-h: 56px;
    --radius: 12px;

    /* HERO / TABS (parametrik) */
    --hero-h: 220px;
    --tabs-overlap: 30px;      /* filtre bar hero üstüne biner */
    --hero-nudge-y: 0px;       /* dil bazlı ince ayar */
}

/* sekme bindirmesi yüzünden optik merkez aşağıda kalıyor -> yukarı al (dil bazlı ince ayar) */
html[lang^="en"]{ --hero-nudge-y: -20px; }
html[lang^="de"]{ --hero-nudge-y: -18px; }
html[lang^="fr"]{ --hero-nudge-y: -22px; }
/* IT: /it/progetti/ ana sayfa farklı markup -> nudge aşağı çek */
html[lang^="it"]{ --hero-nudge-y: 12px; }

/* ===== HERO (TR: .projeler-hero) + IT/EN/.. alias: .projects-hero ===== */
.projeler-hero,
.projects-hero{
    background: linear-gradient(rgba(52, 73, 94, 0.9), rgba(52, 73, 94, 0.9));
    background-size: cover;

    height: var(--hero-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
    box-sizing: border-box;

    /* tabs bindirmesi kadar altta alan bırak */
    padding-bottom: var(--tabs-overlap);

    position: relative;
    overflow: hidden;
}

/* ===== CROSS-SITE KİLİT: global .hero-content absolute vb. varsa öldür =====
   IT/EN sayfasında hero içi genelde .container kullanıyor -> alias ekledik
*/
.projeler-hero .hero-content,
.projects-hero .container,
.projects-hero .hero-content{
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    /* tabs bindirmesi optik merkezi aşağı çeker -> yarım overlap kadar yukarı al + dil nudge */
    transform: translateY(calc(var(--hero-nudge-y) - (var(--tabs-overlap) * 0.5))) !important;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px !important;
    box-sizing: border-box;
    z-index: 1;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

/* global h1/p pozisyon saçmalıklarını öldür */
.projeler-hero .hero-content h1,
.projeler-hero .hero-content p,
.projects-hero .projects-title,
.projects-hero .projects-subtitle,
.projects-hero h1,
.projects-hero p{
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
}

/* Class’lı hero tipografisi */
.projeler-hero h1,
.projects-hero .projects-title{
    font-family: var(--ff) !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    width: 100% !important;
}

.projeler-hero p,
.projects-hero .projects-subtitle{
    font-family: var(--ff) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
    max-width: 860px !important;
    margin: 0 !important;
    text-align: center !important;
}

/* /it/progetti/ ana sayfa gibi: class’sız h1/p gelirse aynı hero tipografisini kilitle */
.projects-hero h1:not(.projects-title){
    font-family: var(--ff) !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    width: 100% !important;
}
.projects-hero p:not(.projects-subtitle){
    font-family: var(--ff) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
    max-width: 860px !important;
    margin: 0 !important;
    text-align: center !important;
}

/* IT: subtitle tek satır kilit + daha küçük font (wrap yok), taşarsa ellipsis */
html[lang^="it"] .projects-hero .projects-subtitle,
html[lang^="it"] .projects-hero p:not(.projects-subtitle){
    max-width: 1200px !important;
    font-size: clamp(16px, 1.45vw, 20px) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
}

/* ===== TABS / CATEGORY MENU (TR: filtre-*) + alias (IT: projects-*) ===== */
.filtre-container,
.projects-tabs{
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0 40px;

    /* hero üstüne bindirme */
    margin-top: calc(-1 * var(--tabs-overlap));
}

.filtre-menu,
.projects-tabs .container{
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
    background: #1a252f;
    border-bottom: 3px solid var(--kale-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.filtre-btn,
.projects-tab{
    font-family: var(--ff);
    background: transparent;
    padding: 22px 12px;
    color: #ecf0f1;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-right: 2px solid #000000;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    outline: none;
}

.filtre-btn:last-child,
.projects-tab:last-child{ border-right: none; }

.filtre-btn:hover, .filtre-btn.active,
.projects-tab:hover, .projects-tab.is-active{
    background: var(--kale-accent) !important;
    color: #000000 !important;
}

/* ===== LIST / GRID (TR: .projeler-vitrin + .proje-grid) + alias (IT: .projects-list + .projects-grid) ===== */
.projeler-vitrin,
.projects-list{
    padding: 60px 0;
    display: block;
    width: 100%;
}

/* ===== DE / GLOBAL CSS ÇAKIŞMA KALKANI ===== */
.projeler-vitrin .container,
.projects-list .container{
    max-width: 1300px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto !important;
    margin-right: auto !important;

    float: none !important;
    display: block !important;
    box-sizing: border-box;

    /* global .container grid/flex reset */
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    gap: 0 !important;
    place-items: initial !important;
    place-content: initial !important;
    align-items: initial !important;
    justify-items: initial !important;
    justify-content: initial !important;
}

.proje-grid,
.projects-grid{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;

    /* global center/flex reset */
    justify-content: start !important;
    align-content: start !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

/* Cards (JS bu sınıfları üretiyor/varsayıyor) */
.app-card{
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: var(--card-h) !important;
    overflow: hidden !important;
    border-radius: var(--radius) !important;
    text-decoration: none !important;
    display: block !important;

    border: 1px solid rgba(11,31,59,0.16) !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(11,18,32,0.10) !important;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
    line-height: normal !important;
}

.app-card:hover{
    border-color: rgba(0,163,224,0.55) !important;
    box-shadow: 0 20px 44px rgba(11,18,32,0.16) !important;
    transform: translateY(-2px) !important;
}

.card-bg{
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--cap-h)) !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.25s ease !important;
    filter: saturate(1.04) contrast(1.02) !important;
}

.app-card:hover .card-bg{
    transform: scale(1.06) !important;
    filter: saturate(1.06) contrast(1.03) !important;
}

.card-overlay{
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--cap-h)) !important;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.04) 55%,
        rgba(0,0,0,0.00) 100%
    ) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.card-content{
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    font-family: var(--ff) !important;

    /* global .card-content reset */
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.card-content h3{
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: var(--cap-h) !important;
    margin: 0 !important;
    padding: 0 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    font-family: var(--ff) !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: .2px !important;
    text-transform: uppercase !important;
    color: var(--kale-ink) !important;

    background: linear-gradient(#ffffff, #f7f9fc) !important;
    border-top: 1px solid rgba(11,18,32,.10) !important;

    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.card-content p{ display: none !important; }

.btn-text{
    position: absolute !important;
    left: 50% !important;
    top: calc((100% - var(--cap-h)) / 2) !important;
    transform: translate(-50%, -50%) scale(.98) !important;

    font-family: var(--ff) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;

    background: var(--kale-accent) !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.22) !important;

    opacity: 0 !important;
    transition: opacity 0.18s ease, transform 0.18s ease !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 34px !important;
    z-index: 3 !important;
}

.app-card:hover .btn-text,
.app-card:focus-within .btn-text{
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

@media (hover: none){
    .btn-text{
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* Responsive */
@media (max-width: 1100px){
    .proje-grid,
    .projects-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* === MOBIL SEKME PREMIUM FIX === */
@media (max-width: 720px){
    .filtre-container,
    .projects-tabs{ padding: 0 12px; }

    .filtre-menu,
    .projects-tabs .container{
        flex-direction: column;
        align-items: stretch;
        border-bottom: 3px solid var(--kale-accent);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 10px 26px rgba(0,0,0,0.26);
    }

    .filtre-btn,
    .projects-tab{
        flex: none;
        width: 100%;
        padding: 14px 12px;
        font-size: 12px;
        line-height: 1.15;
        min-height: 52px;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,.85);
        text-transform: uppercase;
        white-space: normal;
    }

    .filtre-btn:last-child,
    .projects-tab:last-child{ border-bottom: none; }

    .proje-grid,
    .projects-grid{ grid-template-columns: 1fr !important; }
}

/* Hero mobile text fit */
@media (max-width: 720px){
    .projeler-hero,
    .projects-hero{
        height: auto !important;
        min-height: 190px !important;
        padding: 72px 14px 46px !important;
    }

    .projeler-hero .hero-content,
    .projects-hero .container,
    .projects-hero .hero-content{
        transform: none !important;
    }

    .projeler-hero h1,
    .projects-hero .projects-title,
    .projects-hero h1{
        font-size: clamp(28px, 7.2vw, 36px) !important;
        line-height: 1.05 !important;
        letter-spacing: 1px !important;
        padding: 0 6px !important;
        margin: 0 0 10px 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .projeler-hero p,
    .projects-hero .projects-subtitle,
    .projects-hero p{
        font-size: clamp(14px, 3.8vw, 17px) !important;
        line-height: 1.35 !important;
        max-width: 520px !important;
        padding: 0 10px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

@media (max-width: 520px){
    :root{
        --card-h: 308px;
        --cap-h: 58px;
        --radius: 12px;
    }
    .card-content h3{ font-size: 14px !important; }
    .btn-text{ padding: 10px 16px !important; min-height: 34px !important; }

    .filtre-btn,
    .projects-tab{
        min-height: 50px;
        font-size: 12px;
        padding: 13px 12px;
    }
}

@media (max-width: 420px){
    .projeler-hero,
    .projects-hero{ padding: 64px 12px 40px !important; }
    .projeler-hero h1,
    .projects-hero .projects-title,
    .projects-hero h1{ letter-spacing: .6px !important; }
}

/* ===== PROJECT DETAIL (kunye + gallery + lightbox) ===== */
.detay-header { padding: 50px 0; background: #1a252f; border-bottom: 5px solid var(--kale-accent); text-align: center; color: white; }
.detay-header h1 { font-size: 34px; font-weight: 800; margin: 0; text-transform: uppercase; }
.proje-govde { max-width: 1200px; margin: 0 auto; padding: 40px 20px; font-family: var(--ff); }
.kunya-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 40px; }
.kunya-kart { background: #fff; padding: 25px; border: 1px solid #ddd; border-left: 5px solid var(--kale-accent); box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left; }
.kunya-kart label { color: var(--kale-accent); font-weight: 800; font-size: 15px; text-transform: uppercase; display: block; margin-bottom: 10px; border-bottom: 1px solid #f4f4f4; padding-bottom: 5px; }
.kunya-kart span { color: #000; font-size: 18px; font-weight: 700; line-height: 1.6; display: block; }
.section-title { font-size: 26px; font-weight: 800; color: #1a252f; margin: 50px 0 25px; padding-left: 15px; border-left: 5px solid var(--kale-accent); text-align: left; }
.proje-metni { line-height: 1.9; color: #000; font-size: 18px; font-weight: 600; margin-bottom: 50px; text-align: left; }
.galeri-alani { text-align: center; margin-top: 60px; }
.galeri-baslik-orta { font-size: 28px; font-weight: 800; color: #1a252f; margin-bottom: 40px; text-transform: uppercase; display: inline-block; position: relative; padding-bottom: 10px; }
.galeri-baslik-orta::after { content: ''; position: absolute; bottom: 0; left: 25%; width: 50%; height: 4px; background: var(--kale-accent); }
.galeri-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.resim-kutu { position: relative; height: 300px; border: 1px solid #000; overflow: hidden; cursor: pointer; background: #000; }
.resim-kutu img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; opacity: 1; }
.buyut-ikon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; border: 1px solid rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; z-index: 5; pointer-events: none; }
.buyut-ikon::before, .buyut-ikon::after { content: ''; position: absolute; background: #fff; }
.buyut-ikon::before { width: 18px; height: 1px; } .buyut-ikon::after { width: 1px; height: 18px; }
.resim-kutu:hover img { opacity: 0.6; transform: scale(1.05); }
.resim-kutu:hover .buyut-ikon { opacity: 1; }
#lb-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); display: none; z-index: 10000; justify-content: center; align-items: center; }
.lb-container { position: relative; width: 85%; height: 85%; display: flex; align-items: center; justify-content: center; }
#lb-img { max-width: 100%; max-height: 100%; border: 2px solid #000; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #1a252f; color: white; width: 60px; height: 60px; border: none; cursor: pointer; font-size: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; z-index: 10001; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close { position: absolute; top: 20px; right: 20px; color: #000; font-size: 45px; cursor: pointer; font-weight: bold; line-height: 1; z-index: 10002; }