/* Grand Opening Animation - Red Curtains & Confetti */

/* Curtain Overlay */
.launch-curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

/* Left Curtain */
.curtain-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #8B0000, #DC143C);
    box-shadow: inset -20px 0 50px rgba(0,0,0,0.5);
    animation: curtainOpenLeft 2s ease-in-out 1s forwards;
    z-index: 100000;
}

/* Right Curtain */
.curtain-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, #8B0000, #DC143C);
    box-shadow: inset 20px 0 50px rgba(0,0,0,0.5);
    animation: curtainOpenRight 2s ease-in-out 1s forwards;
    z-index: 100000;
}

/* Curtain texture effect */
.curtain-left::before,
.curtain-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.1) 20px
    );
}

/* Curtain animations */
@keyframes curtainOpenLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes curtainOpenRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
}

/* Individual Confetti Piece */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

/* Confetti colors */
.confetti.red { background: #DC143C; }
.confetti.gold { background: #FFD700; }
.confetti.blue { background: #4169E1; }
.confetti.green { background: #32CD32; }
.confetti.pink { background: #FF69B4; }
.confetti.orange { background: #FF8C00; }

/* Confetti fall animation */
@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Party Popper Effect */
.party-popper {
    position: fixed;
    font-size: 60px;
    z-index: 99999;
    animation: popperBurst 1s ease-out forwards;
}

.party-popper.top-left {
    top: 20px;
    left: 20px;
}

.party-popper.top-right {
    top: 20px;
    right: 20px;
}

.party-popper.bottom-left {
    bottom: 20px;
    left: 20px;
}

.party-popper.bottom-right {
    bottom: 20px;
    right: 20px;
}

@keyframes popperBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

/* Welcome Message */
.launch-welcome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    text-align: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
    opacity: 0;
    animation: welcomeFade 3s ease-in-out 1.5s forwards;
    pointer-events: none;
}

@keyframes welcomeFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .launch-welcome {
        font-size: 2rem;
    }
    
    .party-popper {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .launch-welcome {
        font-size: 1.5rem;
    }
    
    .party-popper {
        font-size: 30px;
    }
}
