/* Aurora-specific styles */
@import url('https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400');
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&display=swap');
/* Ensure proper scroll snapping */
html, body {
    scroll-snap-type: y mandatory;
    height: 100vh;
}

.star {
    border-radius: 50%;
    box-shadow: 0 0 5px 2px white;
    opacity: 0.8;
    animation: twinkle 2s infinite alternate;
    animation-delay: calc(var(--random-delay) * 1s);
    clip-path: polygon(
        50% 0%,   /* top */
        60% 40%,
        100% 50%, /* right */
        60% 60%,
        50% 100%, /* bottom */
        40% 60%,
        0% 50%,   /* left */
        40% 40%
    );
}
body {
    background-color: black;
    margin: 0;
    padding: 0;

}
section {
    height: 100vh;
    width: 100vw;
    color: white;
}
.zodiac-background-section {
    scroll-snap-align: start;
}
.zodiac-midground-section {
    text-align: right;
    height: 200vh
}
.zodiac-foreground-section {
    text-align: right;
    height: 300vh
}
#background-sections {
    z-index: 1;
}
#midground-sections {
    position: fixed;
    top: 100vh;
    z-index: 2;
}
#foreground-sections {
    position: fixed;
    top: 100vh;
    z-index: 3;
}
#constellation-lines {
    width: 100vw;
    height: 1200vh;
    position: absolute;
    top: 100vh;
}
.line {
    position: absolute;
    height: 1px;
    background-color: white;
    transform-origin: 0% 0%;
    opacity: 0;
}
.line.fade-out {
    animation: lineFadeOut 0.6s ease forwards;
    animation-delay: 0s;
}
h1 {
    position: absolute;
    text-align: left;
    font-family: "Zain", sans-serif;
    font-size: 6rem;
    padding: 40vh 0 0 10vw;
    color: white
}
h1.fade {
    color: white;
    filter: blur(10px);
    transform: skewX(-30deg) scaleY(1.7) translate(12%, -12%);
}

p {
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
}


/* Style for the #aurora-bar element with animated gradient */
 .aurora-background {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle 100vh at top left, rgba(115, 0, 255, 0.3), black);
}


#aurora-bar {
    width: 150px;
    height: 300px;
    background: linear-gradient(224deg, #ff00cc, #ffab00, #00ff7b);
    background-size: 300% 300%;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%) skewY(15deg) rotate(10deg);
    animation: ABColorFade 3s ease infinite;
    filter: blur(40px);
}
#aurora-bar-two {
    width: 400px;
    height: 30vh;
    background: linear-gradient(
        to bottom, 
        transparent 0%,
        #8c00ff 40%,
        #1900ff 70%,
        transparent 90% 
    );
    background-size: 100% 100%;
    position: absolute;
    top: 70%;
    left: 55%;
    transform: translate(-50%, -30%); 
    mix-blend-mode: color-dodge; 
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 30%,
        transparent 35%,
        black 60%,
        black 50%,
        transparent 55%,
        black 60%,
        transparent 65%,
        transparent, 80%,
        black 85%,
        transparent 87%
    );
    animation: ABTwoMove 60s ease infinite;

}
#aurora-rays {
    width: 250px;
    height: 100vh;
    background: linear-gradient(
        to left, 
        transparent 25%,
        black 29%, 
        transparent 30%,
        transparent 50%,
        black 51%,
        transparent 52%,
        rgb(0, 0, 0) 53%,
        transparent 56%,
        transparent 96%,
        black 97%,
        transparent 98%,
        black 100%
    );
    background-size: 200% 200%;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%); 
    animation: ABRays 30s ease infinite;
}
#aurora-rays-two {
    width: 250px;
    height: 100vh;
    background: linear-gradient(
        to right, 
        black 0%,
        transparent 4%,
        black 10%,
        transparent 25%,
        black 29%, 
        transparent 30%,
        transparent 40%,
        black 51%,
        transparent 52%,
        rgb(0, 0, 0) 53%,
        transparent 56%,
        transparent 86%,
        black 90%,
        transparent 95%,
        black 100%
    );
    background-size: 200% 200%;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%); 
    animation: ABRaysTwo 20s ease infinite;
}

@keyframes ABColorFade {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes ABTwoMove {
    0% {height: 30vh; top: 70%}
    70% {height: 70vh; top: 30%}
    100%{height: 30vh; top: 70%}
}
@keyframes ABRays {
    0%{background-position:0% 100%; width: 250px}
    50%{background-position:100%, 100%; width: 120px}
    60%{background-position:80%, 100%}
    70%{background-position:90%, 100%}
    100%{background-position:0%, 100%; width: 250px;}
}
@keyframes ABRaysTwo {
    0%{background-position:0% 100%}
    20%{background-position:50%, 100%}
    80%{background-position:70%, 100%}
    0%{background-position:0% 100%}
}
@keyframes lineFadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}
@keyframes lineFadeOut {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Twirl animation for elements with classes "star" and "constellation" */
@keyframes twirl {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(360deg) scale(1);
    }
}

.star.constellation {
    animation: twirl 2s ease-out forwards;
    overflow: visible;
}

/* Ring expansion animation for .star.constellation */
@keyframes ringExpand {
    0% {
        opacity: 0.5;
        transform: scale(0.5);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    100% {
        opacity: 0;
        transform: scale(3);
        box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0);
    }
}

.ring {
    background-color: #b5cfff;
    opacity: 0;
    background: radial-gradient(circle, black 0%, rgba(0, 0, 0, 0) 100%);
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%) scale(0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: ringExpand 2s ease-out forwards;
    animation-delay: calc(var(--random-delay) * 1s);
}
.constellation-tip {
    position: absolute;
    display: block;
    background-color: red;
    width: auto;
    height: auto;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    white-space: nowrap;
}
