/*
	DELTA DESIGN - THE MAGIC STAGE & INTERACTIVE ELEMENTS
	Updated: Simplified for Responsiveness & Divi Design Tab Control
*/

/* --- THE MAGIC STAGE --- */
.magic-stage {
    /* SIMPLIFIED SOLUTION: We move the "Light Leaks" back into a single background property.
       Using a deep Space Blue (#0a0a1a) base ensures neon colors stay pure.
    */
    background-color: #0a0a1a !important; 
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 0, 255, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(87, 255, 254, 0.35) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(26, 26, 46, 0.8) 0%, transparent 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    z-index: 1;
}

/* --- MAGIC DUST EFFECT (Restored Simple Fade Loop) --- */
.magic-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.3;
    animation: simple-twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes simple-twinkle {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.05); }
}

/* --- THE MAGIC WAND (Divi Design Tab Compatible) --- */
@keyframes dramatic-incantation {
    0% { rotate: -5deg; }
    50% { rotate: 10deg; translate: 0 -5px; }
    100% { rotate: -5deg; }
}

.hero-wand {
    /* Changed to block to ensure Divi's transform container wraps it correctly */
    display: block; 
    /* Removed !important to allow Divi's Design Tab color/position to override */
    color: #000; 
    transform-origin: bottom center;
    /* We use the 'animation' property but avoid 'transform' inside it where possible
       to let Divi's transform-engine (which uses the transform property) work.
    */
    animation: dramatic-incantation 3s ease-in-out infinite;
    will-change: transform;
    font-style: normal;
    width: fit-content;
    margin: 0 auto; /* Default centering, adjustable in Divi */
}

/* --- NEON TEXT CLASSES --- */
.neon-pink { 
    color: #ff00ff !important; 
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}
.neon-blue { 
    color: #57fffe !important; 
    text-shadow: 0 0 12px rgba(87, 255, 254, 0.4);
}

/* --- THE MAGIC BUTTON --- */
.magic-button-container {
    margin-top: 40px;
    text-align: left;
}

.magic-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: transparent;
    color: #7cda24 !important;
    border: 2px solid #7cda24;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(124, 218, 36, 0.2);
    animation: button-pulse 3s infinite;
}

.magic-button:hover {
    background-color: #7cda24;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(124, 218, 36, 0.8);
    transform: translateY(-3px);
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 218, 36, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(124, 218, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 218, 36, 0); }
}




/* PRESTIGE NEBULA TEXT EFFECT - OPTIMIZED FOR LIVE ASSETS
   Strategy: Using the upscaled nebula as a text-mask with a high-contrast buffer.
*/

h1.glitch-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 5.5vw;
    line-height: 1.1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 20px;
    
    /* THE HOLLOW/NEBULA LOGIC - LIVE ASSET */
    background-image: url('https://rabbitinahat.de/wp-content/uploads/2025/12/Deep-space-upscaled.webp');
    
    /* INCREASED SIZE: Set to 300% to allow for a smooth continuous loop without seeing the image edge */
    background-size: 300% auto;
    background-position: 0% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    
    /* The "Hollow" magic */
    color: transparent;
    -webkit-text-fill-color: transparent;

    /* READABILITY BOOSTERS */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(0, 0, 0, 1));
    
    /* ACCELERATED LOOP: Reduced to 8s and removed 'alternate' for a continuous one-way flow */
    animation: nebula-loop 8s linear infinite !important;
}

@keyframes nebula-loop {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* THE "DOMINANZ" HIGHLIGHT - Full Neon Payoff */
.cyan-glow {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #57fffe;
    -webkit-text-fill-color: #57fffe;
    text-shadow: 
        0 0 10px rgba(87, 255, 254, 0.8),
        0 0 30px rgba(87, 255, 254, 0.4);
    -webkit-text-stroke: 0px;
}

/* Sub-headline positioning */
.sub-headline {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    letter-spacing: 0.4em;
    opacity: 0.8;
}

@media (max-width: 980px) {
    h1.glitch-text { 
        font-size: 8vw; 
        letter-spacing: 0.1em;
    }
}