/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Mencegah horizontal scroll */
}

body {
    font-family: 'Inter', sans-serif;
    background: #0A0A0A;
    color: #FFFFFF;
    overflow-x: hidden; /* Mencegah horizontal scroll */
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #FBBF24;
    border-radius: 3px;
}

/* ===== OVERFLOW SAFETY ===== */
.overflow-safe {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
}

/* ===== GRADIENTS ===== */
.hero-gradient {
    background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,1) 100%);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FBBF24, #F59E0B, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gray {
    background: linear-gradient(135deg, #E5E7EB, #9CA3AF, #6B7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLOW EFFECTS ===== */
.glow-yellow {
    box-shadow: 0 0 60px -15px rgba(251,191,36,0.3);
}

.glow-yellow-sm {
    box-shadow: 0 0 30px -8px rgba(251,191,36,0.25);
}

/* ===== FILM CARD ===== */
.film-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.film-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px -15px rgba(251,191,36,0.2);
}

/* ===== GALLERY ITEM ===== */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ===== MARQUEE ===== */
.marquee-section {
    overflow: hidden;
    max-width: 100vw;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251,191,36,0.2); }
    50% { box-shadow: 0 0 40px rgba(251,191,36,0.4); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, #FBBF24 0%, #FDE68A 25%, #FBBF24 50%, #F59E0B 75%, #FBBF24 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

.pulse-glow-anim {
    animation: pulse-glow 3s ease-in-out infinite;
}

.qr-container {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== QR CODE RESPONSIVE ===== */
.qr-container svg {
    max-width: 100%;
    height: auto;
}

/* ===== TIMELINE ===== */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #FBBF24, transparent);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 24px;
    }
}

/* ===== RULE ITEM ===== */
.rule-item {
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.3);
}

/* ===== NAV BLUR ===== */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== EXTRA MOBILE SAFETY ===== */
@media (max-width: 375px) {
    .shimmer-text {
        font-size: 3.5rem !important;
    }
}