/* --- RESET GLOBAL UNTUK MOBILE --- */
* {
    /* Ini yang hapus warna biru pas diklik di HP */
    -webkit-tap-highlight-color: transparent;
    
    /* Ini biar teks gak gampang ke-select pas lagi scroll (opsional tapi keren) */
    -webkit-touch-callout: none;
    
    /* Memastikan box-sizing tetap aman */
    box-sizing: border-box;
}

/* Biar gak ada garis kotak (outline) pas diklik di desktop juga */
*:focus {
    outline: none;
}

/* --- VARIABLE SYSTEM (Sync with your Index) --- */
:root {
    --primary: #007AFF;
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    --radius: 28px;

    /* DARK MODE */
    --bg: #000000;
    --bg-image: radial-gradient(circle at top right, #1c1c1e, transparent), radial-gradient(circle at bottom left, #0a0a0a, transparent);
    --card: rgba(28, 28, 30, 0.7);
    --text: #f5f5f7;
    --text-sub: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.light-mode {
    --bg: #f2f2f7; 
    --bg-image: radial-gradient(circle at top right, #ffffff, transparent 70%), radial-gradient(circle at bottom left, #e5e5ea, transparent 70%);
    --card: rgba(255, 255, 255, 0.7); 
    --text: #1d1d1f;
    --text-sub: #86868b;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* --- BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg); 
    background-image: var(--bg-image);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}
.container { width: 92%; max-width: 900px; margin: 0 auto; }

/* --- NAV --- */
.nav { 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .nav { background: rgba(255,255,255,0.7); }

.nav-wrapper { height: 70px; display: flex; justify-content: space-between; align-items: center; }

.back-btn {
    text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.back-btn:hover { color: var(--primary); transform: translateX(-4px); }

.logo { font-size: 20px; font-weight: 800; color: var(--text); }
.logo span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.status-web { 
    font-size: 10px; font-weight: 800; color: #34C759; 
    background: rgba(52, 199, 89, 0.1); padding: 6px 14px; border-radius: 20px;
}

/* --- HERO --- */
.hero { padding: 80px 0 40px; text-align: center; }
.badge {
    display: inline-block; padding: 6px 16px; background: var(--primary-gradient);
    color: white; border-radius: 30px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 8vw, 48px); font-weight: 800; letter-spacing: -1.5px; }
.hero h1 span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-sub); margin-top: 10px; font-size: 18px; }

/* --- GLASS CARD & CONTENT --- */
.glass-card {
    background: var(--card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    margin-bottom: 60px;
}

.legal-grid { display: flex; flex-direction: column; gap: 35px; }

.legal-item { display: flex; gap: 20px; align-items: flex-start; }

.card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--border-color); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; font-size: 20px;
}

.legal-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.legal-text p { font-size: 15px; color: var(--text-sub); }

.highlight .card-icon { background: rgba(255, 59, 48, 0.1); color: #FF3B30; }

.update-note {
    margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border-color);
    text-align: center; font-size: 12px; color: var(--text-sub); font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .glass-card { padding: 25px; }
    .legal-item { flex-direction: column; gap: 15px; }
    .card-icon { width: 40px; height: 40px; font-size: 18px; }
}


/* FOOTER */
.footer-pro { background: var(--card); border-top: 1px solid var(--border-color); padding: 60px 0 40px; margin-top: 80px; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.system-tag { font-size: 10px; font-weight: 800; color: var(--text-sub); letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }

.footer-stats { display: flex; gap: 40px; }
.stat-box { display: flex; flex-direction: column; }
.stat-label { font-size: 9px; font-weight: 800; color: var(--text-sub); letter-spacing: 1.5px; margin-bottom: 4px; }
.stat-value { font-family: 'SF Mono', monospace; font-size: 14px; font-weight: 700; color: var(--text); }
.status-online { color: #34C759; display: flex; align-items: center; gap: 6px; }
.status-online::before { content: ''; width: 6px; height: 6px; background: #34C759; border-radius: 50%; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border-color); }
.copyright { font-size: 10px; font-weight: 700; color: var(--text-sub); letter-spacing: 1px; }
.social-links-pro a { color: var(--text); font-size: 18px; margin-left: 20px; opacity: 0.6; transition: 0.3s; }
.social-links-pro a:hover { opacity: 1; color: var(--primary); }

/* DEVELOPER SECTION STYLING */
/* FOOTER DEVELOPER SECTION */
/* --- FOOTER DEVELOPER SECTION (ORIGINAL RETAINED) --- */
.footer-developer {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.dev-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.dev-info {
    display: flex;
    flex-direction: column;
}

/* LINK PORTFOLIO STYLING */
.dev-name-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    transition: transform 0.3s ease;
}

.dev-name-link:hover {
    transform: translateY(-2px);
}

/* TEXT GRADIENT */
.dev-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
    /* Tetap pakai var(--text) agar otomatis ganti warna jika variabelmu berubah */
    background: linear-gradient(135deg, var(--text) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

/* ANIMASI GARIS: KANAN KE KIRI */
.dev-name-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    /* Menggunakan gradien biru ke warna teks utama */
    background: linear-gradient(to left, #38bdf8, var(--text));
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.dev-name-link:hover::after {
    width: 100%;
    left: 0;
}

/* GLOW EFFECT SAAT HOVER */
.dev-name-link:hover .dev-name {
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.4));
}

.dev-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sub);
    opacity: 0.7;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- LIGHT MODE ADAPTATION --- */
/* Menyesuaikan elemen spesifik saat mode light aktif */
body.light-mode .dev-name {
    /* Di mode terang, kita pastikan warna teks dasar adalah hitam/gelap agar gradiennya terlihat */
    background: linear-gradient(135deg, #0f172a 0%, #007AFF 100%);
    -webkit-background-clip: text;
}

body.light-mode .dev-name-link::after {
    /* Garis underline disesuaikan agar lebih kontras di background putih */
    background: linear-gradient(to left, #007AFF, #0f172a);
}

body.light-mode .dev-status {
    color: #475569; /* Abu-abu yang lebih gelap agar terbaca */
    opacity: 0.9;
}

/* RESPONSIVITAS (ASLI + PENYESUAIAN) */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-stats, 
    .footer-developer, 
    .dev-profile {
        align-items: center;
        justify-content: center;
    }

    .dev-info {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .social-links-pro a {
        margin: 0 10px;
    }
}
/* LEGAL LINKS (TOS & PRIVACY) */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-sub);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    opacity: 0.6;
}

.legal-link:hover {
    opacity: 1;
    color: #38bdf8; /* Warna biru biar sinkron sama nama developer */
}

/* Warna separator default (Mode Gelap) */
.separator {
    font-size: 12px;
    color: var(--card-border); /* Mengikuti border card agar halus */
    opacity: 0.5;
    user-select: none;
    transition: color 0.3s ease;
}

/* KHUSUS LIGHT MODE */
/* Pastikan ini diletakkan setelah definisi .separator asli */
body.light-mode .separator {
    color: #000000; /* Titik jadi hitam pekat */
    opacity: 0.3;    /* Dikasih opacity dikit biar gak terlalu kontras/galak */
}

/* Pastikan teks link legal juga menyesuaikan di Light Mode */
body.light-mode .legal-link {
    color: #000000; 
}

body.light-mode .legal-link:hover {
    color: #38bdf8; /* Tetap biru biar konsisten brandingnya */
    opacity: 1;
}

/* Penyesuaian Responsivitas (Tambahkan di dalam media query 768px kamu) */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px; /* Kurangi gap biar gak terlalu panjang */
    }
    
    .footer-legal {
        order: 2; /* Taruh di tengah-tengah saat mode HP */
    }
    
    .social-links-pro {
        order: 3;
    }
    
    .copyright {
        order: 1;
    }
}