:root {
    --bg-dark: #000000;
    --curtain-red: #cc0000;
    --curtain-dark: #7a0000;
    --curtain-light: #ff1a1a;
    --text-color: #0f172a;
    --accent: #0ea5e9;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.stage-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #111;
}

/* --- Projector Screen --- */
.projector-screen {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 85%;
    background: #f8fafc;
    border: 15px solid #1e293b;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease 1.5s, transform 1s ease 1.5s;
}

.content-wrapper.show {
    opacity: 1;
    transform: scale(1);
}

.top-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.top-logo {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.welcome-text {
    font-size: 5vw;
    font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.1;
}

.text-white {
    color: #1a1a2e; /* Using a dark color for "ALEROPATH" since the screen is white */
}

.text-blue {
    color: #3b82f6; /* Light blue for "CONNECT" */
    margin-left: 15px;
}

.subtext {
    margin-top: 15px;
    font-size: 1.5vw;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 600;
}

/* --- Theater Curtains --- */
/* Realistic CSS curtain folds using repeating linear gradients */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        var(--curtain-dark) 0%,
        var(--curtain-red) 5%,
        var(--curtain-light) 10%,
        var(--curtain-red) 15%,
        var(--curtain-dark) 20%
    );
    z-index: 20;
    transition: transform 2.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.curtain-left {
    left: 0;
    transform-origin: left;
    border-right: 5px solid rgba(0, 0, 0, 0.3);
}

.curtain-right {
    right: 0;
    transform-origin: right;
    border-left: 5px solid rgba(0, 0, 0, 0.3);
}

/* Top Valance (stays in place) */
.curtain-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: repeating-linear-gradient(
        to right,
        var(--curtain-dark) 0%,
        var(--curtain-red) 3%,
        var(--curtain-light) 6%,
        var(--curtain-red) 9%,
        var(--curtain-dark) 12%
    );
    border-bottom: 10px solid rgba(0, 0, 0, 0.4);
    border-radius: 0 0 20px 20px;
    z-index: 30;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Open states */
.curtain-left.open {
    transform: scaleX(0.1);
}

.curtain-right.open {
    transform: scaleX(0.1);
}

/* --- Rose Petals --- */
.petal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 35; /* Above curtains, below entry overlay */
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 25px;
    height: 30px;
    background: #e91e63;
    border-radius: 15px 0 15px 0;
    pointer-events: none;
    animation: pop ease-out forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes pop {
    0% { 
        transform: translate(0, 0) scale(0) rotate(0deg); 
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% { 
        transform: translate(var(--tx), var(--ty)) scale(var(--s)) rotate(var(--r)); 
        opacity: 0;
    }
}

/* --- Entry Overlay --- */
.entry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 40; /* Above all curtains */
    transition: opacity 0.5s ease;
}

.entry-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.entry-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.entry-btn-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

.entry-button:hover .entry-btn-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.2));
}
