/* =========================================================================
   Ultra-Premium Service Pages Redesign (Highly Dynamic & Modern)
   ========================================================================= */

/* --- Dynamic Background & Environment --- */
.page-service-single {
    background-color: #f4f6fa;
    position: relative;
    z-index: 1;
    padding: 100px 0;
    overflow: hidden;
}

/* Floating animated orbs in background for dynamic feel */
.page-service-single::before,
.page-service-single::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatOrbs 15s infinite alternate ease-in-out;
}

.page-service-single::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,60,143,0.08) 0%, rgba(26,60,143,0) 70%);
    top: -100px;
    left: -200px;
}

.page-service-single::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74,117,230,0.06) 0%, rgba(74,117,230,0) 70%);
    bottom: -50px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes floatOrbs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.1); }
    100% { transform: translate(-20px, -30px) scale(0.95); }
}

/* --- Main Glassmorphic Service Container --- */
.page-service-single .service-single-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255,255,255,0.6);
    padding: 50px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: visible;
}

.page-service-single .service-single-content:hover {
    box-shadow: 0 25px 60px rgba(26, 60, 143, 0.08), inset 0 0 0 1px rgba(255,255,255,0.9);
    transform: translateY(-4px);
}

/* --- Dynamic Hero Image Effect --- */
.page-service-single .page-single-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateZ(0); /* Hardware accel */
}

/* Shine sweep animation on image hover */
.page-service-single .page-single-image::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    transition: none;
}

.page-service-single .page-single-image:hover::before {
    animation: shineSweep 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes shineSweep {
    100% { left: 200%; }
}

.page-service-single .page-single-image img {
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.page-service-single .page-single-image:hover img {
    transform: scale(1.08);
}

/* --- Ultra-Premium Typography --- */
.page-service-single .service-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
    /* Gradient Text */
    background: linear-gradient(120deg, #0f204e, #1a3c8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    max-width: 100%;
}

/* Animated gradient underline */
.page-service-single .service-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3c8f, #4a75e6, #00f2fe);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

.page-service-single .service-section:hover h2::after {
    width: 80px;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-service-single .service-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-service-single .service-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a3c8f;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #1a3c8f;
}

.page-service-single .service-section p {
    font-size: 17px;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 25px;
}

/* --- Dynamic Interactive Lists --- */
.page-service-single .service-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-service-single .service-section ul li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    transition: transform 0.3s ease, color 0.3s ease;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 6px;
}

.page-service-single .service-section ul li:hover {
    transform: translateX(8px);
    color: #1a3c8f;
    background: rgba(26,60,143,0.03);
}

.page-service-single .service-section ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 6px;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(135deg, #1a3c8f, #4a75e6);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(26,60,143,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-service-single .service-section ul li:hover::before {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 15px rgba(26,60,143,0.4);
}

/* --- Sleek Dividers --- */
.page-service-single .section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    margin: 50px 0;
    position: relative;
}

.page-service-single .section-divider::after {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 15px;
    color: #cbd5e1;
    font-size: 14px;
}

/* --- Sticky Sidebar with Neon Glow Hover --- */
.page-single-sidebar {
    position: sticky;
    top: 120px;
}

.page-single-sidebar .sidebar-cta-box {
    background: linear-gradient(135deg, #0f204e 0%, #1a3c8f 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(26, 60, 143, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Geometric background patterns in CTA */
.page-single-sidebar .sidebar-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transition: transform 0.8s ease;
}

.page-single-sidebar .sidebar-cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(74, 117, 230, 0.4) 0%, rgba(74, 117, 230, 0) 70%);
    border-radius: 50%;
    transition: transform 0.8s ease;
}

.page-single-sidebar .sidebar-cta-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(26, 60, 143, 0.4), 0 0 30px rgba(74, 117, 230, 0.2);
}

.page-single-sidebar .sidebar-cta-box:hover::before {
    transform: scale(1.3) translate(-20px, 20px);
}

.page-single-sidebar .sidebar-cta-box:hover::after {
    transform: scale(1.5) translate(20px, -20px);
}

.page-single-sidebar .sidebar-cta-logo img {
    max-width: 140px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    position: relative;
    z-index: 2;
}

.page-single-sidebar .sidebar-cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* Pulsing animated CTA button */
.page-single-sidebar .sidebar-cta-content .btn-highlighted {
    background: #ffffff;
    color: #1a3c8f;
    border-radius: 50px;
    padding: 16px 40px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.page-single-sidebar .sidebar-cta-content .btn-highlighted::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 300px;
    background: rgba(26, 60, 143, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
}

.page-single-sidebar .sidebar-cta-content .btn-highlighted:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    color: #112558;
}

.page-single-sidebar .sidebar-cta-content .btn-highlighted:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* --- Bottom Service CTA Box (Glassmorphic) --- */
.page-service-single .service-cta-box {
    background: linear-gradient(120deg, rgba(248, 250, 255, 0.9) 0%, rgba(238, 243, 255, 0.9) 100%) !important;
    backdrop-filter: blur(10px);
    border-left: none !important;
    border-radius: 16px !important;
    padding: 40px 50px !important;
    box-shadow: 0 10px 35px rgba(26, 60, 143, 0.08), inset 0 0 0 1px rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-service-single .service-cta-box::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 6px; height: 100%;
    background: linear-gradient(to bottom, #1a3c8f, #4a75e6);
}

.page-service-single .service-cta-box:hover {
    box-shadow: 0 20px 45px rgba(26, 60, 143, 0.15), inset 0 0 0 1px rgba(255,255,255,1);
    transform: translateY(-5px);
}

.page-service-single .service-cta-box h4 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0 !important;
    flex: 1;
    line-height: 1.4;
}

.page-service-single .service-cta-box .btn-highlighted {
    margin-top: 0 !important;
    background: linear-gradient(135deg, #1a3c8f, #112558);
    color: #fff;
    border-radius: 10px;
    padding: 16px 35px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(26, 60, 143, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-service-single .service-cta-box .btn-highlighted::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #4a75e6, #1a3c8f);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.page-service-single .service-cta-box .btn-highlighted:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(26, 60, 143, 0.45);
    color: #fff;
}

.page-service-single .service-cta-box .btn-highlighted:hover::after {
    opacity: 1;
}

/* --- Sidebar Navigation Menu Enhancement --- */
.page-single-sidebar .services-list {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.page-single-sidebar .services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-single-sidebar .services-list li {
    margin-bottom: 12px;
}

.page-single-sidebar .services-list li:last-child {
    margin-bottom: 0;
}

.page-single-sidebar .services-list a {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    background: #f8faff;
    color: #444;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.page-single-sidebar .services-list a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 0; height: 100%;
    background: linear-gradient(to right, rgba(26,60,143,0.05), transparent);
    transition: width 0.3s ease;
    z-index: 0;
}

.page-single-sidebar .services-list a span {
    position: relative;
    z-index: 1;
}

.page-single-sidebar .services-list a:hover,
.page-single-sidebar .services-list a.active {
    background: #fff;
    color: #1a3c8f;
    border-left: 4px solid #1a3c8f;
    transform: translateX(6px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-single-sidebar .services-list a:hover::before,
.page-single-sidebar .services-list a.active::before {
    width: 100%;
}

/* --- Section Animations --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-service-single .service-section {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.page-service-single .service-section:nth-child(1) { animation-delay: 0.1s; }
.page-service-single .service-section:nth-child(3) { animation-delay: 0.2s; }
.page-service-single .service-section:nth-child(5) { animation-delay: 0.3s; }
.page-service-single .service-section:nth-child(7) { animation-delay: 0.4s; }
.page-service-single .service-section:nth-child(9) { animation-delay: 0.5s; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .page-single-sidebar {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .page-service-single .service-single-content {
        padding: 30px 20px;
    }
    .page-service-single .service-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px !important;
    }
    .page-service-single .service-section h2 {
        font-size: 26px;
    }
    .page-service-single .service-section h3 {
        font-size: 21px;
    }
    .page-service-single::before, .page-service-single::after {
        display: none; /* remove background orbs on mobile for performance */
    }
}
