.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex !important;  /* Force it to show */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.logo-wrapper {
    position: relative;
    width: 600px;
    height: 200px;
    max-width: 90vw;
    max-height: 40vh;
    margin: 0 auto;
    animation: logoRotate 3s ease-in-out forwards;
}

.logo-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Outline animation - appears first and draws the logo outline */
.outline-svg {
    z-index: 3;
}

.outline-path {
    fill: none;
    stroke: #f39c12;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2556;
    stroke-dashoffset: 2556;
    filter: drop-shadow(0 0 8px rgba(243, 156, 18, 0.6));
    animation: drawOutline 3s ease-in-out forwards;
}

/* Shadow layer - appears after outline */
.shadow-svg {
    z-index: 9999;
    opacity: 0;
    animation: showShadow 0.6s ease-out 3.2s forwards;
}

.shadow-path {
    fill: rgba(0, 0, 0, 0.4);
    filter: blur(2px);
}

/* Main logo - appears last with the actual colors */

.main-path-blue {
    fill: #134A69 !important;
}

.main-path-orange {
    fill: #F7921E !important;
}

.main-svg path.main-path-blue {
    fill: #134A69 !important;
}

.main-svg path.main-path-orange {
    fill: #F7921E !important;
}

.main-svg.animated path.main-path-blue {
    fill: #134A69 !important;
}

.main-svg.animated path.main-path-orange {
    fill: #F7921E !important;
}

/* Reset any possible inherited styles */
.main-svg path {
    fill-opacity: 1 !important;
    stroke-opacity: 0 !important;
}

/* Background particles */
.particle {
    position: absolute;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Keyframe animations */
@keyframes drawOutline {
    0% {
        stroke-dashoffset: 2556;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes showShadow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}