/* --- css/project.css --- */

:root {
    --primary-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* GERİ DÖN BUTONU */
.back-nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.back-btn i {
    margin-right: 10px;
    color: var(--primary-color);
}

.back-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* HERO */
.project-hero {
    height: 70vh;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* <--- BU SATIR RESMİ ARKAYA SABİTLER */
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* CONTENT */
.content-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* SLIDER */
.gallery-section {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.gallery-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    padding: 0 2rem;
}

.gallery-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    background: #cbd5e1;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #334155;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-placeholder {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* FOOTER SPECS */
.project-specs {
    background: var(--bg-dark);
    color: white;
    padding: 5rem 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: auto;
}

.spec-col h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-info {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: block;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
}

.project-links a {
    display: flex;
    align-items: center;
    background: white;
    color: var(--bg-dark);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    width: fit-content;
}

.project-links a i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.project-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.github-btn {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.github-btn:hover {
    border-color: white;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* --- LIGHTBOX (BÜYÜK RESİM) STİLLERİ --- */
.lightbox {
    display: none;
    /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 9999;
    /* En üstte durması için */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    /* Arkası %95 siyah */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s;
    /* Açılma efekti */
}

/* Kapatma Butonu (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* İleri - Geri Okları */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10000;
}

.lightbox-next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animasyon */
@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Mobilde okları biraz uzaklaştır */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}