/* Solithub 3D Floating Mascot */
.floating-mascot {
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 40;
    width: 80px;
    height: 80px;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.mascot-body {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7, #C084FC);
    border-radius: 50%;
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.3),
        inset 0 -5px 10px rgba(0, 0, 0, 0.1),
        inset 0 5px 10px rgba(255, 255, 255, 0.2);
    transform: rotateX(10deg) rotateY(10deg);
    transition: all 0.3s ease;
}

.mascot-body:hover {
    transform: rotateX(15deg) rotateY(15deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.4),
        inset 0 -5px 10px rgba(0, 0, 0, 0.1),
        inset 0 5px 10px rgba(255, 255, 255, 0.3);
}

.mascot-eyes {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.eye {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: #1F2937;
    border-radius: 50%;
    animation: blink 4s infinite;
}

.mascot-mouth {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    animation: smile 2s ease-in-out infinite alternate;
}

.mascot-arms {
    position: absolute;
    top: 35px;
    width: 100%;
    height: 20px;
}

.arm {
    position: absolute;
    width: 25px;
    height: 8px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.arm.left {
    left: -15px;
    transform: rotate(-20deg);
    animation: wave-left 2s ease-in-out infinite;
}

.arm.right {
    right: -15px;
    transform: rotate(20deg);
    animation: wave-right 2s ease-in-out infinite;
}

.mascot-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
    filter: blur(8px);
}

.mascot-speech {
    position: absolute;
    bottom: 90px;
    right: -20px;
    background: white;
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: #8B5CF6;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mascot-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.floating-mascot:hover .mascot-speech {
    opacity: 1;
    transform: translateY(0);
}

/* Professional Mascot Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes blink {
    0%, 85%, 100% { transform: scaleY(1); }
    90%, 95% { transform: scaleY(0.1); }
}

@keyframes smile {
    0% { width: 24px; border-width: 3px; }
    100% { width: 28px; border-width: 2px; }
}

@keyframes wave-left {
    0%, 100% { transform: rotate(-25deg) translateY(0px); }
    25% { transform: rotate(-35deg) translateY(-2px); }
    50% { transform: rotate(-45deg) translateY(-3px); }
    75% { transform: rotate(-35deg) translateY(-2px); }
}

@keyframes wave-right {
    0%, 100% { transform: rotate(25deg) translateY(0px); }
    25% { transform: rotate(35deg) translateY(-2px); }
    50% { transform: rotate(45deg) translateY(-3px); }
    75% { transform: rotate(35deg) translateY(-2px); }
}

@keyframes glow {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.15); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes typing {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-mascot {
        bottom: 100px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    .mascot-body {
        width: 60px;
        height: 60px;
    }
    
    .mascot-speech {
        font-size: 10px;
        padding: 6px 8px;
        bottom: 70px;
    }
}

/* Samsung Fold and narrow screens */
@media (max-width: 380px) {
    .floating-mascot {
        bottom: 80px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .mascot-body {
        width: 50px;
        height: 50px;
    }
    
    .mascot-speech {
        font-size: 9px;
        padding: 4px 6px;
        bottom: 55px;
        right: -10px;
    }
}

/* Hide on very small screens (Samsung Fold closed) */
@media (max-width: 320px) {
    .floating-mascot {
        display: none;
    }
}