:root {
    --primary-blue: #0066FF;
    --primary-yellow: #FFD700;
    --dark-blue: #003366;
    --light-blue: #E0F7FA;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    height: auto;
    min-height: 100%;
}

body {
    /* Agar background tidak putus/putih saat scroll, kita buat fixed */
    background: linear-gradient(180deg, #FFFDE7 0%, #A5F3FC 100%); 
    background-attachment: fixed;
    background-size: cover;
    
    /* Layout */
    margin: 0;
    padding: 0;
    width: 100%;
    
    /* PENTING: Gunakan min-height agar body bisa memanjang melebihi layar */
    min-height: 100vh; 
    
    /* Flexbox untuk menengahkan konten secara horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Ganti 'center' menjadi 'flex-start' agar bagian atas/bawah tidak terpotong */
    justify-content: flex-start; 
    
    /* Mencegah geser kanan-kiri */
    overflow-x: hidden;
    
    /* Font */
    font-family: 'Poppins', sans-serif;
    color: #333;
    
    /* Beri jarak di bagian bawah agar konten paling bawah tidak mentok layar */
    padding-bottom: 50px;
}

/* Matikan shape animasi jika ingin tampilan bersih seperti poster, 
   atau biarkan tapi warnanya disesuaikan */
.shape-1 {
    background: radial-gradient(circle, #FFF59D, transparent 70%); /* Kuning */
}
.shape-2 {
    background: radial-gradient(circle, #4FC3F7, transparent 70%); /* Biru */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Animated Background Shapes --- */
.shapes-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(50px);
    opacity: 0.6;
    animation: floatShape 20s infinite alternate;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Glass Container (Main Card) --- */
.glass-container {
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 30px;
    width: 90%;
    max-width: 650px;
    box-shadow: var(--shadow);
    text-align: center;
    
    /* PERUBAHAN DISINI: */
    /* Margin auto kiri-kanan, dan margin atas yang cukup agar tidak nempel plafon */
    margin: 60px auto 40px auto; 
    
    transition: transform 0.3s ease;
}

/* --- Logos --- */
.logos-wrapper {
    background: white;
    padding: 12px 25px; /* Sedikit dikurangi paddingnya */
    border-radius: 50px;
    
    /* Flexbox agar sejajar */
    display: flex;
    justify-content: center; 
    align-items: center;
    
    /* Jarak antar logo dikurangi agar muat */
    gap: 15px; 
    
    /* Agar container ada di tengah */
    margin: 0 auto 30px auto;
    
    /* Pastikan lebar menyesuaikan isi tapi tidak melebihi layar */
    width: fit-content;
    max-width: 95%; 
    
    /* Biarkan wrap (turun) HANYA jika di HP sangat kecil */
    flex-wrap: wrap; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo-img {
    /* Ukuran diperkecil sedikit agar 4 logo muat sebaris */
    height: 28px; 
    width: auto; /* Lebar otomatis proporsional */
    max-width: 100px; /* Batasi lebar maksimal logo yang panjang */
    
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.3s;
}

.logo-img.main-logo {
    height: 45px; /* Logo Helphin lebih besar */
    filter: none;
    opacity: 1;
}

.logo-img:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .logos-wrapper {
        gap: 10px; /* Jarak lebih rapat di HP */
        padding: 10px 15px;
    }
    .logo-img {
        height: 24px; /* Logo lebih kecil di HP */
    }
}

/* --- Typography --- */
.text-header {
    margin-bottom: 20px;
}

.welcome-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 1;
    margin: 0;
    
    /* STYLE BARU: Biru Solid + Outline Putih + Shadow Kuning */
    color: #0066FF; /* Biru Helphin */
    -webkit-text-fill-color: #0066FF;
    background: none; 
    
    /* Outline Putih Tebal (Efek Stiker) */
    -webkit-text-stroke: 8px #ffffff;
    paint-order: stroke fill;
    
    /* Shadow Kuning agar Pop-up */
    text-shadow: 
        4px 4px 0px #FFD700; 
    
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.badge-gen {
    display: inline-block;
    background: #0066FF;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Posisi nempel ke Welcome */
    transform: translateY(-15px);
    z-index: 3;
    position: relative;
    
    /* Border putih agar misah dari teks welcome */
    border: 3px solid #ffffff;
    box-shadow: 0 4px 0px #FFD700; /* Shadow kuning */
}

.sub-title {
    color: #003366; /* Biru Gelap */
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

/* --- Input Section --- */
.search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

input[type="number"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border-radius: 15px;
    border: 2px solid #ddd;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

input[type="number"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

button#btnCheck {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    background: #0066FF; /* Biru Helphin */
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    
    /* Efek tombol timbul */
    box-shadow: 0 4px 0px #0044AA; 
}
button#btnCheck:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #0044AA;
}

button#btnCheck:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0px #0044AA;
}

/* --- Quote Box --- */
.quote-box {
    background: #FFF9C4;
    border-left: 5px solid var(--primary-yellow);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.highlight {
    background: rgba(255, 255, 255, 0.6);
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 800;
    color: var(--primary-blue);
}

/* --- Result Card --- */
.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.status-success { background: #E8F5E9; color: #2E7D32; }
.status-fail { background: #FFEBEE; color: #C62828; }
.status-unknown { background: #FFF3E0; color: #EF6C00; }

.dept-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--light-blue);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px dashed var(--primary-blue);
}

.wa-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 15px;
    transition: transform 0.2s;
}

.wa-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* --- Mascots --- */
.mascot {
    position: absolute;
    width: 140px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    z-index: 20;
    transition: all 0.3s;
    pointer-events: none; /* Agar tidak mengganggu sentuhan layar saat scroll */
}

.mascot-left {
    bottom: -20px;
    left: -80px;
    transform: rotate(-10deg);
}

.mascot-right {
    top: 50px;
    right: -70px;
    transform: rotate(10deg);
}

/* --- Footer --- */
.footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer a {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-blue);
}

.copyright {
    color: white;
    font-size: 0.8rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hidden { display: none; }

/* --- RESPONSIVE MOBILE (Penting!) --- */
@media (max-width: 768px) {
    .glass-container {
        width: 95%;
        padding: 30px 20px;
        margin: 20px 0;
    }

    .logos-wrapper {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .logo-img { height: 25px; }
    .logo-img.main-logo { height: 35px; }

    .welcome-text { font-size: 3.5rem; }
    .sub-title { font-size: 1.2rem; }

    /* Layout Pencarian jadi vertikal di HP */
    .search-box {
        flex-direction: column;
    }

    .input-wrapper, button#btnCheck {
        width: 100%;
        max-width: 100%;
    }

    /* Maskot dipindah posisinya agar tidak menutupi teks */
    .mascot { width: 100px; opacity: 0.8; pointer-events: none; /* Agar tidak mengganggu sentuhan layar saat scroll */}
    .mascot-left { left: -30px; bottom: auto; top: -50px; }
    .mascot-right { right: -30px; top: auto; bottom: -50px; }
}

@media (max-width: 380px) {
    .welcome-text { font-size: 2.8rem; }
}

/* KHUSUS TAMPILAN HP (Mobile) - Update Bagian Ini */
@media (max-width: 480px) {
    .glass-container {
        width: 90%; /* Sedikit dikecilkan agar ada jarak aman kiri kanan */
        padding: 30px 15px;
        margin: 40px 0; /* Tambah margin atas bawah agar tidak mepet layar */
    }

    .logos-wrapper {
        flex-wrap: nowrap; 
        gap: 6px; 
        padding: 8px 12px;
        width: 100%; 
        max-width: 100%;
        justify-content: space-evenly; 
    }

    .logo-img {
        height: 20px; 
        width: auto;
    }
    
    /* --- PERBAIKAN TULISAN WELCOME --- */
    .text-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px; /* Memberi jarak antar elemen teks */
    }

    .welcome-text { 
        font-size: 2.8rem; /* Sedikit dikecilkan agar muat */
        line-height: 1.1; /* Jarak baris diperbaiki */
        margin-bottom: 5px; /* Dorong elemen bawahnya sedikit */
    }

    .badge-gen {
        /* Hapus efek naik ke atas yang bikin nutupin tulisan */
        transform: none; 
        position: relative;
        top: 0;
        
        font-size: 0.8rem; /* Kecilkan sedikit font badge */
        padding: 5px 15px;
        margin-bottom: 5px;
    }
    
    .sub-title { 
        font-size: 1.1rem; 
        margin-top: 5px;
    }
    /* -------------------------------- */
    
    .search-box {
        flex-direction: column;
    }
    
    .input-wrapper, button#btnCheck {
        width: 100%;
    }

    /* Maskot di HP */
    .mascot { width: 90px; opacity: 0.8; }
    /* Pastikan posisi maskot tidak terlalu keluar layar */
    .mascot-left { left: -10px; top: -30px; bottom: auto; }
    .mascot-right { right: -10px; top: auto; bottom: -30px; }
}