/* Background image layer */
.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/Construction/LuxuryHouse.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* Dark overlay for better readability - Lighter to let image show through */
.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Section positioning */
.services-section {
    position: relative;
    overflow: hidden;
}

/* Description container - 60px padding bottom */
.description-container {
    padding-bottom: 60px !important;
}

/* Services badge */
.services-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(43, 108, 176, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.services-badge i {
    font-size: 1rem;
    color: rgb(43, 108, 176);
}

/* Services description */
.services-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: rgb(43, 108, 176);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stat pills */
.stat-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-pill i {
    color: rgb(43, 108, 176);
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* TRANSPARENT CARD STYLING - UNIFORM HOVER (NO BLUE) */
.service-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    color: white;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4) !important;
}

.service-card h4 {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover h4 {
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 1) !important;
}

.service-text {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-text {
    color: rgba(255, 255, 255, 1) !important;
}

.service-list li {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-list li {
    color: rgba(255, 255, 255, 1) !important;
}

.service-list li i {
    color: rgb(43, 108, 176);
    font-size: 0.9rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.service-card:hover .service-list li i {
    color: rgb(63, 128, 196);
    transform: scale(1.1);
}

/* Icon Circle - Uniform hover effect */
.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-circle i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-card:hover .icon-circle i {
    color: rgb(43, 108, 176);
}

/* CTA Card - Uniform hover (no blue) */
.cta-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.cta-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.cta-card h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-card:hover h3 {
    letter-spacing: 1px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.cta-card:hover p {
    color: rgba(255, 255, 255, 1) !important;
}

.cta-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: white !important;
    color: rgb(43, 108, 176) !important;
    transform: scale(1.05);
    border-color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .description-container {
        padding-bottom: 50px !important;
    }
    .services-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-background {
        background-attachment: scroll;
    }
    
    .description-container {
        padding-bottom: 40px !important;
    }
    
    .services-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .stat-pill {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .cta-card h3 {
        font-size: 1.5rem;
    }
    
    .cta-btn {
        padding: 10px 30px !important;
    }
}

@media (max-width: 576px) {
    .description-container {
        padding-bottom: 30px !important;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .cta-card {
        padding: 2rem !important;
    }
    
    .cta-card h3 {
        font-size: 1.3rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-badge, .services-description, .stat-pill, .service-card, .cta-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.services-badge { animation-delay: 0.1s; }
.services-description { animation-delay: 0.2s; }
.stat-pill { animation-delay: 0.3s; }
.service-card { animation-delay: 0.4s; }
.cta-card { animation-delay: 0.6s; }