﻿/* Projects section */
.projects-section {
    background-color: #f8f8f8;
    padding: 2.5rem 0 3rem 0; /* yan padding kaldırıldı */
    color: #f1f1f1;
    text-align: left;
    font-family: "Cormorant Garamond", serif;
}
    /* Başlık alanı sola yaslı, üstte boşluklu */
    .projects-section .section-title {
        text-align: left !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem;
        padding-left: 3rem;
    }

    /* Başlık tipi */
        .projects-section .section-title h2 {
            font-size: 2.25rem;
            font-weight: 600;
            color: #100f0d;
            margin: 0;
            letter-spacing: 0.5px;
            text-align: left;
        }

    /* Başlık alt çizgilerini kaldır */
    .projects-section .section-title h2::before,
    .projects-section .section-title h2::after {
        display: none;
    }

/* Hero arka plan */
.projects-hero {
    position: relative;
    background-image: url('/images/baslik.png'); /* aynı görsel kullanılabilir */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 35vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* Başlık kapsayıcısı */
.projects-hero-title {
    z-index: 5;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

    /* Başlık tipi */
    .projects-hero-title h1 {
        font-size: 2.3rem;
        font-weight: 600;
        color: #f1f1f1;
        margin: 0;
        margin-top: 5.5rem;
        letter-spacing: 0.08em;
        text-align: center;
        text-shadow: 0px 4px 10px rgba(0,0,0,0.6);
    }

/* Üstte blur efekti */
.projects-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 160px;
    background: url('/images/baslik.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    filter: blur(15px);
    z-index: 2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Siyah opak degrade */
.projects-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.70), rgba(0,0,0,0));
    z-index: 3;
    pointer-events: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sütunlu grid */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* kartların hizası başlıkla aynı */
}

/* Ürün kartları */
.interactive-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e6e6e6;
}

    .interactive-card:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        transform: scale(1.02);
    }

    .interactive-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease, filter 0.3s ease;
        filter: brightness(0.95) contrast(1);
    }

    .interactive-card:hover img {
        transform: scale(1.03);
        filter: brightness(0.70) contrast(1.1);
    }

    .interactive-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.3); /* Hafif karartma */
        z-index: 1;
        transition: background-color 0.3s ease;
        pointer-events: none;
    }

    .interactive-card:hover::before {
        background-color: rgba(0, 0, 0, 0.45); /* Hoverda biraz daha koyu */
    }

.interactive-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 70%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* AŞAĞIDAN ORTAYA */
    align-items: center; /* ORTADAN ORTAYA */
    padding: 1.5rem;
    text-align: center;
    transition: background 0.4s ease;
    z-index: 2;
}

.interactive-card:hover .interactive-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
}

.interactive-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    transform: translateY(70px); /* Başlangıçta aşağıda */
    transition: transform 0.4s ease, opacity 0.4s ease; /* Hover ile yukarı çıkar */
    z-index: 3;
}

.interactive-card:hover .interactive-title {
    transform: translateY(-5px); /* Hoverda yukarıya çıkar */
    margin-bottom: 0rem;
}

.interactive-title::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background: white;
    margin: 0.8rem auto 0 auto; /* Ortalamak için */
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.interactive-card:hover
.interactive-title::after {
    opacity: 1;
    transform: scaleX(1);
}


.interactive-detail {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.interactive-card:hover .interactive-detail {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROJELER SAYFASI – MOBİL (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {

    /* === HERO === */
    .projects-hero {
        height: 28vh !important;
        background-position: center !important;
    }

    .projects-hero-title h1 {
        font-size: 1.8rem !important;
        margin-top: 5rem !important;
        letter-spacing: 0.06em !important;
    }

    /* === BAŞLIK (Projeler) === */
    .projects-section {
        padding: 1.5rem 0.5rem 2rem 0.5rem !important;
    }

        .projects-section .section-title {
            padding-left: 1rem !important;
            margin-bottom: 1.5rem !important;
        }

            .projects-section .section-title h2 {
                font-size: 1.9rem !important;
            }

    /* === GRID – Tek kolon === */
    .project-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        padding: 0 1rem !important;
    }

    /* === KARTLAR === */
    .interactive-card {
        height: 150px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

        .interactive-card img {
            height: 100% !important;
            width: 100% !important;
            object-fit: cover !important;
        }

    /* === OVERLAY === */
    .interactive-overlay {
        padding: 1rem !important;
        background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 70%) !important;
        justify-content: flex-end !important;
    }

    .interactive-title {
        font-size: 1rem !important;
        transform: translateY(60px) !important;
    }

    .interactive-card:hover .interactive-title {
        transform: translateY(0px) !important;
    }

    .interactive-detail {
        font-size: 0.9rem !important;
        margin-top: 0.2rem !important;
    }

    /* Hover’da çok animasyon olmasın */
    .interactive-card:hover img {
        transform: scale(1.02) !important;
    }

    .interactive-card:hover::before {
        background-color: rgba(0,0,0,0.35) !important;
    }
}
