/* --- SAYFA YAPISI --- */
body {
    background-color: #050505;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Arka Plan Efektleri */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
}

/* --- HEADER ALANI --- */
.project-header {
    padding: 140px 20px 40px 20px;
    /* Navbar payı eklendi */
    text-align: center;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight {
    color: #FF9F1C;
    /* İnşaat Turuncusu */
}

.project-header p {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Filtre Butonları */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FF9F1C;
    border-color: #FF9F1C;
    color: #000;
    transform: translateY(-2px);
}

/* --- GALERİ GRID (DÜZELTİLDİ) --- */
.gallery-section {
    padding: 60px 20px;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    /* En az 300px genişlikte kolonlar, ekrana sığdığı kadar */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Sabit satır yüksekliği, boşlukları engeller */
    grid-auto-rows: 300px;
    gap: 20px;
    /* Dense: Boşlukları otomatik doldurur */
    grid-auto-flow: dense;
}

/* Galeri Kutusu */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #111;
    cursor: pointer;
}

/* Resim Ayarları */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi kutuya sığdırır, taşmayı engeller */
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Özel Boyutlar (Kaosu Engellemek İçin) */
.gallery-item.wide {
    grid-column: span 2;
}

/* 2 birim genişlik */
.gallery-item.tall {
    grid-row: span 2;
}

/* 2 birim yükseklik */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* 2x2 kare */

/* Overlay (Yazı) */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.text h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #fff;
}

.text p {
    margin: 0;
    color: #FF9F1C;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Video İkonu */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

/* --- LIGHTBOX (MODAL) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    /* JS ile açılacak */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

#lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #FF9F1C;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 40px;
    background-color: #000;
    border-top: 1px solid #222;
    color: #666;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2rem;
    }

    /* Mobilde 2x2 veya geniş kutuları iptal et, tek sütun yap */
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Tek sütun */
        grid-auto-rows: 300px;
    }

    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.large {
        grid-column: auto;
        grid-row: auto;
    }
}