/* Animation & Visual Effects Styles */

/* Aurora Gradient Background */
.aurora-background {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #93c5fd 100%);
    background-size: 200% 200%;
    animation: auroraFlow 15s ease infinite;
}

@keyframes auroraFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Particle System Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-200px) translateX(-50px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-100px) translateX(100px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Ken Burns Effect for Images */
.ken-burns {
    animation: kenBurns 20s ease-in-out infinite;
    transform-origin: center;
}

@keyframes kenBurns {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* Hover Depth Effect */
.hover-depth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-depth:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(27, 75, 47, 0.2);
}

/* Color Cycling Text */
.color-cycle {
    background: linear-gradient(90deg, #E07A5F, #60a5fa, #93c5fd, #E07A5F);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorCycle 5s ease infinite;
}

@keyframes colorCycle {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Split-by-Letter Stagger Animation */
.split-text {
    display: inline-block;
}

.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #E07A5F 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Elastic Scaling */
.elastic-scale {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.elastic-scale:active {
    transform: scale(0.95);
}

/* Smooth Morphing Forms */
.morphing-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.morphing-input:focus {
    border-color: var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(27, 75, 47, 0.1);
}

/* Loading Skeleton */
.skeleton-loading {
    background: linear-gradient(90deg, 
        var(--color-background-light) 25%, 
        rgba(255, 255, 255, 0.5) 50%, 
        var(--color-background-light) 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Parallax Depth Layers */
.parallax-layer {
    will-change: transform;
}

.parallax-layer-1 {
    transform: translateZ(0);
}

.parallax-layer-2 {
    transform: translateZ(1px);
}

.parallax-layer-3 {
    transform: translateZ(2px);
}

/* Infinite Scroller */
.infinite-scroll {
    display: flex;
    animation: scrollHorizontal 30s linear infinite;
    will-change: transform;
}

@keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Stagger Animation Utility */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.animate {
    animation: staggerFadeIn 0.6s ease forwards;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Lift Animation */
.card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.card-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(27, 75, 47, 0.15);
}

/* Button Pulse Animation */
.button-pulse {
    position: relative;
    overflow: visible;
}

.button-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(27, 75, 47, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(27, 75, 47, 0.5);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

