/* Work Page Styles */

/* Hero Section */
.work-hero {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.work-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Filter Buttons */
.work-filter {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark mode override for work-filter */
[data-theme="dark"] .work-filter.bg-light {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.btn-filter {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin: 0 5px;
    font-weight: 500;
}

.btn-filter:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
    border-color: var(--secondary-color);
}

.btn-filter.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Work Grid */
.work-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: var(--card-bg);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 1;
}

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

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

.work-tags span {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Dark mode override for work tags */
[data-theme="dark"] .work-tags span {
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--text-color);
}

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

.work-content {
    padding: 1.5rem;
}

.work-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.work-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Work Detail Page */
.work-detail-hero {
    padding: 120px 0 60px;
    background-color: var(--bg-light);
}

.work-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.work-detail-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.work-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.work-detail-image img {
    width: 100%;
    height: auto;
}

.work-info-section {
    margin-bottom: 3rem;
}

.work-info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.work-info-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    display: block;
}
.work-info-section h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tech-badge {
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.work-gallery {
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-link {
    display: block;
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-icon {
    transform: scale(1);
}

/* Lightbox Styles */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-container.active {
    display: flex !important;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 90%;
}

.lightbox-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.lightbox-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.lightbox-nav {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-counter {
    color: white;
    font-size: 1rem;
}

.related-works {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .work-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .tech-badge {
    background-color: rgba(255, 0, 102, 0.2);
}

/* Dark mode override for related-works section */
[data-theme="dark"] .related-works.bg-light {
    background-color: var(--bg-secondary) !important;
}