/* =========================================
   STYLE.CSS - HALAMAN INDEX
========================================= */

/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f1eff5; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden; /* Mencegah scrollbar karena gelembung */
}

/* --- ANIMASI WELCOME SCREEN --- */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(241, 239, 245, 0.85); 
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease-out;
}

.welcome-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4a6382;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    30% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* --- LATAR BELAKANG GELEMBUNG --- */
#bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1eff5 0%, #e4eaf5 50%, #f1eff5 100%);
    z-index: -1; 
}

.bubble {
    position: absolute;
    background-color: rgba(173, 216, 230, 0.4); 
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 12px rgba(173, 216, 230, 0.4); 
    pointer-events: none; 
}

@keyframes floatUp {
    0% { bottom: -10%; transform: translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    100% { bottom: 110%; transform: translateX(80px) scale(0.6); opacity: 0; }
}

/* --- KARTU UTAMA --- */
.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in; /* Transisi halus saat kartu muncul */
    z-index: 10;
}

.show-content {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 320px; 
    padding: 20px;
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px); /* Efek Kaca / Glassmorphism */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    object-fit: cover;
    aspect-ratio: 4/5; 
}

.text-content {
    text-align: center;
    padding-bottom: 10px;
}

.text-content h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 5px;
}

.text-content p {
    font-size: 0.85rem;
    color: #555;
}