/* Animations for the Q+2077 website */

/* Fade in effect */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Slide in from the left */
.slide-in-left {
    transform: translateX(-100%);
    animation: slideInLeft 0.5s forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
    }
}

/* Slide in from the right */
.slide-in-right {
    transform: translateX(100%);
    animation: slideInRight 0.5s forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

/* Hover effect for buttons */
.button-hover {
    transition: background-color 0.3s, transform 0.3s;
}

.button-hover:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Pulsing effect for social media icons */
.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 255, 159, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 255, 159, 0.05);
    backdrop-filter: blur(10px);
}

.scroll-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid #00ff9f;
    border-bottom: 2px solid #00ff9f;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff9f, #00d4ff);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    opacity: 0;
    animation: glowPulse 3s infinite;
}

.scroll-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 0.7;
}

/* 鼠标悬停效果 */
.scroll-indicator:hover .scroll-arrow {
    border-color: #00ff9f;
    background: rgba(0, 255, 159, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.scroll-indicator:hover .scroll-text {
    color: #00ff9f;
    transform: scale(1.2);
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 159, 0.5);
}

/* 滚动时的动态效果 */
.scroll-indicator.scroll-active .scroll-text {
    transform: scale(1.5);
    color: #00ff9f;
    opacity: 1;
    text-shadow: 0 0 15px rgba(0, 255, 159, 0.7);
    font-weight: 500;
}

.scroll-indicator.scroll-active .scroll-arrow {
    transform: scale(1.2);
    border-color: #00ff9f;
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.5);
}

/* 滚动内容变化时的文字变大效果 */
.scroll-text.content-change {
    animation: textZoom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes textZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.8);
        color: #ff6b6b;
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
    100% {
        transform: scale(1.2);
        color: #00ff9f;
        text-shadow: 0 0 15px rgba(0, 255, 159, 0.7);
    }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-3px);
    }
    60% {
        transform: rotate(45deg) translateY(-1px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 50px;
        height: 50px;
    }
    
    .scroll-text {
        font-size: 12px;
    }
    
    .scroll-indicator:hover .scroll-text,
    .scroll-indicator.scroll-active .scroll-text {
        transform: scale(1.3);
    }
    
    .scroll-text.content-change {
        animation: textZoomMobile 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@keyframes textZoomMobile {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.6);
        color: #ff6b6b;
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    }
    100% {
        transform: scale(1.2);
        color: #00ff9f;
        text-shadow: 0 0 10px rgba(0, 255, 159, 0.7);
    }
}