/* Custom Scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animation Delays */
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Text Reveal Animation */
@keyframes text-reveal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-text-reveal {
    display: inline-block;
    animation: text-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

/* Marquee Scroll Animation */
@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-container {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}
.marquee-wrapper:hover .marquee-container {
    animation-play-state: paused;
}

/* Fade in up Animation */
.fade-in-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow & Neon Effects */
.primary-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
    transform: translateY(-5px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.neon-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.neon-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.2);
}

/* =========================================
   Sidebar Navigasi (Outbar) - Harga
   ========================================= */
.sidebar-outbar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar-outbar::-webkit-scrollbar {
    width: 4px;
}

.sidebar-outbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 9999px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #f0f7ff;
    color: #0056b3;
}

.nav-item.active {
    background-color: rgba(224, 239, 254, 0.5);
    color: #0056b3;
    border-right: 4px solid #0056b3;
}

.submenu-container {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.submenu-container.open {
    max-height: 500px;
    margin-bottom: 1rem;
}

.submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.submenu-item:hover {
    color: #0056b3;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
}

.submenu-item:hover::before {
    background-color: #0056b3;
}

/* =========================================
   Custom Hero Section Spacing
   ========================================= */
.hero-neonflux {
    padding-top: 10rem;   /* Mobile - Lebih lega agar tidak tertutup */
    padding-bottom: 0px !important;
}

@media (min-width: 1024px) {
    .hero-neonflux {
        padding-top: 12rem;   /* Desktop - Memberi ruang ekstra untuk navbar fixed */
        padding-bottom: 6rem;
    }
}

/* Custom Illustration Spacing */
.hero-illustration-container {
    padding-top: 1.5rem; /* Turunin ilustrasi dikit di HP */
}

@media (min-width: 1024px) {
    .hero-illustration-container {
        padding-top: 0; /* Normal di desktop */
    }
}

/* Footer Premium Styles */
.footer-neon-border {
    border-top: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 -10px 40px -10px rgba(14, 165, 233, 0.1);
}

.social-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-glow:hover {
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
    transform: translateY(-5px);
    background-color: var(--primary-color) !important;
    color: white !important;
}

.footer-link-hover {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link-hover:hover {
    color: var(--primary-color) !important;
}

.footer-link-hover:hover::after {
    width: 100%;
}

.newsletter-input:focus {
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    border-color: var(--primary-color) !important;
}
