/* Ensure html and body take full height for proper fixed positioning and centering */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Hide scrollbar initially for preloader */
}




/* Preloader Specific Styles */
.ruka-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex; /* Use flexbox to center content */
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Example background color, adjust as per design */
    opacity: 1;
    visibility: visible;
}

.ruka-preloader-animation {
    position: relative; /* Needed for absolute positioning of children */
    display: flex; /* To center the content */
    flex-direction: column; /* Stack children vertically */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ruka-pos-abs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; /* Center text within these elements */
}

.ruka-animation-1 .ruka-h3 {
    display: inline-block; /* Make spans behave like inline blocks */
    opacity: 0; /* Initially hidden for GSAP fromTo animation */
    transform: translateY(30px); /* Initial Y position for animation */
    margin: 0 5px; /* Add some spacing between words */
}

.ruka-animation-2 {
    opacity: 0; /* Ensure it starts hidden */
}

.ruka-animation-2 .ruka-h3 {
    opacity: 0; /* Initially hidden for GSAP fromTo animation, will be animated to 1 */
}

.ruka-reveal-frame {
    position: relative;
    display: inline-block; /* To wrap around the text */
    overflow: hidden; /* Crucial for the reveal effect */
}

.ruka-reveal-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Starts covering the text */
    height: 100%;
    background-color: #f0f0f0; /* Match preloader background or text background */
    z-index: 1; /* Ensure it's above the text */
    opacity: 1; /* Ensure it's visible initially for the animation */
}

/* Debugging styles for 3D Dodecahedron */
.ruka-animation-in,
.ruka-animation-frame {
    position: absolute; /* Ensure positioning context */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Bring to front for debugging */
    /* pointer-events: none; */ /* Keep this if you don't want it to block clicks */
}

.ruka-animation {
    position: absolute; /* Ensure positioning for the animation itself */
    width: 200px; /* Give it a size for visibility */
    height: 200px; /* Give it a size for visibility */
    border-radius: 50%; /* Make it a circle for easy identification */
    z-index: 11; /* Higher z-index than parents */
    /* The actual positioning (top, left, right, bottom) will be handled by ds-animation-engine.js
       and data-value-1/2 attributes. */
}