/* ==========================================================================
   DELICATE MICRO-ANIMATIONS & SHUTTER TRANSITION EFFECTS
   ========================================================================== */

/* Shutter Transition Overlay (Photographic Camera Shutter effect) */
.shutter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.shutter-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Page fade in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    animation: luxuryFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in-section.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-section.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-section.delay-3 {
    animation-delay: 0.6s;
}

@keyframes luxuryFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle image scale reveal on scroll */
.scale-reveal-img {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.scale-reveal-img.revealed {
    opacity: 1;
    transform: scale(1.0);
}

/* Slow loading/processing indicator */
.loading-dots span {
    animation: loadingDots 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: .2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes loadingDots {
    0% {
        opacity: .2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: .2;
    }
}

/* Float Animation for Crest on Load */
.crest-float {
    animation: crestFloatIn 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes crestFloatIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1.0) translateY(0);
    }
}
