* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Space Grotesk', sans-serif; -webkit-tap-highlight-color: transparent; }
:root { --bg-color: #faf3e0; --card-color: #b4d4ff; --border-color: #1a1a1a; --text-color: #1a1a1a; --white: #ffffff; --accent-color: #ffb8b8; --nav-bg: #e2f0cb; --box-yellow: #fff3c4; --shadow: 6px 6px 0px var(--border-color); }
body { background-color: var(--bg-color); color: var(--text-color); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; background-image: url('assets/background.png'); background-size: cover; background-position: center; background-attachment: fixed; position: relative; z-index: 1; padding-bottom: 120px; overflow-x: hidden; }
body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); z-index: -1; }
.card { 
    background-color: var(--card-color); 
    width: 90%; 
    max-width: 400px; 
    border: 4px solid var(--border-color); 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
    position: relative; 
    margin: 80px auto 0 auto; 
    padding: 135px 25px 30px 25px; 
    text-align: center; 
    transition: padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.profile-pic-container { position: absolute; top: -65px; left: 50%; transform: translateX(-50%); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 10; }
.profile-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background-color: var(--white); border: 4px solid var(--border-color); box-shadow: 4px 4px 0px var(--border-color); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.header-text { position: absolute; top: 65px; left: 50%; transform: translateX(-50%); width: 100%; text-align: center; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 10; }
.name { font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.subtitle { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.card.header-compact { 
    padding-top: 90px; 
    margin-top: 30px; 
}
.card.header-compact .profile-pic-container { top: 20px; left: 20px; transform: translateX(0); }
.card.header-compact .profile-pic { width: 50px; height: 50px; border-width: 3px; box-shadow: 2px 2px 0px var(--border-color); }
.card.header-compact .header-text { top: 25px; left: 85px; transform: translateX(0); width: calc(100% - 105px); text-align: left; }
.card.header-compact .name { font-size: 18px; margin-bottom: 0; }
.card.header-compact .subtitle { font-size: 11px; }
.content-area { 
    position: relative; 
    z-index: 1; 
    max-height: 60vh;
    overflow-y: auto; 
    padding-bottom: 20px;
    padding-right: 5px;
}
.content-area::-webkit-scrollbar { display: none; }
.content-area { -ms-overflow-style: none; scrollbar-width: none; }
.content-section { display: none; animation: fadeIn 0.4s ease forwards; }
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-title { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; text-align: left; border-bottom: 3px solid var(--border-color); padding-bottom: 5px; display: inline-block; }
.quote-box { background-color: var(--white); border: 3px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 0px; box-shadow: 4px 4px 0px var(--border-color); }
.quote-text { font-size: 15px; line-height: 1.5; font-weight: 600; font-style: italic; color: #333; }
.quote-author { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; text-align: right; color: #555; }
.music-wrapper { width: 90%; max-width: 400px; margin-top: 20px; animation: fadeIn 0.4s ease forwards; }
.music-player { background-color: var(--box-yellow); border: 4px solid var(--border-color); border-radius: 12px; padding: 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 15px; }
.record-container { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.record-image { width: 100%; height: 100%; border-radius: 8px; border: 3px solid var(--border-color); object-fit: cover; transition: all 0.5s ease; }
.record-image.playing { border-radius: 50%; animation: spin 4s linear infinite; }
.record-image.loading { filter: brightness(0.5); }
@keyframes spin { 100% { transform: rotate(360deg); } }
.loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 24px; display: none; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.8)); z-index: 2; }
.loading-spinner.active { display: block; animation: fastSpin 1s linear infinite; }
@keyframes fastSpin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.music-info { flex-grow: 1; text-align: left; overflow: hidden; }
.track-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.track-artist { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 8px; }
.music-controls { display: flex; align-items: center; gap: 10px; }
.ctrl-btn { background-color: var(--white); border: 2px solid var(--border-color); border-radius: 50%; width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 2px 2px 0px var(--border-color); transition: all 0.1s; }
.ctrl-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px var(--border-color); }
.progress-container { width: 100%; height: 8px; background-color: var(--white); border: 2px solid var(--border-color); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background-color: var(--accent-color); transition: width 0.1s linear; }
.biodata-box { background-color: var(--box-yellow); border: 3px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 20px; box-shadow: 4px 4px 0px var(--border-color); text-align: left; }
.bio-item { font-size: 14px; margin-bottom: 8px; line-height: 1.4; }
.bio-item:last-child { margin-bottom: 0; }
.bio-label { font-weight: 700; margin-right: 5px; }
.story-box { background-color: var(--white); border: 3px solid var(--border-color); border-radius: 8px; padding: 18px; box-shadow: 4px 4px 0px var(--border-color); text-align: left; }
.story-box p { font-size: 14px; line-height: 1.6; margin-bottom: 12px; font-weight: 600; color: #222; }
.story-box p:last-child { margin-bottom: 0; }
.waifu-note { font-size: 14px; font-weight: 700; background-color: var(--white); border: 3px solid var(--border-color); padding: 8px 15px; border-radius: 20px; display: inline-block; margin-bottom: 15px; box-shadow: 3px 3px 0px var(--border-color); }
.waifu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 10px; }
.waifu-card { background-color: var(--white); border: 3px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 4px 4px 0px var(--border-color); position: relative; cursor: pointer; }
.waifu-img-container { width: 100%; aspect-ratio: 1/1; position: relative; background-color: #ddd; }
.waifu-img-container img { width: 100%; height: 100%; object-fit: cover; }
.waifu-unknown { background-color: var(--accent-color); display: flex; justify-content: center; align-items: center; height: 100%; font-size: 40px; font-weight: bold; color: var(--border-color); }
.waifu-name { font-size: 12px; font-weight: 700; padding: 8px 5px; border-top: 3px solid var(--border-color); background-color: var(--box-yellow); }
.waifu-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.8); color: var(--white); display: flex; justify-content: center; align-items: center; font-size: 13px; font-weight: 700; text-align: center; padding: 10px; opacity: 0; transition: opacity 0.2s ease; }
.waifu-card.show-overlay .waifu-overlay { opacity: 1; }

/* --- TIMELINE PENGALAMAN & PERJALANAN (Sudah Presisi & Rapi) --- */
.timeline { position: relative; margin: 20px 0; text-align: left; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 20px; width: 4px; background: var(--border-color); z-index: 1; }
.timeline-item { position: relative; margin-bottom: 25px; padding-left: 45px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 8px; top: 0; width: 28px; height: 28px; background: var(--white); border: 4px solid var(--border-color); border-radius: 50%; z-index: 2; }
.timeline-year { display: inline-block; background-color: var(--accent-color); border: 3px solid var(--border-color); padding: 5px 15px; border-radius: 15px; font-weight: 700; font-size: 14px; margin-bottom: 12px; box-shadow: 2px 2px 0px var(--border-color); position: relative; z-index: 3; }
.timeline-content { background-color: var(--white); border: 3px solid var(--border-color); border-radius: 8px; padding: 15px; box-shadow: 4px 4px 0px var(--border-color); position: relative; z-index: 3; }
.timeline-content p { font-size: 13px; font-weight: 600; line-height: 1.6; color: #222; margin: 0; }

.contact-desc { text-align: center; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-btn { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; background-color: var(--white); color: var(--text-color); text-decoration: none; border: 3px solid var(--border-color); border-radius: 50%; font-size: 20px; box-shadow: 3px 3px 0px var(--border-color); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) { .social-btn:hover { background-color: var(--accent-color); transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border-color); } }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 10px; }
.game-thumbnail { background-color: var(--box-yellow); border: 3px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: 4px 4px 0px var(--border-color); cursor: pointer; transition: transform 0.2s; }
.game-thumbnail:hover { transform: translateY(-3px); }
.game-cover { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-bottom: 3px solid var(--border-color); }
.game-title { font-size: 13px; font-weight: 700; padding: 10px 5px; text-align: center; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-card { background-color: var(--white); width: 90%; max-width: 350px; border: 4px solid var(--border-color); border-radius: 12px; padding: 25px; box-shadow: 8px 8px 0px var(--accent-color); text-align: center; position: relative; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 24px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; color: var(--border-color); }
.modal-desc { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 20px; background-color: var(--box-yellow); padding: 15px; border-radius: 8px; border: 3px solid var(--border-color); text-align: left; }
.loading-container { width: 100%; height: 20px; background-color: var(--bg-color); border: 3px solid var(--border-color); border-radius: 10px; margin-bottom: 10px; overflow: hidden; position: relative; }
.loading-bar { width: 0%; height: 100%; background-color: var(--accent-color); transition: width 0.5s ease; }
.loading-status { font-size: 12px; font-weight: 700; margin-bottom: 20px; color: #555; }
.modal-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-play { background-color: var(--nav-bg); color: var(--border-color); border: 3px solid var(--border-color); font-weight: 700; font-size: 16px; padding: 12px; border-radius: 8px; box-shadow: 3px 3px 0px var(--border-color); cursor: pointer; transition: all 0.2s; }
.btn-play:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px var(--border-color); }
.btn-play:disabled { background-color: #ddd; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-cancel { background-color: transparent; border: none; font-weight: 600; font-size: 14px; color: #666; cursor: pointer; padding: 5px; text-decoration: underline; }
.bottom-nav { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background-color: var(--nav-bg); border: 4px solid var(--border-color); border-radius: 50px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; padding: 8px; z-index: 100; width: 95%; max-width: 450px; overflow: hidden; }
.nav-item { text-decoration: none; color: var(--text-color); display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 30px; font-weight: 700; font-size: 17px; border: 3px solid transparent; cursor: pointer; transition: all 0.15s ease-out; }
.nav-text { font-size: 14px; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; padding: 0; transition: max-width 0.15s ease-out, padding 0.15s ease-out, opacity 0.1s ease-out; }
.nav-item.active { background-color: var(--white); border: 3px solid var(--border-color); box-shadow: 2px 2px 0px var(--border-color); transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }
.nav-item.active .nav-text { max-width: 85px; opacity: 1; padding-left: 6px; transition: max-width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease-in 0.1s; }
.nav-item.reverse { flex-direction: row-reverse; }
.nav-item.reverse.active .nav-text { padding-left: 0; padding-right: 6px; }
@media screen and (max-width: 480px) { .bottom-nav { width: 95%; padding: 6px; } .nav-item { padding: 8px; font-size: 15px; } .nav-item.active { padding: 8px 10px; } .nav-item.active .nav-text { font-size: 12px; } .nav-item.reverse.active .nav-text { padding-right: 5px; } }