:root {
    --bg-gradient-top: #e0f2fe;
    --bg-gradient-bottom: #fce7f3;
    --card-bg: #ffffff;
    --text-light: #333333;
    --text-muted: #666666;
    --primary-color: #2a6c8e;
    --accent-color: #2a6c8e;
    --border-color: #2a6c8e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Clouds Animation */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    animation: floatClouds linear infinite;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}
.cloud-1 { width: 120px; height: 40px; top: 15%; left: -150px; animation-duration: 35s; }
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 15px; }
.cloud-1::after { width: 70px; height: 70px; top: -35px; left: 45px; }

.cloud-2 { width: 180px; height: 60px; top: 40%; left: -200px; animation-duration: 45s; animation-delay: 5s; }
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.cloud-2::after { width: 100px; height: 100px; top: -50px; left: 65px; }

.cloud-3 { width: 100px; height: 30px; top: 75%; left: -120px; animation-duration: 25s; animation-delay: 15s; }
.cloud-3::before { width: 40px; height: 40px; top: -20px; left: 15px; }
.cloud-3::after { width: 50px; height: 50px; top: -25px; left: 40px; }

@keyframes floatClouds {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(120vw); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 100;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px rgba(42, 108, 142, 0.2);
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    background: var(--primary-color);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--border-color);
    color: #ffffff;
    transition: transform 0.1s;
}
.hamburger:active { transform: scale(0.9); box-shadow: 1px 1px 0px var(--border-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-links a.active {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0px var(--border-color);
    transform: scale(1.05);
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.tab-content {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeInTab 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.tab-content.active {
    display: flex;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0px rgba(42, 108, 142, 0.2);
    animation: bounceTitle 2s ease-in-out infinite;
}

@keyframes bounceTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Chat Bubble Container */
.chat-bubble-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}
.chat-bubble {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--accent-color);
    box-shadow: 4px 4px 0px var(--border-color);
    position: relative;
    max-width: 90%;
    text-align: center;
    line-height: 1.5;
    animation: floatBubble 4s ease-in-out infinite;
    transition: all 0.3s ease; 
}
.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--border-color);
}
.chat-bubble::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20%;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--card-bg);
    z-index: 1;
}

.typing-cursor {
    font-weight: bold;
    color: var(--primary-color);
    animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Karakter Lebih Hidup & Interaktif (Animasi Klik Dinamis) */
.hero-character {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.hero-character img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    margin-bottom: -10px;
    position: relative;
    z-index: 2;
    animation: floatCharacter 3.5s ease-in-out infinite, breathCharacter 2s ease-in-out infinite alternate;
    filter: drop-shadow(5px 5px 0px rgba(42, 108, 142, 0.2));
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-character.clicked img {
    animation: none;
    transform: scale(1.12) translateY(-15px) rotate(-4deg);
}

@keyframes floatCharacter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes breathCharacter {
    0% { transform: scale(1); }
    100% { transform: scale(1.015); }
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}

/* Efek Hati Melayang Saat Karakter Diklik */
.heart-effect {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}
.heart-effect.show {
    transform: translate(-50%, -90px) scale(1.4);
    opacity: 1;
}

/* Floating Music Player (Tombol Putih Terang Kontras) */
.floating-music-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-music-fab {
    width: 55px;
    height: 55px;
    background: #ffffff;
    color: var(--primary-color);
    border: 3px solid #000000;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.2s ease, background 0.2s;
    animation: bounceFab 3s ease-in-out infinite;
}

.floating-music-fab:hover {
    background: #f0f9ff;
    transform: scale(1.1);
}

@keyframes bounceFab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.music-panel {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 280px;
    box-shadow: 4px 4px 0px var(--border-color);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.music-disc {
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    background: #e0f2fe;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s linear;
}

.music-disc.playing {
    animation: spinDisc 3s linear infinite;
}

@keyframes spinDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.music-text {
    display: flex;
    flex-direction: column;
}

.music-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.music-status {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.music-action-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid #000000;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    transition: transform 0.1s, background 0.2s;
}

.music-action-btn:hover {
    background: #337fA6;
}

.music-action-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000000;
}

/* Cards */
.intro-card {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 5px 5px 0px var(--border-color);
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 7px 7px 0px var(--border-color);
}

.intro-card h1, .intro-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.intro-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Button Primary */
.btn-primary {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid #000000;
    border-radius: 12px;
    box-shadow: 4px 4px 0px #000000;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}
.btn-primary:hover {
    background: #337fA6;
}
.btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px #000000;
}

/* Ripple */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(42, 108, 142, 0.4);
    transform: scale(0);
    pointer-events: none;
    z-index: 9999;
}
.ripple.animate {
    animation: rippleAnim 0.4s linear;
}
@keyframes rippleAnim {
    to { transform: scale(3); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 2rem;
        right: 2rem;
        background: var(--card-bg);
        border: 3px solid var(--border-color);
        box-shadow: 5px 5px 0px var(--border-color);
        border-radius: 12px;
        padding: 1rem;
        animation: dropdownAnim 0.3s ease forwards;
    }
    @keyframes dropdownAnim {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links.active { display: flex; }
    .hero-character img { max-height: 380px; }
    }
