/* ========================================
   SERVICE DETAIL PAGE - CYBERPUNK THEME
   ======================================== */

.service-detail-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* --- Navigation (Back Button) --- */
.nav-bar-detail {
    padding: 40px 0 20px;
    display: flex;
    align-items: center;
}

.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-cyber);
    gap: 15px;
}

/* --- Hero Section --- */
.hero-section-detail {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--glass-border-cyber);
    padding-bottom: 40px;
}

.service-id {
    color: var(--secondary-cyber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(0, 210, 255, 0.05);
}

.service-title-detail {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
}

/* --- Detail Content Section (Rich Text from Admin) --- */
.detail-content-section {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--glass-bg-cyber);
    border: 1px solid var(--glass-border-cyber);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.detail-content-section::before {
    content: "/// DETAY";
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary-cyber);
    opacity: 0.5;
}

.rich-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.rich-content h1 {
    font-size: 2rem;
}

.rich-content h2 {
    font-size: 1.6rem;
    color: var(--primary-cyber);
}

.rich-content h3 {
    font-size: 1.3rem;
}

.rich-content h4 {
    font-size: 1.1rem;
}

.rich-content p {
    margin-bottom: 1em;
}

.rich-content ul,
.rich-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.rich-content li {
    margin-bottom: 0.5em;
    position: relative;
}

.rich-content ul li::marker {
    color: var(--primary-cyber);
}

.rich-content ol li::marker {
    color: var(--secondary-cyber);
}

.rich-content strong,
.rich-content b {
    color: #fff;
    font-weight: 600;
}

.rich-content a {
    color: var(--secondary-cyber);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-cyber);
    transition: all 0.3s ease;
}

.rich-content a:hover {
    color: var(--primary-cyber);
    border-bottom-color: var(--primary-cyber);
}

.rich-content blockquote {
    border-left: 3px solid var(--primary-cyber);
    padding-left: 20px;
    margin: 1.5em 0;
    color: #aaa;
    font-style: italic;
}

.rich-content code {
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--primary-cyber);
}

.rich-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.rich-content th,
.rich-content td {
    padding: 12px;
    border: 1px solid var(--glass-border-cyber);
    text-align: left;
}

.rich-content th {
    background: rgba(0, 255, 65, 0.1);
    color: #fff;
}

/* --- Features Grid (with Spotlight Effect) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: var(--glass-bg-cyber);
    border: 1px solid var(--glass-border-cyber);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;

    /* Mouse tracking variables */
    --mouse-x: 0px;
    --mouse-y: 0px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Spotlight Effect */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.features-grid:hover .feature-card::before {
    opacity: 1;
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-cyber);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Summary Box (Terminal Style) --- */
.summary-box {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 30px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.summary-box::before {
    content: "/// SYSTEM SUMMARY";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--primary-cyber);
    opacity: 0.5;
}

.summary-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-btn-detail {
    display: inline-block;
    background: var(--primary-cyber);
    color: #000;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cta-btn-detail:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: scale(1.02);
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .service-detail-container {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .service-title-detail {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .main-description {
        font-size: 1rem;
    }

    .hero-section-detail {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .summary-box {
        padding: 20px;
    }

    .cta-btn-detail {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-detail-container {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .service-title-detail {
        font-size: 1.6rem;
    }

    .main-description {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .summary-text {
        font-size: 0.9rem;
    }

    .cta-btn-detail {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}