/* ==========================================================================
   Anti-Gravity Effects - WordPressDad.com
   Floating, parallax, scroll reveal, glow animations
   ========================================================================== */

/* ---------- Floating Animations ---------- */
@keyframes wpdad-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes wpdad-float-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes wpdad-float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wpdad-float {
    animation: wpdad-float 6s ease-in-out infinite;
}

.wpdad-float-rotate {
    animation: wpdad-float-rotate 8s ease-in-out infinite;
}

.wpdad-float-gentle {
    animation: wpdad-float-gentle 4s ease-in-out infinite;
}

.wpdad-float-delay-1 { animation-delay: 0.5s; }
.wpdad-float-delay-2 { animation-delay: 1s; }
.wpdad-float-delay-3 { animation-delay: 1.5s; }
.wpdad-float-delay-4 { animation-delay: 2s; }

/* ---------- Glow Orb Effect ---------- */
@keyframes wpdad-glow {
    0%, 100% {
        transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px)) scale(1.15);
        opacity: 0.9;
    }
}

.wpdad-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: wpdad-glow 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
}

.wpdad-glow-orb--purple {
    width: 400px;
    height: 400px;
    background: rgba(108, 99, 255, 0.4);
    top: -100px;
    right: -50px;
}

.wpdad-glow-orb--red {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 107, 0.3);
    bottom: -50px;
    left: -50px;
    animation-delay: 3s;
}

.wpdad-glow-orb--blue {
    width: 250px;
    height: 250px;
    background: rgba(99, 179, 255, 0.25);
    top: 50%;
    left: 50%;
    animation-delay: 1.5s;
}

/* ---------- Pulse Effect (CTA buttons) ---------- */
@keyframes wpdad-pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(108, 99, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

.wpdad-pulse {
    animation: wpdad-pulse 2.5s ease-in-out infinite;
}

/* ---------- Scroll Reveal ---------- */
.wpdad-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpdad-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wpdad-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpdad-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.wpdad-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpdad-reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.wpdad-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpdad-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.wpdad-stagger.is-visible > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* ---------- Gradient Text ---------- */
.wpdad-gradient-text {
    background: linear-gradient(135deg, #6C63FF, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Hover Float (cards) ---------- */
.wpdad-hover-float {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpdad-hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

/* ---------- Shimmer line ---------- */
@keyframes wpdad-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.wpdad-shimmer {
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: wpdad-shimmer 3s ease-in-out infinite;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .wpdad-float,
    .wpdad-float-rotate,
    .wpdad-float-gentle,
    .wpdad-glow-orb,
    .wpdad-pulse {
        animation: none;
    }
    .wpdad-reveal,
    .wpdad-reveal-left,
    .wpdad-reveal-right,
    .wpdad-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .wpdad-hover-float:hover {
        transform: none;
    }
}
