@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Kelas dasar untuk elemen yang akan dianimasikan */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Posisi awal elemen sebelum animasi */
.slide-from-left {
    transform: translateX(-50px);
}

.slide-from-right {
    transform: translateX(50px);
}

.slide-from-bottom {
    transform: translateY(50px);
}

/* Kelas yang ditambahkan oleh JavaScript saat elemen terlihat di layar */
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Animasi sederhana untuk Hero Section */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDelay {
    0% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInDelay 2s ease-out forwards;
}

/* Header/navbar hide/show on scroll */
header{
    background-color: rgb(0, 0, 0, 60%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.header-transparent {
    background-color: rgba(0,0,0,0) !important;
}
.header-hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.header-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}