.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
    padding: 3rem;
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
}

.project-card {
    background: transparent;
    perspective: 1000px;
    min-height: 180px;
    box-sizing: border-box;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-back {
    background: rgba(40, 40, 40, 0.95);
    transform: rotateY(180deg);
}

.card-front h2 {
    margin: 0;
    padding: 2.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    text-align: center;
}

.card-back p {
    margin: 0;
    padding: 2.5rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.9rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.info-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: rgba(0, 255, 0, 0.7);
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.2);
    z-index: 2;
}

.info-button:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.5);
    color: rgba(0, 255, 0, 0.9);
    transform: scale(1.05);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.card-front h2 a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.card-front h2 a:hover {
    color: #00cc00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .card-front h2, .card-back p {
        padding: 2rem;
    }
    
    .card-front h2 {
        font-size: 1.2rem;
    }
    
    .info-button {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.9rem;
    }
} 