/* --- Reset & Gaya Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2b2b2b;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Gaya Navbar Desktop --- */
.navbar {
    width: 90%;
    max-width: 800px;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* Efek Sticky */
    position: sticky;
    top: 20px;
    z-index: 1001;

    /* Efek Liquid Glass (Glassmorphism) */
    background-color: rgba(68, 68, 68, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-links li {
    margin-right: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a.active {
    background-color: #f0f0f0;
    color: #2b2b2b;
}

.nav-links a:not(.active):hover {
    color: #4caf50;
}

.lang-switcher {
    display: flex;
    align-items: center;
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: bold;
}

.lang-switcher span {
    padding: 8px;
    cursor: pointer;
}

.lang-switcher .active-lang {
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Tombol Hamburger (Default Sembunyi) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.hamburger-btn .icon-close {
    display: none;
}

/* --- Gaya Hero Section (Home) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 90%;
    max-width: 1000px;
    margin-top: 100px;
    padding: 20px;
    min-height: calc(100vh - 120px);
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-family: 'Kalam', cursive;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.hero-text .interests {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #45a049;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Gaya Ikon Sosial & QR Popup --- */
.social-icons {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.social-icons a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #4caf50;
    transform: scale(1.1);
}

/* Pemicu QR */
.qr-trigger {
    position: relative;
}

.social-icons {
    position: relative;
}

/* Popup QR (Default Sembunyi) */
.qr-popup {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 140px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

 .qr-popup img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Tampilkan QR saat hover */
.qr-trigger:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tampilkan QR saat aktif (klik) */
.qr-trigger.qr-active .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Kontainer Halaman Lain (Project/Writing) --- */
.page-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 120px);
    margin-top: 100px;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
}

/* Kartu "Coming Soon" */
.coming-soon-card {
    background-color: #333;
    padding: 50px 80px;
    border-radius: 20px;
    border: 1px solid #444;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    
    /* Animasi */
    animation-name: subtle-pulse;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.coming-soon-card h2 {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 10px;
}

.coming-soon-card p {
    font-size: 1.5rem;
    color: #f0f0f0;
}

/* Animasi Pulse */
@keyframes subtle-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

/* --- GAYA HALAMAN ABOUT (DESKTOP) --- */
.about-page-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    width: 90%;
    max-width: 1000px;
    margin-top: 100px;
    padding: 20px;
    min-height: calc(100vh - 120px);
    align-items: flex-start;
}

/* Kolom Kiri (Teks) */
.about-content {
    flex: 1.5;
}

/* Judul (Nama) */
.about-content h2 {
    font-size: 2.8rem;
    color: #f0f0f0;
    margin-bottom: 25px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Paragraf */
.about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
}

/* Kolom Kanan (Gambar) */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #444;
    object-fit: cover;
}

/* Action Buttons (Donasi & NGL) */
.action-buttons {
    flex: 1 1 100%;
    display: flex;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.donasi-btn,
.ngl-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    background-color: #4caf50;
    color: white;
    position: relative;
}

.donasi-btn:hover,
.ngl-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.donasi-btn {
    position: relative;
}

/* Spotify Playlist Embed */
.spotify-playlist {
    flex: 1 1 100%;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.spotify-playlist iframe {
    width: 100%;
    max-width: 100%;
}

/* --- Gaya Footer --- */
.site-footer {
    width: 100%;
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 80px;
    padding: 30px 0;
    background-color: #222222;
}

.site-footer p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- MULAI KODE RESPONSIVE UNTUK MOBILE --- */
@media (max-width: 768px) {
    /* --- Perbaikan Navbar Mobile --- */
    .navbar {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 800px;
        margin: 0;
        border-radius: 25px;
        padding: 15px 20px;
        background-color: rgba(68, 68, 68, 0.6);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        z-index: 1001;
        justify-content: space-between;
    }

    /* Tampilkan Tombol Hamburger dan Sembunyikan Konten Desktop */
    .hamburger-btn {
        display: block;
    }

    .navbar-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(68, 68, 68, 0.8);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        border-radius: 0 0 25px 25px;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    /* Tampilkan current page title di kiri */
    .current-page {
        display: block;
        font-weight: bold;
        font-size: 1.1rem;
        color: #f0f0f0;
    }

    /* Atur Link & Bahasa di Dalam Menu Dropdown */
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 12px 0;
        width: 100%;
    }

    .lang-switcher {
        margin-top: 10px;
        font-size: 1rem;
    }

    /* --- GAYA SAAT MENU TERBUKA --- */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .navbar-content {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Tukar ikon di tombol */
    body.menu-open .hamburger-btn .icon-hamburger {
        display: none;
    }

    body.menu-open .hamburger-btn .icon-close {
        display: block;
    }

    /* --- Perbaikan Hero Section (Halaman Home) --- */
    .hero-section {
        flex-direction: column-reverse;
        margin-top: 0;
        padding-top: 120px;
        text-align: center;
        min-height: calc(100vh - 80px);
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-text .interests {
        font-size: 1.2rem;
    }

    .hero-image {
        max-width: 200px;
        margin-bottom: 30px;
        z-index: 0;
    }

    .social-icons {
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    /* --- Perbaikan Halaman Lain (Project & Writing) --- */
    .page-content-container {
        margin-top: 0;
        padding-top: 120px;
        min-height: calc(100vh - 80px);
    }

    .coming-soon-card {
        padding: 40px 20px;
        margin: 20px;
    }

    .coming-soon-card h2 {
        font-size: 1.8rem;
    }

    .coming-soon-card p {
        font-size: 1.1rem;
    }

    /* --- Perbaikan Halaman About untuk Mobile --- */
    .about-page-container {
        flex-direction: column;
        gap: 30px;
        margin-top: 0;
        padding-top: 120px;
        min-height: auto;
    }

    .about-content h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .about-image {
        padding-top: 0;
        order: -1;
    }
    
    .about-image img {
        aspect-ratio: 3 / 4;
        max-width: 300px;
    }

    .action-buttons {
        margin-top: 20px;
        flex-direction: row;
        gap: 10px;
    }

    .donasi-btn,
    .ngl-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .spotify-playlist {
        margin-top: 20px;
        width: 100%;
    }

    /* --- Perbaikan Footer --- */
    .site-footer {
        margin-top: 40px;
        padding: 20px 0;
    }

    .site-footer p {
        font-size: 0.85rem;
        padding: 0 15px;
    }
}
/* --- AKHIR KODE RESPONSIVE UNTUK MOBILE --- */