﻿.service-overlay-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    height: 280px;
    color: white;
    transition: all .4s ease;
}

    .service-overlay-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .service-overlay-card:hover img {
        transform: scale(1.1);
    }

.service-overlay-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient( to top, rgba(0,0,0,.85), rgba(0,0,0,.2), transparent );
}

    .service-overlay-content h4 {
        font-weight: 700;
        margin-bottom: 10px;
    }

    .service-overlay-content p {
        font-size: 14px;
        opacity: .9;
    }

.service-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    background: rgba(255,255,255,.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/*************** سرویسها*************/

.services-ultra {
    perspective: 1000px;
}

.ultra-title {
    font-size: 34px;
    font-weight: 800;
}

/* Link */
.ultra-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card */
.ultra-card {
    position: relative;
    padding: 45px 30px;
    border-radius: 22px;
    background: linear-gradient(145deg,#ffffff,#f3f4f6);
    box-shadow: 0 15px 35px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6);
    transition: transform .4s ease, box-shadow .4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

    /* 3D Hover */
    .ultra-card:hover {
        transform: rotateX(6deg) rotateY(-6deg) translateY(-10px);
        box-shadow: 0 35px 70px rgba(0,0,0,.18);
    }

/* Glow Layer */
.ultra-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at top left, rgba(99,102,241,.25), transparent 60%);
    top: -40%;
    left: -40%;
    pointer-events: none;
}

/* Icon */
.ultra-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transform: translateZ(40px);
}

    .ultra-icon img {
        height: 36px;
    }

/* Title */
.ultra-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateZ(30px);
}

/* Text */
.ultra-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    transform: translateZ(20px);
}

/*******فضا و امکانات **********/

/* Section */

.facilities-section {
    position: relative;
}

.facilities-title {
    font-weight: 800;
    font-size: 34px;
}

/* Link */

.facility-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card */

.facility-card-modern {
    position: relative;
    border-radius: 20px;
    background: #fff;
    transition: all .35s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.05);
    overflow: hidden;
}

    /* Animated border light */

    .facility-card-modern::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 1px;
        background: linear-gradient( 120deg, transparent, rgba(99,102,241,.4), transparent );
        opacity: 0;
        transition: opacity .4s;
    }

    /* Hover */

    .facility-card-modern:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0,0,0,.18);
    }

        .facility-card-modern:hover::before {
            opacity: 1;
        }

/* Icon */

.facility-icon {
    width: 80px;
    height: 80px;
    margin: auto;
    margin-bottom: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg,#6366f1,#06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 12px 25px rgba(0,0,0,.15);
}

    /* icon image */

    .facility-icon img {
        height: 40px;
    }

/* Title */

.facility-title {
    font-weight: 700;
    color: #444;
    margin-top: 10px;
    font-size: 15px;
}

/* subtle animation */

.facility-card-modern:hover .facility-icon {
    transform: scale(1.1);
    transition: .3s;
}


/******گالری صفحه اول********/
.home-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .5s;
}

.gallery-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

    .gallery-preview-card:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient( to top, rgba(0,0,0,.8), rgba(0,0,0,0) );
    color: white;
}

    .gallery-overlay h5 {
        margin-bottom: 5px;
    }

.gallery-title {
    font-weight: 800;
}
