/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

/* Keyframe Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--glow);
    }

    50% {
        box-shadow: 0 0 20px var(--glow), 0 0 30px var(--glow);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Staggered Animations */
.stagger-animate>* {
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.stagger-animate>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-animate>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-animate>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-animate>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-animate>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-animate>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--glow);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Specialized Animations */
.analytics-wave {
    animation: wave 2s ease-in-out infinite alternate;
}

@keyframes wave {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.data-point {
    animation: dataPoint 3s ease-in-out infinite;
}

@keyframes dataPoint {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Responsive Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Changelog specific animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Changelog item animations */
.timeline-item {
    animation: fadeInUp 0.6s ease-out;
}

.change-type {
    animation: slideInFromLeft 0.6s ease-out;
}

.change-type:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.change-type:nth-child(3) {
    animation: slideInFromRight 0.6s ease-out 0.4s both;
}

/* Hover effects for changelog */
.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--primary);
}

.change-type {
    transition: all 0.3s ease;
}

.change-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Splash Screen Animations */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes statusBarSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes textTyping {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statsAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations to splash screen elements */
.splash-mockup {
    animation: splashFadeIn 1s ease-out;
}

.status-bar {
    animation: statusBarSlide 0.8s ease-out 0.3s both;
}

.splash-logo {
    animation: logoAppear 1.2s ease-out 0.5s both;
}

.splash-title {
    animation: textTyping 0.8s ease-out 1s both;
}

.splash-subtitle {
    animation: textTyping 0.8s ease-out 1.2s both;
}

.loading-indicator {
    animation: textTyping 0.8s ease-out 1.4s both;
}

.splash-stats {
    animation: statsAppear 0.8s ease-out 1.6s both;
}

/* Hover interactions */
.splash-mockup:hover {
    animation-play-state: paused;
}

.splash-mockup:hover .loading-progress {
    animation-play-state: paused;
}

.splash-mockup:hover .splash-logo {
    animation: logoPulse 1s ease-in-out infinite;
}

/* Particle effects */
.splash-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}