@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* =========================================
   1. PALET WARNA (LIGHT & DARK MODE)
========================================= */
:root {
    --brand-primary: #0060ff;
    --brand-secondary: #00d2a1;
    --bg-main: #f8fafc;       
    --bg-card: #ffffff;       
    --text-heading: #0f172a;  
    --text-body: #475569;     
    --border-color: rgba(226, 232, 240, 0.8);
}

[data-bs-theme="dark"] {
    --bg-main: #0f172a;       
    --bg-card: #1e293b;       
    --text-heading: #f8fafc;  
    --text-body: #94a3b8;     
    --border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================
   2. PENGATURAN DASAR & MEDIA QUERY FIX
========================================= */
html, body {
    overflow-x: hidden; /* Mencegah layar bergeser ke samping di HP */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

/* =========================================
   3. NAVBAR
========================================= */
.navbar-custom {
    background: linear-gradient(135deg, #1814e0 0%, #0060ff 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 96, 255, 0.2);
    border-bottom: none;
}
.navbar-custom .navbar-brand { color: #ffffff !important; }
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 4px 8px;
    transition: 0.3s;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: #ffffff !important;
}

/* =========================================
   4. KOMPONEN UI & RESPONSIVE SPACING
========================================= */
.card-modern {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 96, 255, 0.1);
    border-color: rgba(0, 96, 255, 0.2);
}

.btn-primary-modern {
    background: var(--brand-secondary); 
    color: #0f172a;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary-modern:hover {
    background: #00e5af;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 161, 0.3);
}

.hero-mesh {
    background: radial-gradient(at 0% 0%, rgba(0, 96, 255, 0.08) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(0, 210, 161, 0.08) 0px, transparent 50%);
    padding: 100px 0 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 2.5rem 2.5rem;
}

.footer-modern { background-color: #020617; color: #cbd5e1; }
.footer-modern h5, .footer-modern h6 { color: white; }

/* =========================================
   5. KHUSUS MEDIA QUERIES (TAMPILAN MOBILE)
========================================= */
@media (max-width: 991.98px) {
    .hero-mesh {
        padding: 50px 0 40px 0;
        text-align: center;
        border-radius: 0 0 1.5rem 1.5rem;
    }
    
    .hero-mesh h1 {
        font-size: 2.2rem !important;
    }

    .hero-mesh .d-flex.gap-3 {
        justify-content: center;
    }

    .hero-mesh img {
        height: 280px !important;
        margin-top: 2rem;
    }

    /* Penyesuaian padding card agar tidak terlalu lebar di layar HP */
    .card.p-4, .card.p-md-5, .card-modern.p-4, .card-modern.p-md-5 {
        padding: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
}

/* =========================================
   6. SMART OVERRIDES (DARK MODE)
========================================= */
[data-bs-theme="dark"] .text-dark { color: var(--text-heading) !important; }
[data-bs-theme="dark"] .text-muted { color: var(--text-body) !important; }
[data-bs-theme="dark"] .bg-white { background-color: var(--bg-card) !important; }
[data-bs-theme="dark"] .bg-light { background-color: rgba(255, 255, 255, 0.03) !important; }
[data-bs-theme="dark"] .shadow-sm, [data-bs-theme="dark"] .shadow, [data-bs-theme="dark"] .shadow-lg { box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important; }