:root {
    --neon-cyan: #00ffff;
    --neon-red: #ff0000;
    --background-dark: #0a0a0a;
    --text-light: #e5e7eb;
    --border-color: rgba(0, 255, 255, 0.2);
}

body {
    background-color: var(--background-dark);
    font-family: 'Roboto Mono', monospace;
    color: var(--text-light);
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: background-pan 10s linear infinite;
}

@keyframes background-pan {
    from { background-position: 0 0; }
    to { background-position: -60px 60px; }
}

.font-title {
    font-family: 'Major Mono Display', monospace;
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px #00a1a1, 0 0 30px #00a1a1;
}

.neon-text-red {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 20px #b30000, 0 0 30px #b30000;
}

.btn-neon {
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
    text-shadow: 0 0 2px var(--neon-cyan);
}

.btn-neon:hover {
    background: rgba(6, 182, 212, 0.1);
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

.btn-neon:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-neon.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.btn-neon.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgb(239, 68, 68);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.glass-card {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-red);
    animation: glitch-anim-1 2.5s infinite linear reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    animation: glitch-anim-2 2.5s infinite linear reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(10% 0 80% 0); }
    20% { clip-path: inset(50% 0 10% 0); }
    40% { clip-path: inset(90% 0 2% 0); }
    60% { clip-path: inset(25% 0 60% 0); }
    80% { clip-path: inset(5% 0 85% 0); }
    100% { clip-path: inset(70% 0 5% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(75% 0 10% 0); }
    20% { clip-path: inset(15% 0 70% 0); }
    40% { clip-path: inset(40% 0 30% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(20% 0 55% 0); }
    100% { clip-path: inset(60% 0 20% 0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Stili per il menu mobile */
#mobile-menu {
    background: rgba(10, 10, 10, 0.95);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Animazione icona menu */
#menu-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-icon.rotate {
    transform: rotate(90deg);
}

#mobile-menu a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}