/* אנימציית כניסה לאתר */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.8s ease-in-out 2.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* לוגו מרכזי מונפש */
.loader-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.loader-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.loader-logo svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease-in-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* טקסט טעינה */
.loader-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* אנימציית נקודות */
.loader-dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.loader-dot {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
}

/* אנימציית תוכן הדף */
.page-content {
    opacity: 0;
    animation: fadeInContent 1s ease-in-out 2.8s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

/* חלקיקים מרחפים */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 3s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 0.7s; }
.particle:nth-child(6) { left: 60%; animation-delay: 0.2s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.9s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.4s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.6s; }

/* ברים טוענים */
.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #a8edea, #fed6e3, #fff);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressAnimation 2.5s ease-in-out forwards, gradientMove 2s linear infinite;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* אפקט ריפל */
.ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rippleEffect 2s ease-out infinite;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.ripple:nth-child(1) {
    animation-delay: 0s;
}

.ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.ripple:nth-child(3) {
    animation-delay: 1s;
}
