/* 高级动画效果文件 */

/* 渐变文字动画 */
@keyframes rainbow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-text {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff, #00ffff, #ff00ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-animation 3s ease infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 故障文字效果 */
.glitch-text {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

/* 浮动动画 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 脉冲发光 */
.pulse-glow {
    animation: pulse-glow 1s ease-in-out !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 80px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

/* 3D翻转卡片 */
.card-3d-flip {
    perspective: 1000px;
    cursor: pointer;
}

.card-3d-flip.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

/* 列表项滑入 */
.list-item-slide {
    animation: slide-in-right 0.5s ease-out both;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 悬停3D提升 */
.hover-lift-3d {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.hover-lift-3d:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.4);
}

/* 发光卡片 - 已禁用复杂效果 */
.glow-card {
    position: relative;
}

/* 技能进度条动画 */
.skill-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    animation: progress-fill 2s ease-out forwards, progress-shine 2s ease-in-out infinite;
}

@keyframes progress-fill {
    from {
        width: 0;
    }
    to {
        width: 85%;
    }
}

@keyframes progress-shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 闪光效果 */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* 图标旋转 */
.spin-on-hover {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spin-on-hover:hover {
    transform: rotate(360deg);
}

/* 时间线标记动画 */
.marker-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    animation: marker-pulse 2s ease-in-out infinite;
}

@keyframes marker-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.4);
    }
}

/* 徽章样式 */
.company-badge,
.project-badge,
.school-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

/* 浮动装饰形状 */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 50%;
    right: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: 10%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* 联系项发光效果 - 简化版 */
.contact-glow {
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-glow {
    opacity: 0.8;
}

/* 图标包装器 */
.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-item:hover .icon-wrapper::before {
    opacity: 1;
    animation: icon-pulse 1s ease-in-out infinite;
}

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

/* 图标圆圈 */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* 技能图标 */
.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 子弹图标 */
.bullet-icon {
    color: #3b82f6;
    margin-right: 0.5rem;
    display: inline-block;
    transition: all 0.2s ease;
}

li:hover .bullet-icon {
    transform: scale(1.3);
    color: #8b5cf6;
}

