/* ============================================
   WOW EFFECTS - PolsterreiningungJuelich.de
   Color scheme: Teal/Fresh (#14b8a6, #0d9488, #009096)
   ============================================ */

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

/* 2. SPOTLIGHT CURSOR EFFECT */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* 3. MAGNETIC BUTTONS */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 4. TILT CARDS (3D) */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.tilt-card-inner {
    transform: translateZ(30px);
}

/* 5. ANIMATED GRADIENT TEXT */
.gradient-text-animated {
    background: linear-gradient(90deg, #14b8a6, #0d9488, #009096, #14b8a6);
    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% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* 6. STAGGER ANIMATIONS */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.2s; }
.stagger-item:nth-child(4) { transition-delay: 0.3s; }
.stagger-item:nth-child(5) { transition-delay: 0.4s; }
.stagger-item:nth-child(6) { transition-delay: 0.5s; }

/* 7. FLOATING BLOBS */
.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: rgba(20, 184, 166, 0.3);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(13, 148, 136, 0.25);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: rgba(0, 144, 150, 0.2);
    top: 50%;
    left: 30%;
    animation-delay: -2s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

/* 8. 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(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.card-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* 9. GLOW HOVER */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

/* 10. BUTTON RIPPLE EFFECT */
.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 ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 11. REVEAL FROM DIRECTION */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* 12. TEXT SHIMMER */
.text-shimmer {
    background: linear-gradient(
        90deg,
        #14b8a6 0%,
        #0d9488 40%,
        #5eead4 50%,
        #0d9488 60%,
        #14b8a6 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* 13. FLOATING ANIMATION */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-slow {
    animation: floating 5s ease-in-out infinite;
}

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

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

/* 15. NOISE TEXTURE OVERLAY */
.noise-overlay {
    position: relative;
}

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

/* 16. COUNTER ANIMATION */
.counter {
    font-variant-numeric: tabular-nums;
}

/* 17. HOVER SCALE */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* 18. UNDERLINE ANIMATION */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transition: width 0.3s ease;
}

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

/* 19. PULSE RING */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid #14b8a6;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* 20. BUBBLES ANIMATION (cleaning theme) */
.bubbles {
    position: relative;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: bubble-rise 4s ease-in infinite;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* 21. CLEAN SPARKLE */
.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.8em;
    animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* RESPONSIVE - disable heavy effects on mobile */
@media (max-width: 768px) {
    .spotlight { display: none; }
    .blob { opacity: 0.3; filter: blur(40px); }
    .tilt-card { transform: none !important; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .spotlight { display: none; }
}
