/* Статична колба з ефектом вибуху часток при наведенні */
.logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chem-logo {
    position: relative;
    width: 50px;
    height: 60px;
    cursor: pointer;
}

.flask {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #2e7d32;
    clip-path: polygon(30% 0%, 70% 0%, 70% 35%, 100% 100%, 0% 100%, 30% 35%);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 2;
}

.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, #1b5e20, #4caf50);
    animation: bubbling 2.5s infinite ease-in-out;
}

@keyframes bubbling {
    0%, 100% { height: 50%; transform: scaleY(1); }
    50% { height: 60%; transform: scaleY(1.05); }
}

/* Ефект вибуху часток (бризки) */
.chem-logo::before, .chem-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #81c784;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.chem-logo:hover::before {
    animation: particles-left 0.8s ease-out forwards;
}

.chem-logo:hover::after {
    animation: particles-right 0.8s ease-out forwards;
}

@keyframes particles-left {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { 
        transform: translate(-150%, -60px) scale(0.5); 
        opacity: 0; 
        box-shadow: -15px -10px #4caf50, -30px -25px #a5d6a7, -10px -40px #2e7d32;
    }
}

@keyframes particles-right {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { 
        transform: translate(100%, -60px) scale(0.5); 
        opacity: 0; 
        box-shadow: 15px -10px #4caf50, 30px -25px #a5d6a7, 10px -40px #2e7d32;
    }
}

.math-symbol {
    position: absolute;
    top: -5px;
    right: -12px;
    font-size: 22px;
    color: #1b5e20;
    font-weight: bold;
    z-index: 3;
}

@media (max-width: 768px) {
    .logo-container { transform: scale(0.8); }
}
