/* Estilos específicos para la página de trabajos */

/* Hero Section para Trabajos */
.hero-trabajos {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    z-index: 1;
}

.hero-trabajos .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out;
}

/* Navigation Active State */
.nav-link.active {
    color: #c45cff !important;
}

.nav-link.active::after {
    width: 100%;
}

.nav-logo a {
    color: inherit;
    text-decoration: none;
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    background: rgba(20, 20, 20, 0.5);
    border-bottom: 1px solid rgba(139, 69, 196, 0.1);
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(139, 69, 196, 0.3);
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #8b45c4, #c45cff);
    border-color: #c45cff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 196, 0.3);
}

/* Projects Grid */
.projects {
    padding: 5rem 0;
    background: rgba(10, 10, 10, 1);
    position: relative;
    z-index: 10;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Project Cards */
.project-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(139, 69, 196, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    opacity: 1 !important;
    transform: translateY(0) !important;
    z-index: 5;
    display: block !important;
    visibility: visible !important;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 69, 196, 0.5);
    box-shadow: 0 25px 50px rgba(139, 69, 196, 0.2);
}

.project-card.hidden {
    display: none;
}

/* Project Image */
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 20px;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 196, 0.2), rgba(196, 92, 255, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c45cff;
    font-size: 3rem;
    gap: 1rem;
}

.project-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 196, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-action:hover {
    background: #ffffff;
    color: #8b45c4;
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 2rem;
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.95);
}

.project-category {
    color: #c45cff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(139, 69, 196, 0.2);
    color: #c45cff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(139, 69, 196, 0.3);
}

/* Project Stats */
.project-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.stat i {
    color: #c45cff;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(139, 69, 196, 0.05), rgba(10, 10, 10, 1));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(139, 69, 196, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(139, 69, 196, 0.5);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b45c4, #c45cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-sublabel {
    color: #c45cff;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.5rem;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: rgba(10, 10, 10, 1);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid rgba(139, 69, 196, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: #c45cff;
}

/* Filter Animation */
.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.filtering-out {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.project-card.filtering-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-trabajos {
        min-height: 50vh;
        padding-top: 80px;
    }

    .hero-trabajos .hero-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .project-actions {
        gap: 0.5rem;
    }

    .btn-action {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-trabajos .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .hero-trabajos .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Hover Effects Enhancement */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 196, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    left: 100%;
}

/* Loading Animation */
.project-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.project-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(139, 69, 196, 0.3);
    border-top: 3px solid #c45cff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll Animations */
.project-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

.project-card.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Tech Tags */
.tech-tag:hover {
    background: rgba(139, 69, 196, 0.4);
    border-color: rgba(139, 69, 196, 0.6);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
