:root {
/* ===== EASY CONTROLS ===== */
--overlay-bg: #151e29;       /* change this to any color/hex for the overlay background */
--ring-color: 255, 70, 90;   /* R, G, B values used for the rings + glow */
--img-size: 180px;           /* size of the circular image */
}

* { margin: 0; padding: 0; box-sizing: border-box; }


/* ===== PRELOADER OVERLAY ===== */
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--overlay-bg);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.loader-wrap {
position: relative;
width: calc(var(--img-size) * 1.8);
height: calc(var(--img-size) * 1.8);
display: flex;
align-items: center;
justify-content: center;
}

.loader-img {
position: relative;
z-index: 2;
width: var(--img-size);
height: var(--img-size);
border-radius: 50%;
object-fit: cover;
box-shadow: 0 0 20px rgba(var(--ring-color), 0.25);
}

.ring {
position: absolute;
top: 50%;
left: 50%;
width: var(--img-size);
height: var(--img-size);
border-radius: 50%;
border: 2px solid rgba(var(--ring-color), 0.75);
transform: translate(-50%, -50%);
animation: radiate 1.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
opacity: 0;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 0.45s; }
.ring-3 { animation-delay: 0.9s; }

@keyframes radiate {
0% {
    width: var(--img-size);
    height: var(--img-size);
    opacity: 0.85;
    border-width: 3px;
}
70% {
    opacity: 0.3;
}
100% {
    width: calc(var(--img-size) * 1.8);
    height: calc(var(--img-size) * 1.8);
    opacity: 0;
    border-width: 1px;
}
}

.loader-text {
margin-top: 1.75rem;
font-family: "Niramit", sans-serif;
font-style: italic;
font-weight: 400;
font-size: 0.95rem;
letter-spacing: 0.06em;
src: url(https://fonts.gstatic.com/s/niramit/v12/I_upMpWdvgLdNxVLXbZiXim-uLfFVZ8.woff2) format('woff2');
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
}
