/* Site-wide Animations */

/* Page Fade In */
body {
    animation: fadeInPage 0.6s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Hover & Entry */
.fiverr-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.fiverr-card:nth-child(1) { animation-delay: 0.1s; }
.fiverr-card:nth-child(2) { animation-delay: 0.2s; }
.fiverr-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Pulse & Hover */
.btn-fiverr {
    position: relative;
    overflow: hidden;
}

.btn-fiverr:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, .5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-fiverr:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(100, 100); opacity: 0; }
}

/* Pulse for specific attention items */
.pulse-animation {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* Success Check Animation */
.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #7ac142;
}



/* Subtle Background Animations (Birds & Sun) */
.dynamic-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.4;
}

.bird {
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%2362646a" d="M512 216.5C512 80.5 397.5 0 256 0S0 80.5 0 216.5c0 71.5 31.5 136 82.5 180.5L32 512l161.5-64.5c19.5 5.5 40.5 8.5 62.5 8.5 22 0 43-3 62.5-8.5L480 512l-50.5-115c51-44.5 82.5-109 82.5-180.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 25px; height: 25px;
    opacity: 0.3;
}

.bird-1 { top: 15%; left: -10%; animation: fly 25s linear infinite; }
.bird-2 { top: 25%; left: -15%; animation: fly 35s linear infinite 5s; transform: scale(0.7); }
.bird-3 { top: 10%; left: -20%; animation: fly 40s linear infinite 10s; transform: scale(0.5); }

@keyframes fly {
    0% { left: -10%; transform: translateY(0) rotate(10deg); }
    25% { transform: translateY(-20px) rotate(-10deg); }
    50% { transform: translateY(0) rotate(10deg); }
    75% { transform: translateY(20px) rotate(-10deg); }
    100% { left: 110%; transform: translateY(0) rotate(10deg); }
}

.animated-sun {
    position: absolute;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,223,0,0.4) 0%, rgba(255,165,0,0) 70%);
    border-radius: 50%;
    bottom: -100px; left: 80%;
    animation: sunPath 60s ease-in-out infinite;
    filter: blur(10px);
}

@keyframes sunPath {
    0% { bottom: -100px; left: 80%; opacity: 0; }
    30% { bottom: 60%; left: 70%; opacity: 0.3; }
    50% { bottom: 80%; left: 50%; opacity: 0.4; }
    70% { bottom: 60%; left: 30%; opacity: 0.3; }
    100% { bottom: -100px; left: 20%; opacity: 0; }
}
