.projects-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../images/banner_transparente.png');
    background-attachment: fixed;
    position: relative;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grid items */
.values-grid .animate-on-scroll,
.team-grid .animate-on-scroll,
.stats-container .animate-on-scroll {
    transition-delay: calc(var(--item-index) * 0.1s);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.projects-grid {
    background-color: black;
    padding: 4rem 2rem;
    min-height: 50vh; /* Asegura que haya espacio para los proyectos */
}

.project-item {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.project-item a {
    text-decoration: none !important;
    display: block;
    position: relative;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.project-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-tags span {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid #666;
}

.project-images {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-images {
    opacity: 1;
    pointer-events: auto;
}

.project-image {
    width: 200px;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}

.custom-cursor {
    width: 70px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    position: fixed;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-image:hover ~ .custom-cursor {
    opacity: 1;
}

/* Animación para el título */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para mensajes de error */
.error-message {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

@media (max-width: 1200px) {
    .project-images {
        position: relative;
        top: auto;
        transform: none;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 2rem;
        opacity: 1;
        pointer-events: auto;
    }
    
    .project-item {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .project-header h2 {
        font-size: 2rem;
    }

    .project-image {
        width: calc(50% - 0.5rem);
    }
    
    .projects-grid {
        padding: 2rem 1rem;
    }
}