/* Animasi Melayang untuk Doodle */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(-5%); }
    50% { transform: translateY(5%); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Class untuk Doodle di Background */
.doodle-cloud, .doodle-star, .doodle-butterfly, .doodle-crayon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.6;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.doodle-star { animation-duration: 4s; animation-delay: 1s; }
.doodle-butterfly { animation-duration: 7s; animation-delay: 2s; }
.doodle-crayon { animation-duration: 5s; animation-delay: 0.5s; }

/* Tombol Vertikal Kiri */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Animasi Fade In Up (Untuk Scroll) */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ANIMASI MATAHARI (Goyang, Putar & Kedip)
   ========================================= */
.sun-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: sun-wobble 3s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes sun-wobble {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(8deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-8deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

.sun-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: sun-blink 4s infinite;
}

@keyframes sun-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* =========================================
   UTILITY UNTUK SLIDER FOTO
   ========================================= */
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Animasi Slide Foto */
.slide-item {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem; /* rounded-2xl */
}