/* Service Details Popup (Slide-in Drawer) Styles */
.service-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.service-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.service-popup-content {
    position: fixed;
    top: 0;
    right: -100%; /* Fully hidden to the right */
    width: 600px;
    height: 100%;
    max-width: 95%;
    background: #120e26; /* Theme Navy Base */
    background: radial-gradient(circle at 0% 100%, #1c224a 0%, #161536 50%, #120e26 100%);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
    transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10001;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #764DF0 #120e26;
}

.service-popup-overlay.active .service-popup-content {
    right: 0; /* Slide in */
}

/* Close Button */
.service-popup-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.service-popup-close-btn:hover {
    background: #fff;
    color: #120e26;
    transform: rotate(90deg);
}

/* Header Image */
.popup-header-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.popup-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, #120e26 100%);
}

/* Text Content Area */
.popup-text-content {
    padding: 30px 45px 60px;
}

.popup-title {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}

.popup-desc h1, .popup-desc h2, .popup-desc h3, .popup-desc h4 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-desc h3 { font-size: 22px; }
.popup-desc h4 { font-size: 18px; }

.popup-desc p {
    margin-bottom: 20px;
}

.popup-desc ul, .popup-desc ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.popup-desc li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #764DF0;
    font-size: 14px;
}

/* Buttons and Links */
.nav-prev-service, .nav-next-service {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-prev-service:hover, .nav-next-service:hover {
    color: #764DF0 !important;
}

/* Glassmorphism for Body Scroll */
.service-popup-content::-webkit-scrollbar {
    width: 6px;
}
.service-popup-content::-webkit-scrollbar-thumb {
    background: #764DF0;
    border-radius: 10px;
}
.service-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .service-popup-content {
        width: 100%;
    }
    .popup-text-content {
        padding: 30px 25px 40px;
    }
    .popup-title {
        font-size: 28px;
    }
}
