/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.fade-in-up {
    transform: translateY(30px);
}

.scroll-animate.fade-in-left {
    transform: translateX(-30px);
}

.scroll-animate.fade-in-right {
    transform: translateX(30px);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Stagger animation delays for multiple items */
.scroll-animate:nth-child(1) {
    transition-delay: 0s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(6) {
    transition-delay: 0.5s;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--accent-primary) 0%,
            var(--accent-primary-active) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg,
            var(--accent-primary-hover) 0%,
            var(--accent-primary) 100%);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
}