/* Advanced Button Effects CSS */

/* Holographic Button */
.holographic-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(
        45deg,
        #ff0080,
        #ff8c00,
        #40e0d0,
        #ff0080
    );
    background-size: 400% 400%;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: holographicShift 3s ease-in-out infinite;
}

.holographic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.holographic-btn:hover::before {
    left: 100%;
}

.holographic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.4);
}

.holographic-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.6);
}

/* Neon Glow Button */
.neon-btn {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #00ffff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.neon-btn:hover {
    color: #000;
    background: #00ffff;
    box-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.2);
    text-shadow: none;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:active {
    transform: scale(0.98);
}

/* Morphing Button */
.morphing-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.morphing-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.morphing-btn:hover {
    border-radius: 8px;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.morphing-btn:hover::before {
    width: 300px;
    height: 300px;
}

.morphing-btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Particle Explosion Button */
.particle-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.particle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.particle-btn:hover::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

.particle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.particle-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.6);
}

/* Liquid Button */
.liquid-btn {
    position: relative;
    padding: 15px 30px;
    background: #1a1a1a;
    border: 2px solid #667eea;
    border-radius: 50px;
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 50px;
}

.liquid-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.liquid-btn:hover::before {
    top: 0;
}

.liquid-btn:hover span {
    color: white;
}

.liquid-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Glitch Button */
.glitch-btn {
    position: relative;
    padding: 15px 30px;
    background: #000;
    border: 2px solid #ff00ff;
    border-radius: 0;
    color: #ff00ff;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.glitch-btn::before,
.glitch-btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glitch-btn::before {
    color: #00ffff;
    animation: glitchBefore 0.3s ease-in-out;
}

.glitch-btn::after {
    color: #ff0040;
    animation: glitchAfter 0.3s ease-in-out;
}

.glitch-btn:hover::before,
.glitch-btn:hover::after {
    opacity: 1;
    animation: glitchHover 0.5s ease-in-out infinite;
}

.glitch-btn:hover {
    animation: glitchMain 0.3s ease-in-out infinite;
}

@keyframes glitchHover {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* 3D Flip Button */
.flip-btn {
    position: relative;
    width: 200px;
    height: 60px;
    perspective: 1000px;
    cursor: pointer;
    margin: 10px;
}

.flip-btn-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-btn:hover .flip-btn-inner {
    transform: rotateY(180deg);
}

.flip-btn-front,
.flip-btn-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
    border: none;
}

.flip-btn-front {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.flip-btn-back {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    transform: rotateY(180deg);
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.magnetic-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.magnetic-btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

/* Ripple Effect Button */
.ripple-btn {
    position: relative;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ripple-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple-btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.ripple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Cyberpunk Button */
.cyberpunk-btn {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.cyberpunk-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.cyberpunk-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff00ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.cyberpunk-btn:hover::before {
    left: 100%;
}

.cyberpunk-btn:hover::after {
    transform: scaleX(1);
}

.cyberpunk-btn:hover {
    color: #000;
    box-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        inset 0 0 10px rgba(255, 0, 255, 0.2);
}

/* Button Group Styles */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .holographic-btn,
    .neon-btn,
    .morphing-btn,
    .particle-btn,
    .liquid-btn,
    .glitch-btn,
    .magnetic-btn,
    .ripple-btn,
    .cyberpunk-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .flip-btn {
        width: 160px;
        height: 50px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Button Animation Utilities */
.btn-pulse {
    animation: btnPulse 2s ease-in-out infinite;
}

.btn-bounce {
    animation: btnBounce 1s ease-in-out infinite;
}

.btn-shake {
    animation: btnShake 0.5s ease-in-out;
}

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

@keyframes btnBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes btnShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}