/* Works Page Styles */

/* Hero Section */
.works-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0B1020 0%, #1a1f3a 100%);
    position: relative;
    overflow: hidden;
}

.works-hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.works-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--neon);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.works-hero__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
    text-align: center;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.works-hero__desc {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--txt);
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
}

.stat-card__number {
    font-size: 42px;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 16px;
    color: var(--txt);
}

/* Filter Section */
.filter-section {
    padding: 60px 0 40px;
    background: var(--bg);
}

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

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--txt);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--neon);
}

.filter-tab--active {
    background: var(--grad);
    border-color: transparent;
    color: var(--bg);
}

/* Projects Section */
.projects-section {
    padding: 40px 0 100px;
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.2);
}

.project-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f3a, #0f1425);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__image img {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(11, 16, 32, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__link {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    transition: transform 0.3s;
}

.project-card__link:hover {
    transform: scale(1.1) rotate(45deg);
}

.project-card__content {
    padding: 24px;
}

.project-card__category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-card__title a {
    color: inherit;
    transition: color 0.2s;
}

.project-card__title a:hover {
    color: var(--neon);
}

.project-card__desc {
    font-size: 15px;
    color: var(--txt);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--txt);
    font-size: 12px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon);
    margin-bottom: 24px;
}

.empty-state__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.empty-state__desc {
    font-size: 18px;
    color: var(--txt);
}

/* CTA Section */
.works-cta {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, #0f1425 100%);
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(31, 182, 255, 0.05));
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.cta-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--grad);
    color: var(--bg);
    margin-bottom: 24px;
}

.cta-box__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-box__desc {
    font-size: 18px;
    color: var(--txt);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 32px;
}

.cta-box__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .works-hero {
        padding: 120px 0 60px;
    }
    
    .works-hero__badge {
        display: flex;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .filter-section {
        padding: 40px 0 20px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .projects-section {
        padding: 30px 0 60px;
    }
    
    .works-cta {
        padding: 60px 0;
    }
    
    .cta-box {
        padding: 40px 24px;
    }
    
    .cta-box__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

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

/* Project Detail Grid - Responsive */
.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.project-image-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(11, 16, 32, 0.7) 100%);
    pointer-events: none;
}

.project-details-card {
    padding: 32px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .project-image {
        height: 350px;
    }
    
    .project-details-card {
        padding: 24px;
    }
}
