﻿.services-area {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Desktop 2 kart yan yana */
    gap: 40px;
    justify-items: center;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    /* Fade-in scroll animasyon başlangıcı */
    opacity: 0;
    transform: translateY(50px);
}

    .service-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.service-content {
    padding: 25px;
    text-align: center;
}

    .service-content h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .service-content p {
        font-size: 17px;
        color: #555;
    }

/* Hover efekti */
.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.03); /* 3D + hafif büyüme */
    box-shadow: 0 35px 60px rgba(0,0,0,0.25); /* daha derin gölge */
    background: linear-gradient(145deg, #f0f8ff, #e6f0ff); /* arka plan geçişi */
}

    .service-card:hover img {
        transform: scale(1.07); /* hoverda fotoğraf da biraz büyür */
    }

/* Animasyon aktif class */
.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card img {
        height: 260px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card img {
        height: 240px;
    }

    .service-content h3 {
        font-size: 22px;
    }

    .service-content p {
        font-size: 16px;
    }
}

/* Küçük mobil */
@media (max-width: 480px) {
    .service-card img {
        height: 200px;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .service-content p {
        font-size: 15px;
    }
}
