@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

/* Reset e Font Futuristico */
.retro-theme {
    font-family: 'Fira Code', monospace;
    background-color: #0d0d0d; /* Nero ancora più profondo */
    color: #00ff41; /* Il classico verde Matrix/Terminale */
}

/* Effetto Scanline (linee orizzontali da vecchio monitor) */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.02) 10%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100%; }
}

.terminal-title {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    margin-bottom: 40px;
    font-size: 1.8rem;
}

/* Griglia Progetti */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #00ff41;
    padding: 20px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #004d13;
    padding-bottom: 10px;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff41;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00ff41;
}

.status-dot.grey {
    background-color: #444;
    box-shadow: none;
}

.project-content h3 {
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.project-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    margin-bottom: 25px;
}

.project-tech span {
    font-size: 0.75rem;
    color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    padding: 4px 8px;
    margin-right: 5px;
    border-radius: 3px;
}

/* Bottone GitHub stilizzato */
.github-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #00ff41;
    color: #00ff41;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.github-btn:hover {
    background-color: #00ff41;
    color: #000;
}

.project-card.locked {
    opacity: 0.6;
    border-style: dashed;
    cursor: not-allowed;
}

/* Header & Back Link */
.terminal-text h1 {
    font-size: 1.5rem;
}

.terminal-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 0.8rem;
}

.terminal-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}