/* --- TEMEL AYARLAR --- */
:root {
    --bg-color: #0f172a;        /* Koyu Lacivert Zemin */
    --text-color: #e2e8f0;      /* Kırık Beyaz Yazı */
    --main-color: #00d2ff;      /* Neon Mavi */
    --second-color: #7f00ff;    /* Mor */
    --glass-bg: rgba(255, 255, 255, 0.05); /* Cam Efekti */
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* Arka Plan Işıkları (Blob Animasyon) */
body::before, body::after {
    content: ''; position: fixed; width: 400px; height: 400px;
    border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.5;
}
body::before { background: var(--second-color); top: -50px; left: -50px; }
body::after { background: var(--main-color); bottom: -50px; right: -50px; }

/* --- HEADER --- */
.showcase-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 100;
}

.highlight {
    background: linear-gradient(45deg, var(--main-color), var(--second-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.btn-back {
    text-decoration: none; color: #fff;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--main-color);
    border-radius: 2rem;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-back:hover { background: var(--main-color); color: var(--bg-color); box-shadow: 0 0 15px var(--main-color); }

/* --- HERO & FİLTRE BUTONLARI --- */
.gallery-hero { text-align: center; padding: 4rem 2rem 2rem; }
.gallery-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.gallery-hero p { color: #cbd5e1; max-width: 600px; margin: 0 auto; }

.filter-menu {
    margin-top: 2rem;
    display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 2rem;
    transition: 0.3s;
    font-size: 0.85rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
    border-color: var(--main-color);
    font-weight: 700;
}

/* --- GALERİ GRID YAPISI --- */
.gallery-container {
    display: grid;
    /* 300px yerine 450px yaptık. Artık yan yana daha az ama daha BÜYÜK kartlar sığacak */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 2.5rem; /* Kartlar arası boşluğu biraz açtık */
    padding: 2rem 8%; /* Kenarlardan biraz daha içe bastık ki ortada toplansın */
    padding-bottom: 5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem; /* Köşeleri daha yumuşak yaptık */
    cursor: pointer;
    height: 350px; /* Yüksekliği 250px'ten 350px'e çıkardık (Daha heybetli duracak) */
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Derinlik gölgesi ekledik */
}

/* Kart içindeki yazıların boyutunu da büyüyen karta göre ayarlayalım */
.overlay h3 { 
    color: var(--main-color); 
    font-size: 1.5rem; /* Yazı büyüdü */
    margin-bottom: 8px; 
    font-weight: 700;
}

.badge {
    font-size: 0.9rem; /* Etiket büyüdü */
    padding: 4px 12px;
}

/* Filtreleme Animasyon Sınıfları */
.gallery-item.hide { display: none; }
.gallery-item.show { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Efekti (Overlay) */
.overlay {
    position: absolute; left: 0; bottom: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15,23,42, 0.95), transparent);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; transition: 0.4s ease;
}

.gallery-item:hover .overlay { bottom: 0; }
.gallery-item:hover img { transform: scale(1.1); }

.overlay h3 { color: var(--main-color); font-size: 1.1rem; margin-bottom: 5px; }
.badge {
    display: inline-block; background: var(--second-color);
    color: white; padding: 2px 8px; font-size: 0.75rem; border-radius: 4px; width: fit-content;
}

/* --- LIGHTBOX (Tam Ekran Modu) --- */
.lightbox {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}

.lightbox img {
    max-width: 90%; max-height: 80vh;
    border-radius: 0.5rem; box-shadow: 0 0 30px var(--main-color);
}

.close-btn {
    position: absolute; top: 20px; right: 40px;
    color: #fff; font-size: 40px; cursor: pointer;
}
/* --- GENEL BAŞLIK STİLİ --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0 2rem;
}

/* --- 1. TEKNOLOJİ BANTI (Infinite Scroll) --- */
.tech-stack {
    padding: 2rem 0;
    overflow: hidden; /* Taşanları gizle */
    background: rgba(0,0,0,0.2);
}

.slider {
    margin-top: 2rem;
    height: 100px;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}

.slide-track {
    display: flex;
    width: calc(250px * 16); /* İkon sayısı x genişlik */
    animation: scroll 20s linear infinite; /* Sürekli kayma animasyonu */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem; /* İkon boyutu */
    color: rgba(255,255,255,0.3); /* Soluk renk */
    transition: 0.3s;
}

.slide:hover {
    color: var(--main-color); /* Üzerine gelince parla */
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--main-color);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 8)); } /* Yarısına kadar kaydırıp başa sarar */
}

/* --- 2. ÇALIŞMA SÜRECİ --- */
.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.process-box {
    text-align: center;
    padding: 2rem;
    position: relative;
    border-top: 3px solid transparent;
}

.process-box:hover {
    border-top-color: var(--second-color); /* Üstte mor çizgi çıkar */
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05); /* Arka planda dev silik numara */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.process-box h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--main-color);
    position: relative; z-index: 1;
}

.process-box p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
    position: relative; z-index: 1;
}

/* --- 3. İSTATİSTİKLER --- */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 4rem 5%;
    background: rgba(15, 23, 42, 0.8);
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-box {
    text-align: center;
    margin: 1rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 4. CTA FOOTER (Alt Çağrı) --- */
.cta-footer {
    text-align: center;
    padding: 5rem 2rem;
}

.cta-footer h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.btn-main {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, var(--second-color), var(--main-color));
    color: #fff;
    border-radius: 3rem;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.4);
    transition: 0.3s;
}

.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--main-color);
}
/* --- MOBİL UYUMLULUK (Büyük Kartlar İçin) --- */
@media (max-width: 768px) {
    .gallery-container {
        /* Mobilde kartlar 450px olmaya çalışmasın, ekran ne kadarsa o kadar olsun */
        grid-template-columns: 1fr; 
        padding: 2rem 5%;
    }

    .gallery-item {
        height: 300px; /* Mobilde yükseklik biraz daha az olabilir */
    }
}
/* --- LIGHTBOX NAVIGASYON (İLERİ/GERİ OKLARI) --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Yarı şeffaf siyah zemin */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    user-select: none; /* Tıklarken seçilmesini engelle */
    z-index: 1001;
}

.nav-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Mobilde okları biraz küçültelim */
@media (max-width: 768px) {
    .nav-btn {
        width: 45px; height: 45px; font-size: 1.5rem;
        background: rgba(0,0,0,0.8);
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* Sayaç (1 / 3 yazısı) */
#image-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 15px;
    border-radius: 20px;
}