/* --- CSS VARIABLES --- */
:root {
    --bg-gradient: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e2e8f0 100%);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #0f172a;
    
    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(20px);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden; 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* --- ORBS DEKORASI --- */
.orb {
    position: fixed; 
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.6;
}
.orb-1 { width: 300px; height: 300px; background: #dbeafe; top: -50px; left: -50px; }
.orb-2 { width: 300px; height: 300px; background: #f3e8ff; bottom: -50px; right: -50px; }

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
    cursor: pointer;
}

.splash-content {
    position: relative;
    display: inline-block;
}

.splash-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent-color);
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: 0;
    padding-right: 25px; 
    cursor: pointer;
}

/* --- INDIKATOR KLIK --- */
.click-indicator {
    position: absolute;
    bottom: -15px;
    right: -15px; 
    opacity: 0;
    animation: fadeInSimple 1s ease 0.4s forwards;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.tap-circle {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: rippleEffect 2s infinite ease-out; 
    z-index: 1;
}

.tap-icon-wrapper {
    position: relative;
    z-index: 2;
    animation: tapGesture 1.5s infinite ease-in-out; 
}

.tap-icon {
    width: 20px;
    height: 20px;
    color: #1e293b;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes rippleEffect {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); opacity: 0.8; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.6); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); opacity: 0; }
}

@keyframes tapGesture {
    0%, 100% { transform: scale(1) rotate(-10deg); } 
    50% { transform: scale(0.85) rotate(-10deg) translateY(3px); } 
}

/* --- CONTAINER UTAMA --- */
.glass-card {
    position: relative;
    z-index: 10; 
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- PROFILE --- */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative; 
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--accent-color);
}

.info-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.pill i {
    width: 14px;
    height: 14px;
    color: var(--text-primary);
}

/* --- FORM --- */
.form-section {
    width: 100%;
    margin-top: 2rem;
}

/* --- BAGIAN YANG DIUBAH (CENTERING LABEL) --- */
.form-label {
    display: flex;
    align-items: center;
    justify-content: center; /* Tambahan untuk menengahkan */
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    /* padding-left: 5px;  <-- Dihapus agar benar-benar tengah */
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 20px;
    padding: 18px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    min-height: 160px;
    resize: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    position: relative; /* PENTING: Untuk referensi posisi */
}

textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

textarea::placeholder {
    color: #94a3b8;
}

.submit-btn {
    margin-top: 16px;
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.2);
    position: relative; /* PENTING: Untuk referensi posisi */
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(15, 23, 42, 0.3);
    background: #1e293b;
}

.submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.status-msg {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

footer {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.7;
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInSimple {
    to { opacity: 1; }
}

/* --- STICKMAN CANVAS LAYER --- */
#canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Agar klik tembus ke elemen di bawahnya */
    z-index: 999;
}
