@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DAFTAR ISI CSS:
   1.  CSS Variables & Base Reset
   2.  Glassmorphism & Shape Utilities
   3.  Header & Desktop Navigation
   4.  Mobile Sidebar & Accordion Menu
   5.  Hero Section & Liquid Blobs
   6.  UI Components (Buttons, Tags)
   7.  Layouts & Sections (Home Page)
   8.  Page: Profil & Sejarah
   9.  Page: Susunan Pengurus
   10. Page: Data Pimpinan
   11. Footer
   12. Mobile Bottom Navigation (Floating Dock)
   13. Global AI Chatbot (NU-Bot)
   14. Animations
   15. Global Responsive Adjustments
   ========================================================================== */

/* =========================================
   1. CSS VARIABLES & BASE RESET
   ========================================= */
:root {
    /* Brand Colors */
    --nu-green: #086A39;
    --nu-green-dark: #06532d;
    --nu-green-light: rgba(8, 106, 57, 0.08);
    --nu-gold: #C88124;
    --nu-gold-light: rgba(200, 129, 36, 0.12);
    
    /* Light Theme (Apple Aesthetic) */
    --bg-color: #f2f5f8;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.dark-mode {
    /* Dark Theme Overrides */
    --bg-color: #000000;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --glass-bg: rgba(30, 30, 32, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --card-bg: rgba(28, 28, 30, 0.85);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    transition: background-color 0.5s ease, color 0.5s ease; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s ease; 
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* Sleek Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 10px; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #48484a; }
::-webkit-scrollbar-thumb:hover { background: var(--nu-green); }

/* =========================================
   2. GLASSMORPHISM & SHAPE UTILITIES
   ========================================= */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(8, 106, 57, 0.12);
    border-color: rgba(8, 106, 57, 0.2);
}
body.dark-mode .hover-lift:hover { 
    box-shadow: 0 20px 40px rgba(8, 106, 57, 0.3); 
}

.pill-shape { border-radius: 100px; }
.rounded-box { border-radius: 24px; }

/* =========================================
   3. HEADER & DESKTOP NAVIGATION
   ========================================= */
.glass-header-wrapper {
    position: fixed; 
    top: 20px; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    display: flex; 
    justify-content: center; 
    padding: 0 20px; 
    pointer-events: none; 
}

.header-container {
    pointer-events: auto; 
    width: 100%; 
    max-width: 1200px; 
    padding: 12px 24px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container.scrolled {
    padding: 10px 20px; 
    background: var(--glass-bg); 
    max-width: 1100px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.logo-img { height: 30px; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

/* Nav Links */
.desktop-nav .nav-links { display: flex; gap: 28px; align-items: center; }
.desktop-nav li { position: relative; font-weight: 600; font-size: 0.9rem; }
.desktop-nav a { display: flex; align-items: center; gap: 6px; }
.desktop-nav a:hover { color: var(--nu-green); }

/* Dropdown Menu (iOS Animation) */
.dropdown-menu {
    position: absolute; 
    top: calc(100% + 15px); 
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    min-width: 240px; 
    opacity: 0; 
    visibility: hidden; 
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    transform-origin: top center;
}
.dropdown:hover .dropdown-menu {
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown-menu li a {
    padding: 12px 18px; 
    border-radius: 14px; 
    font-weight: 500; 
    font-size: 0.85rem; 
    transition: all 0.2s ease;
}
.dropdown-menu li a:hover { 
    background: var(--nu-green-light); 
    color: var(--nu-green); 
    transform: translateX(4px); 
}

/* Utilities */
.header-utils { display: flex; align-items: center; gap: 14px; }
.live-time { display: flex; flex-direction: column; text-align: right; margin-right: 12px; }
.time-greeting { font-size: 0.8rem; font-weight: 700; color: var(--nu-green); }
.time-date { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.search-bar {
    display: flex; align-items: center; padding: 8px 18px; overflow: hidden; transition: background 0.3s ease;
}
.search-bar:focus-within { background: var(--card-bg); }
.search-bar input {
    border: none; background: transparent; outline: none; color: var(--text-main);
    width: 0; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 0; font-size: 0.9rem;
}
.search-bar:focus-within input { width: 180px; padding-right: 10px; }
.search-bar button { background: none; border: none; cursor: pointer; color: var(--text-main); font-size: 1.2rem; }
.search-bar button:hover { color: var(--nu-green); }

.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: var(--text-main); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.icon-btn:hover { transform: scale(1.08) rotate(5deg); }
.mobile-only { display: none; }
/* =========================================
   RESPONSIVE MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    /* Mengecilkan ukuran logo di tampilan mobile */
    .logo-img { 
        height: 25px; /* Ubah angka ini sesuai selera, default desktopnya 30px */
    }
    
    /* Memastikan padding header ikut menyesuaikan agar tidak terlalu memakan tempat di HP */
    .header-container {
        padding: 10px 15px;
    }
    
    /* Jika .header-container.scrolled aktif, sesuaikan juga padding-nya */
    .header-container.scrolled {
        padding: 8px 15px;
    }
}

/* =========================================
   4. MOBILE SIDEBAR & ACCORDION MENU
   ========================================= */
.mobile-sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 2500;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar-content {
    position: absolute; right: -100%; top: 0; width: 85%; max-width: 360px; height: 100vh;
    padding: 30px 24px; transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; gap: 24px; border-radius: 30px 0 0 30px;
}
.mobile-sidebar-overlay.active .mobile-sidebar-content { right: 0; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; }
.sidebar-logo { height: 30px; }

.mobile-live-time {
    background: var(--nu-green-light); padding: 18px; border-radius: 18px;
    font-size: 0.85rem; font-weight: 600; text-align: center; color: var(--nu-green); line-height: 1.6;
}

.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-bottom: 50px; }
.mobile-nav-links a {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    border-radius: 18px; font-weight: 600; transition: all 0.3s ease; 
    border: 1px solid transparent; color: var(--text-main);
}
.mobile-nav-links a:hover { 
    background: var(--nu-green-light); color: var(--nu-green); 
    border-color: rgba(8, 106, 57, 0.15); transform: translateX(6px);
}
.mobile-nav-links i { font-size: 1.5rem; }

/* Accordion Menu */
.mobile-dropdown-toggle {
    display: flex; align-items: center; justify-content: space-between; 
    padding: 16px 18px; border-radius: 18px; font-weight: 600; 
    cursor: pointer; transition: all 0.3s ease; color: var(--text-main);
    border: 1px solid transparent;
}
.mobile-dropdown-toggle:hover { background: var(--nu-green-light); color: var(--nu-green); }
.mobile-dropdown-toggle i:first-child { font-size: 1.5rem; margin-right: 16px; }
.mobile-dropdown-toggle .drop-arrow { margin-left: auto; font-size: 1.2rem; transition: transform 0.3s ease; }

.mobile-dropdown-menu {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.02); border-radius: 0 0 16px 16px; margin: 0 10px;
}
body.dark-mode .mobile-dropdown-menu { background: rgba(255,255,255,0.02); }

.mobile-dropdown-menu li a {
    padding: 12px 18px 12px 50px; font-size: 0.9rem; font-weight: 500;
    border-radius: 0; border: none; background: transparent;
}
.mobile-dropdown-menu li a:hover { color: var(--nu-green); padding-left: 55px; }

.mobile-dropdown.active .mobile-dropdown-toggle { color: var(--nu-green); }
.mobile-dropdown.active .drop-arrow { transform: rotate(180deg); }
.mobile-dropdown.active .mobile-dropdown-menu { max-height: 300px; }

/* =========================================
   5. HERO SECTION & LIQUID BLOBS
   ========================================= */
.hero-section { position: relative; padding: 180px 0 100px; overflow: hidden; }
.hero-container {
    display: flex; align-items: center; justify-content: space-between; gap: 50px;
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.hero-text { flex: 1.2; }
.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin: 20px 0;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-gold));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-text p { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); margin-bottom: 40px; max-width: 520px; line-height: 1.6; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { width: 100%; max-width: 550px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08)); }

.blob-green, .blob-gold {
    position: absolute; border-radius: 50%; filter: blur(100px); z-index: 1; opacity: 0.35;
    animation: pulseBlob 10s infinite alternate ease-in-out;
}
.blob-green { background: var(--nu-green); width: 500px; height: 500px; top: -150px; right: -100px; }
.blob-gold { background: var(--nu-gold); width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: 3s; }

/* =========================================
   6. UI COMPONENTS (BUTTONS, CARDS, TAGS)
   ========================================= */
.btn {
    padding: 16px 32px; border-radius: 100px; font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; border: none;
}
.btn-primary { background: var(--nu-green); color: #ffffff; box-shadow: 0 10px 25px rgba(8, 106, 57, 0.25); }
.btn-primary:hover { background: var(--nu-green-dark); transform: translateY(-4px); box-shadow: 0 15px 35px rgba(8, 106, 57, 0.35); }

.tag {
    font-size: 0.75rem; padding: 6px 16px; border-radius: 100px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px; display: inline-block; margin-bottom: 12px;
}
.tag-green { background: var(--nu-green-light); color: var(--nu-green); }
.tag-gold { background: var(--nu-gold-light); color: var(--nu-gold); }

/* Squircle Icon Style */
.squircle-icon { 
    width: 65px; height: 65px; border-radius: 20px; display: flex; align-items: center; 
    justify-content: center; font-size: 2.2rem; margin-bottom: 20px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

/* =========================================
   7. LAYOUT & SECTIONS (HOME PAGE)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.section-title { margin-bottom: 50px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.section-title p { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.1rem); line-height: 1.6; }
.grid-cards { display: grid; gap: 30px; }

/* Statistik Grid */
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stats-grid .glass-card { padding: 40px 20px; }
.stat-icon { font-size: 3.5rem; color: var(--nu-green); margin-bottom: 15px; }
.stat-number { font-size: 4rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; line-height: 1; letter-spacing: -2px; }
.stat-label { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* Proker Grid */
.proker-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.proker-card:hover .squircle-icon { transform: scale(1.1) rotate(-5deg); }
.proker-grid h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }
.proker-grid p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Layanan Grid */
.layanan-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.layanan-grid .glass-card { padding: 30px 15px; display: flex; flex-direction: column; align-items: center; }
.layanan-icon { width: 68px; height: 68px; background: var(--nu-green-light); color: var(--nu-green); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 18px; transition: all 0.3s ease; }
.layanan-grid .glass-card:hover .layanan-icon { background: var(--nu-green); color: white; transform: rotate(10deg) scale(1.1); box-shadow: 0 10px 20px rgba(8, 106, 57, 0.2); }
.layanan-grid h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); text-align: center; }

/* Banner Custom */
.banner-card { display: flex; align-items: center; justify-content: space-between; padding: 60px; gap: 40px; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(8, 106, 57, 0.2); }
.banner-content { flex: 1.2; z-index: 2; }
.banner-image { flex: 1; display: flex; justify-content: flex-end; z-index: 2; }

/* Berita Grid */
.berita-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid var(--glass-border); padding: 0; background: var(--card-bg); overflow: hidden; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: rgba(8, 106, 57, 0.3); }
.news-img-wrapper { width: 100%; height: 220px; overflow: hidden; position: relative; }
.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-img-wrapper img { transform: scale(1.08); }
.news-content { padding: 25px; }

/* Testimoni */
.testimoni-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.testimoni-grid .glass-card { padding: 40px; }
.testimoni-author img { border-radius: 16px; }

/* =========================================
   8. PAGE: PROFIL & SEJARAH
   ========================================= */
.profil-hero { padding: 150px 0 60px; position: relative; overflow: visible; }

/* iOS Segmented Tabs */
.ios-tabs-container { display: flex; justify-content: center; margin-top: 30px; }
.ios-segmented-control { display: inline-flex; background: rgba(0,0,0,0.04); padding: 6px; border-radius: 100px; backdrop-filter: blur(10px); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.4); box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); overflow-x: auto; max-width: 100%; white-space: nowrap; }
body.dark-mode .ios-segmented-control { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); }
.tab-btn { padding: 12px 28px; border-radius: 100px; font-weight: 700; font-size: 0.95rem; color: var(--text-muted); border: none; background: transparent; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { background: white; color: var(--nu-green); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
body.dark-mode .tab-btn.active { background: var(--card-bg); color: white; }

.tab-pane { display: none; animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.tab-pane.active { display: block; }

/* Vertical Timeline */
.modern-timeline { position: relative; padding-left: 40px; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.modern-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--nu-green-light), rgba(0,0,0,0.05), transparent); border-radius: 10px; }
body.dark-mode .modern-timeline::before { background: linear-gradient(to bottom, var(--nu-green-light), rgba(255,255,255,0.05), transparent); }

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -40px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-color); border: 3px solid var(--nu-green); display: flex; justify-content: center; align-items: center; z-index: 2; font-size: 0.9rem; color: var(--nu-green); box-shadow: 0 0 0 5px var(--bg-color); transition: 0.3s; }
.timeline-item:hover .timeline-dot { transform: scale(1.2); box-shadow: 0 5px 15px var(--nu-green-light); }
.timeline-dot.gold { border-color: var(--nu-gold); color: var(--nu-gold); }
.timeline-item:hover .timeline-dot.gold { box-shadow: 0 5px 15px var(--nu-gold-light); }
.timeline-card { padding: 25px; border-left: 4px solid transparent; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.timeline-card:hover { border-left-color: var(--nu-green); transform: translateX(5px); }
.timeline-card.gold-card:hover { border-left-color: var(--nu-gold); }

/* =========================================
   9. PAGE: SUSUNAN PENGURUS
   ========================================= */
.ksb-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.profile-card { display: flex; flex-direction: column; height: 100%; padding: 35px 20px; }
.profile-img-wrapper { width: 100%; aspect-ratio: 1/1; max-width: 160px; overflow: hidden; border-radius: 50%; margin: 0 auto 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 4px solid white; background: var(--nu-green-light); }
.profile-card h3 { font-size: 1.25rem; font-weight: 800; margin: 15px 0 5px; color: var(--text-main); }

.profile-socials { margin-top: 20px; display: inline-flex; justify-content: center; gap: 15px; padding: 10px 20px; background: var(--bg-color); border: 1px solid var(--glass-border); }
.profile-socials a { font-size: 1.4rem; color: var(--text-muted); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.profile-socials a:hover { transform: translateY(-3px) scale(1.1); }

.widget-header { display: flex; flex-direction: column; align-items: center; padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
body.dark-mode .widget-header { border-bottom: 1px solid rgba(255,255,255,0.05); }
.widget-leader-name { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin: 10px 0 5px; text-align: center; }
.widget-leader-role { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.ios-list { padding: 0; margin: 0; list-style: none; }
.ios-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px dashed rgba(0,0,0,0.05); transition: 0.3s; }
body.dark-mode .ios-list li { border-bottom: 1px dashed rgba(255,255,255,0.05); }
.ios-list li:last-child { border-bottom: none; }
.ios-list li:hover { background: rgba(0,0,0,0.02); padding-left: 25px; }
body.dark-mode .ios-list li:hover { background: rgba(255,255,255,0.02); }
.ios-list .role-badge { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
.ios-list .person-name { font-weight: 700; font-size: 0.95rem; color: var(--text-main); text-align: right; }

.dept-title { font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; line-height: 1.4; }
.mini-widget { background: var(--bg-color); border: 1px solid var(--glass-border); padding: 16px; border-radius: 20px; transition: transform 0.3s; }
.mini-widget:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* =========================================
   10. PAGE: DATA PIMPINAN (APP UI)
   ========================================= */
.app-container { padding: 0; display: flex; overflow: hidden; height: 75vh; min-height: 600px; border: 1px solid var(--glass-border); position: relative; }

.app-sidebar { width: 320px; border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; background: var(--glass-bg); z-index: 1; }
.sidebar-search { padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sidebar-search .search-bar { background: var(--card-bg); width: 100%; display: flex; align-items: center; justify-content: space-between; border: 1px solid transparent; transition: 0.3s; }
.sidebar-search .search-bar:focus-within { border-color: var(--nu-green); background: white; box-shadow: 0 0 0 3px var(--nu-green-light); }

.pac-list { list-style: none; flex: 1; overflow-y: auto; padding: 10px; margin: 0; }
.pac-list::-webkit-scrollbar { width: 4px; }
.pac-btn { width: 100%; text-align: left; padding: 14px 18px; border: none; background: transparent; border-radius: 16px; font-size: 0.95rem; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.pac-btn .pac-btn-content { display: flex; align-items: center; gap: 12px; }
.pac-btn .pac-btn-content i { font-size: 1.4rem; color: var(--nu-green); transition: 0.3s; }
.pac-btn:hover { background: rgba(8, 106, 57, 0.05); transform: translateX(5px); }
.pac-btn.active { background: var(--nu-green); color: white; box-shadow: 0 8px 20px rgba(8, 106, 57, 0.3); transform: translateX(5px); }
.pac-btn.active .pac-btn-content i, .pac-btn.active .arrow-icon { color: white !important; }

.app-content { flex: 1; background: var(--bg-color); position: relative; overflow-y: auto; overflow-x: hidden; }
.app-content::-webkit-scrollbar { width: 6px; }

.pac-detail-pane { display: none; padding: 40px; animation: fadeInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pac-detail-pane.active { display: block; }

.pane-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.content-search { background: var(--card-bg); padding: 8px 15px; border-radius: 100px; display: flex; align-items: center; border: 1px solid var(--glass-border); width: 250px; transition: 0.3s; }
.content-search:focus-within { border-color: var(--nu-gold); box-shadow: 0 0 0 3px rgba(200, 129, 36, 0.15); background: white; }
.content-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 0.9rem; color: var(--text-main); }

.pagination-container { display: flex; justify-content: center; gap: 8px; margin-top: 20px; width: 100%; }
.page-btn { width: 35px; height: 35px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--card-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; color: var(--text-main); transition: 0.3s; }
.page-btn:hover { background: var(--nu-green-light); color: var(--nu-green); }
.page-btn.active { background: var(--nu-green); color: white; border-color: var(--nu-green); box-shadow: 0 4px 10px rgba(8, 106, 57, 0.3); }
.hidden-item { display: none !important; }
.btn-back-mobile { display: none; background: transparent; border: none; color: var(--nu-green); font-size: 1rem; font-weight: 700; align-items: center; gap: 5px; cursor: pointer; margin-bottom: 15px; }

/* =========================================
   11. FOOTER
   ========================================= */
.main-footer { padding-bottom: 40px; position: relative; z-index: 10; }
.footer-wrapper { max-width: 1200px; margin: 40px auto 0; border-radius: 40px; padding: 70px 60px 40px; background: var(--card-bg); border: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 28px; color: var(--text-main); }
.brand-col .footer-logo { height: 35px; margin-bottom: 24px; }
.brand-col .footer-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; padding-right: 20px; }

/* Menyesuaikan Tombol Sosial Media */
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links .icon-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--text-main); background: rgba(255,255,255,0.5); border: 1px solid var(--glass-border); transition: 0.3s; }
.social-links .icon-btn:hover { background: var(--nu-green); color: white; transform: translateY(-3px) scale(1.05); border-color: var(--nu-green); }

.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; display: inline-flex; align-items: center; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.footer-links a::before { content: '\2192'; font-family: monospace; margin-right: 8px; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; color: var(--nu-green); }
.footer-links a:hover { color: var(--nu-green); transform: translateX(6px); }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 18px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--nu-green); background: var(--card-bg); border: 1px solid var(--glass-border); }

.footer-bottom { border-top: 1px dashed var(--glass-border); padding-top: 40px; display: flex; flex-direction: column; gap: 24px; text-align: center; }
.management-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.management-text strong { color: var(--nu-green); font-weight: 700; }
.copyright-area { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; }
.copy { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.developer-credit { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 0.9rem; font-weight: 600; color: var(--text-main); border-radius: 100px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.5); transition: 0.3s; }
.developer-credit:hover { background: var(--nu-green); color: white; border-color: var(--nu-green); }

/* =========================================
   RESPONSIVE FOOTER (MOBILE FRIENDLY)
   ========================================= */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-wrapper { padding: 50px 40px 30px; margin: 30px 20px 0; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-wrapper { padding: 40px 25px 25px; margin: 20px 15px 0; border-radius: 24px; }
    .brand-col .footer-desc { padding-right: 0; }
    
    .copyright-area { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
    .developer-credit { width: 100%; justify-content: center; }
}

/* =========================================
   12. MOBILE BOTTOM NAVIGATION (FLOATING DOCK)
   ========================================= */
.mobile-nav-wrapper { 
    display: none; position: fixed; bottom: 15px; left: 0; width: 100%; 
    z-index: 900; justify-content: center; padding: 0 15px; pointer-events: none; 
}
.mobile-bottom-nav { 
    pointer-events: auto; display: flex; justify-content: space-between; align-items: center; 
    width: 100%; max-width: 500px; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); 
    padding: 10px 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}
body.dark-mode .mobile-bottom-nav { background: rgba(30,30,30,0.85); }

.mobile-bottom-nav .nav-item { 
    display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-muted); 
    font-size: 0.65rem; font-weight: 600; text-decoration: none; transition: 0.3s; flex: 1; 
}
.mobile-bottom-nav .nav-item i { font-size: 1.5rem; transition: transform 0.3s; }
.mobile-bottom-nav .nav-item .custom-nav-icon { width: 22px; height: 22px; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: 0.3s; }

.mobile-bottom-nav .nav-item.active { color: var(--nu-green); }
.mobile-bottom-nav .nav-item.active i { font-weight: 800; transform: translateY(-3px); }
.mobile-bottom-nav .nav-item.active .custom-nav-icon { filter: grayscale(0%) opacity(1); transform: translateY(-3px); }

/* Tombol Home Tengah Melayang */
.mobile-bottom-nav .center-btn { position: relative; top: -25px; justify-content: center; flex: 1.2; }
.home-btn-wrapper { 
    width: 55px; height: 55px; background: linear-gradient(135deg, var(--nu-green), var(--nu-gold)); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; 
    box-shadow: 0 10px 20px rgba(8, 106, 57, 0.4); border: 4px solid var(--bg-color); 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
.center-btn:hover .home-btn-wrapper { transform: translateY(-5px) scale(1.05); }
.home-btn-wrapper i { font-size: 1.6rem !important; color: white !important; margin: 0 !important; }

/* =========================================
   13. GLOBAL AI CHATBOT & SCROLL TO TOP POSITIONS
   ========================================= */
/* Tombol Scroll To Top Default (Desktop) - Di kiri Chatbot */
.scroll-top { 
    position: fixed; bottom: 40px; right: 115px; 
    width: 50px; height: 50px; border-radius: 50%; background: var(--card-bg); 
    border: 1px solid var(--glass-border); color: var(--nu-green); font-size: 1.3rem; 
    display: flex; align-items: center; justify-content: center; cursor: pointer; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; 
    transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 998; 
}
.scroll-top:hover { background: var(--nu-green); color: white; transform: translateY(-5px); }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Chatbot FAB Default (Desktop) - Di pojok kanan bawah */
.chatbot-fab { 
    position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; border-radius: 50%; 
    background: linear-gradient(135deg, var(--nu-green), #06532d); color: white; 
    border: 4px solid var(--bg-color); box-shadow: 0 10px 25px rgba(8, 106, 57, 0.4); 
    font-size: 1.8rem; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 999; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.chatbot-fab:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 30px rgba(8, 106, 57, 0.6); }
.online-badge { position: absolute; top: 5px; right: 5px; width: 12px; height: 12px; background: #34c759; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 10px rgba(52, 199, 89, 0.8); animation: pulse 2s infinite; }

/* Jendela Chatbot */
.chatbot-window { 
    position: fixed; bottom: 115px; right: 40px; width: 360px; height: 500px; 
    max-height: calc(100vh - 140px); background: var(--card-bg); box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    display: flex; flex-direction: column; z-index: 1000; opacity: 0; visibility: hidden; 
    transform: translateY(20px) scale(0.95); transform-origin: bottom right; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; border: 1px solid var(--glass-border); 
}
.chatbot-window.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Komponen Dalam Jendela Chat */
.chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: linear-gradient(135deg, var(--nu-green), #06532d); color: white; }
.bot-info { display: flex; align-items: center; gap: 12px; }
.bot-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); }
.bot-text h4 { font-size: 1rem; margin-bottom: 2px; font-weight: 700; color: white;}
.online-status { font-size: 0.75rem; display: flex; align-items: center; gap: 5px; opacity: 0.9; }
.dot-green { width: 8px; height: 8px; background: #4cd964; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px #4cd964; }
.chatbot-header .icon-btn { color: white; width: 35px; height: 35px; background: transparent; border: none; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.chatbot-header .icon-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.chatbot-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: var(--bg-color); }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 0.9rem; line-height: 1.5; animation: fadeInUp 0.3s ease; }
.chat-bubble.bot { align-self: flex-start; background: var(--card-bg); border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.chat-bubble.user { align-self: flex-end; background: var(--nu-green); color: white; border-bottom-right-radius: 4px; box-shadow: 0 4px 10px rgba(8, 106, 57, 0.2); }

.chatbot-footer { padding: 15px; display: flex; gap: 10px; border-top: 1px solid var(--glass-border); background: var(--card-bg); }
.chatbot-footer input { flex: 1; padding: 12px 20px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--bg-color); color: var(--text-main); font-size: 0.9rem; outline: none; transition: border-color 0.3s; }
.chatbot-footer input:focus { border-color: var(--nu-green); }
.chatbot-footer .icon-btn { background: var(--nu-green); color: white; width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.chatbot-footer .icon-btn:hover { background: var(--nu-gold); transform: scale(1.1); }

/* =========================================
   RESPONSIVE MOBILE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    /* Munculkan Mobile Nav */
    .mobile-nav-wrapper { display: flex; }
    
    /* Pindahkan Chatbot FAB persis di atas Mobile Nav */
    .chatbot-fab { 
        bottom: 100px; /* Jarak aman di atas Dock */
        right: 20px; 
        width: 55px; 
        height: 55px; 
        font-size: 1.6rem; 
    }
    
    /* Pindahkan Scroll Top secara VERTIKAL di ATAS Chatbot FAB */
    .scroll-top { 
        bottom: 100px; /* 100px (chatbot) + 55px (tinggi chatbot) + 15px (jarak) */
        left: 25px;   /* Digeser sedikit ke kanan (25px) agar sejajar tengah dengan Chatbot (20px) */
        width: 45px; 
        height: 45px; 
        font-size: 1.2rem; 
    }
    
    /* Buka Jendela Chatbot (Penuhi Layar bawah HP, di atas dock) */
    .chatbot-window { 
        bottom: 100px; 
        right: 15px; 
        left: 15px; 
        width: auto; 
        max-width: none; 
        height: 65vh; /* Sedikit dilegakan */
    }
}

/* =========================================
   14. ANIMATIONS
   ========================================= */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes pulseBlob { 0% { transform: scale(1) translate(0, 0); opacity: 0.35; } 100% { transform: scale(1.1) translate(-20px, 20px); opacity: 0.55; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.7); } 70% { box-shadow: 0 0 0 10px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in-left { animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* =========================================
   15. GLOBAL RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 1024px) {
    .desktop-nav, .live-time { display: none; }
    .mobile-only { display: flex; }
    .search-bar:focus-within input { width: 140px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-container { flex-direction: column; text-align: center; padding-top: 60px; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    /* Typografi & Spacing */
    .hero-text h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
    
    /* Grid Adjustments */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stats-grid .glass-card:last-child { grid-column: span 2; }
    .layanan-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .layanan-grid .glass-card { padding: 24px 15px; }
    .ksb-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    
    /* Banners & Headers */
    .banner-card { flex-direction: column; text-align: center; padding: 40px 24px; border-radius: 32px; }
    .banner-image { justify-content: center; margin-top: 20px; }
    .banner-image img { transform: none !important; max-height: 250px; }
    .desktop-only { display: none !important; }
    .section-header { flex-direction: column; align-items: flex-start; }
    
    /* Footer */
    .footer-wrapper { padding: 50px 24px 40px; border-radius: 32px; margin: 20px 15px 120px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .copyright-area { flex-direction: column; justify-content: center; text-align: center; }
    
    /* Mobile Bottom Nav Integrations */
    .mobile-nav-wrapper { display: flex; }
    .scroll-top { bottom: 120px; right: 20px; } /* Lift above mobile nav */
    
    /* Chatbot Adjustments */
    .chatbot-fab { bottom: 105px; right: 20px; width: 55px; height: 55px; }
    .chatbot-window { bottom: 0; right: 0; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; z-index: 2000; border: none; transform: translateY(100%); }
    .chatbot-window.show { transform: translateY(0); }
    .chatbot-header { padding: 20px; border-radius: 0; }
    @supports (padding-bottom: env(safe-area-inset-bottom)) { .chatbot-footer { padding-bottom: calc(15px + env(safe-area-inset-bottom)); } }
    
    /* Timeline Adjustments */
    .modern-timeline { padding-left: 30px; }
    .modern-timeline::before { left: 10px; }
    .timeline-dot { left: -30px; width: 24px; height: 24px; font-size: 0.7rem; box-shadow: 0 0 0 3px var(--bg-color); }
    .timeline-card { padding: 20px; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 80px !important; padding-right: 0 !important; left: 0 !important; }
    .timeline-item:nth-child(even) .timeline-dot { left: 10px !important; }
    .timeline-item:nth-child(odd) .timeline-dot { left: 10px !important; right: auto !important; }
    
    /* App UI (Pimpinan) Adjustments */
    .app-container { flex-direction: column; min-height: auto; height: 80vh; }
    .app-sidebar { width: 100% !important; height: 100%; border-right: none !important; border-bottom: 1px solid var(--glass-border); }
    .pac-list { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 15px !important; gap: 10px; }
    .pac-list li { margin-bottom: 0; flex: 0 0 auto; }
    .pac-btn { padding: 10px 20px; white-space: nowrap; }
    .pac-btn .arrow-icon { display: none; }
    .pac-detail-pane { padding: 25px 20px !important; }
    .app-content { position: absolute; top: 0; left: 100%; width: 100%; height: 100%; z-index: 10; transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
    .app-content.slide-in { left: 0; }
    .btn-back-mobile { display: flex; }
    .pane-header-flex { flex-direction: column; align-items: flex-start; }
    .content-search { width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid .glass-card:last-child { grid-column: span 1; }
    .ios-list li { flex-direction: column; align-items: flex-start; gap: 5px; }
    .ios-list .person-name { text-align: left; }
}