/* Estilos para la sección de proyectos */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

/* Fondos de proyectos específicos */
.project-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-item:hover .project-background {
    transform: scale(1.1);
}

/* Fondos específicos para cada proyecto */
.project-nopal { background-image: url('../images/NOPAL_UNITY-37.jpg'); }
.project-torrico { background-image: url('../images/TORRICO_UNITY.jpg'); }
.project-beauty { background-image: url('../images/BEAUTY_ORG_UNITY.jpg'); }
.project-soylent { background-image: url('../images/SOYLENT_UNITY.jpg'); }
.project-sport { background-image: url('../images/SPORT_BRANDS_UNITY.jpg'); }
.project-magic { background-image: url('../images/MAGIC_MIND_UNITY.jpg'); }
.project-initech { background-image: url('../images/INITECH_UNITY.jpg'); }

/* Información del proyecto */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.project-info p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Estilos para el modal de proyectos */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.project-modal .modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    line-height: 1;
}

.project-modal .modal-close:hover {
    color: #3f51b5;
    transform: rotate(90deg);
}

.project-modal .modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.project-modal .modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-modal .modal-caption {
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.project-modal .modal-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.project-modal .modal-caption p {
    font-size: 16px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .project-modal .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .project-modal .modal-content-wrapper {
        max-width: 95%;
        max-height: 95%;
    }

    .project-modal .modal-image {
        max-height: 70vh;
    }

    .project-modal .modal-caption h3 {
        font-size: 20px;
    }

    .project-modal .modal-caption p {
        font-size: 14px;
    }
}