/* ===================================================================
   Table of Contents - Buat Web
   1. Global Variables & Base Styles
   2. Hero Section
   3. Main Content Layout
   4. Why Section
   5. Portfolio Section (Carousel)
   6. Info Section
   7. Benefit Section
   8. Alur Kerja (Accordion)
   9. Paket Harga
   10. FAQ Section
   11. Responsive
=================================================================== */

/* ===================================================================
   1. Global Variables & Base Styles
=================================================================== */
:root {
    --buatweb-primary: #775ba3; /* Brand Purple */
    --buatweb-secondary: #a35da7;
    --buatweb-accent: #ffc107; /* Gold/Yellow */
    --buatweb-dark: #212529;
    --buatweb-light: #f8f9fa;
    --buatweb-white: #ffffff;
    --buatweb-font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#page-buatweb {
    font-family: var(--buatweb-font-sans);
    background-color: var(--buatweb-light);
    color: var(--buatweb-dark);
}

.container-buatweb {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-buatweb {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary-buatweb {
    background-color: var(--buatweb-accent);
    color: var(--buatweb-dark);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary-buatweb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
}

.btn-secondary-buatweb {
    background-color: transparent;
    color: var(--buatweb-white);
    border-color: var(--buatweb-white);
}

.btn-secondary-buatweb:hover {
    background-color: var(--buatweb-white);
    color: var(--buatweb-primary);
}

/* ===================================================================
   2. Hero Section
=================================================================== */
.hero-section-buatweb {
    background: linear-gradient(135deg, #c75d9d, #4a4a4a); /* Darker theme for web dev */
    color: var(--buatweb-white);
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-grid-buatweb {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content-buatweb {
    flex: 1.2;
    text-align: left;
    z-index: 2;
}

.hero-content-buatweb h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-highlight-text-buatweb {
    display: block;
    color: var(--buatweb-accent);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.hero-subtitle-buatweb {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta-buttons-buatweb {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-wrapper-buatweb {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-main-image-buatweb {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* ===================================================================
   3. Main Content Layout
=================================================================== */
.main-container-buatweb {
    display: flex;
    width: 90%;
    margin: 60px auto;
    gap: 40px;
    max-width: 1200px;
}

.sidebar-buatweb {
    flex: 0 0 250px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.side-nav-buatweb ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-buatweb a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--buatweb-dark);
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.side-nav-buatweb a.active,
.side-nav-buatweb a:hover {
    background-color: var(--buatweb-primary);
    color: var(--buatweb-white);
}

.content-buatweb {
    flex: 1;
    min-width: 0;
}

.section-buatweb {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}
.section-buatweb:last-child {
    border-bottom: none;
}

/* ===================================================================
   4. Why Section
=================================================================== */
.why-heading-buatweb {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--buatweb-dark);
}

.why-carousel-wrapper-buatweb {
    overflow-x: auto;
    padding-bottom: 20px;
}

.why-carousel-container-buatweb {
    display: flex;
    gap: 20px;
}

.why-card-buatweb {
    flex: 0 0 280px;
    min-width: 280px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.why-card-title-buatweb {
    font-size: 1.2rem;
    color: var(--buatweb-primary);
    margin-bottom: 10px;
}

/* ===================================================================
   5. Portfolio Section (Carousel - REVISI)
=================================================================== */
.heading-buatweb {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--buatweb-dark);
}
.subheading-buatweb {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.portfolio-carousel-wrapper-buatweb {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Window: Area yang terlihat (Masking) */
.portfolio-carousel-window-buatweb {
    width: 100%;
    overflow: hidden; /* Sembunyikan kartu yang di luar area */
    border-radius: 15px;
    padding: 10px 0; /* Memberi ruang untuk shadow card */
}

/* Track: Rel panjang berisi semua kartu */
.portfolio-track-buatweb {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    width: max-content; /* Lebar menyesuaikan jumlah konten */
}

/* Card Style */
.portfolio-card-buatweb {
    flex: 0 0 320px; /* Desktop: Lebar tetap */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.portfolio-card-buatweb:hover {
    transform: translateY(-5px);
}

.portfolio-card-buatweb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.portfolio-card-body-buatweb {
    padding: 20px;
    text-align: left;
}

.portfolio-card-body-buatweb h4 {
    margin: 0 0 8px;
    color: var(--buatweb-primary);
    font-size: 1.1rem;
}

.portfolio-card-body-buatweb p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Navigation Buttons */
.portfolio-nav-btn-buatweb {
    background: var(--buatweb-white);
    border: 1px solid #ddd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--buatweb-primary);
    flex-shrink: 0;
}

.portfolio-nav-btn-buatweb:hover {
    background: var(--buatweb-primary);
    color: white;
    border-color: var(--buatweb-primary);
}

.portfolio-nav-btn-buatweb.prev-btn { margin-right: 15px; }
.portfolio-nav-btn-buatweb.next-btn { margin-left: 15px; }

/* RESPONSIVE: MOBILE (Max width 768px) */
@media (max-width: 768px) {
    .portfolio-carousel-wrapper-buatweb {
        position: relative;
    }

    /* Sembunyikan tombol arrow di mobile (Gunakan swipe) */
    .portfolio-nav-btn-buatweb {
        display: none; 
    }

    .portfolio-track-buatweb {
        gap: 0; /* Hapus gap, kita gunakan padding di card */
    }

    .portfolio-card-buatweb {
        /* Mobile: 1 Kartu Full Width */
        flex: 0 0 100%; 
        max-width: 100%;
        margin: 0;
        box-shadow: none; /* Shadow di handle wrapper */
        padding: 0 10px; /* Padding kiri kanan agar tidak mepet layar */
        border: none;
        background: transparent;
    }
    
    /* Inner card wrapper untuk styling di mobile */
    .portfolio-card-inner-mobile {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }
}

/* ===================================================================
   6. Info Section
=================================================================== */
.info-container-buatweb {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}
.info-heading-buatweb {
    font-size: 2rem;
    font-weight: 800;
}
.info-card-image-buatweb {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.info-paragraph-wrapper-buatweb {
    grid-column: 1 / -1;
    margin-top: 30px;
    line-height: 1.8;
    text-align: justify;
}

/* ===================================================================
   7. Benefit Section
=================================================================== */
.benefit-grid-buatweb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.benefit-card-buatweb {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.benefit-list-buatweb {
    list-style: none;
    padding: 0;
}
.benefit-list-buatweb li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.benefit-icon-buatweb {
    width: 20px;
    height: 20px;
    fill: #28a745;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===================================================================
   8. Alur Kerja (Accordion)
=================================================================== */
.alur-heading-buatweb {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.alur-subtitle-buatweb {
    text-align: center;
    margin-bottom: 40px;
}
.alur-accordion-item-buatweb {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}
.alur-accordion-button-buatweb {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.alur-accordion-content-buatweb {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease;
}
.alur-accordion-item-buatweb.active .alur-accordion-content-buatweb {
    max-height: 200px;
    padding-bottom: 20px;
}

/* ===================================================================
   9. Paket Harga
=================================================================== */
.paket-heading-buatweb {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
}
.paket-grid-buatweb {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.paket-card-buatweb {
    flex: 1 1 300px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.paket-card-buatweb:hover {
    transform: translateY(-10px);
}
.paket-card-buatweb.featured {
    border: 2px solid var(--buatweb-primary);
    box-shadow: 0 15px 40px rgba(119, 91, 163, 0.15);
}
.paket-badge-buatweb {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--buatweb-accent);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}
.paket-price-buatweb {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--buatweb-primary);
    margin: 15px 0;
}
.paket-list-buatweb {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    text-align: left;
}
.paket-list-buatweb li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

/* ===================================================================
   10. FAQ Section
=================================================================== */
.faq-accordion-buatweb {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item-buatweb {
    border-bottom: 1px solid #eee;
}
.faq-header-buatweb {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.faq-content-buatweb {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item-buatweb.active .faq-content-buatweb {
    max-height: 300px;
}

/* ===================================================================
   11. Responsive
=================================================================== */
@media (max-width: 992px) {
    .sidebar-buatweb { display: none; }
    .hero-grid-buatweb { flex-direction: column; text-align: center; }
    .hero-image-wrapper-buatweb { order: -1; margin-bottom: 30px; }
    .hero-cta-buttons-buatweb { justify-content: center; }
    .info-container-buatweb { grid-template-columns: 1fr; }
    .benefit-grid-buatweb { grid-template-columns: 1fr; }
}

/* Dark Mode Fixes */
html.dark-mode #page-buatweb { background-color: #1a1822; color: #f0f0f0; }
html.dark-mode .why-card-buatweb,
html.dark-mode .benefit-card-buatweb,
html.dark-mode .alur-accordion-item-buatweb,
html.dark-mode .paket-card-buatweb,
html.dark-mode .portfolio-card-buatweb {
    background-color: #2a2734;
    border-color: #444;
}
html.dark-mode .btn-secondary-buatweb { color: #fff; }
html.dark-mode .why-heading-buatweb,
html.dark-mode .heading-buatweb,
html.dark-mode .paket-heading-buatweb,
html.dark-mode .faq-header-buatweb span {
    color: #f0f0f0;
}
html.dark-mode .alur-accordion-button-buatweb { color: #f0f0f0; }
html.dark-mode .benefit-list-buatweb li,
html.dark-mode .paket-list-buatweb li { color: #ddd; }

/* ===================================================================
   #. MINOL
=================================================================== */
.whatsapp-chat-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-chat-button img {
    width: 120px; /* Ukuran default untuk desktop */
    height: auto;
    /*border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
}

.whatsapp-chat-button:hover {
    transform: scale(1.1);
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); */
}

/* Responsif untuk tampilan mobile */
@media (max-width: 768px) {
    .whatsapp-chat-button {
        right: 15px;
        bottom: 25px;
    }
    .whatsapp-chat-button img {
        width: 50px; /* Ukuran yang lebih kecil untuk mobile */
    }
}