/* Preloader Styles - Luminous Rose & Lights */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #1a0f0f 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.5s cubic-bezier(0.7, 0, 0.3, 1), visibility 1.5s;
    overflow: hidden;
}

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

.rose-luminous-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.luminous-rose-svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #ff4d6d;
    stroke-width: 1;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(255, 77, 109, 0.5));
}

.rose-layer {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    opacity: 0;
    animation: draw-and-glow 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.petal-outer {
    animation-delay: 0.2s;
    stroke-width: 1.5;
}

.petal-mid {
    animation-delay: 0.6s;
    stroke-width: 1.2;
    stroke: #ff758c;
}

.petal-inner {
    animation-delay: 1.0s;
    stroke-width: 1;
    stroke: #ff85a1;
}

.bud {
    animation-delay: 1.4s;
    stroke-width: 2;
    stroke: #ffb3c1;
}

@keyframes draw-and-glow {
    0% {
        stroke-dashoffset: 400;
        opacity: 0;
        filter: blur(10px);
    }

    30% {
        opacity: 1;
        filter: blur(5px);
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
        filter: blur(0);
    }
}

/* Beautiful Lights / Orbs */
.light-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff758c 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    animation: orb-float 4s ease-in-out infinite alternate;
}

.orb:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0.5s;
    width: 40px;
    height: 40px;
}

.orb:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 1.2s;
    width: 30px;
    height: 30px;
}

.orb:nth-child(3) {
    top: 40%;
    left: 10%;
    animation-delay: 2s;
    width: 50px;
    height: 50px;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 0.2;
    }
}

.rose-breathing-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: breathing 4s ease-in-out infinite alternate;
}

@keyframes breathing {
    from {
        transform: scale(0.85);
        opacity: 0.3;
    }

    to {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Cinematic Typography */
.reveal-text h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2.4rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0;
    animation: text-reveal 2s ease-out 1.5s forwards;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    background-size: 80% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes text-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0px;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 12px;
    }
}

.reveal-text p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 5px;
    margin-top: 10px;
    opacity: 0;
    animation: fade-up 2s ease-out 2.5s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Atmosphere Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: drift 15s infinite linear;
}

@keyframes drift {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) translateX(50px);
        opacity: 0;
    }
}