/* =========================================
   CSS KHUSUS HALAMAN LAYANAN (Katalog Pilar)
========================================= */

/* HERO SECTION DYNAMIC (BARU) */
.layanan-hero-dynamic {
    position: relative;
    padding: 180px 0 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7e9 100%); /* Latar belakang cerah dengan aksen hijau super muda */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

/* Background Glowing Orbs (Bola Cahaya Melayang) */
.animated-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatOrb 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: #7dc02f;
    top: -100px;
    left: -100px;
    animation-duration: 12s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: #a3e654;
    bottom: -150px;
    right: -100px;
    animation-duration: 15s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #e8faaf;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 10s;
    animation-delay: -2s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.15); }
}

/* Teks Marquee Background */
.marquee-service-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(-3deg);
    z-index: 2;
    opacity: 0.04;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marquee-service {
    white-space: nowrap;
    font-size: 6rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.1;
}

.m-right { animation: scrollRight 40s linear infinite; }
.m-left { animation: scrollLeft 40s linear infinite; }

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
@keyframes scrollLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Area Konten Teks Hero */
.hero-content-dynamic {
    position: relative;
    z-index: 10;
    max-width: 850px;
}

/* Badge Animasi Berdenyut */
.badge-animate {
    display: inline-block;
    background: rgba(125, 192, 47, 0.15);
    color: #68a027;
    margin-top:50px;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 25px;
    border: 1px solid rgba(125, 192, 47, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(125, 192, 47, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(125, 192, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 192, 47, 0); }
}

.animate-title-dynamic {
    font-size: 3.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-subtitle-dynamic {
    font-size: 1.25rem;
    color: #444444;
    line-height: 1.6;
    margin: 0 auto 50px;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

/* Indikator Scroll Mouse */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.hero-scroll-indicator p {
    font-size: 0.85rem;
    color: #777777;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #7dc02f;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #7dc02f;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}






/* =========================================
   AREA CATALOG LAYANAN (GRID)
========================================= */
.layanan-catalog {
    padding: 80px 0 100px 0;
    /* Background hijau dan circuit sudah diambil dari global CSS .quick-links-section */
}

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
}

/* Style Glassmorphism Card Khusus Katalog */
.layanan-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid transparent;
    opacity: 0; /* Standby untuk animasi JS */
}

.layanan-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-bottom: 6px solid #ffffff;
}

.layanan-card::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.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 1;
}

.layanan-card:hover::before {
    left: 200%;
}

.layanan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(125, 192, 47, 0.15); /* Transparansi dari hijau Hexa */ 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.layanan-card:hover .layanan-icon {
    transform: rotateY(360deg);
}

.layanan-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.layanan-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.layanan-card p {
    font-size: 0.95rem;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.btn-explore {
    display: inline-block;
    background: #ffffff;
    color: #7dc02f;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.layanan-card:hover .btn-explore {
    background: #1a1a1a;
    color: #ffffff;
}

/* Class trigger dari JavaScript untuk Card */
.fade-in-up {
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Responsif Mobile & Tablet */
@media (max-width: 992px) {
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .layanan-hero-dynamic {
        padding: 140px 20px 60px;
        min-height: 60vh;
    }
    
    .animate-title-dynamic {
        font-size: 2.5rem;
    }
    
    .marquee-service {
        font-size: 4rem;
    }

    .layanan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .layanan-card {
        padding: 30px 20px;
    }
}