/* Liquid Loader */
.liquid-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.liquid-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.liquid-drop {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    filter: blur(20px);
    opacity: 0.7;
    animation: liquidFloat 4s ease-in-out infinite;
}

.liquid-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: linear-gradient(45deg, #3b82f6, #6366f1);
}

.liquid-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: -1s;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
}

.liquid-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: -2s;
    background: linear-gradient(45deg, #10b981, #06b6d4);
}

.liquid-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: -3s;
    background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.logo-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.logo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    border-color: #3b82f6;
    animation-delay: 0s;
}

.logo-circle:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
    border-color: #8b5cf6;
    animation-delay: -0.5s;
}

.logo-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 30px;
    border-color: #10b981;
    animation-delay: -1s;
}

.loader-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pharm-text {
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite;
}

.loader-subtitle {
    color: #94a3b8;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes liquidFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        transform: translate(0, 20px) scale(0.9);
        border-radius: 40% 30% 70% 60% / 70% 40% 60% 30%;
    }

    75% {
        transform: translate(-20px, 0) scale(1.05);
        border-radius: 70% 40% 60% 30% / 40% 60% 30% 70%;
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    }
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 50%;
    left: 20%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    bottom: 20%;
    right: 25%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    width: 18px;
    height: 18px;
    bottom: 30%;
    left: 15%;
    animation-delay: -8s;
}

.particle:nth-child(6) {
    width: 22px;
    height: 22px;
    top: 70%;
    right: 10%;
    animation-delay: -10s;
}

.particle:nth-child(7) {
    width: 14px;
    height: 14px;
    top: 40%;
    left: 70%;
    animation-delay: -12s;
}

.particle:nth-child(8) {
    width: 16px;
    height: 16px;
    bottom: 60%;
    right: 60%;
    animation-delay: -14s;
}

.particle:nth-child(9) {
    width: 19px;
    height: 19px;
    top: 80%;
    left: 40%;
    animation-delay: -16s;
}

.particle:nth-child(10) {
    width: 13px;
    height: 13px;
    bottom: 10%;
    left: 60%;
    animation-delay: -18s;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, -50px) rotate(90deg);
    }

    50% {
        transform: translate(0, -100px) rotate(180deg);
    }

    75% {
        transform: translate(-100px, -50px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}