/* ====================================================
   YAPALI - PROJE DETAY SAYFASI CSS (V3 LIGHTBOX)
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --pd-dark:       #002277;
    --pd-light:      #0cacf0;
    --pd-text:       #4a5568;
    --pd-heading:    #0b2b5e;
    --font-display:  'Bebas Neue', 'Arial Black', sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
}

/* ── DİNAMİK HERO (ZOOM SORUNU ÇÖZÜLDÜ) ── */
.pd-hero {
    position: relative;
    height: 500px;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.pd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.96) 0%, rgba(240,248,255,0.88) 40%, transparent 100%);
    z-index: 1;
}

.pd-hero-line {
    position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(to bottom, #4db8f0, var(--pd-light), var(--pd-dark));
    z-index: 2;
}

.pd-hero-container { position: relative; z-index: 3; max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; }

.pd-hero-breadcrumb {
    display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5a7a9a;
}
.pd-hero-breadcrumb a { color: #5a7a9a; text-decoration: none; transition: color 0.2s; }
.pd-hero-breadcrumb a:hover { color: var(--pd-light); }
.pd-hero-breadcrumb i { font-size: 9px; color: var(--pd-light); }
.pd-hero-breadcrumb span:last-child { color: var(--pd-light); }

.pd-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; color: var(--pd-light); margin-bottom: 16px;
}
.pd-hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--pd-light); }

.pd-hero-title {
    font-family: var(--font-display); font-size: 4rem; line-height: 1;
    color: var(--pd-heading); letter-spacing: 1px; margin: 0;
}

.pd-hero-slogan { font-size: 1.15rem; font-weight: 600; color: #475569; margin-top: 15px; font-family: var(--font-body); }

/* ── GRID LAYOUT ── */
.pd-main-section { padding: 80px 0; background: #ffffff; }
.pd-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.pd-grid-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }

.pd-content-title { font-size: 2.2rem; font-weight: 800; color: var(--pd-heading); margin-bottom: 25px; letter-spacing: -0.5px; }

.format-text { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.8; color: var(--pd-text); }
.format-text p { margin-bottom: 20px; }
.format-text h3 { color: var(--pd-heading); margin: 35px 0 15px 0; font-weight: 800; }

/* Proje İkonu Klasör Hizalaması */
.pd-ikon-wrapper { margin-top: 40px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; background: #fafafa; padding: 15px; }
.pd-ikon-img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

/* Künye Kartı */
.pd-sidebar-col { position: sticky; top: 100px; }
.pd-info-card { background: #f8fafc; border: 1px solid #e2e8f0; border-top: 5px solid var(--pd-dark); border-radius: 12px; padding: 35px; box-shadow: 0 15px 35px rgba(0,34,119,0.05); }
.pd-card-heading { font-size: 1.4rem; font-weight: 800; color: var(--pd-heading); margin-bottom: 25px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }

.pd-info-list { list-style: none; padding: 0; margin: 0; }
.pd-info-list li { margin-bottom: 18px; display: flex; flex-direction: column; gap: 5px; }
.pd-info-label { font-size: 0.85rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.pd-info-value { font-size: 1.05rem; font-weight: 600; color: var(--pd-heading); }

.pd-pdf-btn, .pd-map-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 15px; border-radius: 6px; text-decoration: none; font-size: 0.95rem; font-weight: 700; transition: all 0.3s; }
.pd-pdf-btn { background: #fee2e2; color: #dc2626; align-self: flex-start; }
.pd-pdf-btn:hover { background: #dc2626; color: #fff; }

.pd-map-box { margin-top: 25px; }
.pd-map-btn { background: var(--pd-dark); color: #fff; width: 100%; text-align: center; box-shadow: 0 5px 15px rgba(0,34,119,0.15); }
.pd-map-btn:hover { background: var(--pd-light); }

/* Sosyal Paylaşım ve X SVG */
.pd-share-box { margin-top: 30px; border-top: 1px solid #e2e8f0; padding-top: 25px; }
.pd-share-title { font-size: 0.9rem; font-weight: 700; color: var(--pd-heading); margin-bottom: 15px; display: block; }
.pd-social-links { display: flex; gap: 10px; }
.pd-social-links a { width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; text-decoration: none; transition: all 0.3s; }
.pd-social-links a:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-tw svg { width: 14px; height: 14px; }
.share-wa { background: #25d366; }
.share-in { background: #0a66c2; }

/* ── BÜYÜK KAPAK RESMİ ── */
.pd-cover-section { padding: 0 0 80px 0; }
.pd-cover-wrapper { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,34,119,0.1); }
.pd-cover-wrapper img { width: 100%; height: auto; max-height: 700px; object-fit: cover; display: block; }

/* ── GALERİ GRID ── */
.pd-gallery-section { padding: 60px 0 80px 0; background: #f8fafc; }
.pd-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pd-gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: block; cursor: pointer; }
.pd-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pd-gallery-overlay { position: absolute; inset: 0; background: rgba(0, 34, 119, 0.6); display: flex; justify-content: center; align-items: center; color: #fff; font-size: 2rem; opacity: 0; transition: opacity 0.4s ease; }
.pd-gallery-item:hover img { transform: scale(1.08); }
.pd-gallery-item:hover .pd-gallery-overlay { opacity: 1; }

/* ── PROJE ZORLUĞU, ÇÖZÜMÜ & BANNER GRID ── */
.pd-solution-section { padding: 80px 0; background: #ffffff; }
.pd-solution-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.pd-banner-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,34,119,0.1); }
.pd-banner-img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.pd-banner-wrapper:hover .pd-banner-img { transform: scale(1.02); }

/* ── ULTRA PREMIUM LIGHTBOX (POP-UP MOTORU) CSS ── */
.pd-lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 12, 46, 0.96); /* Derin şık koyu lacivert zemin */
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 99999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pd-lightbox.active { opacity: 1; visibility: visible; }
.pd-lightbox-content { max-width: 85%; max-height: 85vh; position: relative; display: flex; justify-content: center; align-items: center; }
.pd-lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }

.pd-lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 38px; cursor: pointer; transition: all 0.3s ease; z-index: 100000; }
.pd-lightbox-close:hover { color: var(--pd-light); transform: rotate(90deg); }

.pd-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; font-size: 24px; width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s; z-index: 100000;
}
.pd-lightbox-nav:hover { background: var(--pd-light); color: #fff; border-color: transparent; box-shadow: 0 10px 20px rgba(12, 172, 240, 0.4); }
.pd-lightbox-prev { left: 40px; }
.pd-lightbox-next { right: 40px; }

/* ── REVEAL EFFECT ── */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.8s ease; }
.active { opacity: 1; transform: translate(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .pd-grid-layout { grid-template-columns: 1fr; }
    .pd-sidebar-col { position: static; }
    .pd-solution-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .pd-hero { background-image: var(--bg-mobil); height: 400px; }
    .pd-hero-overlay { background: linear-gradient(to top, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.7) 100%); }
    .pd-hero-title { font-size: 2.8rem; }
    .pd-container { padding: 0 20px; }
    .pd-content-title, .pd-section-heading { font-size: 1.8rem; }
    .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .pd-lightbox-nav { width: 45px; height: 45px; font-size: 18px; }
    .pd-lightbox-prev { left: 15px; }
    .pd-lightbox-next { right: 15px; }
    .pd-lightbox-close { top: 20px; right: 20px; font-size: 30px; }
}
@media (max-width: 480px) { .pd-gallery-grid { grid-template-columns: 1fr; } }