/* --- LAYOUT DAN BASE STYLES --- */
html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4a2c2a;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- BOTTOM NAVBAR MOBILE BUBBLE EFFECT --- */
.navbar-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 450px;
    background: #111111;
    height: 70px;
    border-radius: 35px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 0 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888888;
    text-decoration: none;
    width: 60px;
    height: 60px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-box {
    width: 16px;
    height: 16px;
    border: 2px solid #888888;
    border-radius: 3px;
    margin-bottom: 4px;
    transition: all 0.4s ease;
}

.nav-text {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.nav-item.active {
    color: #ffffff;
}

.nav-item.active .nav-icon-box {
    border-color: #ffffff;
    background: #ffffff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -25px;
    width: 65px;
    height: 65px;
    background: #4a2c2a;
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 8px 20px rgba(74, 44, 42, 0.4);
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.nav-item.active .nav-icon-box {
    transform: translateY(-22px);
}

.nav-item.active .nav-text {
    transform: translateY(-5px);
    opacity: 1;
    font-weight: 600;
}

@keyframes bubblePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: #610c11;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 80px;
    text-align: center;
    gap: 40px;
    max-width: 100%;
}

.hero-profile-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    will-change: transform;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.hero-profile-wrapper:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.hero-profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.1s linear;
    transform-origin: center center;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #dfb1a3;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #f0e2e0;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: #610c11;
}

.btn-primary:hover {
    background-color: #f0e2e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* --- SECTION TENTANG SAYA --- */
.about-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
}

/* --- CARDS & GRID KEBUTUHAN UMUM --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

.card-modern {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #dfb1a3;
}

.card-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a2c2a;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f1f1;
    color: #4a2c2a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card-modern h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.card-modern p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
}

/* --- SECTION PAKET HARGA (SAMARATA & ANTI-TABRAKAN) --- */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 35px; /* Memberikan jarak vertikal yang aman di mobile Android */
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    width: 100%;
}

/* Penyesuaian khusus agar Paket ke-2 tidak bertabrakan dengan paket ke-3 */
.pricing-card.featured {
    border: 2px solid #4a2c2a;
    box-shadow: 0 15px 35px rgba(74, 44, 42, 0.1);
    margin-top: 15px; /* Ruang tambahan di mobile agar badge lencana tidak tertutup */
}

.pricing-card.featured .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a2c2a;
    color: #fff;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.price-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666666;
    margin-bottom: 10px;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.price-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.95rem;
    color: #555555;
    text-align: left;
}

.btn-pricing {
    background-color: #111111;
    color: #ffffff;
    text-align: center;
}

.pricing-card.featured .btn-pricing {
    background-color: #4a2c2a;
}

.btn-pricing:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- CALL TO ACTION --- */
.cta-section {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 60px 24px;
    border-radius: 24px;
    margin: 40px auto;
    max-width: calc(100% - 48px);
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: #aaaaaa;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-cta {
    background-color: #4a2c2a;
    color: #ffffff;
}

.btn-cta:hover {
    background-color: #633b38;
    box-shadow: 0 8px 25px rgba(74,44,42,0.5);
}

/* --- HALAMAN KECIL CHAT 24/JAM (POP-UP) --- */
.mini-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mini-page-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-page-container {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    width: calc(100% - 48px);
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.close-mini-page {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #aaaaaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-mini-page:hover {
    color: #1a1a1a;
}

.mini-page-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.mini-page-desc {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 30px;
}

.mini-page-btn {
    width: 100%;
}

/* --- FOOTER --- */
footer {
    background-color: #111111;
    color: #ffffff;
    padding: 40px 24px 120px;
    text-align: center;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.8rem;
    color: #666666;
}

/* --- ANIMASI SCROLL REVEAL UTILITY MURNI --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal:not(.reveal-left):not(.reveal-right) {
    transform: translateY(40px);
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE MEDIA QUERIES (TAB & DESKTOP FRIENDLY) --- */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section h1 {
        font-size: 3.2rem;
    }
    .cta-section h2 {
        font-size: 2.3rem;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        bottom: auto;
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        height: 80px;
        padding: 0 10%;
        justify-content: flex-end;
        gap: 40px;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }

    .nav-item {
        width: auto;
        height: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .nav-icon-box {
        margin-bottom: 0;
        width: 12px;
        height: 12px;
    }

    .nav-text {
        font-size: 14px;
    }

    .nav-item.active::before {
        display: none;
    }
    .nav-item.active .nav-icon-box {
        transform: none;
        background: transparent;
        border-color: #dfb1a3;
    }
    .nav-item.active .nav-text {
        transform: none;
        color: #dfb1a3;
        font-weight: 500;
    }
    
    .nav-item::after {
        content: '';
        position: absolute;
        bottom: 24px;
        left: 0;
        width: 0;
        height: 2px;
        background: #dfb1a3;
        transition: width 0.3s ease;
    }
    .nav-item.active::after {
        width: 100%;
    }

    .hero-section {
        flex-direction: row;
        text-align: left;
        padding: 160px 10% 120px;
        gap: 80px;
        justify-content: center;
    }

    .hero-profile-wrapper {
        width: 380px;
        height: 380px;
        flex-shrink: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    #layanan .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
    
    .pricing-card.featured {
        margin-top: 0; /* Dinormalkan kembali pada tampilan desktop */
    }

    footer {
        padding: 60px 24px;
    }
}