/* Modern Corporate Services Section - Celestial Sound & Electronics */

#services {
    padding: 100px 0;
    background-color: #f9f9f9;
}

#services .section-header {
    margin-bottom: 60px;
}

/* Card Styling */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin: 15px;
    /* Margin for carousel spacing */
    min-height: 480px;
    /* Force equal height visual */
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 75, 145, 0.15);
    border-color: rgba(0, 75, 145, 0.1);
}

/* Top Accent Line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #004b91 0%, #2d4f9e 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Icon Styling */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #004b91 0%, #2d4f9e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 75, 145, 0.3);
}

.service-card:hover .icon-wrapper {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 75, 145, 0.4);
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
    transition: transform 0.5s;
}

.service-card:hover .icon-wrapper svg {
    transform: rotateY(-180deg);
}

/* Text Styling */
.service-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #272727;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #64686d;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
}

/* Owl Carousel Customization */
.owl-theme .owl-controls .owl-page span {
    background: #d1d5db;
    opacity: 1;
}

.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span {
    background: #004b91;
    /* Brand Blue */
}

/* Equal Height Fix for Carousel Items */
.owl-item {
    display: flex;
}

.owl-item>div {
    width: 100%;
}

/* Custom Navigation Buttons */
#services-carousel .owl-controls .owl-buttons div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #004b91 !important;
    /* Force background */
    color: #fff !important;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

#services-carousel .owl-controls .owl-buttons .owl-prev {
    left: -60px;
}

#services-carousel .owl-controls .owl-buttons .owl-next {
    right: -60px;
}

#services-carousel .owl-controls .owl-buttons div:hover {
    background: #2d4f9e !important;
    box-shadow: 0 5px 15px rgba(0, 75, 145, 0.4);
}

@media (max-width: 768px) {
    #services-carousel .owl-controls .owl-buttons .owl-prev {
        left: -10px;
    }

    #services-carousel .owl-controls .owl-buttons .owl-next {
        right: -10px;
    }
}