* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)), 
                url('assets/image/download (4).jpg'); /* Pastikan nama file sesuai */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
    
    
}


.hero {
  width: 100%;
    height: 100vh;
    overflow: hidden; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    /* Jalankan animasi zoom background selama 5 detik */
    animation: slowZoom 5s ease-out forwards;
}

/* Mengatur Video agar Full Screen */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video akan menutupi seluruh area tanpa gepeng */
}

/* Efek Overlay Gelap (Sama dengan linear-gradient Anda sebelumnya) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(91, 91, 91, 0.3), rgba(0,0,0,0.5));
}


/* Container Utama Judul */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Penting agar teks tidak bocor sebelum diketik */
}

/* Garis Pertama: Muncul dari Kiri */
.line-1 {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid transparent; /* Opsional: Efek kursor ketik */
    width: 0;
    animation: 
        typing 2s steps(20) forwards,
        slideFromLeft 1s ease-out forwards;
}

/* Garis Kedua: Muncul dari Kanan */
.line-2 {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: 
        typing 2s steps(20) 1s forwards, /* Jeda 1 detik agar bergantian */
        slideFromRight 1s ease-out 1s forwards;
}

/* ANIMASI KETIK (Width dari 0 ke 100%) */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* ANIMASI GERAK DARI KIRI */
@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ANIMASI GERAK DARI KANAN */
@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes slowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

/* --- 2. PENYEMPURNAAN ANIMASI TEKS --- */

/* Pastikan elemen awal transparan sebelum animasi mulai */
.animate-from-left, 
.animate-from-bottom {
    opacity: 0;
}

/* Keyframes untuk Slide dari Kiri */
@keyframes slideFromLeft {
    from { 
        opacity: 0; 
        transform: translateX(-60px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Keyframes untuk Slide Up (Muncul dari Bawah) */
@keyframes slideFromBottom {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- 3. LOGIKA JEDA ANIMASI (STAGGERED) --- */

/* Judul (H1) muncul paling cepat */
.animate-from-left { 
    animation: slideFromLeft 1.2s ease-out forwards; 
}

/* Badge muncul dengan jeda sedikit */
.delay-1 { animation-delay: 0.4s; }

/* Paragraf muncul setelah badge */
.delay-2 { animation-delay: 0.8s; }

/* Tombol muncul paling akhir dari bawah */
.animate-from-bottom { 
    animation: slideFromBottom 1.2s ease-out forwards; 
}
.delay-3 { animation-delay: 1.2s; }



.hero-content {
    /* Menaruh box teks tepat di tengah secara horizontal dan vertikal */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Meratakan konten ke tengah secara horizontal */
    justify-content: center; /* Meratakan konten ke tengah secara vertikal */
    text-align: center;      /* Membuat teks di dalam elemen menjadi rata tengah */
    
    /* Ukuran dan posisi */
    width: 100%;
    max-width: 900px;        /* Batas lebar agar teks tidak terlalu melar ke samping */
    margin: 0 auto;          /* Memastikan container box berada di tengah layar */
    padding: 20px;
    height: 100%;            /* Mengikuti tinggi parent (.hero) */
    
    /* Memastikan teks berada di atas background */
    position: relative;
    z-index: 2;
}

/* Paragraf Deskripsi */
.hero-content p {
     font-size: 18px;
    color: #ffffff;
    max-width: 700px;     
    margin-left: auto;       /* Kombinasi auto kiri-kanan membuat elemen di tengah */
    margin-right: auto;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;    
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px); /* Ukuran responsif */
    font-weight: 800;
    color: #FFFDF1;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}


.brand-text {
    color: #82eb78; /* Warna gelap profesional */
}

/* Badge (Solusi kesehatan alami) */
.badge {
    /* Gaya Elegan: Glassmorphism */
    background: rgba(255, 255, 255, 0.2); /* Transparan */
    backdrop-filter: blur(10px);          /* Efek Blur Kaca */
    -webkit-backdrop-filter: blur(10px);
    
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 400;
    
    /* Garis tepi tipis agar terlihat premium */
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Spasi antar huruf agar lebih bersih */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikon dan teks */
    
    margin: 0 auto 25px auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    /* Animasi halus saat hover */
    transition: all 0.3s ease;
    cursor: default;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge i {
    font-size: 16px;
    color: #a3cfbb; /* Warna hijau pastel untuk ikon */
}

/* Tombol Get Started (Sesuai Gambar) */
.main-btn {
    display: inline-block;
    background: linear-gradient(to right, #74992e, #5a7a22);
    color: white;
    text-decoration: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* Tambahkan Keyframes jika belum ada */
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-from-left { animation: slideFromLeft 1s ease-out forwards; }
.animate-from-bottom { animation: slideFromBottom 1s ease-out forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* Responsif Mobile */
#check { display: none; }
.menu-btn { display: none; color: white; font-size: 24px; cursor: pointer; }

@media (max-width: 992px) {
    .menu-btn { display: block; }
    .nav-links {
        display: none; /* Perlu tambahan JS atau CSS murni untuk toggle mobile menu */
    }
}




/* HALAMAN GULIR LOGO*/

.logo-reveal-section {
    display: none; 
    height: 100vh;
    justify-content: center;
    align-items: center;
    /* Memberikan overlay tipis agar logo putih lebih jelas terlihat di atas gunung */
  
   
}

.logo-reveal-section.show {
    display: flex;
}

.logo-container {
    perspective: 1000px;
}

.zoom-logo {
    width: 300px; /* Sesuaikan ukuran */
    opacity: 0;
    transform: scale(0.1) translateZ(-500px);
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Class ini akan dipicu oleh JavaScript saat terlihat */
.zoom-logo.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}
