/* Reset e variabili CSS */
:root {
    --primary-color: #00ff88;
    --secondary-color: #0066ff;
    --accent-color: #ff6600;
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --glow-color: rgba(0, 255, 136, 0.5);
    --particle-color: rgba(0, 255, 136, 0.3);
}

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

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

/* Container principale */
.splash-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Particelle animate */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--particle-color);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Contenuto principale */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

/* Logo */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.logo {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--glow-color));
    animation: logoGlow 2s ease-in-out infinite alternate;
    z-index: 2;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 20px var(--glow-color)); }
    to { filter: drop-shadow(0 0 40px var(--glow-color)) drop-shadow(0 0 60px var(--primary-color)); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Titolo */
.title {
    margin-bottom: 3rem;
}

.title-main {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--glow-color);
    margin-bottom: 0.5rem;
}

.title-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-gray);
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Barra di caricamento */
.loading-container {
    margin-bottom: 3rem;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-dark-alt);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-color);
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 100px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Pulsante di ingresso */
.enter-btn {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

.enter-btn span {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.enter-btn:hover .btn-glow {
    left: 100%;
}

/* Effetti di sfondo */
.bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 136, 0.1) 100%),
        linear-gradient(0deg, transparent 95%, rgba(0, 255, 136, 0.1) 100%);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 102, 255, 0.03) 2px,
        rgba(0, 102, 255, 0.03) 4px
    );
    animation: dataFlow 15s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

/* Responsive */
@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
    }
    
    .features {
        gap: 1rem;
    }
    
    .feature-item {
        min-width: 80px;
        padding: 0.8rem;
    }
    
    .logo {
        width: 200px;
    }
    
    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 1.5rem;
    }
    
    .title-subtitle {
        font-size: 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        flex-direction: row;
        gap: 0.5rem;
        min-width: 200px;
    }
}