/* ==========================================================================
   Ultra-Luxury Animated Services Section
   ========================================================================== */

#services {
    background: linear-gradient(180deg, #f8fafc 0%, #eef8f9 100%);
    padding: 6.5rem 0;
    position: relative;
    overflow: hidden;
}

.services-tag-luxury {
    background: rgba(66, 186, 194, 0.12);
    color: #35989e;
    border: 1px solid rgba(66, 186, 194, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.services-title-luxury {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
    color: #0f172a;
}

/* Premium Animated Card Container */
.service-card-premium {
    border: 1px solid rgba(66, 186, 194, 0.15);
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(11, 19, 41, 0.04);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Top Glow Line on Hover */
.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #42bac2 0%, #98c739 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(66, 186, 194, 0.45);
    box-shadow: 0 25px 50px -12px rgba(66, 186, 194, 0.25);
}

.service-card-premium:hover::before {
    opacity: 1;
}

/* Image Wrapper & Zoom Effect */
.service-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: #0f172a;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.service-card-premium:hover .service-card-img img {
    transform: scale(1.09);
    filter: brightness(0.95);
}

.service-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 100%);
    pointer-events: none;
}

/* Floating Animated Icon Badge */
.service-badge-floating {
    position: absolute;
    bottom: -22px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(66, 186, 194, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.service-card-premium:hover .service-badge-floating {
    transform: scale(1.12) rotate(6deg);
    background: #42bac2;
    border-color: #42bac2;
    box-shadow: 0 12px 28px rgba(66, 186, 194, 0.4);
}

.service-card-premium:hover .service-badge-floating i {
    color: #ffffff !important;
}

/* Card Body & Typography */
.service-card-body {
    padding: 2.2rem 1.75rem 1.75rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.service-card-premium:hover .service-card-title {
    color: #35989e;
}

.service-card-desc {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Mobile & Tablet Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    #services {
        padding: 4.5rem 0 3.5rem 0;
    }

    .services-title-luxury {
        font-size: 2.15rem;
    }

    .service-card-body {
        text-align: center !important;
        padding: 2.25rem 1.4rem 1.5rem 1.4rem !important;
    }

    .service-badge-floating {
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    .service-card-premium:hover .service-badge-floating {
        transform: translateX(50%) scale(1.12) rotate(6deg) !important;
    }
}

@media (max-width: 575.98px) {
    .services-title-luxury {
        font-size: 1.8rem;
    }

    .service-card-img {
        height: 200px;
    }
}