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

/* Works Hero Section */
.works-hero {
    padding-top: 140px;
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
}

.works-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.works-intro {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 0;
}

.portfolio-grid {
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.02));
    color: var(--accent-gradient-end);
    transition: all var(--transition-smooth);
}

.project-card:hover .project-placeholder {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 2;
    padding: 2rem;
}

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

.project-info {
    text-align: center;
}

.project-info h3 {
    font-size: 28px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-category {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    gap: 0.8rem;
}

.project-meta {
    padding: 1.5rem;
}

.project-meta h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-meta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.cta-card {
    padding: 4rem 2rem;
    text-align: center;
}

.cta-card h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 1rem;
}

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

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

@media (max-width: 768px) {
    .works-hero {
        padding-top: 120px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-info h3 {
        font-size: 22px;
    }
}
