﻿
.service-details {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px 20px 20px; /* üst 40 → 80 yaptık */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    animation: fadeInUp 0.8s ease forwards;
}

.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;
    }

.underline {
    width: 80px;
    height: 4px;
    background: #e00000;
    margin: 0 auto 15px auto;
    border-radius: 10px;
}

/* --- GALERİ --- */
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

    .service-gallery-grid img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 14px;
        transition: transform 0.3s ease, filter 0.3s ease;
        cursor: pointer;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

        .service-gallery-grid img:hover {
            transform: scale(1.04);
            filter: brightness(0.8);
        }

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 12px;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .modal-content.show {
        opacity: 1;
        transform: translateX(0);
    }

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

    .close:hover {
        color: #e63946;
    }

/* --- MODAL NAVIGATION --- */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px; /* eşit en ve boy */
    height: 50px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    transition: all 0.35s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex; /* içeriği ortalamak için */
    justify-content: center;
    align-items: center;
}

    .modal-nav:hover {
        background: #e63946;
        border-color: #e63946;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .modal-nav.prev {
        left: 30px; /* biraz daha içeri kaydırdım */
    }

    .modal-nav.next {
        right: 30px;
    }


@media (max-width: 768px) {
    .service-header h2 {
        font-size: 2rem;
    }

    .modal-nav.prev {
        left: 20px;
    }

    .modal-nav.next {
        right: 20px;
    }
}
