/* Custom Japanese Manga / Aesthetics Styling */
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Traditional Japanese Hanko Stamp Effect */
.hanko-stamp {
    border: 3px solid #C0392B;
    color: #C0392B;
    border-radius: 8px;
    padding: 4px 10px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    display: inline-block;
    transform: rotate(-6deg);
    box-shadow: 0 0 1px rgba(192, 57, 43, 0.5);
    background: rgba(255, 235, 235, 0.4);
    letter-spacing: 2px;
}

.dark .hanko-stamp {
    background: rgba(192, 57, 43, 0.2);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* Glassmorphism Cards */
.bright-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 225, 230, 0.8);
    box-shadow: 0 10px 30px -5px rgba(28, 40, 51, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.dark .bright-card {
    background: rgba(18, 24, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.bright-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -5px rgba(192, 57, 43, 0.2);
}

/* Delayed & Smoother Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Increased Stagger Delays for Grid Children */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Japanese Scroll Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #EBF4F6;
}

.dark ::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #C0392B;
    border-radius: 5px;
}

/* Equalizer Bars Animation */
.bar {
    width: 3px;
    background-color: #C0392B;
    animation: bounce 1s infinite alternate;
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce {
    0% { height: 4px; }
    100% { height: 20px; }
}

.paused .bar {
    animation-play-state: paused;
    height: 4px;
}

/* Custom Japanese Pop-up Modal Styling */
#jp-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#jp-modal.active #jp-modal-card {
    transform: scale(1);
}
