/* --- Google Fonts Import (Wajib untuk standar global) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-dark: #020617;   /* Slate 950: Sangat profesional & stabil */
    --accent-blue: #3b82f6;    /* Electric Blue: Modern & Tech-oriented */
    --accent-green: #10b981;   /* Emerald 500: Sukses & Aman */
    --accent-red: #ef4444;     /* Red 500: Urgency & Alert */
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;    /* Slate 500 */
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Global Professional Typography --- */
h1, h2, h3, h4, .footer-logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

/* --- HEADER (Modern Glass Effect) --- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(2, 6, 23, 0.8); /* Gelap transparan */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    transition: 0.3s;
}

.toggle-btn:hover { color: var(--accent-blue); }

/* --- SIDEBAR (Fixed Enterprise Style) --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    padding-top: 80px;
    /* Gunakan transition transform agar lebih halus */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100; /* Pastikan di atas konten */
    border-right: 1px solid #e2e8f0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.02);
    transform: translateX(0); /* Posisi default: muncul */
}

/* Logic Hide: Sidebar bergeser ke kiri keluar layar */
.sidebar.hide { 
    transform: translateX(-260px); 
}

/* --- MAIN CONTENT AREA --- */
.content {
    /* Margin kiri default sama dengan lebar sidebar */
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Transisi margin-left harus sama durasinya dengan sidebar */
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logic Full: Content bergeser ke kiri memenuhi bekas ruang sidebar */
.content.full { 
    margin-left: 0 !important; 
}

/* --- RESPONSIVE MOBILE (768px kebawah) --- */
@media(max-width:768px){
    .sidebar { 
        transform: translateX(-260px); 
    }
    
    .sidebar.show { 
        transform: translateX(0); 
    }

    .content { 
        margin-left: 0 !important; /* Di mobile konten selalu memenuhi layar */
        padding: 20px; 
    }
}
/* --- MAIN CONTENT AREA --- */
.content {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.4s ease;
}

.content.full { margin-left: 0; }

/* --- PROFESSIONAL CARD (Bento Style) --- */
.card, .gov-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card:hover, .gov-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}

/* --- THE GLOBAL FOOTER (High-End Corporate) --- */
.global-footer {
    background-color: var(--primary-dark);
    color: #f8fafc;
    padding: 80px 0 40px;
    margin-top: 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo { color: #ffffff; font-size: 1.5rem; margin-bottom: 20px; }
.footer-logo span { color: var(--accent-blue); }

.brand-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--accent-blue); padding-left: 8px; }

/* Trust Badges / ISO Tags */
.compliance-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.iso-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* --- RESPONSIVE & OVERLAY --- */
@media(max-width:768px){
    .sidebar { transform: translateX(-260px); }
    .sidebar.show { transform: translateX(0); }
    .content { margin-left: 0; padding: 20px; }
    
    .sidebar.show ~ .content::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 998;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(2, 6, 23, 0.9);
        backdrop-filter: blur(15px);
        padding: 12px 0;
        z-index: 1001;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
/* Pastikan kontras tinggi untuk teks di dalam panel gelap */
.hero-info-card h2, .hero-info-card h4, .hero-info-card p {
    color: #ffffff !important; /* Paksa teks menjadi putih */
}

.hero-info-card .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Perbaikan pergeseran layout */
.content {
    margin-left: 260px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content.full {
    margin-left: 0 !important;
}
