/* ======================================
   Gendang Belek — Premium Styles v5.0
   Brightened Traditional Motif Edition
   ====================================== */

/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    animation: fade-in 0.8s ease 0.15s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fade-in 0.8s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fade-in 0.8s ease 0.45s forwards;
    opacity: 0;
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(198, 167, 94, 0.2);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 80px rgba(198, 167, 94, 0.35);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

/* Floating Particles */
@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #C6A75E;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

/* Navbar Scroll State */
#navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 75%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(198, 167, 94, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

/* Drum pad playing state */
.drum-pad.playing {
    border-color: #C6A75E !important;
    background: rgba(198, 167, 94, 0.2) !important;
    box-shadow: 0 0 50px rgba(198, 167, 94, 0.5) !important;
    transform: scale(0.98) translateY(2px) !important;
}

/* Modal States */
.modal-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0) !important;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Animation */
#navToggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#navToggle.active span:nth-child(2) {
    opacity: 0;
}

#navToggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Global Styles */
body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #000;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/motif-bg.png");
    background-image: image-set(
        url("../images/motif-bg.webp") type("image/webp"),
        url("../images/motif-bg.png") type("image/png")
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: brightness(1.35) contrast(1.15);
    pointer-events: none;
    z-index: -1;
}

/* Custom Motif Background Class */
.bg-motif {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Brightened Motif Card Overlays */
.drum-pad,
.gallery-card,
.video-card,
.feature-card,
.filosofi-card {
    background-color: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(2px);
    transition: all 0.5s ease;
    border: 1px solid rgba(198, 167, 94, 0.2) !important;
}

.drum-pad:hover,
.gallery-card:hover,
.video-card:hover,
.feature-card:hover,
.filosofi-card:hover {
    background-color: rgba(198, 167, 94, 0.1);
    border-color: rgba(198, 167, 94, 0.6) !important;
    transform: translateY(-5px);
}

/* Custom Hero Style with WebP support */
.hero {
    background-color: #050505;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1)),
        url("../images/background.png");
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1)),
        image-set(
            url("../images/background.webp") type("image/webp"),
            url("../images/background.png") type("image/png")
        );
    background-size: cover;
    background-position: center;
}

@media (max-width: 640px) {
    .hero {
        background-image:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.88) 75%, #000 100%),
            url("../images/background.png");
        background-image:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.88) 75%, #000 100%),
            image-set(
                url("../images/background.webp") type("image/webp"),
                url("../images/background.png") type("image/png")
            );
        background-position: center top;
    }
}

/* Ornamental Dividers */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

.divider-ornament::before,
.divider-ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(198, 167, 94, 0.9), transparent);
}

.divider-diamond {
    width: 14px;
    height: 14px;
    background: #000;
    border: 1.5px solid #C6A75E;
    transform: rotate(45deg);
    position: relative;
    box-shadow: 0 0 15px rgba(198, 167, 94, 0.4);
}

.divider-diamond::after {
    content: "";
    position: absolute;
    inset: 2.5px;
    border: 1px solid rgba(198, 167, 94, 0.6);
}

/* Parchment / Paper Texture */
.texture-paper {
    background-color: #F8F4ED;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.04) 1px, transparent 0),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 4px 4px, 100% 32px;
    position: relative;
    box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.1);
}

.texture-paper::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(110, 30, 42, 0.2);
    pointer-events: none;
}

.texture-paper::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(198, 167, 94, 0.15);
    pointer-events: none;
}

/* Map Style */
.map-container img {
    filter: drop-shadow(0 0 20px rgba(198, 167, 94, 0.5));
}

.mix-blend-screen {
    mix-blend-mode: screen;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Custom Scrollbar Utilities */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Responsive Utility Rules */
@media (max-width: 640px) {
    /* Touch target comfort */
    button, a, input, select {
        touch-action: manipulation;
    }

    /* Prevent awkward overflow on badges */
    .zone-badge-text {
        font-size: 9px !important;
        letter-spacing: 0 !important;
        padding: 1px 3px !important;
    }

    /* Modal padding on mobile */
    .modal-content {
        padding: 1.25rem !important;
        width: 95% !important;
        margin: auto !important;
    }
}

/* Shimmer Skeleton for image loading */
.img-loading-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(198,167,94,0.12) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}