/* Keyframe Animations & Background Movements */

/* Fade In Up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Delay modifiers for stagger effects */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Floating Shapes Animation */
@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Drift Blob Animation */
@keyframes driftBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(230, 57, 70, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Rotate Ring Animation */
@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Move Gradient Animation */
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Global Background Animated Decorative System */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    background: var(--background);
}

/* Blurred Gradient Blob */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: driftBlob 15s ease-in-out infinite;
}

.bg-blob-red {
    top: 15%;
    left: 10%;
    width: clamp(200px, 30vw, 450px);
    height: clamp(200px, 30vw, 450px);
    background: var(--primary-red);
    animation-delay: 0s;
}

.bg-blob-blue {
    top: 50%;
    right: 5%;
    width: clamp(250px, 35vw, 550px);
    height: clamp(250px, 35vw, 550px);
    background: var(--blue);
    animation-delay: -5s;
}

.bg-blob-purple {
    bottom: 10%;
    left: 20%;
    width: clamp(200px, 25vw, 350px);
    height: clamp(200px, 25vw, 350px);
    background: var(--purple);
    animation-delay: -8s;
}

/* Floating transparent circles */
.floating-circle {
    position: absolute;
    border: 2px solid rgba(16, 42, 67, 0.05);
    border-radius: 50%;
    animation: floatShape 20s linear infinite;
}

.circle-1 {
    top: 8%;
    right: 15%;
    width: 80px;
    height: 80px;
    animation-duration: 25s;
}

.circle-2 {
    top: 60%;
    left: 8%;
    width: 120px;
    height: 120px;
    animation-duration: 35s;
    animation-delay: -10s;
}

/* Soft glowing rings */
.glowing-ring {
    position: absolute;
    border: 1px dashed rgba(230, 57, 70, 0.15);
    border-radius: 50%;
    animation: rotateRing 40s linear infinite;
}

.ring-1 {
    top: 30%;
    left: -50px;
    width: 250px;
    height: 250px;
}

.ring-2 {
    bottom: 25%;
    right: -100px;
    width: 400px;
    height: 400px;
    animation-direction: reverse;
}

/* Decorative dotted patterns */
.dotted-pattern {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(16, 42, 67, 0.08) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.dots-1 {
    top: 25%;
    right: 12%;
}

.dots-2 {
    bottom: 35%;
    left: 5%;
}

/* Red brush-style elements */
.brush-stroke-decor {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
    transform: rotate(-15deg);
}

.brush-1 {
    top: 18%;
    right: 40%;
    width: 300px;
    height: 80px;
    background: radial-gradient(ellipse at center, var(--primary-red) 0%, transparent 70%);
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-blob,
    .floating-circle,
    .glowing-ring {
        animation: none !important;
    }
}
