/* ===================================================
   1. GLOBAL VARIABLES & BASE STYLES
   =================================================== */
:root {
    --brand-dark: #0f172a;
    --brand-navy: #1e293b;
    --brand-primary: #0284c7;
    --brand-primary-hover: #0369a1;
    --brand-accent: #38bdf8;
    --brand-gold: #fbbf24;
    --text-main: #334155;
    --text-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

/* ===================================================
   2. NAVBAR & REUSABLE UTILITIES
   =================================================== */
.navbar-custom {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.navbar-custom.scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.navbar .nav-link {
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

/* Glass Badge (Digunakan di Dashboard & Informasi) */
.glass-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--brand-accent);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    animation: softPulse 3s infinite;
}

/* Reusable Icon Box Base */
.icon-box {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* Buttons Effects */
.btn-spmb,
.btn-cta-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-spmb::before,
.btn-cta-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
}
.btn-spmb:hover::before,
.btn-cta-shine:hover::before {
    left: 125%;
}

/* ===================================================
   3. KEYFRAME ANIMATIONS
   =================================================== */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
}