/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tema Balon Udara x Awan Mengambang */
:root {
    --sky-blue: #87CEEB;
    --sky-dark: #4682B4;
    --cloud-white: #FFFFFF;
    /* Warna Balon */
    --balloon-red: #FF6B6B;
    --balloon-blue: #666666;
 --balloon-green: #6BCB77;
    --balloon-purple: #D44FA3;
    --balloon-yellow: #fffacd;
    --balloon-pink: #FF92C2;
    --string-color: #8B4513;
    --text-dark: #2D3142;
}

/* Responsif Setup */
body {
    background-color: var(--sky-blue);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Langit dengan Awan Bergerak */
.sky-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #B0E0E6, var(--sky-blue));
    z-index: 0;
    pointer-events: none;
}

/* Style Awan */
.cloud {
    position: absolute;
    background-color: var(--cloud-white);
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.5);
}

/* Bentuk Awan */
.cloud-1 {
    width: 150px;
    height: 80px;
    top: 15%;
    left: -150px;
    animation: cloudMove 60s linear infinite;
}
.cloud-1::before, .cloud-1::after {
    content: '';
    position: absolute;
    background-color: var(--cloud-white);
    border-radius: 50%;
}
.cloud-1::before { width: 80px; height: 80px; top: -30px; left: 20px; }
.cloud-1::after { width: 60px; height: 60px; top: -10px; right: 20px; }

.cloud-2 {
    width: 200px;
    height: 100px;
    top: 35%;
    right: -200px;
    animation: cloudMove 80s linear infinite reverse;
}
.cloud-2::before, .cloud-2::after {
    content: '';
    position: absolute;
    background-color: var(--cloud-white);
    border-radius: 50%;
}
.cloud-2::before { width: 100px; height: 100px; top: -40px; left: 30px; }
.cloud-2::after { width: 70px; height: 70px; top: -20px; right: 30px; }

.cloud-3 {
    width: 120px;
    height: 70px;
    top: 65%;
    left: -120px;
    animation: cloudMove 70s linear infinite 10s;
}
.cloud-3::before, .cloud-3::after {
    content: '';
    position: absolute;
    background-color: var(--cloud-white);
    border-radius: 50%;
}
.cloud-3::before { width: 70px; height: 70px; top: -25px; left: 15px; }
.cloud-3::after { width: 50px; height: 50px; top: -10px; right: 15px; }

/* Animasi Awan Bergerak */
@keyframes cloudMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(150vw); }
}

/* Container Utama */
.balloon-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

/* Style Umum Balon */
.balloon-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center bottom;
}

/* Badan Balon */
.balloon-body {
    width: 200px;
    background-color: var(--balloon-pink);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5),
                0 5px 10px rgba(0, 0, 0, 0.1);
    /* Animasi Balon Melayang */
    animation: balloonFloat 8s ease-in-out infinite alternate;
}

/* Tali Balon */
.balloon-string {
    width: 2px;
    height: 80px;
    background-color: var(--string-color);
    opacity: 0.8;
    /* Animasi Tali Bergoyang */
    animation: stringSway 5s ease-in-out infinite alternate;
}

/* Animasi Balon Melayang Naik Turun */
@keyframes balloonFloat {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

/* Animasi Tali Bergoyang */
@keyframes stringSway {
    0% { transform: translateX(0) rotate(-3deg); }
    100% { transform: translateX(5px) rotate(3deg); }
}

/* Balon Profil Besar */
.profile-balloon .balloon-body {
    width: 250px;
    background-color: var(--balloon-pink);
    animation-delay: 0.5s;
}

.profile-balloon img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.profile-balloon h1 {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-balloon .tag {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-balloon .place {
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Grid Balon Tautan Responsif */
.balloon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.link-balloon {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

/* Warna Balon Tautan */
.balloon-red .balloon-body { background-color: var(--balloon-red); animation-delay: 1s; }
.balloon-blue .balloon-body { background-color: var(--balloon-blue); animation-delay: 1.5s; }
.balloon-green .balloon-body { background-color: var(--balloon-green); animation-delay: 2s; }
.balloon-yellow .balloon-body { background-color: var(--balloon-yellow); color: var(--text-dark); animation-delay: 2.5s; }
.balloon-purple .balloon-body { background-color: var(--balloon-purple); animation-delay: 3s; }

/* Efek Hover Balon */
.link-balloon:hover .balloon-body {
    animation-duration: 2s;
    transform: translateY(-20px) scale(1.05);
}

.link-balloon i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.link-balloon span {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Balon Footer */
.footer-balloon .balloon-body {
    width: 220px;
    background-color: var(--balloon-pink);
    animation-delay: 3.5s;
}

.footer-balloon p {
    font-family: 'Chewy', cursive;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsif Desktop */
@media screen and (min-width: 768px) {
    .balloon-container {
        max-width: 800px;
    }

    .balloon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-balloon h1 {
        font-size: 3rem;
    }
}

/* Responsif Mobile Kecil */
@media screen and (max-width: 480px) {
    .balloon-container {
        gap: 2rem;
    }

    .profile-balloon .balloon-body {
        width: 220px;
        padding: 1.5rem 1rem;
    }

    .profile-balloon img {
        width: 110px;
        height: 110px;
    }

    .profile-balloon h1 {
        font-size: 2rem;
    }

    .balloon-grid {
        grid-template-columns: 1fr;
    }

    .link-balloon .balloon-body {
        width: 220px;
    }
}
