/* Enhanced Animations & Styles for Nanko Sunset Hall */

/* Scroll-triggered animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered card animations */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Parallax hero */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Wave divider animation */
.wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    animation: wave-flow 8s linear infinite;
}

@keyframes wave-flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Glassmorphism effect for pricing cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-featured {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #9A1B25;
    box-shadow: 0 8px 32px rgba(154, 27, 37, 0.15), 0 0 0 1px rgba(154, 27, 37, 0.1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #FDFBF7 0%, #fff 100%);
    z-index: 999;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 27, 37, 0.1);
    border-radius: 50%;
    color: #9A1B25;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: #9A1B25;
    color: white;
    transform: rotate(90deg);
}

.mobile-menu-nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    color: #292524;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-menu-nav a:hover {
    background: rgba(154, 27, 37, 0.1);
    color: #9A1B25;
    padding-left: 1.5rem;
}

.mobile-menu-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(154, 27, 37, 0.1);
}

/* Interactive buttons */
.btn-interactive {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-interactive:hover::before {
    width: 300px;
    height: 300px;
}

.btn-interactive:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(154, 27, 37, 0.3);
}

.btn-interactive:active {
    transform: translateY(-1px);
}

/* 3D card tilt effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-3d:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Pricing card glow */
.pricing-featured {
    position: relative;
}

.pricing-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #9A1B25, #D4A574, #9A1B25);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(8px);
}

.pricing-featured:hover::before {
    opacity: 0.6;
}

/* Counter animation */
.counter-value {
    display: inline-block;
}

/* Lightbox modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: opacity 0.3s;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 2px;
    border: 1px solid rgba(154, 27, 37, 0.2);
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #57534E;
}

.lang-btn.active {
    background: #9A1B25;
    color: white;
}

.lang-btn:not(.active):hover {
    background: rgba(154, 27, 37, 0.1);
}

/* Hide elements based on language */
[data-lang="jp"] {
    display: none;
}

html[lang="ja"] [data-lang="en"] {
    display: none;
}

html[lang="ja"] [data-lang="jp"] {
    display: block;
}

/* Venue inspection gallery */
.venue-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.venue-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
}

.venue-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.venue-gallery-item:hover img {
    transform: scale(1.1);
}

.venue-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.venue-gallery-item:hover::after {
    opacity: 1;
}

/* Floating music notes */
.music-note {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: float-note 4s ease-in-out infinite;
    color: rgba(154, 27, 37, 0.3);
}

@keyframes float-note {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(20deg);
    }
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #9A1B25, #D4A574);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #9A1B25;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(154, 27, 37, 0.3);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(154, 27, 37, 0.4);
}