#projects {
    padding: 100px 5vw;
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#projects h2 {
    color: var(--electric-blue);
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.about-proyects {
    color: #d1d1d1;
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    background: #1a1a1c;
    /* Optimización: Color sólido para evitar lag de blur */
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    /* Eliminar subrayado globalmente en las tarjetas */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--electric-blue), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(42, 99, 235, 0.4);
    box-shadow: 0 20px 50px rgba(42, 99, 235, 0.15);
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-info {
    padding: 40px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.card-category {
    display: block;
    color: var(--neon-green);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.card-tags span {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover .card-tags span {
    border-color: rgba(42, 99, 235, 0.3);
    color: var(--white);
    background: rgba(42, 99, 235, 0.1);
}

.project-card:hover .project-info h3 {
    color: var(--neon-green);
}

/* Decoración con icono flotante en la tarjeta */
.project-card::after {
    content: '→';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--electric-blue);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.project-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Diseño para pantallas grandes */
@media (min-width: 1024px) {
    #projects {
        padding: 120px 10%;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    #projects h2 {
        font-size: 2.2rem;
    }
}