/* Elegant Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Diamond Pulse Animation */
.diamond-loader {
    position: relative;
    width: 64px;
    height: 64px;
    transform: rotate(45deg);
    animation: rotate-center 3s ease-in-out infinite;
}

.diamond-loader div {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #D1B27B;
    opacity: 0.8;
    animation: diamond-pulse 1.5s cubic-bezier(0.2, 0.68, 0.18, 1.08) infinite;
}

.diamond-loader div:nth-child(1) {
    top: 0;
    left: 0;
}

.diamond-loader div:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.2s;
}

.diamond-loader div:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 0.4s;
}

.diamond-loader div:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

@keyframes diamond-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes rotate-center {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}