/* ==========================================
   Torvex Metals - Services Page Custom Styles
   ========================================== */

body {
    background-color: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0a4280;
    border-radius: 4px;
}

/* Blueprint Grid Overlay */
.blueprint-bg {
    background-image:
        linear-gradient(rgba(10, 66, 128, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 66, 128, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.blueprint-hex {
    background-color: #ffffff;
    background-image: radial-gradient(rgba(10, 66, 128, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Service Card Hover & Elevation */
.service-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(10, 66, 128, 0.12), 0 8px 15px -6px rgba(5, 42, 90, 0.08);
}

.service-card .img-wrap img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .img-wrap img {
    transform: scale(1.08);
}

/* Floating WhatsApp Pulse */
.wa-pulse {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Active Filter Pill Styling */
.filter-btn.active {
    background-color: #0a4280;
    color: #ffffff;
    border-color: #0a4280;
    box-shadow: 0 4px 12px rgba(10, 66, 128, 0.25);
}

/* Modals Z-Index & Elevation Override */
#service-detail-modal,
#demo-service-modal,
#quote-modal {
    z-index: 99999 !important;
}

#service-modal-content {
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
}

#modal-service-body {
    overflow-y: auto !important;
    max-height: calc(88vh - 130px) !important;
    -webkit-overflow-scrolling: touch;
}

/* Second Demo Modal (V2 Modern Split Layout) */
#demo-modal-content {
    max-height: 90vh !important;
}

#demo-modal-body {
    overflow-y: auto !important;
    max-height: calc(90vh - 130px) !important;
    -webkit-overflow-scrolling: touch;
}

.demo-tab-btn.active {
    background-color: #0a4280;
    color: #ffffff;
    border-color: #0a4280;
    box-shadow: 0 4px 10px rgba(10, 66, 128, 0.2);
}

/* Modal Transitions */
.modal-backdrop-show {
    opacity: 1 !important;
}

.modal-content-show {
    opacity: 1 !important;
    transform: scale(1) !important;
}
