/* ==========================================================================
   ULTIMATE PAC ENTERPRISE STYLING ENGINE - PRODUCTION BUILD V8.2
   ========================================================================== */

/* 1. ENTERPRISE VARIABLE DESIGN SYSTEM (UPDATED TO PARKER CHARCOAL & GOLD) */
:root {
    --primary: #ffbf00;          /* Parker Gold */
    --parker-gold: #ffbf00;      /* Parker Gold Extra */
    --dark: #0f1115;             /* Deep Shadow */
    --dark2: #131922;            /* Core Charcoal Base */
    --dark3: #1b2430;            /* Control Card Dark */
    --parker-charcoal: #1a1a1a;  /* Pure Parker Charcoal */
    --parker-darkGray: #242424;  /* Widget Interior Gray */
    --white: #ffffff;
    --text: #aab4c5;
    --success: #2fff6d;          /* Dashboard Operational Green */
    --danger: #ff4d4d;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* @import core dependencies */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;700;900&display=swap');

/* 2. BASE RESET ENGINE & CORE SKELETON */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* PERBAIKAN RESET GLOBAL: Menghilangkan paksa efek biru mengambang link bawaan browser */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* 20. INDUSTRIAL COMMAND BACKGROUND GRID ENGINE */
body.industrial-theme {
    position: relative;
}

.industrial-grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    pointer-events: none;
    z-index: 0;
}

/* Multi-layer atmospheric gradient lighting */
.ambient-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 191, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-2 {
    position: fixed;
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.01) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Reusable Utilities Shared Classes */
.font-mono { font-family: var(--font-mono) !important; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--text); opacity: 0.65; }
.text-success { color: var(--success) !important; }
.text-blue { color: #3b82f6 !important; }
.text-pink { color: #ec4899 !important; }
.text-purple { color: #a855f7 !important; }
.text-orange { color: #f97316 !important; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.padding-y { padding-top: 5rem; padding-bottom: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.w-full { width: 100%; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.pb-2 { padding-bottom: 0.5rem; }

/* REUSABLE STYLES FOR CORE UTILITIES */
.bg-parker-charcoal { background-color: var(--parker-charcoal) !important; }
.bg-parker-gold { background-color: var(--parker-gold) !important; }
.text-parker-charcoal { color: var(--parker-charcoal) !important; }
.bg-parker-darkGray { background-color: var(--parker-darkGray) !important; }

/* 1. ENTERPRISE LOADER TRANVERSION */
.loader-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--dark);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    width: 280px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
    border-radius: 50%;
    animation: enterprise-spin 0.75s linear infinite;
    margin: 0 auto 1.5rem;
}

.loader-text {
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.loader-bar-track {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    transition: width 0.1s linear;
}

/* ==========================================================================
   3. SYSTEM CONTROL NAVIGASI HEADER STANDAR HORIZONTAL
   ========================================================================== */
.enterprise-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem; /* Tinggi padding ramping */
    background-color: var(--parker-charcoal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    /* Mengaktifkan transisi animasi vertikal yang smooth saat sembunyi-muncul */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

/* TRICK TRANSISI SMARTPHONE: Kelas pemicu menyembunyikan header secara halus saat scroll ke bawah */
.enterprise-navbar.header-hidden {
    transform: translateY(-100%);
}

/* LIS KUNING EMAS HEADER: Menjamin garis emas parker melintang solid tepat di bawah header */
.border-b-gold-line {
    border-bottom: 4px solid var(--parker-gold) !important;
}

.nav-container-hub {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Kiri: Blok Logo Identitas */
.nav-brand-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo-container {
    width: 90px;          
    height: 90px;         
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;     
}

.nav-logo-hub {
    max-width: 100%;      
    max-height: 100%;     
    object-fit: contain;  
}

.brand-text-hub {
    display: flex;
    flex-direction: column;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title-text {
    font-weight: 900;
    font-size: 14px;      
    letter-spacing: 0.025em;
}

.badge-version {
    font-size: 8.5px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-sub-text {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 1px;
}

/* Tengah: Menu Navigasi */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu-hub {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-link-hub {
    color: #9ca3af;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-link-hub:hover, .nav-link-hub.active {
    color: var(--white);
}

.nav-link-hub::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link-hub.active::after, .nav-link-hub:hover::after {
    width: 100%;
}

/* ==========================================================================
   4. HERO COMMAND CENTER PLATFORM UI
   ========================================================================== */
.enterprise-wrapper {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 10;
}

.hero-compact-layout {
    padding-top: 5.5rem !important; 
    margin-top: 2rem; 
    position: relative;
    
    background-image: linear-gradient(rgba(15, 17, 21, 0.88), rgba(15, 17, 21, 0.92)), url('../../images/gedung-pac.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 24px;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-bottom: 4rem !important;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85), 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-central-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-operational-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    margin-top: 0;
    padding-top: 0;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.industrial-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-top: 1.5rem;
    max-width: 680px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-cta-blocks {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 2.5rem;
    width: 100%;
}

/* Reusable buttons component system */
.btn-premium-cta {
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255, 191, 0, 0.15);
    transition: var(--transition);
}

.btn-premium-cta:hover {
    background-color: #e6ac00;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 191, 0, 0.25);
}

.btn-premium-cta svg {
    width: 14px;
    height: 14px;
}

.btn-outline-cta {
    background: transparent;
    border: 1px solid var(--border) !important;
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline-cta:hover {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.15) !important;
}

.btn-outline-cta svg {
    width: 14px;
    height: 14px;
}

.live-metrics-strip {
    display: flex;
    gap: 1.5rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    margin-top: 3.5rem;
    width: 100%;
    max-width: 750px;
}

.metric-mini-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.m-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.3);
}

.m-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

/* 23. GLASSMORPHISM CORE CARD HIERARCHY */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

/* 5. CLIENT STRIP REGISTER */
.client-strip-wrapper {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    width: 100%;
}

.client-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.client-logos-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 1rem;
}

.client-logo-item {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
    opacity: 0.4;
    user-select: none;
    transition: var(--transition);
}

.client-logo-item:hover {
    opacity: 0.8;
    color: var(--white);
}

/* 6. ABOUT SECTION FRAMEWORK */
.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-tag-center {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.15em;
    display: block;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 6px;
    padding: 0;
}

.accent-line-center {
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    margin: 12px auto 0;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-image-frame {
    position: relative;
    padding: 10px;
    aspect-ratio: 16/10;
}

.img-responsive-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.85;
}

.frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    pointer-events: none;
}

.frame-corner.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.frame-corner.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.industrial-blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(255, 191, 0, 0.02);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
    color: var(--white);
}

/* Operational Widget inside About */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.widget-card-glass {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.w-icon-box {
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w-icon-box.yellow { background: rgba(255, 191, 0, 0.08); color: var(--primary); }
.w-icon-box.blue { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.w-icon-box.green { background: rgba(47, 255, 109, 0.08); color: var(--success); }
.w-icon-box svg { width: 16px; height: 16px; }

.w-desc {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 4px;
}

/* 7. OPERATIONAL SERVICES INTEGRATION */
.service-card-glass {
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.service-card-glass:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.015);
    border-color: rgba(255,255,255,0.12);
}

.s-card-icon svg {
    width: 28px;
    height: 28px;
}

/* 10. REALTIME OPERATIONAL CARDS (ANALYTICS KPI) */
.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.kpi-widget-card {
    padding: 1.25rem;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.3);
}

.kpi-header svg {
    width: 14px;
    height: 14px;
}

.kpi-main-num {
    font-size: 32px;
    font-weight: 900;
    margin: 8px 0;
    line-height: 1 !important;
}

.kpi-footer-status {
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-footer-status svg {
    width: 10px;
    height: 10px;
}

.text-muted-status {
    color: var(--text);
    opacity: 0.4;
}

/* Chart block components */
.panel-header-mini {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

/* 33. ANIMATED CHART BARS CONSOLE */
.animated-chart-bars-container {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 2rem 0;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.chart-bar-vertical-track {
    width: 24px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
}

.chart-bar-vertical-fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: chart-grow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-purple { background-color: #a855f7 !important; }

/* 17. PREMIUM FOOTER SECTION */
.enterprise-footer {
    border-top: 4px solid var(--parker-gold);
    padding: 0.5rem 0;
    margin-top: 4rem;
}

/* GPU ACCELERATED ANIMATIONS KEYFRAMES */
@keyframes enterprise-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   18. MOBILE SYSTEM PLATFORM RESPONSIVE (SMARTPHONE PULL-TO-REVEAL ENGINE)
   ========================================================================== */
@media (max-width: 1200px) {
    .enterprise-navbar { 
        padding: 0.5rem 1.5rem; 
    }
    .enterprise-wrapper { 
        padding: 0 2rem; 
    }
    .nav-menu-hub {
        gap: 1.25rem; 
    }
    .nav-link-hub { 
        font-size: 11.5px; 
    }
    .brand-title-text {
        font-size: 13px;
    }
    .brand-sub-text {
        font-size: 9px;
    }
}

@media (max-width: 991px) {
    /* SMARTPHONE BEHAVIOR: Header disetel fixed agar bisa naik-turun otomatis dipicu skrip JS */
    .enterprise-navbar {
        position: fixed !important; 
        top: 0;
        left: 0;
        padding: 1rem !important;
    }

    .grid-2-cols, .grid-3-cols, .grid-4-cols {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    /* Menu navigasi tersusun rapi di tengah pada smartphone */
    .nav-container-hub {
        flex-direction: column !important; 
        gap: 14px;
        text-align: center;
        justify-content: center;
    }
    .nav-brand-block {
        flex-direction: column;
        gap: 8px;
    }
    .brand-title-row {
        justify-content: center;
    }
    /* Memastikan Home, About, dll tetap tersusun sentral di tengah pada smartphone */
    .nav-menu-hub {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-section { padding: 2rem 0; }
    .hero-compact-layout { padding-top: 12rem !important; margin-top: 0; } /* Menghindari tabrakan fixed header mobile */
    .hero-operational-title { font-size: 38px; }
    .hero-cta-blocks { flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
    .live-metrics-strip { flex-direction: column; gap: 16px; }
    .about-image-frame { order: -1; }
    .client-logos-flex { justify-content: center; gap: 2rem; }
}

@media (max-width: 576px) {
    .enterprise-navbar { padding: 1rem; }
    .enterprise-wrapper { padding: 0 1rem; }
    .partners-row-flex { flex-direction: column; gap: 8px; }
}

/* Fleet Partners Micro Tag */
.fleet-partners-scroller-grid {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.partners-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-tag {
    color: var(--text);
    opacity: 0.35;
    transition: var(--transition);
}

.partner-tag:hover {
    opacity: 0.75;
}