﻿.services-page {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.service-block {
    margin-bottom: 60px;
}

    .service-block h3 {
        font-size: 28px;
        color: var(--text);
        margin-bottom: 8px;
    }

    .service-block p {
        font-size: 16px;
        color: var(--muted);
        margin-bottom: 20px;
    }

.service-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

    .service-gallery img {
        height: 200px;
        border-radius: 12px;
        object-fit: cover;
        transition: transform 0.3s ease, filter 0.3s ease;
        flex-shrink: 0;
    }

        .service-gallery img:hover {
            transform: scale(1.05);
            filter: brightness(1.1);
        }

    /* Scrollbar gizlemek (isteğe bağlı) */
    .service-gallery::-webkit-scrollbar {
        height: 6px;
    }

    .service-gallery::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

.service-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.service-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
}

    .service-gallery img {
        height: 200px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

        .service-gallery img:hover {
            transform: scale(1.05);
        }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
    z-index: 10;
    /* backdrop-filter: blur(8px); */
}

    .scroll-btn svg {
        /* stroke: white; */
        width: 20px;
        height: 20px;
        transition: all 0.35s ease;
    }

    /* Hover’da renkler takas */
    .scroll-btn:hover {
        background: white;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

        .scroll-btn:hover svg {
            stroke: #e50914; /* kırmızı ok */
            opacity: 1;
        }

    .scroll-btn.left {
        left: -20px;
    }

    .scroll-btn.right {
        right: -20px;
    }

.service-gallery-wrapper {
    /* overflow: hidden; */
    padding: 0 20px;
}



.service-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .service-card h3 {
        font-size: 24px;
        margin-bottom: 8px;
        color: var(--text);
    }

    .service-card p {
        font-size: 15px;
        color: var(--muted);
        margin-bottom: 16px;
    }

/* 🔗 Görünmez tıklanabilir alan */
.service-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Galeri ve butonlar linkin üzerinde çalışabilsin diye */
 .service-gallery-wrapper,
            .scroll-btn,
            .service-gallery {
                /*position: relative;*/
                z-index: 3;
            } 

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

    .section-sub span {
        color: var(--accent);
        font-weight: 600;
    }


/* Scroll taşarsa buton göster */
.service-gallery-wrapper.scrollable .scroll-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.underline {
    width: 80px;
    height: 4px;
    background: #e00000;
    margin: 0 auto 15px auto;
    border-radius: 10px;
}

.section-sub {
    color: #555;
    font-size: 1.1rem;
}


.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* büyütüldü */
    gap: 22px;
    justify-items: center;
}

.reference-card {
    width: 100%;
    max-width: 200px; /* daha geniş */
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

    .reference-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }

.reference-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
}

.reference-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.reference-card:hover .reference-img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.reference-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.reference-card:hover .reference-overlay {
    opacity: 1;
}

.reference-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 16px;
    }

    .reference-title {
        font-size: 0.9rem;
    }
}