@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

* {
    margin: 0;
    padding: 0;
}

/* ===== Animated Chemistry Flask ===== */
.flask-container {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    width: 80px;
    height: 100px;
}

.flask {
    position: relative;
    width: 70px;
    height: 90px;
}

/* Flask Neck */
.flask-neck {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.1), rgba(255, 255, 255, 0.2), rgba(0, 180, 216, 0.1));
    border: 2px solid #00B4D8;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

/* Flask Neck Top Cap */
.flask-neck::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 6px;
    background: #00B4D8;
    border-radius: 3px 3px 0 0;
}

/* Flask Body */
.flask-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 55px;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.08), rgba(255, 255, 255, 0.15), rgba(0, 180, 216, 0.08));
    border: 2px solid #00B4D8;
    border-radius: 5px 5px 30px 30px;
    overflow: hidden;
}

/* Liquid inside flask */
.flask-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(180deg, #48CAE4, #0096C7, #00B4D8);
    border-radius: 0 0 28px 28px;
    animation: liquidWave 2.5s ease-in-out infinite;
}

/* Wave effect on liquid surface */
.flask-liquid::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10%;
    width: 120%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: waveMove 2s ease-in-out infinite;
}

@keyframes liquidWave {

    0%,
    100% {
        height: 60%;
    }

    50% {
        height: 68%;
    }
}

@keyframes waveMove {

    0%,
    100% {
        transform: translateX(-5%) scaleY(1);
    }

    50% {
        transform: translateX(5%) scaleY(1.3);
    }
}

/* Bubbles inside flask */
.flask-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: bubbleUp 2s ease-in-out infinite;
}

.flask-bubble:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 25%;
    bottom: 5px;
    animation-delay: 0s;
    animation-duration: 1.8s;
}

.flask-bubble:nth-child(2) {
    width: 4px;
    height: 4px;
    left: 50%;
    bottom: 8px;
    animation-delay: 0.4s;
    animation-duration: 2.2s;
}

.flask-bubble:nth-child(3) {
    width: 7px;
    height: 7px;
    left: 70%;
    bottom: 3px;
    animation-delay: 0.8s;
    animation-duration: 1.6s;
}

.flask-bubble:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    bottom: 10px;
    animation-delay: 1.2s;
    animation-duration: 2s;
}

@keyframes bubbleUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-35px) scale(0.3);
        opacity: 0;
    }
}

/* Steam/vapor rising from flask */
.flask-steam {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
}

.steam-particle {
    position: absolute;
    background: rgba(0, 180, 216, 0.25);
    border-radius: 50%;
    filter: blur(2px);
    animation: steamFloat 2.5s ease-out infinite;
}

.steam-particle:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 2px;
    animation-delay: 0s;
}

.steam-particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 10px;
    animation-delay: 0.8s;
}

.steam-particle:nth-child(3) {
    width: 7px;
    height: 7px;
    left: 6px;
    animation-delay: 1.6s;
}

@keyframes steamFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0;
    }
}

/* Glow effect for flask */
.flask-glow {
    animation: flaskGlow 3s ease-in-out infinite;
}

@keyframes flaskGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 180, 216, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.6));
    }
}