/* Variabel Warna Global (Light Mode) */
:root {
    --text-color: #1a1a1a;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --modal-bg: rgba(255, 255, 255, 0.85);
    /* WARNA BARU UNTUK OVERLAY LIGHT MODE */
    --bg-overlay: rgba(255, 255, 255, 0.75); 
}

/* Variabel Warna Dark Mode */
body.dark-theme {
    --text-color: #f0f0f0;
    --nav-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --modal-bg: rgba(30, 30, 30, 0.85);
    /* WARNA BARU UNTUK OVERLAY DARK MODE */
    --bg-overlay: rgba(18, 18, 18, 0.85); 
}

/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Styling Body dengan Background Global */
body {
    color: var(--text-color);
    transition: color 0.4s ease;
    
    /* Memanggil gambar filosofis ke seluruh halaman */
    background-image: url('../assets/images/hero-philosophical.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Membuat gambar diam saat di-scroll */
    
    position: relative;
    z-index: 0;
}

/* Lapisan Kaca Buram Dinamis */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(20px); /* Semakin besar angkanya, semakin buram gambarnya */
    -webkit-backdrop-filter: blur(20px);
    z-index: -1; /* Memastikan lapisan ini ada di belakang teks tapi di depan gambar */
    transition: background-color 0.4s ease;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px); /* Efek Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain; /* Mencegah PNG 512px pecah/distorsi */
}

.brand-name {
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: inherit;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 1;
}

/* Toggles (Theme & Lang) */
.nav-toggles {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid var(--glass-border);
    padding-left: 1.5rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 500;
}
.lang-text .dim {
    opacity: 0.4;
    transition: opacity 0.3s;
}

/* --- MODAL SUPPORT --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--modal-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.support-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-btn {
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    transition: transform 0.2s;
}
.support-btn:hover { transform: translateY(-2px); }
.kofi { background-color: #13C3FF; }
.saweria { background-color: #E4A951; }

/* --- APPS & PAGE LAYOUT --- */
.page-container {
    padding: 120px 3rem 4rem; /* Ruang untuk navbar */
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Glassmorphism Card untuk App Showcase */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--modal-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.app-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
.app-desc { opacity: 0.8; margin-bottom: 1.5rem; line-height: 1.6; }
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--text-color);
    color: var(--nav-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; }

/* Tipografi untuk Privacy Policy & Teks Panjang */
.content-text h2 { margin: 2rem 0 1rem; font-weight: 500; }
.content-text p, .content-text ul { opacity: 0.85; line-height: 1.7; margin-bottom: 1rem; }
.content-text ul { padding-left: 1.5rem; }

/* --- STYLING LOGO POCKETCHECK (OTOMATIS TUMPUL) --- */
.app-icon-small {
    width: 64px;
    height: 64px;
    border-radius: 16px; /* Memotong sudut tajam gambar secara otomatis */
    margin-bottom: 1.2rem;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px; /* Sudut tumpul proporsional untuk ukuran lebih besar */
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Penyesuaian responsif layar HP agar logo tidak terlalu besar */
@media (max-width: 768px) {
    .app-header {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .app-icon-large {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
}

/* Styling Lencana Play Store */
.play-store-badge {
    height: 48px; /* Tinggi yang sejajar dengan tombol CSS Anda */
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.play-store-badge:hover {
    transform: scale(1.05); /* Efek membesar sedikit saat di-hover */
}

/* Mengatur wadah agar tombol-tombol sejajar ke tengah secara vertikal */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center; 
    margin-top: 1.5rem;
}