@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Plus+Jakarta+Sans:wght@400;600&display=swap');

:root {
    --bg-base: #0B0A10; 
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --himi-purple: #A855F7;
    --himi-purple-light: #C084FC;
    --himi-purple-dark: #7E22CE;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body); background-color: var(--bg-base);
    color: var(--text-main); line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.3); border-radius: 4px; }

/* Background Glow */
.bg-glow, .bg-glow-alt { position: absolute; filter: blur(140px); z-index: -1; opacity: 0.2; }
.bg-glow { width: 80vw; height: 80vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, var(--himi-purple-dark) 0%, transparent 60%); top: -10%; left: -10%; }
.bg-glow-alt { width: 80vw; height: 80vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, var(--himi-purple) 0%, transparent 60%); bottom: 10%; right: -5%; }

h1, h2, h3, h4, .logo { font-family: var(--font-heading); }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.gradient-text { background: linear-gradient(135deg, var(--himi-purple-light), var(--himi-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-muted { color: var(--text-muted); }

/* Tombol Utama */
.btn-primary, .btn-secondary {
    padding: 12px 28px; border-radius: 50px; border: none; cursor: pointer;
    text-decoration: none; display: inline-block; font-weight: 600; font-size: 15px;
    text-align: center; transition: all 0.3s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--himi-purple), var(--himi-purple-dark)); color: #FFF !important; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192, 132, 252, 0.4); }
.btn-secondary { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main) !important; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--himi-purple-light); }

/* Tombol Keluar Sesi Admin (Tengah & Berwarna) */
.btn-logout-center {
    display: block; width: fit-content; margin: 40px auto; padding: 12px 30px;
    background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px; text-decoration: none; font-weight: 600; text-align: center; transition: all 0.3s ease;
}
.btn-logout-center:hover { background: #ef4444; color: #FFF; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }

/* Card & Form */
.card { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 14px; font-weight: 600;}
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-main); font-family: var(--font-body); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--himi-purple); box-shadow: 0 0 10px rgba(168, 85, 247, 0.2); }

/* Floating Navbar */
.main-nav { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999; padding: 25px 0; background: transparent; transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 50px; padding: 0; max-width: 1200px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.main-nav.scrolled { padding: 15px 0; }
.main-nav.scrolled .container { max-width: 1200px; padding: 12px 30px; background: rgba(10, 17, 40, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(168, 85, 247, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }

.logo { font-size: 26px; font-weight: 800; color: var(--text-main); text-decoration: none; transition: font-size 0.5s ease; letter-spacing: -0.5px; }
.logo span { color: var(--himi-purple-light); }
.main-nav.scrolled .logo { font-size: 20px; }

.menu-toggle { background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; display: block; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 32px; cursor: pointer; align-self: flex-end; margin-bottom: 20px; display: block; }

.nav-menu { position: fixed; top: 0; left: -100%; width: 260px; height: 100vh; overflow-y: auto; background: rgba(10, 17, 40, 0.98); backdrop-filter: blur(20px); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; padding: 20px; transition: left 0.4s ease; z-index: 1000; }
.nav-menu.active { left: 0; }
.nav-menu a:not(.btn-primary) { text-decoration: none; color: var(--text-muted); font-size: 15px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: block; transition: color 0.3s; }
.nav-menu a:not(.btn-primary):hover { color: var(--himi-purple-light); }
.nav-menu .btn-primary { margin-top: 15px; }

/* Grid & Section */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Komponen Festival */
.festival-countdown { background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.festival-countdown::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--himi-purple-dark), var(--himi-purple-light)); }
.countdown-box { display: flex; justify-content: space-around; text-align: center; margin-top: 20px;}
.time-unit { display: flex; flex-direction: column; }
.time-val { font-size: 2.5em; font-weight: 800; color: var(--text-main); font-family: var(--font-heading);}
.time-label { font-size: 11px; color: var(--himi-purple-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 600;}

.fest-feature-card { background: var(--glass-bg); border-radius: 16px; padding: 25px; margin-bottom: 20px; display: flex; gap: 20px; transition: transform 0.3s, background 0.3s; border: 1px solid var(--glass-border); }
.fest-feature-card:hover { transform: translateX(10px); background: rgba(168, 85, 247, 0.05); border-color: rgba(168, 85, 247, 0.3); }

.tracking-path { border-left: 2px solid rgba(255, 255, 255, 0.1); margin-left: 6px; padding-left: 25px; position: relative; }
.tracking-node { position: relative; margin-bottom: 20px; }
.tracking-node::before { content: ''; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; background: var(--glass-border); border-radius: 50%; }
.tracking-node:last-child::before { background: var(--himi-purple); box-shadow: 0 0 12px var(--himi-purple); }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes blink-cursor { 0%, 100% { border-color: transparent; } 50% { border-color: #FFF; } }
.typing-cursor { border-right: 4px solid #FFF; padding-left: 2px; animation: blink-cursor 0.7s step-end infinite; }

@media (min-width: 768px) {
    .menu-toggle, .close-btn { display: none; }
    .nav-menu { position: static; width: auto; height: auto; background: transparent; border: none; flex-direction: row; padding: 0; align-items: center; gap: 30px; overflow-y: visible; }
    .nav-menu a:not(.btn-primary) { border: none; padding: 0; display: inline; transition: color 0.3s; }
    
    .nav-menu .btn-primary { margin-top: 0; } 
    
    .hero-grid, .about-grid { grid-template-columns: 1fr 1fr; }
    .grid-cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
}

/* Admin UI */
.admin-container { display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(10, 17, 40, 0.9); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 99; }
.admin-sidebar { position: fixed; top: 0; left: -100%; width: 260px; height: 100vh; overflow-y: auto; background: rgba(10, 17, 40, 0.98); border-right: 1px solid var(--glass-border); padding: 20px; display: flex; flex-direction: column; transition: left 0.3s ease; z-index: 1000; }
.admin-sidebar.active { left: 0; }
.admin-sidebar .logo { text-align: center; margin-bottom: 30px; display: none; } 
.admin-menu { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.admin-menu a { color: var(--text-muted); text-decoration: none; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(168, 85, 247, 0.1); color: var(--himi-purple-light); }
.admin-content { padding: 20px 15px; flex: 1; overflow-y: auto; }

@media (min-width: 768px) {
    .admin-container { flex-direction: row; }
    .admin-topbar { display: none; } 
    .admin-sidebar { position: sticky; left: 0; top: 0; height: 100vh; padding: 30px 20px; }
    .admin-sidebar .logo { display: block; font-size: 1.8rem; } 
    .admin-content { padding: 40px; height: 100vh; overflow-y: auto; }
}

/* Custom Cursor */
body, a, button, input, select, textarea { cursor: none !important; }
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 99999; pointer-events: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--himi-purple-light); box-shadow: 0 0 10px var(--himi-purple-light), 0 0 20px var(--himi-purple); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--himi-purple); box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s ease-out; }
.cursor-outline.hovering { width: 65px; height: 65px; background-color: rgba(192, 132, 252, 0.15); border-color: var(--himi-purple-light); box-shadow: 0 0 30px rgba(192, 132, 252, 0.5); }

/* =========================================
   HIMIBOT - AI ASSISTANT UI
   ========================================= */
.himibot-trigger { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, var(--himi-purple-light), var(--himi-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); z-index: 9999; transition: all 0.3s ease; border: none; }
.himibot-trigger:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }

.himibot-window { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; background: rgba(8, 10, 18, 0.95); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 20px; z-index: 9998; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.himibot-window.active { opacity: 1; pointer-events: auto; transform: translateY(0); }

.himibot-header { padding: 20px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.himibot-title { color: #FFF; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.himibot-title span { width: 8px; height: 8px; background: #10B981; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px #10B981; }

.himibot-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 15px; font-size: 14px; line-height: 1.5; }
.chat-bot { background: rgba(168, 85, 247, 0.15); color: #FFF; border: 1px solid rgba(168, 85, 247, 0.3); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-user { background: #FFF; color: #000; align-self: flex-end; border-bottom-right-radius: 2px; }

.himibot-input-area { padding: 15px; border-top: 1px solid var(--glass-border); display: flex; gap: 10px; background: rgba(0,0,0,0.2); }
.himibot-input-area input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #FFF; padding: 12px 15px; border-radius: 20px; outline: none; }
.himibot-input-area input:focus { border-color: var(--himi-purple); }
.himibot-send { background: var(--himi-purple); border: none; width: 45px; height: 45px; border-radius: 50%; color: #FFF; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.himibot-send:hover { background: var(--himi-purple-light); }