/* Modern Services Section Styles */
.modern-services {
    background-color: transparent;
    /* Use theme default */
}

.modern-service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient using the theme green color #6DBBAA */
    background: linear-gradient(135deg, #6DBBAA 0%, #4fa391 100%);
    opacity: 0;
    z-index: -1;
    transition: all 0.5s ease;
}

.modern-service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(109, 187, 170, 0.2);
    border-color: transparent;
}

.modern-service-card:hover::before {
    opacity: 1;
}

.modern-service-card .icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(109, 187, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    margin-bottom: 24px;
}

.modern-service-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modern-service-card .icon-wrapper img {
    height: 45px;
    width: auto;
    transition: all 0.5s ease;
}

.modern-service-card:hover .icon-wrapper img {
    filter: brightness(0) invert(1);
    transform: rotateY(360deg);
}

/* Typography transitions */
.modern-service-card h5 {
    transition: all 0.4s ease;
}

.modern-service-card p {
    transition: all 0.4s ease;
}

.modern-service-card:hover h5,
.modern-service-card:hover p {
    color: #ffffff !important;
}

/* Heading styling for new grid */
.modern-services .heading h2 {
    position: relative;
    padding-bottom: 20px;
}

.modern-services .heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #6DBBAA;
    /* Theme green */
    border-radius: 2px;
}

/* New Portfolio Card Alternative */
.portfolio-card-alt .image-wrapper {
    position: relative;
    border-radius: 16px;
    border: 1px solid #4e4e4e20;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-card-alt .image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-alt:hover .image-wrapper img {
    transform: scale(1.05);
}

.portfolio-card-alt .view-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B1C1E;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px) rotate(-45deg);
    transition: all 0.4s ease;
}

.portfolio-card-alt:hover .view-btn {
    opacity: 1;
    transform: translateY(0) rotate(0);
    color: #6DBBAA;
    /* Theme Green */
}

.portfolio-card-alt .title {
    color: #1a1a1a;
    transition: color 0.3s ease;
    cursor: pointer;
}

.portfolio-card-alt .title:hover {
    color: #6DBBAA;
}

/* Vertically center client logos in the slider */
.logo-slider .slick-track {
    display: flex !important;
    align-items: center !important;
}

.logo-slider .slick-slide {
    height: auto;
}