/* --- Base Background Setup --- */
#background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* --- Moving Light Waves / Mesh Gradients --- */
.mesh-blob {
    position: absolute;
    border-radius: 50%;
    animation: pulse-slow 8s ease-in-out infinite;
}
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* --- Twinkling Stars --- */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.9);
    animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* --- Drifting Particles --- */
.particles-layer {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(21, 200, 232, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 80% 20%, rgba(240, 63, 149, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 80%, rgba(247, 183, 49, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 90%, rgba(126, 87, 255, 0.4) 1.5px, transparent 1.5px);
    background-size: 120px 120px;
    animation: drift 25s linear infinite;
}
@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-120px); }
}

/* --- Globe & Orbits --- */
.globe-logo {
    animation: floatAndRotate 6s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(21, 200, 232, 0.35);
}
@keyframes floatAndRotate {
    0%, 100% { transform: translateY(-12px) rotate(-3deg); }
    50% { transform: translateY(12px) rotate(4deg); }
}

.glow-behind {
    position: absolute;
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(21,200,232,0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-width: 1.5px;
    z-index: 5;
}

.ring-1 {
    width: 95%;
    height: 95%;
    transform: rotateX(65deg) rotateY(20deg);
    animation: spin1 20s linear infinite;
}

.ring-2 {
    width: 110%;
    height: 110%;
    transform: rotateX(75deg) rotateY(-15deg);
    animation: spin2 28s linear infinite;
}

@keyframes spin1 {
    to { transform: rotateX(65deg) rotateY(20deg) rotateZ(360deg); }
}
@keyframes spin2 {
    to { transform: rotateX(75deg) rotateY(-15deg) rotateZ(-360deg); }
}

/* --- Sequence Entry Animations --- */
.brand-name {
    opacity: 0;
    animation: fadeUp 1s ease-out 0.3s forwards;
}
.tagline {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}
.description {
    opacity: 0;
    animation: fadeIn 1s ease-out 2.0s forwards;
}
.animated-divider {
    opacity: 0;
    transform: scaleX(0);
    box-shadow: 0 0 12px #F7B731;
    animation: scaleIn 1.5s ease-out 2.3s forwards;
}
.stay-tuned {
    opacity: 0;
    animation: fadeIn 1s ease-out 2.8s forwards;
}

/* --- JS Controlled Letter Reveal --- */
.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpChar 0.8s cubic-bezier(0.2, 0.65, 0.3, 0.9) forwards;
}
.char-space {
    display: inline-block;
    width: 0.3em;
}

/* Keyframes for Entry Sequences */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scaleIn {
    to { opacity: 1; transform: scaleX(1); }
}
@keyframes fadeUpChar {
    to { opacity: 1; transform: translateY(0); }
}

/* Delay Utilities */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 1s; }
.delay-1-5 { animation-delay: 1.5s; }
.delay-2 { animation-delay: 2s; }
.delay-4 { animation-delay: 4s; }

/* New Entry Animation for Bottom Card */
.stay-tuned-card {
    opacity: 0;
    animation: fadeUp 1s ease-out 2.8s forwards;
}

/* Accessibility: Stop animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}