/* Index Page Loader - Start */
.ramm-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #142b63 0%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.ramm-page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* Modern Logo Animation */
.ramm-logo-loader {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.ramm-logo-loader .logo-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(248, 184, 47, 0.3));
}

.ramm-logo-loader .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(248, 184, 47, 0.4) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Modern Loading Text */
.ramm-loading-text-parent {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.ramm-loading-text-parent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f8b82f;
    animation: textUnderline 2s ease-in-out infinite;
}

@keyframes textUnderline {
    0%, 100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

/* Modern Progress Bar */
.ramm-loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ramm-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #f8b82f, #f5a623);
    border-radius: 10px;
    width: 0%;
    animation: progressLoad 2s ease-in-out infinite;
}

@keyframes progressLoad {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 60%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(0%);
    }
}

/* Particle Effects */
.ramm-loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ramm-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f8b82f;
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Index Page Loader - End */

/* Child Loader - Start */
.ramm-page-loader-all {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.ramm-page-loader-all.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Dual Ring Loader */
.ramm-dual-ring {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 25px;
}

.ramm-dual-ring::before,
.ramm-dual-ring::after {
    content: '';
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: dualRingSpin 2s linear infinite;
}

.ramm-dual-ring::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 4px solid #f8b82f;
    border-right: 4px solid #f8b82f;
}

.ramm-dual-ring::after {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-bottom: 4px solid #142b63;
    border-left: 4px solid #142b63;
    animation-direction: reverse;
}

@keyframes dualRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ramm-loading-text {
    color: #142b63;
    font-size: 1.2rem;
    font-weight: 600;
}
/* Child Loader - End */