@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');
@import url('https://fonts.googleapis.com/css2?family=Dongle&family=Gasoek+One&family=Lilita+One&family=Pixelify+Sans:wght@400..700&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;
    font-family: 'Cuprum', sans-serif;
}

.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);
    border: 1px solid black;
    cursor: pointer;
}

.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;
    list-style: none;
}

.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', sans-serif;
    -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', sans-serif;
    -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', sans-serif;
    font-size: 30px;
    background-color: white;
    padding: 0 0;
    border: 4px solid black;
    width: 100%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 5px 5px black;
        transform: scale(1);
    }

    50% {
        text-shadow: 5px 5px 15px rgba(255, 196, 0, 0.6), 5px 5px black;
        transform: scale(1.03);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    33% {
        transform: translateX(10px) rotate(3deg);
    }

    66% {
        transform: translateX(-10px) rotate(-3deg);
    }
}

/* ---------- 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 {
    background: linear-gradient(90deg, #fff, #f8f8f8, #fff);
    background-size: 200% auto;
    animation: gradientBG 10s ease infinite, textGlow 3s ease-in-out infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 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);
    }
}

/* Gallery Styles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid black;
    box-shadow: 5px 5px 0 black;
    width: 1200px;
}

.container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-family: 'Lilita One', sans-serif;
    font-size: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid black;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Cuprum', sans-serif;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    padding: 50px;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .YOGIS,
    .PENDAHULUAN {
        font-size: 70px;
    }

    .navbar {
        padding: 5px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .YOGIS,
    .PENDAHULUAN {
        font-size: 50px;
    }

    .moving {
        font-size: 20px;
    }
}