/* =====================================================
   ROYAL DRINK - Animations & Effects
   ===================================================== */

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(270deg, #FFD700, #e63946, #0077b6, #2d6a4f, #FFD700);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glow Effect */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary); }
    to { box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

/* Shake Animation */
.shake-hover:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scale In */
.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Rotate Continuous */
.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,215,0,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Parallax Scroll */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Card Hover 3D */
.card-3d {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

/* Neon Border */
.neon-border {
    border: 2px solid var(--primary);
    box-shadow: 0 0 5px var(--primary), inset 0 0 5px var(--primary);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { box-shadow: 0 0 5px var(--primary), inset 0 0 5px var(--primary); }
    to { box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary), inset 0 0 10px var(--primary); }
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Color Shift Background */
.color-shift-bg {
    background: linear-gradient(270deg, #FFD700, #e63946, #0077b6, #2d6a4f);
    background-size: 800% 800%;
    animation: colorShift 15s ease infinite;
}

@keyframes colorShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bounce In */
.bounce-in {
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Stagger Children Animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

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

/* Image Reveal */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 1;
    transform: scaleX(1);
    transform-origin: right;
    animation: imgReveal 1s ease forwards;
}

@keyframes imgReveal {
    to { transform: scaleX(0); }
}

/* Underline Hover */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}

/* Smooth Counter */
.count-up {
    transition: all 2s ease-out;
}

/* Particle Float */
.particle-float {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-float:nth-child(1) { width: 8px; height: 8px; top: 20%; left: 10%; animation: float 6s infinite 0s; background: rgba(255,215,0,0.5); }
.particle-float:nth-child(2) { width: 5px; height: 5px; top: 40%; left: 80%; animation: float 8s infinite 1s; background: rgba(230,57,70,0.5); }
.particle-float:nth-child(3) { width: 10px; height: 10px; top: 60%; left: 30%; animation: float 7s infinite 2s; background: rgba(0,119,182,0.5); }
.particle-float:nth-child(4) { width: 6px; height: 6px; top: 80%; left: 70%; animation: float 9s infinite 3s; background: rgba(45,106,79,0.5); }
.particle-float:nth-child(5) { width: 4px; height: 4px; top: 30%; left: 50%; animation: float 5s infinite 4s; background: rgba(255,215,0,0.5); }
