@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,700&family=Poppins:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; color: white; font-family: 'Poppins', sans-serif; overflow: hidden; height: 100vh; }

/* Background Control */
#video-bg-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    transition: opacity 2s ease;
}

.gradient-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(43, 0, 43, 0.7), rgba(255, 0, 127, 0.3), rgba(0,0,0,0.85));
    z-index: -1;
}

/* Infinite Scroll Gallery */
.scrolling-track {
    position: fixed; top: 50%; left: 0; transform: translateY(-50%);
    width: 100vw; height: 65vh; overflow: hidden;
}

.video-strip {
    display: flex; gap: 30px; width: max-content;
    animation: scrollRight 40s linear infinite;
}

.mobile-video {
    height: 65vh; aspect-ratio: 9/16; object-fit: cover;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
    filter: brightness(0.6);
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Glass UI */
.screen { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; position: absolute; }
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 40px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center; width: 90%; max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Centered Text Layout */
.text-overlay-container {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; z-index: 10; width: 90%; max-width: 600px;
}

.step-text { display: none; }
.step-text.active { display: block; animation: fadeInUp 1.5s ease forwards; }

.title { font-family: 'Playfair Display', serif; font-size: 3rem; color: #ff007f; margin-bottom: 20px; text-shadow: 0 0 20px rgba(255,0,127,0.5); }
.content { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.4); padding: 20px; border-radius: 15px; }

/* Finale Effect */
#finale-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(40px);
    display: flex; justify-content: center; align-items: center; z-index: 100;
    opacity: 0; transition: opacity 3s ease;
}

.finale-content { text-align: center; max-width: 700px; padding: 40px; }
.finale-text { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-style: italic; line-height: 1.5; margin-bottom: 30px; }
.signature { font-size: 1.5rem; color: #ff007f; font-weight: bold; letter-spacing: 3px; }

/* Controls */
button {
    background: #ff007f; border: none; color: white; padding: 14px 40px;
    border-radius: 50px; cursor: pointer; margin-top: 30px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 2px; transition: 0.3s;
}
button:hover { background: #ff3399; transform: scale(1.05); }

input { padding: 15px; border-radius: 10px; border: none; width: 100%; background: rgba(255,255,255,0.1); color: white; margin-bottom: 15px; text-align: center; }

.hidden { display: none !important; }
.error { color: #ff4d4d; font-size: 0.9rem; margin-top: 10px; }
.pink-glow { color: #ff007f; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}