body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Penting untuk mencegah scroll saat animasi */
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); /* Gradien menarik */
    color: white;
}

.welcome-container {
    position: relative;
    z-index: 10; /* Pastikan konten utama di atas background words */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Overlay agar teks utama lebih jelas */
}

.welcome-container h1 {
    font-size: 4em;
    margin-bottom: 0.2em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.welcome-container p {
    font-size: 1.5em;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.background-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Sangat penting: membuat teks tidak bisa di-klik */
    overflow: hidden;
}

.background-words span {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInOutMove linear infinite;
    font-size: 1.2em; /* Ukuran default, akan diatur acak oleh JS */
    color: rgba(255, 255, 255, 0.6); /* Warna teks background */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%); /* Untuk posisi tengah yang lebih akurat */
}

/* Keyframes untuk animasi */
@keyframes fadeInOutMove {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2) translateY(-40px);
    }
}
