/* --- PAGE CONTAINER --- */
.services-page {
    padding-top: 140px; 
    padding-bottom: 80px;
    background: #0f001a; 
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* --- GLOBAL ATMOSPHERE (Floating Orbs) --- */
.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    z-index: 1;
    animation: floatOrb 12s ease-in-out infinite alternate;
    pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: #bf00ff; top: -150px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #2c0b4a; bottom: 0; right: -100px; animation-delay: -5s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.05); }
}

/* --- HERO SECTION --- */
.serv-hero {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.serv-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0b0ff 40%, #bf00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(191, 0, 255, 0.5));
}

.serv-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* --- PILLAR SECTIONS (The Containers) --- */
.pillar-section { 
    margin-bottom: 100px; 
    position: relative; 
    z-index: 2; 
    padding: 40px;
    border-radius: 30px;
    /* Isolate stacking context so the glow stays behind cards but above page bg */
    isolation: isolate; 
}

/* === THE FIX: VISIBLE NEON BACKLIGHT === */
.pillar-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Covers most of the width */
    height: 120%; /* Taller than the section to bleed out top/bottom */
    background: radial-gradient(circle at center, var(--glow-color) 0%, transparent 70%);
    opacity: 0.25; /* Visibility Strength (Increase to 0.3 if needed) */
    filter: blur(60px);
    z-index: -1; /* Sits behind the cards */
    pointer-events: none;
}

/* Define the Glow Colors */
.p-dev  { --glow-color: #00f3ff; } /* Cyan */
.p-shop { --glow-color: #ffe600; } /* Yellow */
.p-des  { --glow-color: #ff00ff; } /* Pink */
.p-grow { --glow-color: #bf00ff; } /* Purple */


/* --- HEADERS --- */
.pillar-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.pillar-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 100px; height: 3px; background: #bf00ff;
    box-shadow: 0 0 15px #bf00ff;
}

.pillar-icon-box {
    width: 70px; height: 70px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 25px;
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Icon Box Accents */
.p-dev .pillar-icon-box { border-color: #00f3ff; color: #00f3ff; box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
.p-shop .pillar-icon-box { border-color: #ffe600; color: #ffe600; box-shadow: 0 0 15px rgba(255, 230, 0, 0.3); }
.p-des .pillar-icon-box { border-color: #ff00ff; color: #ff00ff; box-shadow: 0 0 15px rgba(255, 0, 255, 0.3); }
.p-grow .pillar-icon-box { border-color: #bf00ff; color: #bf00ff; box-shadow: 0 0 15px rgba(191, 0, 255, 0.3); }

.pillar-title { color: white; font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -1px; }
.pillar-desc { 
    color: rgba(255, 255, 255, 0.5); margin-left: 20px; font-size: 0.95rem; 
    text-transform: uppercase; letter-spacing: 2px; display: none; 
}
@media(min-width: 992px) { .pillar-desc { display: block; } }

/* --- FROSTED GLASS CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.service-card-link { text-decoration: none; display: block; }

.service-mini-card {
    /* Stronger Frosted Glass */
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(20px); /* Heavy blur to catch the background glow */
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    
    border-radius: 24px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.service-mini-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon { font-size: 2.2rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; transition: 0.3s; }
.p-dev .service-card-link:hover .card-icon { color: #00f3ff; filter: drop-shadow(0 0 10px #00f3ff); transform: scale(1.1); }
.p-shop .service-card-link:hover .card-icon { color: #ffe600; filter: drop-shadow(0 0 10px #ffe600); transform: scale(1.1); }
.p-des .service-card-link:hover .card-icon { color: #ff00ff; filter: drop-shadow(0 0 10px #ff00ff); transform: scale(1.1); }
.p-grow .service-card-link:hover .card-icon { color: #bf00ff; filter: drop-shadow(0 0 10px #bf00ff); transform: scale(1.1); }

.card-title { color: white; font-size: 1.35rem; font-weight: 700; margin-bottom: 15px; line-height: 1.3; }
.card-arrow { margin-top: auto; padding-top: 25px; color: rgba(255,255,255,0.4); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.service-mini-card:hover .card-arrow { color: white; gap: 15px; }

/* Responsive Adjustments */
@media(max-width: 768px) {
    .serv-hero h1 { font-size: 3rem; }
    .pillar-section { padding: 20px 10px; border-radius: 0; }
    .pillar-section::before { width: 100%; border-radius: 0; opacity: 0.2; } /* Full width glow on mobile */
}