/* Loader/Preloader Styles */
#loader-wrapper {
    display: none !important; /* Disable loader overlay */
}

#loader-wrapper.loaded { display: none !important; }

.loader-content { display: none; }

.galaxy-logo-container { display: none; }

.galaxy-symbol { display: none; }

/* The spiral galaxy animation components */
.spiral-arm {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 4px solid transparent;
    border-right: 4px solid var(--primary-light);
    border-bottom: 4px solid transparent;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: spinGalaxy 3s linear infinite;
    opacity: 0.8;
}

.spiral-arm::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0.5;
    transform: rotate(45deg);
}

.galaxy-core {
    position: absolute;
    width: 20%;
    height: 20%;
    background: radial-gradient(circle, #fff, var(--primary-light));
    border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--primary-color);
    z-index: 10;
    animation: pulseCore 2s ease-in-out infinite;
}

/* The textual representation (\) overlaid or integrated */
.galaxy-text-overlay {
    position: relative;
    z-index: 20;
    background: linear-gradient(135deg, #fff 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
    font-weight: 300; /* Thinner font for the symbol to let galaxy shine through? */
    display: none; /* Hiding the text overlay to prioritize the galaxy animation */
}

/* Constructing the (\) shape with CSS shapes inside the galaxy */
.symbol-part {
    position: absolute;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
    transition: all 0.5s ease;
}

.symbol-backslash {
    font-size: 0.8em;
    transform: rotate(0deg);
    background: linear-gradient(to bottom, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.symbol-parentheses {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinGalaxyReverse 6s linear infinite;
}

.symbol-left-paren, .symbol-right-paren {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 80%;
    border: 3px solid rgba(147, 197, 253, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.symbol-left-paren {
    border-right-color: transparent;
    border-top-color: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

.symbol-right-paren {
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* The rest of the name */
.galaxy-name {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeSlideIn 1s ease-out forwards;
    animation-delay: 0.5s;
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes spinGalaxy {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinGalaxyReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .galaxy-logo-container {
        font-size: 2.5rem;
    }
}
