.rounded-start {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

/* ==== CUSTOM LINE BLUE ==== */
.custom-line {
    border: 0;
    border-top: 3px solid #377dff;
    width: 36px;
    margin-left: 0;
    transition: width 0.3s ease;
}

#carouselService .card:hover .custom-line {
    width: 64px;
}

@media (min-width: 768px) {
    .custom-line {
        width: 15%;
    }
}
/* ==== END CUSTOM LINE BLUE ==== */

/* Custom Blue Gradient Button - Get In Touch */
.btn-blue-gradient {
    background: linear-gradient(
        135deg,
        #2e86ff 0%,
        #377dff 25%,
        #4a90ff 50%,
        #377dff 75%,
        #2e86ff 100%
    );
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(55, 125, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.btn-blue-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-blue-gradient::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-blue-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(55, 125, 255, 0.6);
    background: linear-gradient(
        135deg,
        #1a75ff 0%,
        #2e86ff 25%,
        #377dff 50%,
        #2e86ff 75%,
        #1a75ff 100%
    );
    color: white !important;
    text-decoration: none !important;
}

.btn-blue-gradient:hover::before {
    left: 100%;
}

.btn-blue-gradient:hover::after {
    width: 100%;
    height: 100%;
}

.btn-blue-gradient:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 20px rgba(55, 125, 255, 0.5);
}

.btn-blue-gradient:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.3);
    color: white !important;
}

/* Glow effect animation */
@keyframes glow {
    0% {
        box-shadow: 0 4px 15px rgba(55, 125, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(55, 125, 255, 0.4),
            0 0 25px rgba(55, 125, 255, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(55, 125, 255, 0.4);
    }
}

.btn-blue-gradient.glow {
    animation: glow 2.5s ease-in-out infinite;
}

/* Sparkle effect for extra premium feel */
.btn-blue-gradient.sparkle::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1),
        transparent
    );
}
/* END Custom Blue Gradient Button - Get In Touch */

/* WhatsApp Modal Background Blur Effect - Midjourney Style */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease;
}

.modal.show .modal-backdrop {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Enhanced modal animation */
.modal.fade .modal-dialog {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(0, -50px) scale(0.95);
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* WhatsApp modal specific styling */
#whatsappNumber .modal-content,
#whatsappSuccess .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

#whatsappNumber .modal-content img,
#whatsappSuccess .modal-content img {
    border-radius: 1rem 1rem 0 0;
}

/* Smooth fade effect for modal content */
.modal.fade .modal-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .modal-content {
    opacity: 1;
}

/* Background content blur when modal is open */
body.modal-open {
    overflow: hidden;
}

/* 
body.modal-open #header,
body.modal-open #content,
body.modal-open footer {
    filter: blur(3px);
    -webkit-filter: blur(3px);
    transition: filter 0.3s ease;
} */

/* Hide WhatsApp button when modal is open */
body.modal-open .btn-whatsapp {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* WhatsApp button popup animation */
.btn-whatsapp {
    animation: whatsapp-popup 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes whatsapp-popup {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* END WhatsApp Modal Background Blur Effect */

/* ==== CUSTOM CAROUSEL EFFECT + CUSTOM LINE*/
/* Hover effects and full-card clickable support for Our Services carousel */
#carouselService .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    /* keep zoomed image inside card */
    border: 1px solid rgba(15, 23, 42, 0.08);
}

#carouselService .card-img-top {
    transition: transform 0.35s ease;
    display: block;
}

#carouselService .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18),
        0 0 0 3px rgba(0, 77, 213, 0.12);
    border-color: #004dd5;
    /* active border effect */
}

#carouselService .card:hover .card-img-top {
    transform: scale(1.03);
}

/* Ensure stretched link covers the card */
#carouselService .card .stretched-link {
    z-index: 1;
}

/* Provide room above cards so hover lift isn't clipped at the top */
#carouselService .slick-list {
    padding-top: 8px;
}
