/* ===================================
   WORKS PAGE STYLES
   =================================== */

/* Works Hero Section */
.works-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.works-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Tabs */
.works-filter {
    padding: 40px 0;
    position: sticky;
    top: 70px;
    background: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-purple);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

/* Works Grid */
.works-grid-section {
    padding: 60px 0 100px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.work-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    text-decoration: none;
    display: block;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover::before {
    opacity: 1;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25);
}

.work-image {
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.work-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(168, 85, 247, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-project {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-info {
    padding: 24px;
}

.work-category {
    font-size: 11px;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.work-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.work-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* CTA Section */
.works-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(168, 85, 247, 0.05));
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

/* Active Nav Link */
.nav-links a.active {
    color: var(--accent-purple);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-purple);
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .page-title {
        font-size: 42px;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .works-hero {
        padding: 150px 0 60px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .works-filter {
        top: 60px;
        padding: 20px 0;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

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



    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

/* Filter Animation */
.work-card.hidden {
    display: none;
}

.work-card.show {
    animation: fadeInUp 0.5s ease;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
}

.pagination-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-arrow:hover:not(:disabled) {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.pagination-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    min-width: 60px;
    text-align: center;
}

.pagination-info .pagination-current {
    color: var(--accent-purple);
    font-size: 20px;
}

@media (max-width: 768px) {
    .pagination-controls {
        margin-top: 40px;
        gap: 16px;
    }

    .pagination-arrow {
        width: 40px;
        height: 40px;
    }
}