/* Custom Scrollbar for the horizontal menu */
.hide-scroll::-webkit-scrollbar {
    display: none;
}
.hide-scroll {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Glassmorphism Classes */
.glass-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-bottom-bar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(3deg); }
}

.floating-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }

/* Glitch Effect on Text */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #FFD700;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #E5C100;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    10% { clip: rect(31px, 9999px, 50px, 0); }
    20% { clip: rect(15px, 9999px, 20px, 0); }
    30% { clip: rect(11px, 9999px, 91px, 0); }
    40% { clip: rect(98px, 9999px, 66px, 0); }
    50% { clip: rect(21px, 9999px, 77px, 0); }
    60% { clip: rect(10px, 9999px, 55px, 0); }
    70% { clip: rect(33px, 9999px, 99px, 0); }
    80% { clip: rect(54px, 9999px, 88px, 0); }
    90% { clip: rect(99px, 9999px, 11px, 0); }
    100% { clip: rect(44px, 9999px, 22px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    40% { clip: rect(77px, 9999px, 50px, 0); }
    50% { clip: rect(53px, 9999px, 12px, 0); }
    60% { clip: rect(24px, 9999px, 38px, 0); }
    70% { clip: rect(78px, 9999px, 98px, 0); }
    80% { clip: rect(19px, 9999px, 39px, 0); }
    90% { clip: rect(32px, 9999px, 75px, 0); }
    100% { clip: rect(98px, 9999px, 13px, 0); }
}

/* Safe area inset for modern mobile browsers */
.pb-safe {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Menu card styling & transitions */
.menu-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 1.5rem;
    pointer-events: none;
    transition: border-color 0.3s ease;
}
.menu-card.selected {
    transform: scale(0.96);
}
.menu-card.selected::after {
    border-color: #FFD700;
}
.menu-card.selected .badge-terpilih {
    opacity: 1;
    transform: translateY(0);
}
.badge-terpilih {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Haptic btn effect */
.haptic-btn {
    -webkit-tap-highlight-color: transparent;
}
