/* ========================================
   GARDA ESSENCE — ADVANCED ANIMATIONS
   Spettacolar Effects & Interactions
   ======================================== */

/* GLOWING BORDER ANIMATION */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    }
}

/* GRADIENT SHIFT */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* SHIMMER EFFECT */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* FLOATING TEXT */
@keyframes floatText {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* ROTATING BORDER */
@keyframes rotateBorder {
    0% {
        border-image-source: linear-gradient(0deg, #00D9FF, #6B63FF);
    }
    50% {
        border-image-source: linear-gradient(90deg, #6B63FF, #FF6B6B);
    }
    100% {
        border-image-source: linear-gradient(180deg, #FF6B6B, #00D9FF);
    }
}

/* 3D CARD TILT */
@keyframes tilt3d {
    0%, 100% {
        transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
    }
    25% {
        transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
    }
    75% {
        transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateZ(20px);
    }
}

/* WAVE RIPPLE */
@keyframes waveRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* TEXT REVEAL */
@keyframes textReveal {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* BOUNCE ENTRANCE */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* SLIDE & FADE */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* NEON GLOW TEXT */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px #00D9FF, 0 0 20px #00D9FF;
    }
    50% {
        text-shadow: 0 0 20px #00D9FF, 0 0 40px #6B63FF, 0 0 60px #FF6B6B;
    }
}

/* ELEMENT-SPECIFIC ANIMATIONS */

.room-card {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    animation: glowPulse 2s infinite;
    transform: translateY(-16px) scale(1.02);
}

.feature-card {
    animation: slideInFromLeft 0.7s ease-out;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
    border-radius: 16px;
    pointer-events: none;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial {
    animation: slideInFromRight 0.7s ease-out;
}

.testimonial:nth-child(1) {
    animation-delay: 0s;
}

.testimonial:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-title {
    animation: neonGlow 2s ease-in-out infinite;
}

.btn:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: waveRipple 0.8s ease-out;
    pointer-events: none;
}

/* GRADIENT BACKGROUNDS WITH ANIMATION */
.cta {
    background: linear-gradient(-45deg, #3091F5, #226BD3, #1A2E4A, #E47212, #3091F5);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* SCROLL REVEAL WITH STAGGER */
.scroll-reveal {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* PARALLAX ENHANCED */
[data-parallax] {
    transform-style: preserve-3d;
    will-change: transform;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .room-card {
        animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .room-card:hover {
        animation: glowPulse 1.5s infinite;
        transform: translateY(-8px) scale(1.01);
    }

    .feature-card::before {
        animation: shimmer 2s infinite;
    }

    .hero-title {
        animation: neonGlow 1.5s ease-in-out infinite;
    }

    .cta {
        animation: gradientShift 10s ease infinite;
    }
}

/* REDUCE MOTION ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}