
body {
    touch-action: pan-y pinch-zoom;
    background: url('asset/Background 1.png') repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ADDED: Enhanced zoom prevention styles */
html, body {
    /* Prevent text scaling on iOS */
    -webkit-text-size-adjust: 100%;
    /* Prevent callout on long press */
    -webkit-touch-callout: none;
    /* More restrictive touch actions */
    touch-action: manipulation;
}

/* ADDED: Prevent bounce effects that can trigger zoom */
body {
    overscroll-behavior: none;
}

/* ADDED: Enable text selection only where needed */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

    /* Hero Section */
    .hero {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        text-align: center;
        width: 100%;
        max-width: 900px;
        padding: 0 20px; /* Tambah padding untuk layar kecil */
    }

    .logo img {
        width: 100%;
        height: auto;
        max-width: 900px;
        animation: fadeInScaleUp 0.8s ease-in-out forwards;
    }

    .water-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 2400px;
        height: auto;
        aspect-ratio: 1800/800; /* Mempertahankan rasio aspek */
        z-index: 1;
    }

    .water-overlay img {
        width: 100%;
        height: auto;
        object-fit: contain;
        animation: fadeInScaleUpWater 1.5s ease-in-out forwards,
                waveAnimation 2s infinite ease-in-out;
    }

    .gelembung {
        position: absolute;
        bottom:48%;
        z-index: 1;
        opacity: 0;
        width: 4vw; /* Ukuran relatif terhadap viewport */
        min-width: 20px; /* Ukuran minimum */
        max-width: 40px; /* Ukuran maximum */
        animation: muncul 0s linear forwards,
                mengambang 5s linear infinite;
    }

    .gelembung img {
        width: 100%;
        height: auto;
    }

    /* Posisi gelembung responsive */
    .gelembung:nth-child(2) { left: 20%; animation-delay: 1s; }
    .gelembung:nth-child(3) { left: 40%; animation-delay: 2s; }
    .gelembung:nth-child(4) { left: 60%; animation-delay: 3s; }
    .gelembung:nth-child(5) { left: 80%; animation-delay: 4s; }
    .gelembung:nth-child(6) { left: 30%; animation-delay: 5s; }
    .gelembung:nth-child(7) { left: 70%; animation-delay: 6s; }
    .gelembung:nth-child(8) { left: 25%; animation-delay: 7s; }
    .gelembung:nth-child(9) { left: 85%; animation-delay: 8s; }
    .gelembung:nth-child(10) { left: 15%; animation-delay: 9s; }

    .btn1 {
        position: absolute;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        cursor: pointer;
        transition: transform 0.3s ease;
        width: 30vw; /* Ukuran relatif terhadap viewport */
        max-width: 200px; /* Ukuran maximum */
    }

    .btn1:hover {
        transform: translateX(-50%) scale(1.1);
    }

    .btn1 img {
        width: 100%;
        height: auto;
    }

    /* Content Section */
    /* Base Content Styling */
    .content {
        position: relative;
        padding: 5vh 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5vh;
        
    }

    /* Content Card */
    .content-card {
        position: relative; /* Pastikan parent tetap relative */
        width: 90%;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Gambar dalam Content Card */
    .content-card .content-card-img {
        position: relative; 
        width: 100%;
        height: auto;
        transform: translateX(-15vw);
    }

    /* Teks dalam Content Card */




    /* Karakter */
    @keyframes shake {
        0% { transform: rotate(3deg); }
        25% { transform: rotate(-3deg); }
        50% { transform: rotate(3deg); }
        75% { transform: rotate(-3deg); }
        100% { transform: rotate(3deg); }
    }

    .character2 {
        position: absolute;
        left: 7.5%;
        bottom: -5vh;
        width: 187.5%;
        animation: shake 0.5s ease-in-out infinite;
        animation-duration: 1.5s; /* 0.5s animasi + 1s jeda */
        animation-iteration-count: infinite;
    }

    .character2 img {
        width: 100%;
        height: auto;
    }
    /* Social Button */
    .social-btn {
        position: absolute;
        bottom: 20px;
        left: -21%; 
        cursor: pointer;
        transition: transform 0.3s ease;
        width: 35%;
        max-width: 200px;
        transform-origin: center;

    }

    /* Hover effect tetap pada tempatnya */
    .social-btn:hover {
        transform: scale(1.7); /* Zoom in tanpa geser */
    }

    .social-btn img {
        width: 150%;
    height: auto;
    }

    @media screen and (max-width: 768px) {
        .content-card .content-card-img {
            width: 70%;

            transform: translateX(-4vw);
        }

        

        .character2 {
            width: 150%;
            left: 14%;

        }

        .social-btn {
            width: 15%;
            max-width: 60px;
            position: absolute;
            bottom: 5%;
            left: 6%; /* Geser sedikit ke kanan */
            transform: translateX(0);
        }


        .social-btn:hover {
            transform: scale(1.2); /* Tetap di posisi & membesar */
        }

    }

    @media screen and (max-width: 480px) {
        .content-card .content-card-img {
            width: 60%;
            transform: translateX(-2vw);

        }

    

        .character2 {
            width: 120%;
            left: 15%;
        }

        .social-btn {
            width: 20%;
            max-width: 50px;
            position: absolute;
            left: 8%; /* Geser sedikit ke kanan */
            bottom: 5%;
            transform: translateX(0);
        }

        .social-btn:hover {
            transform: scale(1.4); /* Tetap di posisi & zoom in */
        }
    }


    .content3, .content4, .content5, .content6 {
        width: 90%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .content3 img, .content4 img, .content5 img, .content6 img {
        width: 100%;
        height: auto;
    }

    /* Media Queries untuk penyesuaian tambahan */
    @media screen and (max-width: 768px) {
        .logo {
            max-width: 80%;
        }

        .water-overlay {
            max-width: 150%;
        }

        .btn1 {
            width: 40vw;
            bottom: 15%;
        }

        .character2 {
            right: -50%;
            width: 150%;
        }

    
    }

    @media screen and (max-width: 480px) {
        .logo {
            max-width: 90%;
        }

        .water-overlay {
            max-width: 200%;
        }

        .btn1 {
            width: 50vw;
            bottom: 10%;
        }

        .character2 {
            right: -25%;
            width: 120%;
        }

        .content-card {
            width: 95%;
        }

        
    }

    /* Animations tetap sama */
    @keyframes fadeInScaleUp {
        0% {
            opacity: 0.5;
            transform: scale(0.5);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes fadeInScaleUpWater {
        0% {
            opacity: 0;
            transform: scale(0.01);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes waveAnimation {
        0% { transform: rotate(0deg); }
        50% { transform: rotate(5deg); }
        100% { transform: rotate(0deg); }
    }

    @keyframes muncul {
        0% { opacity: 1; }
    }

    @keyframes mengambang {
        0% {
            transform: translateY(0);
            opacity: 1;
        }
        25% {
            transform: translateY(-100px) translateX(-10px);
        }
        50% {
            transform: translateY(-200px) translateX(10px);
        }
        75% {
            transform: translateY(-300px) translateX(-5px);
        }
        100% {
            transform: translateY(-500px);
            opacity: 0;
        }
    }

    /* Chart Button tetap di tengah */
    .chart-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5vh; /* Pastikan ada jarak agar terlihat */
        cursor: pointer;
        transition: transform 0.3s ease-in-out;
        min-height: 50px; /* Mencegah elemen menghilang */
        opacity: 1 !important; /* Mencegah AOS menyembunyikan */
    }

    .chart-btn img {
        width: 20vw;
        max-width: 200px;
        height: auto;
    }

    /* Hover effect tetap bekerja */
    .chart-btn:hover {
        transform: scale(1.1);
    }

    /* Memastikan elemen tetap terlihat pada mobile */
    @media screen and (max-width: 480px) {
        .chart-btn {
            margin-top: 10vh; /* Tambah jarak di mobile agar tidak tertutup */
        }

        .chart-btn img {
            width: 50vw; /* Lebih besar di mobile */
            max-width: 150px;
        }
           .wallet-addres {
            color: white;
            font-size: clamp(14px, 2vw, 15px);
            width: 80%;
            max-width: 500px;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 20px;
            padding: 5px 10px;
            transition: all 0.3s ease-in-out;
            min-height: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }
        
        .wallet-addres h1 {
            font-weight: bold;
            font-size: 2em;
            text-align: center;
            margin: 5px 0;
        }
        
        .wallet-addres p {
            display: inline-block;
            color: white;
            padding: 10px 15px;
            font-size: 1.2em;
            font-weight: bold;
            background-color: #4c4c7b;
            border-radius: 8px;
            box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
            margin: 5px 0;
        }
        
        .wallet-addres button {
            margin-top: 10px;
            padding: 8px 16px;
            font-size: 1em;
            font-weight: bold;
            color: #fff;
            /* Add a fallback background color */
            background: #ff00ff; /* Fallback color if gradient doesn't work */
            background: -webkit-linear-gradient(90deg, #ff00ff, #8a2be2); /* For Safari */
            background: -moz-linear-gradient(90deg, #ff00ff, #8a2be2); /* For Firefox */
            background: linear-gradient(90deg, #ff00ff, #8a2be2); /* Standard syntax */
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        
        .wallet-addres button:hover {
            transform: scale(1.05);
        }
        
        @media screen and (max-width: 768px) {
            .wallet-addres {
                width: 85%;
                font-size: clamp(12px, 1.8vw, 14px);
                padding: 4px 8px;
                min-height: 28px;
            }
        
            .wallet-addres h1 {
                font-size: 1.8em;
            }
        
            .wallet-addres p {
                padding: 8px 12px;
                font-size: 1.1em;
            }
        
            .wallet-addres button {
                font-size: 0.9em;
                padding: 7px 14px;
            }
        }
        
        @media screen and (max-width: 480px) {
            .wallet-addres {
                width: 90%;
                max-width: 350px;
                font-size: clamp(11px, 1.6vw, 13px);
                padding: 3px 6px;
                min-height: 26px;
                border-radius: 12px;
                margin: 0 auto;
            }
        
            .wallet-addres h1 {
                font-size: 1.6em;
            }
        
            .wallet-addres p {
                padding: 6px 10px;
                font-size: 1em;
                border-radius: 6px;
            }
        
            .wallet-addres button {
                font-size: 0.85em;
                padding: 6px 12px;
            }
        }
    }
    
