/* Lusion风格动画效果 */

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 鼠标跟随效果 - EN404风格 */
.cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
    opacity: 0; /* 初始状态隐藏 */
}

.cursor.active {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: rgba(46, 204, 113, 0.3);
}

/* 滚动动画 - EN404风格 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, 
                transform 0.5s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 文字渐变动画 - EN404风格 */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 悬停缩放效果 */
.scale-on-hover {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 图片视差效果 */
.parallax-image {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.parallax-image img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    width: 110%;
    height: 110%;
    margin: -5%;
}

/* 按钮悬停效果增强 - EN404风格 */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.25s ease;
    padding: 0.3rem 0;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-hover-effect:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
}

.btn-hover-effect:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}