/* ==========================================================================
   Hotel Varn Inn - Elite Micro-Animations & SVG Effects
   ========================================================================== */

/* SVG Animated Icons */
.anim-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.anim-icon:hover,
*:hover > .anim-icon {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* Icon Stroke Animations */
.icon-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease;
}

*:hover > .anim-icon .icon-line {
    animation: strokeDraw 1.2s ease forwards;
}

@keyframes strokeDraw {
    0% { stroke-dashoffset: 60; opacity: 0.4; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Pulse Animation */
.icon-pulse {
    animation: iconPulse 2.4s infinite ease-in-out;
    transform-origin: center;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; fill: var(--gold); }
}

/* Wave Sway Animation for Pool & Wi-Fi */
.icon-wave {
    animation: waveSway 3s ease-in-out infinite alternate;
    transform-origin: center;
}

.icon-wave-delayed {
    animation: waveSway 3s ease-in-out infinite alternate 0.6s;
    transform-origin: center;
}

@keyframes waveSway {
    0% { transform: translateX(-1px) translateY(0.5px); }
    100% { transform: translateX(1px) translateY(-0.5px); }
}

/* Sparkle Twinkle Animation */
.icon-sparkle {
    animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
    0% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 4px var(--gold)); }
}

/* Spin Animation */
.icon-spin {
    animation: iconRotate 8s linear infinite;
    transform-origin: center;
}

@keyframes iconRotate {
    100% { transform: rotate(360deg); }
}

/* Luxury Shimmer Effect */
.shimmer-badge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(42, 14, 63, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.shimmer-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: rotate(25deg);
    animation: shimmerSlide 3.5s infinite;
}

@keyframes shimmerSlide {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* Glow Pulses */
.glow-gold {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
    transition: box-shadow 0.4s ease;
}

.glow-gold:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.65), 0 0 15px rgba(255, 255, 255, 0.2);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

/* Floating Elements */
.float-element {
    animation: floatingObj 4s ease-in-out infinite alternate;
}

@keyframes floatingObj {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Curtain Reveal Animation */
.curtain-reveal {
    animation: curtainOpen 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes curtainOpen {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Custom Interactive Luxury Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, opacity 0.3s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-hover .cursor-follower {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold);
    backdrop-filter: blur(2px);
}
