/* ============================================
   WOW EFFECTS - MEGA PACK 2025
   PromptProtocol.de
   ============================================ */

/* 1. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #F59E0B, #EF4444);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* 2. MAGNETIC BUTTON */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magnetic-btn:hover {
    transform: scale(1.05);
}

/* 3. ANIMATED GRADIENT TEXT */
.gradient-text-animated {
    background: linear-gradient(90deg, #F97316, #F59E0B, #EF4444, #F97316);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 4. TILT CARD EFFECT */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}
.tilt-card-inner {
    transform: translateZ(30px);
}

/* 5. STAGGER ANIMATION */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
}
.stagger-item.visible {
    animation: staggerIn 0.6s ease forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 6. COUNTER ANIMATION */
.counter {
    display: inline-block;
}

/* 7. FLOATING BLOB BACKGROUND */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blob-float 8s ease-in-out infinite;
    pointer-events: none;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #F97316, #F59E0B);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}
.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

/* 8. MARQUEE / INFINITE SCROLL */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 9. GLOW HOVER EFFECT */
.glow-hover {
    position: relative;
    overflow: hidden;
}
.glow-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.glow-hover:hover::before {
    width: 300%;
    height: 300%;
}
.glow-hover > * {
    position: relative;
    z-index: 1;
}

/* 10. REVEAL DIRECTIONS */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}
.reveal-rotate {
    opacity: 0;
    transform: rotate(-10deg) translateY(30px);
    transition: all 0.8s ease;
}
.reveal-left.active, .reveal-right.active, .reveal-scale.active, .reveal-rotate.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0);
}

/* 11. TEXT SHIMMER */
.text-shimmer {
    background: linear-gradient(90deg, #F97316 0%, #FBBF24 50%, #F97316 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* 12. FLOATING ANIMATION */
.floating {
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 13. PARALLAX LAYER */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* 14. NOISE TEXTURE OVERLAY */
.noise-overlay {
    position: relative;
}
.noise-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* 15. SPOTLIGHT CURSOR */
.spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body:hover .spotlight {
    opacity: 1;
}

/* 16. BUTTON RIPPLE */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-effect {
    to { transform: scale(4); opacity: 0; }
}

/* 17. CARD SHINE EFFECT */
.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}
.card-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* 18. SMOOTH CARD HOVER */
.card-wow {
    transition: all 0.3s ease;
}
.card-wow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
