/* ===== SERVICES PAGE SPECIFIC ===== */

.services-hero {
    background: #060d18;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid rgba(0,212,255,0.06);
    position: relative;
    overflow: hidden;
}
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(0,212,255,0.04) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(123,47,252,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.services-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #7b2ffc 0%, #00d4ff 50%, #7b2ffc 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographicTitle 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(123,47,252,0.15));
}
.services-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
@keyframes holographicTitle {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.services-preview {
    background: #060d18;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}
#services-neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.services-preview .container {
    position: relative;
    z-index: 1;
}

/* Service Cards – Silver Glass */
.service-card {
    position: relative;
    padding: 30px 24px 24px;
    background: rgba(255,255,255,0.65) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    border-bottom: 2px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04), inset 0 2px 0 rgba(255,255,255,0.9), inset 0 -2px 0 rgba(255,255,255,0.3) !important;
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1) !important;
    transform-style: preserve-3d;
    perspective: 800px;
    cursor: pointer;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.service-card:hover::after { opacity: 1; }
.service-card::before {
    content: '' !important;
    position: absolute !important;
    inset: -1px !important;
    border-radius: 21px !important;
    padding: 1px !important;
    background: linear-gradient(135deg, rgba(200,215,230,0.2), rgba(255,255,255,0.9), rgba(200,215,230,0.2)) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    opacity: 0.5 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: none !important;
}
.service-card:hover::before { opacity: 1 !important; }
.service-card h3 {
    color: #0a1a2a !important;
    -webkit-text-fill-color: #0a1a2a !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 2;
}
.service-card p {
    color: rgba(20,40,60,0.8) !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    position: relative;
    z-index: 2;
}
.service-hologram {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.service-canvas {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
}
.service-glow-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4) !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ringPulse 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(200,215,230,0.05) !important;
}
.service-glow-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(255,255,255,0.4) !important;
    animation: ringSpin 4s linear infinite;
}
@keyframes ringPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%,-50%) scale(1.12); opacity: 0.8; }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Expandable details */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), padding 0.5s ease, opacity 0.5s ease;
    padding: 0;
    opacity: 0;
    border-top: 1px solid transparent;
    margin-top: 0;
    position: relative;
    z-index: 2;
}
.service-card.active .service-details {
    max-height: 400px;
    padding: 16px 0 4px 0;
    opacity: 1;
    border-top-color: rgba(0,212,255,0.15);
    margin-top: 12px;
}
.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.service-details ul li {
    padding: 4px 0 4px 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2300d4ff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') left center no-repeat;
    background-size: 16px;
    color: rgba(20,40,60,0.85);
    font-size: 0.88rem;
}
.toggle-indicator {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(20,40,60,0.6) !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.service-card.active .toggle-indicator { color: #0a2647 !important; }
.toggle-indicator .arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.service-card.active .toggle-indicator .arrow { transform: rotate(180deg); }

.service-card.active {
    background: rgba(255,255,255,0.8) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 0 40px rgba(200,215,230,0.15), inset 0 2px 0 rgba(255,255,255,0.9) !important;
    border-color: rgba(255,255,255,0.9) !important;
    transform: perspective(800px) translateZ(30px) scale(1.03) !important;
}
.service-card.active h3 {
    background: linear-gradient(135deg, #0a2647, #00d4ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.service-card.hidden {
    opacity: 0.08 !important;
    transform: perspective(800px) translateZ(-30px) scale(0.92) !important;
    filter: blur(2px) !important;
    pointer-events: none !important;
    transition: all 0.6s cubic-bezier(0.23,1,0.32,1) !important;
}

/* Scanline */
.service-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.service-card:hover .service-scanline { opacity: 1; }
.service-scanline::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: repeating-linear-gradient(0deg,
        transparent,
        transparent 2px,
        rgba(200,215,230,0.04) 2px,
        rgba(200,215,230,0.04) 4px) !important;
    animation: scanlineMove 4s linear infinite;
}
@keyframes scanlineMove { 0% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* CTA banner (same as index) */
.cta-holographic {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(220,230,245,0.4) 0%, rgba(255,255,255,0.6) 30%, rgba(210,220,235,0.5) 60%, rgba(240,245,250,0.4) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}
.cta-holographic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(200,215,240,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.cta-holographic-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}
.cta-holographic-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #1a2a3a;
    background: linear-gradient(135deg, #1a2a3a, #4a6a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-holographic-content p {
    color: #3a4a5a;
    margin-bottom: 20px;
}
.btn-holographic {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 60px;
    font-weight: 600;
    color: #1a2a3a;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}
.btn-holographic:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.btn-holographic i { transition: transform 0.3s ease; }
.btn-holographic:hover i { transform: translateX(6px); }

@media (max-width: 768px) {
    .service-details ul { grid-template-columns: 1fr; }
    .service-card.active { transform: perspective(800px) translateZ(20px) scale(1.01) !important; }
    .service-card { padding: 22px 18px 18px !important; }
    .service-hologram { height: 80px; }
    .service-glow-ring { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
    .services-hero h1 { font-size: 1.5rem; }
    .service-card h3 { font-size: 1rem !important; }
    .service-card p { font-size: 0.85rem !important; }
    .service-details ul li { font-size: 0.8rem; }
}