/* Services Page - New Modern Card System */

/* Services Grid Section */
.services-grid-section {
    background: transparent;
    padding: 80px 0 100px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
}

.container-fluid.px-4 {
    max-width: 1400px;
    margin: 0 auto;
}

/* New Service Card - Compact and Professional */
.service-card-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    will-change: transform;
}

.service-card-new:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.service-featured-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Top Section */
.service-card-top {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    transform: translateZ(0);
}

.service-card-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform;
}

.service-card-new:hover .service-card-img img {
    transform: scale(1.1) translateZ(0);
}

.service-image-overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    transform: translateZ(0);
}

.service-card-new:hover .service-image-overlay-new {
    opacity: 1;
}

.service-card-img-gradient {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.service-card-img-gradient::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.service-card-new:hover .service-icon-large {
    transform: scale(1.1) rotate(5deg) translateZ(0);
}

.service-icon-large i {
    font-size: 36px;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card-icon-badge {
    position: absolute;
    bottom: -30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.service-card-new:hover .service-card-icon-badge {
    transform: scale(1.1) rotate(5deg) translateZ(0);
}

.service-card-icon-badge i {
    font-size: 2rem;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Body */
.service-card-body-new {
    padding: 55px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title-new {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-desc-new {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 22px;
    flex: 1;
}

.service-content-preview {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid #4F46E5;
    margin-bottom: 22px;
}

.service-content-preview p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin: 0;
}

.service-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}

.service-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
}

.service-card-new:hover .service-highlight-item {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px) translateZ(0);
}

.service-highlight-item i {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.service-highlight-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Card Actions */
.service-card-actions {
    padding: 0 30px 30px;
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-service-detail,
.btn-service-quote {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-service-detail {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateZ(0);
}

.btn-service-detail:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-service-quote {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
    position: relative;
    transform: translateZ(0);
}

.btn-service-quote:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Services Introduction Section */
.services-intro-section {
    background: transparent;
    padding: 60px 0;
    transform: translateZ(0);
}

.services-intro-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.intro-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}

.intro-icon-wrapper i {
    font-size: 36px;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.intro-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto 35px;
    position: relative;
    z-index: 1;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.intro-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.intro-feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.intro-feature-item i {
    color: #10B981;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .container-fluid.px-4 {
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .service-card-new {
        min-height: auto;
    }
    
    .service-card-body-new {
        padding: 45px 25px 25px;
    }
    
    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .service-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .services-grid-section {
        padding: 60px 0;
    }
    
    .services-intro-content {
        padding: 40px 25px;
    }
    
    .intro-title {
        font-size: 1.8rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    .intro-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-card-top {
        height: 180px;
    }
    
    .service-card-icon-badge {
        width: 60px;
        height: 60px;
        bottom: -25px;
        left: 25px;
    }
    
    .service-card-icon-badge i {
        font-size: 1.6rem;
    }
    
    .service-card-body-new {
        padding: 40px 20px 20px;
    }
    
    .service-title-new {
        font-size: 1.4rem;
    }
}

/* Performance Optimizations - Scroll Smooth */
.services-grid-section {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.service-card-new {
    contain: layout style paint;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
