/* Portfolio Page Styles */
/* Purple/Teal Neon Theme - LED Stringers */

/* Portfolio Hero Section */
.portfolio-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 214, 160, 0.1));
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    text-align: center;
}

.portfolio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Controls */
.portfolio-filters {
    padding: 40px 0;
    background: var(--dark-card);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    position: sticky;
    top: 90px;
    z-index: 100;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.portfolio-count {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#showing-count {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 18px;
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 60px 0 100px;
    background: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(168, 85, 247, 0.2);
    background: var(--dark-card);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    padding: 30px 20px 20px;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.portfolio-overlay h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: var(--accent-teal);
    margin: 0;
}

.view-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .view-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden items for filtering */
.portfolio-item.hidden {
    display: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 214, 160, 0.15));
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.lightbox-caption {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.lightbox-caption h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lightbox-caption p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

#lightbox-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.spec-tag {
    padding: 8px 15px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-teal);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.4);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-close:hover {
    background: rgba(168, 85, 247, 0.4);
    transform: rotate(90deg);
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: linear-gradient(135deg, #a855f7, #06d6a0);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent-purple);
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.5rem;
    }

    .portfolio-subtitle {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .portfolio-filters {
        top: 75px;
        padding: 20px 0;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-caption {
        padding: 20px;
    }

    .lightbox-caption h3 {
        font-size: 1.3rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero {
        padding: 120px 0 60px;
    }
}

/* Animation for grid items */
@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeInGrid 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.15s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.25s; }
.portfolio-item:nth-child(5) { animation-delay: 0.3s; }
.portfolio-item:nth-child(6) { animation-delay: 0.35s; }
