/* Stili desktop invariati */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 48px;
    color: #ff00ff; /* Rosa neon */
    text-shadow: 0 0 4px #ff00ff, 0 0 5px #00ffff;
    margin-bottom: 10px;
}

.bio {
    font-size: 16px;
    color: #00ffff; /* Ciano neon */
    line-height: 1.5;
}

.email {
    font-size: 20px;
    color: #00ffff; /* Ciano neon */
    text-shadow: 0 0 4px #ff00ff, 0 0 3px #00ffff;
    line-height: 1.5;
}

.subtitles {
    font-size: 10px;
    color: #00ffff; /* Ciano neon */
    line-height: 1.5;
}

.showcase h2 {
    font-size: 32px;
    color: #ffff00; /* Giallo retrò */
    margin: 40px 0 20px;
    text-shadow: 0 0 5px #ffff00;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.window {
    background-color: #333;
    border: 2px solid #fff;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.window-reel {
    background-color: #333;
    border: 2px solid #fff;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.window-reel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00; /* Verde neon */
}

.window:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00; /* Verde neon */
}

.window-title {
    background-color: #ff00ff;
    color: #000;
    padding: 5px;
    font-size: 14px;
}

.window-content {
    font-size: 12px;
    padding: 10px;
    color: #00ffff;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: #fff;
    box-shadow: 0 0 10px #00ff00;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h2 {
    color: #ff00ff;
}

.modal-content p {
    font-size: 14px;
    margin: 10px 0;
    color: #00ffff;
}

.modal-content img {
    width: 100%;
    border-radius: 5px;
    margin: 10px 0;
}

.modal-content .btn {
    display: inline-block;
    background-color: #ff00ff;
    color: #000;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.modal-content .btn:hover {
    background-color: #00ffff;
    color: #000;
}

.close {
    color: #ff00ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #00ffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Sezione Skills */
.skills {
    margin-top: 40px;
    text-align: center;
}

.skills h2 {
    font-size: 32px;
    color: #ffff00; /* Giallo retrò */
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ffff00;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 4px;
    margin-top: 20px;
}

.skill-item {
    background-color: #333;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0px;
    box-shadow: 0 0 5px #00ff00; /* Verde neon */
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #00ff00; /* Effetto neon verde */
}

/* Sezione Experience */
.experience {
    margin-top: 40px;
    text-align: center;
}

.experience h2 {
    font-size: 32px;
    color: #ffff00; /* Giallo retrò */
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ffff00;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonne */
    gap: 20px;
    margin-top: 20px;
}

.experience-item {
    background-color: #333;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 5px #00ff00; /* Verde neon */
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00; /* Verde neon */
}

.experience-title {
    font-size: 18px;
    color: #ff00ff; /* Rosa neon */
    margin-bottom: 5px;
}

.experience-year {
    font-size: 14px;
    color: #00ffff; /* Ciano neon */
    margin-bottom: 10px;
}

.experience-role {
    font-size: 14px;
    color: #fff;
}

/* Media Queries per Mobile (schermi < 768px) */
@media (max-width: 768px) {
    /* Ridimensionamento generale */
    .container {
        padding: 10px;
        max-width: 100%;
    }

    h1 {
        font-size: 43px; /* Riduci titolo per mobile */
        text-shadow: 0 0 3px #ff00ff, 0 0 4px #00ffff;
    }

    .bio {
        font-size: 13px;
        padding: 0 10px;
    }

    .email {
        font-size: 15px;
    }

    .subtitles {
        font-size: 12px;
    }

    /* Showcase */
    .showcase h2 {
        font-size: 24px;
        margin: 20px 0 10px;
        
    }

    .grid {
        grid-template-columns: 1fr; /* Singola colonna */
        gap: 15px;
    }

    .window, .window-reel {
        padding: 8px;
    }

    .window-title {
        font-size: 12px;
    }

    .window-content {
        font-size: 10px;
        padding: 8px;
    }

    /* Modale */
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 12px;
    }

    .modal-content .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .close {
        font-size: 24px;
    }

    /* Skills */
    .skills h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    .skill-item {
        font-size: 10px;
        padding: 4px;
    }

    /* Experience */
    .experience h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .experience-grid {
        grid-template-columns: 1fr; /* Singola colonna */
        gap: 15px;
    }

    .experience-item {
        padding: 10px;
    }

    .experience-title {
        font-size: 16px;
    }

    .experience-year {
        font-size: 12px;
    }

    .experience-role {
        font-size: 12px;
    }
}

/* Ulteriori ottimizzazioni per schermi molto piccoli (< 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .bio {
        font-size: 12px;
    }

    .email {
        font-size: 20px;
    }

    .showcase h2, .skills h2, .experience h2 {
        font-size: 20px;
    }

    .modal-content {
        padding: 10px;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}


/* Projects Section Styles */
.projects {
    margin-top: 40px;
}

.project-window {
    background-color: #333;
    border: 2px solid #00ffff;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-window:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff00ff;
}

.project-window .window-title {
    background-color: #00ffff;
    color: #000;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
}

.project-window .window-content {
    padding: 15px 10px;
}

.project-info {
    text-align: left;
}

.project-tags {
    color: #ff00ff;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: italic;
}

.project-desc {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

/* Media queries for mobile devices */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        height: 180px;
    }
    
    .project-card h3 {
        font-size: 20px;
    }
    
    .project-tags {
        font-size: 10px;
    }
    
    .project-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .project-card {
        height: 160px;
    }
    
    .project-card h3 {
        font-size: 18px;
    }
}