/* SCENE 7: LOGO FINALE */

#scene7 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    /* Dark gradient background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
}

/* Content Container */
.scene7-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scene.active .scene7-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

/* Logo Container */
.logo-container {
    width: 200px;
    height: 200px;
    position: relative;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
}

.scene.active .logo-container {
    animation: logoEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.5s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    60% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(20, 184, 166, 0.4));
    border-radius: 20px;
}

/* Pulsing glow effect */
.scene.active .main-logo {
    animation: logoPulse 3s ease-in-out infinite 1.7s;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 20px 40px rgba(20, 184, 166, 0.4));
    }

    50% {
        filter: drop-shadow(0 25px 50px rgba(20, 184, 166, 0.6));
    }
}

/* Title */
.finale-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scene.active .finale-title {
    animation: titleSlideUp 0.8s ease-out forwards 1.2s;
}

@keyframes titleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.finale-tagline {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateY(15px);
}

.scene.active .finale-tagline {
    animation: taglineSlideUp 0.8s ease-out forwards 1.5s;
}

@keyframes taglineSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Badge */
.cta-badge {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    padding: 14px 36px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.3);
    margin-top: 16px;
    opacity: 0;
    transform: scale(0.8);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scene.active .cta-badge {
    animation: ctaPopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 1.8s;
}

@keyframes ctaPopIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(20, 184, 166, 0.5);
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Shine effect on CTA */
.scene.active .cta-badge {
    position: relative;
    overflow: hidden;
}

.scene.active .cta-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shine 3s infinite 2.5s;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}