/* =========================================================
   SPA WEBSITE - ANIMATIONS & TRANSITIONS
   ========================================================= */

/* =========================================================
   FADE IN ANIMATIONS
   ========================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================
   SLIDE ANIMATIONS
   ========================================================= */

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* =========================================================
   SCALE ANIMATIONS
   ========================================================= */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* =========================================================
   PULSE ANIMATIONS
   ========================================================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* =========================================================
   BOUNCE ANIMATIONS
   ========================================================= */

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceSoft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* =========================================================
   GLOW ANIMATIONS
   ========================================================= */

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(183, 154, 104, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(183, 154, 104, 0);
    }
}

/* =========================================================
   TEXT ANIMATIONS
   ========================================================= */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* =========================================================
   ROTATION ANIMATIONS
   ========================================================= */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* =========================================================
   APPLICATION UTILITIES
   ========================================================= */

.animate-fadeIn {
    animation: fadeIn 600ms ease;
}

.animate-fadeInUp {
    animation: fadeInUp 700ms ease;
}

.animate-slideInUp {
    animation: slideInUp 600ms ease;
}

.animate-scaleIn {
    animation: scaleIn 600ms ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* =========================================================
   HOVER EFFECTS
   ========================================================= */

.hover-lift {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 300ms ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(183, 154, 104, 0.4);
}

/* =========================================================
   SMOOTH SCROLLING
   ========================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================================
   ACCESSIBILITY - PREFERS REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   SCROLL-REVEAL — elements animate in as they enter view
   ========================================================= */

/* Base hidden state — applied via JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a reveal parent */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.55s; }

/* Slide in from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   COUNTER ANIMATION — trust strip numbers
   ========================================================= */
.trust-number {
    display: inline-block;
    transition: transform 0.4s ease;
}
.trust-number.pop {
    animation: numPop 0.5s ease forwards;
}
@keyframes numPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); color: #b79a68; }
    100% { transform: scale(1); }
}

/* =========================================================
   BUTTON PULSE — draws attention to Book Now CTA
   ========================================================= */
@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(183,154,104,0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(183,154,104,0); }
    100% { box-shadow: 0 0 0 0 rgba(183,154,104,0); }
}
.btn-gold {
    animation: btnPulse 2.5s infinite;
}

/* =========================================================
   FLOATING WHATSAPP BUTTON BOUNCE
   ========================================================= */
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.whatsapp-float {
    animation: waFloat 2.8s ease-in-out infinite;
}

/* =========================================================
   PAGE LOADER FADE-OUT
   ========================================================= */
#pageLoader {
    position: fixed;
    inset: 0;
    background: #26372f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}
#pageLoader.hide {
    opacity: 0;
    pointer-events: none;
}
#pageLoader .loader-logo {
    color: #b79a68;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 6px;
    animation: fadeIn 0.6s ease forwards;
}
#pageLoader .loader-dot {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}
#pageLoader .loader-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b79a68;
    animation: dotBounce 1.2s infinite ease-in-out;
}
#pageLoader .loader-dot span:nth-child(2) { animation-delay: 0.2s; }
#pageLoader .loader-dot span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%            { transform: scale(1);   opacity: 1;   }
}

/* =========================================================
   GALLERY ITEM ENTRY
   ========================================================= */
.gitem {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.gitem.visible {
    opacity: 1;
    transform: translateY(0);
}
.gitem:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.22) !important;
    transform: translateY(-3px);
}

/* =========================================================
   HERO SECTION — text entrance
   ========================================================= */
.hero-title {
    animation: fadeInUp 0.9s ease both;
}
.hero-subtitle,
.hero-description,
.section-description {
    animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-actions {
    animation: fadeInUp 0.9s ease 0.35s both;
}

/* =========================================================
   CARD HOVER LIFT
   ========================================================= */
.service-card,
.package-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.package-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* =========================================================
   SECTION LABEL — shimmer effect
   ========================================================= */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
.section-label {
    background: linear-gradient(90deg, #b79a68 30%, #f0d9a8 50%, #b79a68 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
