/* ===== Services section ===== */
.services-section {
    position: relative;
    padding: 60px 20px;
    background-color: #7ca0b6;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: url('../../images/service_pattern.png') repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
    background-blend-mode: overlay;
}

.services-section > * {
    position: relative;
    z-index: 1;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index:1;
    padding: 40px 20px;
    border-radius: 8px;
}

.services-title {
    font-size: 1.5rem;
    margin-bottom: 70px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight:600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== Service card ===== */
.service-card {
    background: rgba(255,255,255,0.6);
    border-radius:5px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding:15px;
    box-shadow:2px 4px 8px rgba(0,0,0,0.1);

    /* animáció alapállapot */
    transform: scale(0);
    opacity:0;
}

/* Kép */
.service-image {
    width:100%;
    height:200px;
    overflow:hidden;
}

.service-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* Szöveg */
.service-card h3 { 
    font-size:1.2em; 
    font-weight:600; 
    margin:15px 0 10px; 
    color:#222; 
}

.service-card p { 
    font-size:0.95em; 
    color:#555; 
    margin:0 0 15px; 
    line-height:1.4em; 
}

/* Hover effekt */
.service-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== Pop-in animáció ===== */
@keyframes pop-in {
    0% { transform: scale(0); opacity:0; }
    60% { transform: scale(1.1); opacity:1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.service-card.animate-pop {
    animation: pop-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.service-card[data-index] {
    animation-delay: calc(var(--delay,0) * 0.1s);
}

/* ===== Reszponzív ===== */
@media only screen and (min-width: 900px) and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(237px, 1fr));
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .services-title{
        font-size: 1rem;
        margin-bottom: 70px;
    }
}

@media only screen and (max-width: 400px){
    .services-title {
        font-size: 1rem;
        margin-bottom: 70px;
    }
}