/* Base Loader Styles */
#ftco-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Option 1: Logo Loader */
.logo-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.animated-logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(44, 90, 160, 0.1);
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes logoFloat {

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

    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
    }
}

/* Option 2: Brand Loader */
.brand-loader {
    text-align: center;
}

.brand-logo {
    animation: gentleBounce 2s infinite;
}

.floating-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.floating-dots span {
    width: 12px;
    height: 12px;
    background: #2c5aa0;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.floating-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes gentleBounce {

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

    50% {
        transform: translateY(-15px) scale(1.03);
    }
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-15px);
    }
}

/* Option 3: Minimalist Loader */
.minimal-loader {
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-pulse {
    width: 100px;
    height: 100px;
    animation: pulseGlow 2s infinite;
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    color: #2c5aa0;
    letter-spacing: 2px;
}

.loading-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.loading-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loading-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.loading-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.loading-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loading-text .dot {
    color: #ff6b00;
}

.loading-text .dot:nth-child(7) {
    animation-delay: 0.7s;
}

.loading-text .dot:nth-child(8) {
    animation-delay: 0.8s;
}

.loading-text .dot:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(44, 90, 160, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(44, 90, 160, 0.5));
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Common Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Fade out animation */
#ftco-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.my-float {
    margin-top: 16px;
}

:hover .my-float {
    color: #FFF;
}

:active .my-float {
    color: #FFF !important;
}