/* styles.css */
:root {
    --primary-yellow: #FFE600;
    --cosmic-purple: #6A0DAD;
    --electric-blue: #00FFFF;
    --cream-white: #FFFDD0;
    --bg-dark: #0b021a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scrolling, full screen experience */
    font-family: 'Space Mono', monospace;
    background-color: var(--bg-dark);
}

.cosmic-void {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('assets/galaxy_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

#parallax-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}



/* Animations */
@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-aura {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

/* --- TEXT CONTENT --- */
#text-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    text-align: center;
    width: 100%;
}

.neon-title {
    font-family: 'Monoton', cursive;
    font-size: 5rem;
    color: var(--primary-yellow);
    text-shadow:
        0 0 10px var(--primary-yellow),
        0 0 20px var(--primary-yellow),
        0 0 40px var(--cosmic-purple),
        0 0 80px var(--cosmic-purple);
    margin-bottom: 0.5rem;
    animation: neon-flicker 3s infinite alternate;
    letter-spacing: 2px;
}

.animated-subtitle {
    font-size: 2.5rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.1rem;
    justify-content: center;
}

.char {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
    text-shadow: 0 0 10px var(--electric-blue), 0 0 20px var(--electric-blue);
    cursor: default;
}

.char:hover {
    transform: translateY(-10px) scale(1.2) rotate(5deg);
    color: var(--primary-yellow);
    text-shadow: 0 0 15px var(--primary-yellow), 0 0 30px var(--primary-yellow);
}

.char.bounce {
    animation: text-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes text-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        color: var(--primary-yellow);
    }
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 10px var(--primary-yellow),
            0 0 20px var(--primary-yellow),
            0 0 40px var(--cosmic-purple),
            0 0 80px var(--cosmic-purple);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* --- CTA BUTTONS & FORM --- */
.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 25;
}

.warp-btn-primary {
    background: linear-gradient(90deg, var(--primary-yellow), #FFA500);
    color: var(--bg-dark);
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.warp-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
    opacity: 0;
}

.warp-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 230, 0, 0.8);
    background: linear-gradient(90deg, #FFA500, var(--primary-yellow));
}

.warp-btn-primary:active::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
    transition: 0s;
}

.warp-btn-primary.warp-anim {
    animation: warp-drive 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes warp-drive {
    0% {
        transform: scale(1);
        filter: hue-rotate(0deg);
    }

    50% {
        transform: scale(1.2) scaleX(2);
        filter: hue-rotate(180deg);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        filter: hue-rotate(360deg);
        opacity: 1;
    }
}



/* --- FLOATING PARTICLE SYSTEM --- */
#floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--cream-white);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

/* DYNAMIC BANANAS & ECOSYSTEM */
.dynamic-banana {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(255, 230, 0, 0.6));
    transition: filter 0.3s;
    will-change: transform;
    z-index: 5;
}

.dynamic-banana:hover {
    filter: drop-shadow(0 0 20px var(--electric-blue)) brightness(1.2);
    z-index: 50 !important;
}

.dynamic-banana.trail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 40px;
    background: linear-gradient(to top, var(--primary-yellow), transparent);
    transform: translate(-50%, -50%) rotate(180deg);
    border-radius: 10px;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.5;
}

.giant-meteor {
    position: absolute;
    font-size: 15rem;
    filter: drop-shadow(0 0 50px var(--primary-yellow)) drop-shadow(0 0 100px #FF4500);
    z-index: 40;
    pointer-events: none;
    animation: meteor-fly 3s linear forwards;
}

@keyframes meteor-fly {
    0% {
        transform: translate(-30vw, -30vh) rotate(45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(120vw, 120vh) rotate(45deg);
        opacity: 0;
    }
}

.explode-slice {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: explode-out 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes explode-out {
    0% {
        transform: translate(0, 0) scale(1) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0) rotate(var(--r));
        opacity: 0;
    }
}

.rain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60;
    background: radial-gradient(circle, rgba(255, 230, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 1s;
}

.rain-overlay.active {
    opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .neon-title {
        font-size: 3rem;
    }

    .animated-subtitle {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .warp-btn-primary {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    #signup-form {
        flex-direction: column;
        border-radius: 20px;
    }

    .cosmic-submit {
        width: 100%;
    }

    #play-music {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .neon-title {
        font-size: 2.2rem;
    }

    .melting-subtitle {
        font-size: 1.2rem;
    }
}