/* ===================================================
   MadaniSoft - Main Stylesheet
   =================================================== */

body { 
    font-family: 'Poppins', sans-serif; 
    overflow-x: hidden; /* Mencegah scroll horizontal */
    background-color: #fafbfc;
}

/* --- Navbar --- */
.navbar-custom { 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
}
.navbar-custom ul li.nav-item .nav-link { 
    color: #1e212a; 
    font-weight: 600; 
}

/* --- Global Buttons (btn-wa) --- */
.btn-wa {
    background: #25D366; 
    color: #fff !important; 
    font-weight: 600; 
    padding: 12px 24px; 
    font-size: 16px;
    border-radius: 50px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    border: none; 
    outline: none;
}
.btn-wa:hover { 
    background: #1da851; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35); 
    color: #fff !important; 
}
.btn-wa:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}
.btn-wa i { 
    font-size: 18px; 
    margin: 0 !important; 
    line-height: 1; 
}

/* --- Hero Section --- */
.home { 
    padding: 120px 0 80px 0; 
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%); 
}
#homeTitle { 
    font-weight: 900; 
    font-size: 40px; 
    color: #1e212a; 
    line-height: 1.4; 
    margin: 2rem 0 1rem 0; 
}
.subtitle {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* --- Section Titles --- */
.title { 
    font-weight: 800; 
    font-size: 32px; 
    color: #1e212a; 
    margin-bottom: 3rem; 
    text-align: center; 
}

/* --- Features Section --- */
.features { 
    padding: 80px 0; 
}
#features .card { 
    margin-bottom: 25px; 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 16px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); 
    height: 100%;
}
#features .card:hover { 
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.15); 
    transform: translateY(-6px); 
}
.card-body img { 
    height: 60px; 
    margin-bottom: 1rem; 
}
.card-title { 
    font-weight: 700; 
    font-size: 18px; 
}
.card-title span { 
    color: #25D366; 
}

/* --- Explain Section --- */
.explain { 
    padding: 80px 0; 
    background: #f9fbfc; 
}
.list-group-item { 
    border: none; 
    background: transparent; 
    padding: 12px 0 12px 40px; 
    font-weight: 500; 
    position: relative; 
    color: #1e212a;
}
.list-group-item:before { 
    content: "\f058"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    color: #25D366; 
    position: absolute; 
    left: 0; 
    font-size: 20px; 
}

/* --- Pricing Section --- */
.price { 
    padding: 80px 0; 
}
.price-card { 
    border: 1px solid rgba(233, 236, 239, 0.6); 
    border-radius: 20px; 
    padding: 40px 30px; 
    text-align: center; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    height: 100%;
}
.price-card:hover, .price-card.recommended { 
    border-color: #25D366; 
    background: #fff;
    transform: scale(1.03); 
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.15); 
    z-index: 1;
}
.recommended-badge { 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #25D366; 
    color: white; 
    padding: 5px 20px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.price__title { 
    font-size: 24px; 
    font-weight: 700; 
}
.price__subtitle { 
    font-size: 36px; 
    font-weight: 900; 
    color: #25D366; 
    margin: 20px 0; 
}
.price__subtitle span { 
    font-size: 16px; 
    color: #6c757d; 
    font-weight: 500; 
}

/* ===================================================
   FIX: Bagian Kontak / Alamat (vCard)
   =================================================== */
.contact { 
    padding: 80px 0; 
    background: #f9fbfc; 
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

.contact-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    display: flex;
    align-items: center; 
    
    flex-grow: 1; 
    min-width: 280px; 
    max-width: 320px; 
    
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5); 
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
    background: #fff;
    border-color: rgba(37, 211, 102, 0.25);
}

.contact-item:active {
    transform: scale(0.98);
    background: #f4fff7;
}

.contact__subtitle { 
    color: #6c757d; 
    line-height: 1.6; 
    font-size: 14px; 
    margin-left: 10px; 
    
    display: flex; 
    flex-direction: column;
}

.contact__title { 
    font-weight: 700; 
    font-size: 16px; 
    margin-bottom: 4px; 
    color: #1e212a; 
}

/* ===================================================
   Footer & Floating Elements
   =================================================== */

.main-footer { 
    background: #1e212a; 
    color: #a2aed2; 
    padding: 60px 0 20px 0; 
}
.main-footer__title { 
    color: #fff; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
}
.main-footer a { 
    color: #a2aed2; 
    transition: color 0.3s;
}
.main-footer a:hover { 
    color: #25D366; 
    text-decoration: none; 
}
.second-footer { 
    border-top: 1px solid #2d3340; 
    margin-top: 40px; 
    padding-top: 20px; 
    text-align: center; 
    font-size: 14px; 
}

/* Floating WhatsApp Button */
.fabs { 
    position: fixed; 
    z-index: 1000; 
    bottom: 30px; 
    right: 30px; 
}
.fab { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); 
    cursor: pointer; 
    background: #25D366; 
    transition: all 0.3s;
    border: none;
    outline: none;
}
.fab:hover { 
    transform: scale(1.1) rotate(10deg); 
}
.fab > i { 
    font-size: 28px; 
    line-height: 1; 
    margin: 0; 
}

/* Back to Top Button */
#button {
    display: inline-block; 
    background-color: #25D366; 
    width: 46px; 
    height: 46px;
    text-align: center; 
    border-radius: 50%; 
    position: fixed; 
    bottom: 100px; 
    right: 35px;
    transition: all 0.4s ease; 
    opacity: 0; 
    visibility: hidden; 
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    outline: none;
    cursor: pointer;
}
#button::after { 
    content: "\f077"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    font-size: 16px; 
    line-height: 46px; 
    color: #fff; 
}
#button.show { 
    opacity: 1; 
    visibility: visible; 
}
#button:hover {
    background-color: #1da851;
    transform: translateY(-3px);
}

/* WhatsApp Chat Widget */
.chat { 
    position: fixed; 
    right: 110px; 
    bottom: 40px; 
    width: 300px; 
    font-size: 12px; 
    box-shadow: 1px 1px 100px 2px rgba(0,0,0,0.22); 
    border-radius: 10px; 
    display: none; 
    background: #fff; 
    z-index: 1001; 
    overflow: hidden;
}
.chat_header { 
    font-size: 13px; 
    font-weight: 500; 
    color: #fff; 
    height: 55px; 
    background: #25D366; 
    padding: 15px 20px; 
}
.chat_body { 
    padding: 20px; 
    color: #888; 
    line-height: 1.6;
}
.chat.is-visible { 
    display: block; 
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   Modals (FORCE FIX: Anti-Ketutupan Taskbar Bawah)
   =================================================== */
body .modal { 
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7) !important; 
    backdrop-filter: blur(5px);
    overflow-y: auto; 
    padding: 20px;
}

body .modal-dialog { 
    max-width: 550px; 
    width: 100%; 
    margin: 15px auto !important; /* Paksa naik sisa jarak 15px dari atas browser */
    position: relative;
}

body .modal-content { 
    padding: 0; 
    border-radius: 20px !important; 
    border: none !important; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    max-height: 76vh !important; /* Batasi ketat tinggi modal agar pas di atas taskbar laptop */
    overflow: hidden;
}

body .modal-header { 
    border-bottom: 1px solid #f1f3f5 !important; 
    padding: 18px 24px !important; 
    flex-shrink: 0; 
}

body .modal-body { 
    padding: 24px !important; 
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    overflow-y: auto !important; /* Teks/gambar panjang otomatis nge-scroll aman di sini */
}

body .modal-footer {
    padding: 15px 24px !important;
    border-top: 1px solid #f1f3f5 !important;
    background: #ffffff;
    flex-shrink: 0; /* Mengunci tombol WA biar ga tenggelam */
}

/* Styling Gambar (Mendukung opsi di dalam teks ataupun paling atas) */
body .modal-body img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 15px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    object-fit: contain;
}

body .modal-content .close { 
    font-size: 28px; 
    font-weight: 400; 
    color: #aaa; 
    opacity: 1; 
    line-height: 1; 
    padding: 0; 
    margin: 0; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    transition: color 0.2s;
}
body .modal-content .close:hover { 
    color: #1e212a; 
}
.update-card { 
    border-left: 4px solid #25D366; 
}

/* ===================================================
   Media Queries untuk Responsivitas Mobile
   =================================================== */
@media (max-width: 991px) {
    .price-card.recommended {
        transform: scale(1);
        margin-bottom: 30px;
    }
    .price-card:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    #homeTitle { 
        font-size: 28px; 
        line-height: 1.5; 
    }
    .title {
        font-size: 26px;
        margin-bottom: 2rem;
    }
    .home { 
        padding: 100px 0 60px 0; 
    }
    .explain, .features, .price, .contact {
        padding: 60px 0;
    }
    body .modal-dialog { 
        margin: 20px auto !important; 
    }
    
    .btn-wa {
        padding: 10px 20px;
        font-size: 14px;
    }
    .navbar-custom .btn-wa {
        margin-top: 10px;
        display: flex;
        width: 100%;
    }

    .contact-item {
        max-width: 100%; 
    }
}

/* --- Hasil Penggabungan CSS Kustom Halaman Utama --- */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    padding: 0.25rem 0.5rem;
}
.navbar-light .navbar-toggler-icon, .navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(30, 33, 42, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}
.testimonial-card {
    background: #fff;
    border: 1px solid #e1e4ed;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.avatar-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
}
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite; 
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    width: 350px; 
    margin: 0 15px;
    flex-shrink: 0;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}
.modal-dialog {
    margin: 10% auto;
    max-width: 500px;
}

      .badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 12px;
        letter-spacing: .3px;
        background: rgba(157, 119, 255, .14);
        color: color-mix(in srgb, var(--text) 88%, #fff 12%);
        border: 1px solid var(--border)
      }

/* Pastikan ini ditaruh di dalam tag <style> atau file style.css */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: 'Poppins', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}