/* HOME SERVICES SECTION - White Premium Design */

.home-services-section {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(77, 186, 205, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 140, 66, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #091829 0%, #0C2D51 30%, #0f3456 60%, #0C2D51 100%);
    position: relative;
    overflow: hidden;
}

.home-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(77, 186, 205, 0.02) 2px,
            rgba(77, 186, 205, 0.02) 3px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(77, 186, 205, 0.02) 2px,
            rgba(77, 186, 205, 0.02) 3px
        );
    background-size: 60px 60px;
    opacity: 1;
    pointer-events: none;
}

.home-services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(77, 186, 205, 0.03) 0%, transparent 20%, transparent 80%, rgba(255, 140, 66, 0.03) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
}

.home-services-section .services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}


/* Header */
.home-services-section .services-header {
    text-align: center;
    margin-bottom: 70px;
}

.home-services-section .services-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-services-section .services-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Services Grid */
.home-services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 28px;
    justify-content: center;
}

/* Service Card */
.home-services-section .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 45, 81, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(12, 45, 81, 0.08);
    min-height: 290px;
    cursor: pointer;
}

.home-services-section .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(12, 45, 81, 0.2);
    border-color: #4DBACD;
}

.home-services-section .service-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Image Wrapper */
.home-services-section .service-image-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #0C2D51 0%, #1a4d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-services-section .service-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(77, 186, 205, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home-services-section .service-card:hover .service-image-wrapper::before {
    opacity: 1;
}

.home-services-section .service-image-wrapper img {
    position: relative;
    z-index: 2;
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
    transform: scale(0.9);
}

.home-services-section .service-card:hover .service-image-wrapper img {
    transform: translateY(-8px) rotate(5deg) scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 16px 32px rgba(77, 186, 205, 0.8)) drop-shadow(0 0 20px rgba(77, 186, 205, 0.5));
    opacity: 1;
}

.home-services-section .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 45, 81, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home-services-section .service-card:hover .service-overlay {
    opacity: 1;
}

/* Service Content */
.home-services-section .service-content {
    padding: 20px 20px 18px;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-services-section .service-name {
    font-size: 17px;
    font-weight: 700;
    color: #0C2D51;
    margin: 0 0 8px 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
}

.home-services-section .service-desc {
    font-size: 9.5px;
    line-height: 1.5;
    color: #5a5a5a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Service Link Wrapper */
.home-services-section .service-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.home-services-section .service-link-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #e0e0e0 0%, transparent 100%);
    transition: width 0.4s ease, background 0.4s ease;
}

.home-services-section .service-card:hover .service-link-wrapper::before {
    width: 80px;
    background: linear-gradient(90deg, #4DBACD 0%, transparent 100%);
}


.home-services-section .service-link-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0C2D51;
    transition: color 0.3s ease;
}

.home-services-section .service-card:hover .service-link-text {
    color: #4DBACD;
}

.home-services-section .service-arrow {
    color: #4DBACD;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.home-services-section .service-card:hover .service-arrow {
    transform: translateX(8px);
}

/* Shine Effect */
.home-services-section .service-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.home-services-section .service-card:hover .service-shine {
    left: 100%;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .home-services-section .services-container {
        padding: 0 30px;
    }
    
    .home-services-section .services-title {
        font-size: 42px;
    }
    
    .home-services-section .services-grid {
        gap: 28px;
    }
}

@media screen and (max-width: 992px) {
    .home-services-section {
        padding: 80px 0;
    }
    
    .home-services-section .services-header {
        margin-bottom: 60px;
    }
    
    .home-services-section .services-title {
        font-size: 38px;
    }
    
    .home-services-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .home-services-section .service-image-wrapper {
        height: 110px;
    }
    
    .home-services-section .service-image-wrapper img {
        width: 48px;
        height: 48px;
    }
}

@media screen and (max-width: 768px) {
    .home-services-section {
        padding: 60px 0;
    }
    
    .home-services-section .services-container {
        padding: 0 24px;
    }
    
    .home-services-section .services-header {
        margin-bottom: 50px;
    }
    
    .home-services-section .services-title {
        font-size: 32px;
    }
    
    .home-services-section .services-grid {
        grid-template-columns: 1fr;
    }
    
    .home-services-section .service-content {
        padding: 20px 20px 18px;
    }
    
    .home-services-section .service-name {
        font-size: 17px;
    }
    
    .home-services-section .service-desc {
        font-size: 9.5px;
    }
    
    .home-services-section .service-card {
        min-height: 280px;
    }
}

@media screen and (max-width: 575px) {
    .home-services-section {
        padding: 50px 0;
    }
    
    .home-services-section .services-container {
        padding: 0 20px;
    }
    
    .home-services-section .services-header {
        margin-bottom: 40px;
    }
    
    .home-services-section .services-tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .home-services-section .services-title {
        font-size: 28px;
    }
    
    .home-services-section .service-image-wrapper {
        height: 120px;
    }
    
    .home-services-section .service-image-wrapper img {
        width: 50px;
        height: 50px;
    }
    
    .home-services-section .service-content {
        padding: 24px 24px 22px;
    }
    
    .home-services-section .service-name {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .home-services-section .service-link-text {
        font-size: 12px;
    }
    
    .home-services-section .service-card {
        min-height: auto;
    }
    
    .home-services-section .service-desc {
        font-size: 10px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}
