/* =========================================
   1. PENGATURAN UMUM & NAVIGASI
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section {
    scroll-margin-top: 76px; /* Mencegah judul tertutup navbar fixed */
}

/* =========================================
   2. HERO SECTION & PENCARIAN
   ========================================= */
.hero-section {
    background: linear-gradient(90deg, rgba(0, 98, 235, 1) 0%, rgba(31, 112, 224, 1) 50%, rgba(67, 142, 247, 1) 100%);
    color: white;
    padding: 80px 0 60px;
    margin-top: 76px; /* Jarak aman untuk navbar fixed */
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50px;
    background: white;
    padding: 8px;
}

.search-box input {
    border: none;
    box-shadow: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    background: transparent;
}

.search-box input:focus { outline: none; box-shadow: none; }

.search-box button.btn-primary {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: bold;
}

/* Tombol Paste */
.btn-paste {
    background-color: #f1f3f5; 
    border: none;
    color: #495057; 
    font-size: 1.2rem;
    padding: 8px 16px;
    margin-right: 10px; 
    border-radius: 30px; 
    transition: all 0.3s ease; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-paste:hover {
    background-color: #cfe2ff; 
    color: #0d6efd; 
    transform: scale(1.05); 
}

.btn-paste:active { transform: scale(0.95); }

/* =========================================
   3. KARTU HASIL UNDUHAN
   ========================================= */
.result-card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: none;
}

.video-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.btn-download {
    width: 100%;
    margin-bottom: 10px;
    font-weight: 500;
}

/* =========================================
   4. SECTION: CARA MENGGUNAKAN (IKON)
   ========================================= */
.tutorial-icon-box {
    height: 200px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.tutorial-icon-box i {
    font-size: 5rem;
    transition: transform 0.4s ease;
}

.step-card:hover .tutorial-icon-box i {
    transform: scale(1.2);
}

/* =========================================
   5. SECTION: MANFAAT (GAMBAR 3D UNGU)
   ========================================= */
.benefit-visual-bg {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #e0cffc 0%, #c4a7f9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
    position: relative;
}

.benefit-visual-bg::before {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 2px dashed #8b5cf6;
    animation: spinSlow 15s linear infinite;
}

.benefit-main-img {
    width: 200px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2)); 
    animation: floatUp 3s ease-in-out infinite; 
}

.benefit-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border-left: 5px solid #8b5cf6;
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.15);
}

.benefit-card i { color: #8b5cf6 !important; }

/* =========================================
   6. SECTION: TESTIMONI
   ========================================= */
.testimonial-card {
   background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Menghapus garis keliling dan menambahkan garis ungu tebal di BAWAH */
    border: none;
    border-bottom: 5px solid #8b5cf6;
}

.testimonial-card:hover {
   transform: translateY(-10px);
    
    /* DIUBAH: Bayangan (glow) saat disorot mouse diserasikan menjadi ungu */
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.quote-watermark {
    transform: translateY(-10px);
    
    /* DIUBAH: Bayangan (glow) saat disorot mouse diserasikan menjadi ungu */
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.testimonial-card p, .testimonial-card div { position: relative; z-index: 1; }

/* =========================================
   7. ANIMASI GLOBAL
   ========================================= */
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   EFEK HOVER UNTUK MENU NAVBAR
   ========================================= */

/* Pengaturan awal untuk link di navbar */
.navbar-nav .nav-link {
    position: relative;
    color: #495057 !important; /* Warna abu-abu gelap khas profesional */
    transition: color 0.3s ease;
}

/* 1. Efek ubah warna teks saat disorot menjadi biru */
.navbar-nav .nav-link:hover {
    color: #0d6efd !important; 
}

/* 2. Membuat elemen garis bawah yang awalnya tersembunyi (lebar 0) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;           /* Awalnya tidak terlihat */
    height: 2px;        /* Ketebalan garis */
    bottom: 5px;        /* Jarak garis dari bawah teks */
    left: 50%;          /* Memulai garis dari titik tengah */
    background-color: #0d6efd; /* Warna garis biru utama */
    transition: all 0.3s ease-in-out; /* Animasi halus selama 0.3 detik */
    transform: translateX(-50%); /* Menjaga garis tetap di tengah */
}

/* 3. Efek garis melebar ke samping saat disorot (hover) */
.navbar-nav .nav-link:hover::after {
    width: 75%; /* Garis melebar dari tengah ke samping */
}

/* =========================================
   8. FOOTER ELEGANT
   ========================================= */
.footer-elegant {
    background-color: #0f172a; /* Warna biru dongker super gelap (Slate) */
    color: #f8fafc;
}

/* Gaya daftar link di footer */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8; /* Warna teks abu-abu kebiruan terang */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Efek animasi saat link disorot (hover) */
.footer-links a:hover {
    color: #0d6efd; /* Berubah menjadi biru menyala */
    transform: translateX(5px); /* Teks sedikit bergeser/maju ke kanan */
}

/* Lingkaran Ikon Sosial Media */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05); /* Lingkaran semi-transparan */
    color: #94a3b8;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Efek saat ikon sosial disorot */
.social-icon:hover {
    background-color: #0d6efd; /* Background jadi biru */
    color: #ffffff; /* Ikon jadi putih bersih */
    transform: translateY(-5px); /* Ikon mengambang naik ke atas */
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4); /* Efek cahaya biru */
}

/* Garis pemisah transparan untuk bagian copyright bawah */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

/* =========================================
   GAYA UNTUK PERTANYAAN UMUM (FAQ ACCORDION)
   ========================================= */

/* Menghilangkan background abu-abu bawaan dan memberi warna putih bersih */
.custom-accordion .accordion-item {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Efek sedikit terangkat saat kotak FAQ disorot */
.custom-accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* Gaya tombol header FAQ */
.custom-accordion .accordion-button {
    color: #2b3452; /* Warna teks biru gelap/navy */
    background-color: transparent;
    padding: 20px 25px;
    box-shadow: none !important; /* Menghilangkan border biru mengganggu saat diklik */
}

/* Mengubah warna teks dan background saat FAQ dalam keadaan terbuka (aktif) */
.custom-accordion .accordion-button:not(.collapsed) {
    color: #0d6efd; /* Biru cerah */
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat terang */
}

/* Mengubah warna panah (chevron) bawaan Bootstrap menjadi biru saat diklik */
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(33%) sepia(87%) saturate(2976%) hue-rotate(210deg) brightness(101%) contrast(106%);
}

/* Jarak dalam untuk teks jawaban (body) */
.custom-accordion .accordion-body {
    padding: 0 25px 25px 25px;
    background-color: #f8f9fa;
    line-height: 1.7;
}

/* =========================================
   2. HERO SECTION ANIMASI & PENCARIAN
   ========================================= */

/* Background Gradasi Bergerak */
.hero-section {
    margin-top: 76px; 
    
    /* DIUBAH: Jarak atas (40px) diperkecil agar lebih naik mendekati navbar */
    padding: 40px 0 70px; 
    
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background: linear-gradient(-45deg, #0f172a, #0d6efd, #0dcaf0, #8b5cf6);
    background-size: 400% 400%;
    animation: gradientMove 25s ease infinite;
}

/* Keyframe untuk membuat warna background bergerak (Tetap) */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dekorasi Lingkaran Cahaya Mengambang (Tetap) */
.hero-decoration-1, .hero-decoration-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}
.hero-decoration-1 {
    width: 300px; height: 300px;
    background: #0dcaf0;
    top: -50px; left: -50px;
}
.hero-decoration-2 {
    width: 400px; height: 400px;
    background: #8b5cf6;
    bottom: -100px; right: -50px;
}

/* Bungkus Kotak Pencarian (Efek Glass/Kaca) */
.search-wrapper {
    max-width: 700px; /* <-- DIUBAH: Lebar dikembalikan ke 700px seperti ukuran awal */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    padding: 10px; /* <-- DIUBAH: Ketebalan kaca pembungkus diperkecil */
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease;
}

.search-wrapper:hover {
    transform: scale(1.02); 
}

/* =========================================
   9. MODAL IKLAN (POP-UP DOWNLOAD)
   ========================================= */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Latar belakang hitam transparan */
    z-index: 9999; /* Memastikan iklan berada di lapisan paling atas */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.ad-modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Area tempat script iklan disisipkan */
.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* Animasi memantul saat iklan muncul */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   11. RESPONSIF THUMBNAIL HASIL VIDEO
   ========================================= */
/* Di layar HP (Mobile), tetapkan tinggi minimal agar tidak gepeng */
.thumbnail-container {
    min-height: 350px; 
    max-height: 450px;
}

/* Di layar besar (Tablet/Laptop), biarkan tingginya menyesuaikan penuh mengikuti tinggi tombol di sebelahnya */
@media (min-width: 768px) {
    .thumbnail-container {
        min-height: 100%;
        max-height: none;
    }
}

/* =========================================
   12. SECTION: STATISTIK PENGGUNA
   ========================================= */
.stat-card {
    background: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15) !important;
    border-color: #8b5cf6;
}

/* Garis aksen ungu di bawah kartu yang melebar saat disorot */
.stat-line {
    height: 4px;
    width: 40px;
    background: #8b5cf6;
    margin: 0 auto;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stat-card:hover .stat-line {
    width: 90px;
}

