.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 2000;
    overflow: hidden;
    transition: opacity 0.5s ease;
}



.welcome-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(234, 255, 0, 0.1) 25%,
        transparent 50%,
        rgba(234, 255, 0, 0.1) 75%,
        transparent 100%
    );
    animation: backgroundMove 15s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.welcome-screen.hide {
    animation: fadeOutWelcome 1.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    opacity: 0;
    pointer-events: none;
    transition-delay: 1.2s;
}

.welcome-screen.hide .welcome-logo {
    animation: logoZoomOut 1.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.welcome-screen.hide .start-button {
    animation: buttonVanish 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes fadeOutWelcome {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes logoZoomOut {
    0% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes buttonVanish {
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

.welcome-logo {
    color: var(--giallo);
    font-size: 6rem;
    font-weight: bold;
    letter-spacing: 15px;
    position: relative;
    text-shadow: 0 0 10px rgba(234, 255, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
    margin: 0;
    z-index: 1;
}

.welcome-logo::before {
    content: 'GAFF';
    position: absolute;
    left: 0;
    text-shadow: 0 0 20px var(--giallo);
    animation: shine 5s linear infinite;
    -webkit-mask: linear-gradient(
        -60deg,
        transparent 0%,
        transparent 40%,
        white 50%,
        transparent 60%,
        transparent 100%
    );
    -webkit-mask-size: 400%;
    mask: linear-gradient(
        -60deg,
        transparent 0%,
        transparent 40%,
        white 50%,
        transparent 60%,
        transparent 100%
    );
    mask-size: 400%;
}

@keyframes shine {
    0% {
        -webkit-mask-position: 200%;
        mask-position: 200%;
    }
    100% {
        -webkit-mask-position: -50%;
        mask-position: -50%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(234, 255, 0, 0.5),
                     0 0 40px rgba(234, 255, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(234, 255, 0, 0.8),
                     0 0 60px rgba(234, 255, 0, 0.4),
                     0 0 80px rgba(234, 255, 0, 0.2);
    }
}

.start-button {
    position: relative;
    padding: 1.5rem 3rem;
    font-size: 2rem;
    background: transparent;
    color: var(--giallo);
    border: 3px solid var(--giallo);
    border-radius: 50px;
    cursor: pointer;
    margin-top: 3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--giallo);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.start-button:hover {
    color: var(--nero);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(234, 255, 0, 0.3);
}

.start-button:hover::before {
    width: 300%;
    height: 300%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(234, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0);
    }
}

.welcome-team {
    margin: 2rem 0;
    text-align: center;
}

.welcome-team h2 {
    color: var(--giallo);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(234, 255, 0, 0.5);
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.welcome-team .team-member {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--giallo);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.welcome-team .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--giallo);
    box-shadow: 0 0 15px rgba(234, 255, 0, 0.3);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.welcome-team .team-member h3 {
    color: var(--giallo);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.welcome-team .team-member p {
    color: var(--bianco);
    opacity: 0.8;
}

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

.welcome-team .team-member:nth-child(1) { animation-delay: 0.1s; }
.welcome-team .team-member:nth-child(2) { animation-delay: 0.2s; }
.welcome-team .team-member:nth-child(3) { animation-delay: 0.3s; }
.welcome-team .team-member:nth-child(4) { animation-delay: 0.4s; }

/* Main content entrance animation */
.main-content {
    opacity: 0;
    visibility: hidden;
    position: relative;
}

.main-content.show {
    animation: contentReveal 2s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        visibility: visible;
        transform: scale(1.2);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Entrance animations for elements */
.main-content.show .gradient-text {
    animation: slideInDown 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

.main-content.show .subtitle {
    animation: slideInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}

.main-content.show .tech-badge {
    opacity: 0;
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.main-content.show .tech-badge:nth-child(1) { animation-delay: 1s; }
.main-content.show .tech-badge:nth-child(2) { animation-delay: 1.2s; }
.main-content.show .tech-badge:nth-child(3) { animation-delay: 1.4s; }
.main-content.show .tech-badge:nth-child(4) { animation-delay: 1.6s; }

.main-content.show .feature {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.main-content.show .feature:nth-child(3n + 1) { animation-delay: 1.8s; }
.main-content.show .feature:nth-child(3n + 2) { animation-delay: 2s; }
.main-content.show .feature:nth-child(3n + 3) { animation-delay: 2.2s; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Particle effect */
.particle-btn {
    position: absolute;
    pointer-events: none;
    background: var(--giallo);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    opacity: 0;
}

@keyframes particleAnimation {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}



.end-screen {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: opacity 0.5s ease;
}