/* GPU Accelerated Motion & Micro-Interactions */

/* 1. Page Shutter Transition */
.page-shutter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), #fef08a, var(--brand-accent));
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.page-shutter-overlay.active {
    transform: scaleX(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Pulse Dot Indicator */
@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

/* 5. Card Hover Elevation */
.interactive-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.interactive-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 81, 0.4) !important;
}

.gallery-card:hover .gallery-thumb-img {
    transform: scale(1.05);
}

.floating-action-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.fab-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--brand-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
    border: none;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.06) translate3d(0, -2px, 0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.fab-whatsapp {
    background: #25d366;
    color: #ffffff;
}
.fab-whatsapp:hover {
    background: #20ba59;
}

#scroll-top-btn {
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
#scroll-top-btn:hover {
    opacity: 1;
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .floating-action-group {
        bottom: 14px;
        right: 12px;
        gap: 6px;
        pointer-events: none;
    }
    .fab-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
        pointer-events: auto;
        opacity: 0.85;
        box-shadow: 0 3px 10px rgba(0,0,0,0.16);
    }
    .fab-btn:active, .fab-btn:focus {
        opacity: 1;
        transform: scale(0.96);
    }
    .fab-whatsapp i {
        font-size: 18px !important;
    }
}

/* 7. Toast Notification */
#spa-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate3d(-50%, 40px, 0);
    opacity: 0;
    visibility: hidden;
    background: var(--brand-primary-dark);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10002;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

#spa-toast.show {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
    visibility: visible;
}

/* 8. Search Modal Animation */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.search-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.search-modal-dialog {
    background: #ffffff;
    width: 90%;
    max-width: 640px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.96) translate3d(0, -10px, 0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.open .search-modal-dialog {
    transform: scale(1) translate3d(0, 0, 0);
}
