:root {
    --soft-blue: #e8f2ff;
    --deep-blue: #0d6efd;
    --cta-blue: #0056b3;
    --text-dark-blue: #003366;
}

body {
    scroll-behavior: smooth;
    background: #f5f8ff;
    font-family: 'Inter', sans-serif;
}

/* ============================
   NAVBAR
============================ */
.navbar-modern {
    background: var(--soft-blue);
    padding: 12px 0;
    transition: 0.3s;
    box-shadow: none;
}

.navbar-modern.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark-blue) !important;
    padding: 0.5rem 0.75rem;
    margin-left: 20px;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--deep-blue) !important;
}

.navbar-toggler {
    border: none;
}

/* ============================
   HERO SECTION
============================ */
#home {
    background: var(--soft-blue);
    padding: 110px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark-blue);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    color: #1e2a38;
    opacity: 1;
    margin-bottom: 25px;
}

.btn-cta {
    background: var(--deep-blue);
    color: white;
    border-radius: 40px;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border: 0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-cta:hover {
    background: var(--cta-blue);
    transform: translateY(-2px);
}

.btn-learn {
    background: white;
    color: var(--deep-blue);
    border-radius: 40px;
    padding: 10px 30px;
    font-weight: 600;
    border: 2px solid var(--deep-blue);
    text-decoration: none;
    transition: 0.25s;
    display: inline-block;
}

.btn-learn:hover {
    background: #e8f1ff;
}

.hero-image {
    width: 90%;
    max-width: 400px;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 !important;
}

/* ============================
   RESPONSIVE MOBILE
============================ */
@media (max-width: 768px) {

    #home {
        text-align: center;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn-cta,
    .btn-learn {
        width: 100%;
        margin-bottom: 12px;
        text-align: center;
    }

    .hero-image {
        max-width: 60%;
        margin-top: 25px;
    }

    .nav-link {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-image {
        max-width: 55%;
    }
}

/* ============================
   JENIS LAYANAN
============================ */
.service-item {
    width: 100%;
    max-width: 200px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.service-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    font-size: 34px;
    box-shadow: 0 10px 20px rgba(78, 115, 223, 0.35);
    transition: 0.35s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.12) rotate(3deg);
    background: linear-gradient(135deg, #3758c8, #1a2d99);
}

.service-item h6 {
    transition: 0.3s ease;
}

.service-item:hover h6 {
    color: #1a2d99;
}

/* ===============================
   WARNA ICON SAPA ASN DENGAN ANIMASI
================================= */

/* Hapus background default pada .service-icon */
.service-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: 0.35s ease;
    background: none !important; /* pastikan background default hilang */
}

/* Warna per icon */
.icon-sapa-1 {
    background: linear-gradient(135deg, #3498db, #2c81d3, #6fb3f2) !important;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.35);
}

.icon-sapa-2 {
    background: linear-gradient(135deg, #2ecc71, #27b65c, #58d68d) !important;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.35);
}

.icon-sapa-3 {
    background: linear-gradient(135deg, #f39c12, #d5850f, #f5b041) !important;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.35);
}

.icon-sapa-4 {
    background: linear-gradient(135deg, #9b59b6, #7a3fa5, #b37ed6) !important;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.35);
}

.icon-sapa-5 {
    background: linear-gradient(135deg, #e74c3c, #c0392b, #f1948a) !important;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.35);
}

/* Hover efek */
.service-item:hover .service-icon {
    transform: scale(1.15) rotate(3deg);
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 0 20px rgba(0,0,0,0.25), 0 0 25px rgba(255,255,255,0.3);
}
/* ============================
   JAM LAYANAN
============================ */
.hours-card {
    background: #ffffff;
    border: 1px solid #efefef;
    transition: 0.35s ease;
    cursor: pointer;
}

.hours-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.hours-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 32px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
    transition: 0.3s ease;
}

.hours-card:hover .hours-icon {
    transform: scale(1.12) rotate(3deg);
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

/* ============================
   APLIKASI TERINTEGRASI
============================ */
.app-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}

.gradient-icon i {
    animation: gradientMove 3s ease infinite;
    display: inline-block;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================
   FOOTER
============================ */
.social-hover {
    transition: transform 0.3s, color 0.3s;
}

.social-hover:hover {
    transform: translateY(-3px);
    color: #facc15;
}

footer h5 {
    font-size: 1.5rem;
}

footer p {
    font-size: 0.9rem;
}

/* ============================
   SCROLL TO TOP BUTTON
============================ */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.3s, background 0.3s;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

#scrollTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
    background: #1e40af;
}

/* ============================
   FLOATING WHATSAPP BUTTON
============================ */
#wa-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 170px;
    text-align: center;
    z-index: 9999;
}

#wa-floating .wa-text {
    font-weight: bold;
    font-size: 0.85rem;
    color: #111827;
    margin-bottom: 8px;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#wa-floating .wa-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}

#wa-floating .wa-icon:hover {
    transform: scale(1.12);
}
