/* Hapus semua style lama, ganti dengan ini */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Reset agar scroll-padding berfungsi */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    margin: 0;
    background-color: #f9faff; /* Warna dasar netral */
}

/* =========================
   Section 1: Hero (Beranda)
========================= */
.hero-section-pu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Tinggi minimal */
    background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 50%, #fff8ef 100%);
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hero-section-pu::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(to top left, #caddff, rgba(255,255,255,0));
    border-top-left-radius: 100%;
    opacity: 0.8;
}

.hero-content-pu {
    z-index: 1;
}

.hero-section-pu h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

.hero-section-pu h1 span {
    color: #ff5003; 
}

.hero-section-pu p {
    font-size: 1.25rem;
    color: #34495e;
    margin-top: 10px;
    margin-bottom: 30px;
}

.hero-section-pu .hero-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid #dfe6f0;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    font-size: 1rem;
}

.hero-section-pu .btn-mulai {
    background-color: #ff5003; 
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-section-pu .btn-mulai:hover {
    background-color: #2c3a6b;
    transform: translateY(-2px);
}

.hero-section-pu .beta-version {
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}


/* =========================
   Section 2: Layanan Kami
========================= */
.layanan-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.layanan-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
}

.layanan-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.layanan-card {
    background: #fdfdff;
    border: 1px solid #eaf2ff;
    border-radius: 12px;
    padding: 35px 30px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layanan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.layanan-card i {
    font-size: 2.5rem;
    color: #ff5003;
    margin-bottom: 20px;
}

.layanan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.layanan-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* =========================
   Section 3: FAQ
========================= */
.faq-section {
    padding: 80px 20px;
    background: linear-gradient(to right, #ffffff, #fefbf3);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    text-align: center;
}

.faq-container {
    width: 100%;
    max-width: 800px;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: margin 0.3s ease;
}

.faq-item:hover {
    border-color: #dce1f0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #34495e;
    cursor: pointer;
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
}

.faq-question i {
    font-size: 1rem;
    color: #3a4b8b;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Sesuaikan jika jawaban lebih panjang */
    padding-bottom: 25px;
}


/* =========================
   Scroll Animation Classes
========================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered (bertingkat) */
.hero-content-pu .hero-badge.reveal-on-scroll { transition-delay: 0s; }
.hero-content-pu h1.reveal-on-scroll { transition-delay: 0.1s; }
.hero-content-pu p.reveal-on-scroll { transition-delay: 0.2s; }
.hero-content-pu .btn-mulai.reveal-on-scroll { transition-delay: 0.3s; }
.hero-content-pu .beta-version.reveal-on-scroll { transition-delay: 0.4s; }

/* DIUBAH: Delay disesuaikan untuk 3 kartu */
.layanan-container .layanan-card:nth-child(1).reveal-on-scroll { transition-delay: 0.1s; }
.layanan-container .layanan-card:nth-child(2).reveal-on-scroll { transition-delay: 0.2s; }
.layanan-container .layanan-card:nth-child(3).reveal-on-scroll { transition-delay: 0.3s; }

/* DIUBAH: Delay disesuaikan untuk 4 item FAQ */
.faq-container .faq-item:nth-child(1).reveal-on-scroll { transition-delay: 0.1s; }
.faq-container .faq-item:nth-child(2).reveal-on-scroll { transition-delay: 0.2s; }
.faq-container .faq-item:nth-child(3).reveal-on-scroll { transition-delay: 0.3s; }
.faq-container .faq-item:nth-child(4).reveal-on-scroll { transition-delay: 0.4s; }