/* ========================================
   ADVANCED ANIMATIONS & EFFECTS
   Premium animation effects for SIM-like design
======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Blur in animation */
@keyframes blurIn {
    from {
        filter: blur(10px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Scale pulse */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Gradient shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Text glow effect */
.v3-eyebrow {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hover effects for buttons */
.v3-btn {
    position: relative;
    overflow: hidden;
}

.v3-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.v3-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover lift effect */
.v3-plan {
    position: relative;
}

.v3-plan::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.v3-plan:hover::after {
    opacity: 1;
}

/* Step animation */
.v3-step {
    animation: slideInUp 0.6s ease both;
}

.v3-step:nth-child(1) {
    animation-delay: 0.1s;
}

.v3-step:nth-child(2) {
    animation-delay: 0.2s;
}

.v3-step:nth-child(3) {
    animation-delay: 0.3s;
}

.v3-step:nth-child(4) {
    animation-delay: 0.4s;
}

.v3-step:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infinite animations */
.float-element {
    animation: float 3s ease-in-out infinite;
}

.glow-element {
    animation: glow 3s ease-in-out infinite;
}

.pulse-element {
    animation: scalePulse 2s ease-in-out infinite;
}

/* Backdrop blur effect for modern browsers */
.blur-background {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Shimmer loading effect */
@keyframes shimmerLoading {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmerLoading 2s infinite;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2, h3, h4, h5, h6 {
    animation: textReveal 0.8s ease-out;
}

/* Link hover animation */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .v3-section--panel {
        background: rgba(15, 23, 42, 0.5);
    }
}
