@import url('https://fonts.googleapis.com/css2?family=Cuprum:ital,wght@0,400..700;1,400..700&family=DynaPuff:wght@400..700&family=Lilita+One&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gasoek+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #005dd6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 40px;
}

.navbar {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    background-color: #f8f8f8;
    margin: 20px 25px;
    padding: 8px 40px;
    border: 2px solid black;
    border-radius: 30px;
    box-shadow: 3px 3px 0 black;
    z-index: 99;
}

.navbar a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin: 0 10px;
    font-family: 'Cuprum';
    padding: 5px;
    transition: 0.3s;
}

.navbar a button {
    font-family: 'Cuprum';
    font-size: 15px;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 15px;
    background-color: rgb(255, 217, 0);
}

.navbar a:hover {
    color: rgb(243, 223, 9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0);
}

.nav-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
}

.dropdown-pendahuluan,
.dropdown-rencana,
.dropdown-hasil,
.dropdown-penutup {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dropdown-pendahuluan:hover .dropdown-pendahuluan-content,
.dropdown-rencana:hover .dropdown-rencana-content,
.dropdown-hasil:hover .dropdown-hasil-content,
.dropdown-penutup:hover .dropdown-penutup-content {
    display: block;
}

.dropdown-pendahuluan-content,
.dropdown-rencana-content,
.dropdown-hasil-content,
.dropdown-penutup-content {
    display: none;
    position: absolute;
    top: 100%;
    transform: none;
    border-radius: 5px;
    border: 3px solid black;
    z-index: 10;
    padding: 0;
}

.dropdown-pendahuluan-content a,
.dropdown-rencana-content a,
.dropdown-hasil-content a,
.dropdown-penutup-content a {
    color: black;
    background-color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    text-align: center;
    width: 100%;
    margin: 0;
}

.title {
    margin-top: 85px;
    margin-bottom: 20px;
}

.YOGIS {
    color: white;
    text-align: center;
    font-size: 100px;
    font-family: 'Gasoek One';
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
    margin-bottom: -100px;
}

.PENDAHULUAN {
    margin-top: -10px;
    color: rgb(255, 196, 0);
    margin-top: 50px;
    text-align: center;
    font-size: 100px;
    font-family: 'lilita one';
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
}

.clouds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.moving {
    font-family: 'Pixelify Sans';
    font-size: 30px;
    background-color: white;
    padding-bottom: 0px;
    border: 4px solid black;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInParagraph {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add a gradual text reveal effect */
.text-animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, #f8f8f8);
    animation: revealText 1.5s ease forwards;
}

@keyframes revealText {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* Add subtle border animation */
@keyframes borderPulse {
    0% {
        border-color: black;
    }

    50% {
        border-color: #ffd700;
    }

    100% {
        border-color: black;
    }
}

h1.produk {
    font-family: 'Gasoek One';
    text-align: center;
    margin-top: 20px;
    font-size: 50px;
    color: white;
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
}

/* ---------- SCROLL ANIMATIONS ---------- */
/* Initial opacity states for scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.pop-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.pop-in.active {
    opacity: 1;
    transform: scale(1);
}

/* ---------- NAVBAR ANIMATIONS ---------- */
.navbar {
    animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(243, 223, 9);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- MOVING MARQUEE ENHANCEMENT ---------- */
.moving {
    background: linear-gradient(90deg, #fff, #f8f8f8, #fff);
    background-size: 200% auto;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Optional Particle Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(0) translateX(20px);
    }

    75% {
        transform: translateY(20px) translateX(10px);
    }
}

/* Pulsing effect for buttons */
.navbar a button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navbar a button:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 217, 0, 0.4);
}

.navbar a button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.navbar a button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Text animation for moving marquee */
@keyframes textGlow {

    0%,
    100% {
        color: #000;
        text-shadow: 0 0 0 transparent;
    }

    50% {
        color: #c28100;
        text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    }
}

.moving {
    animation: gradientBG 10s ease infinite, textGlow 3s ease-in-out infinite;
}

h1{
    font-family: 'Gasoek One';
    text-align: center;
    margin-top: 10px;
    font-size: 50px;
    color: #ffffff;
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
    margin-bottom: 10px;
}