/* Work Page Specific Styles */

/* Case Study Navigation Bar */
.case-study-nav-bar {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.case-study-nav-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.case-study-nav-btn {
    background: transparent;
    border: 1px solid #3a3a3a;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    align-content: center;
    width: 24%;
    height: 80px;
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    text-decoration: none;
}

.case-study-nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 24px;
    position: absolute;
    top: 0;
    left: 0;
}

.case-study-hover-text {
    font-family: 'PP Telegraf', sans-serif;
    font-size: 0.8125rem;
    color: #EFEAE8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.case-study-nav-btn:hover {
    border-color: #EFEAE8;
    transform: translateY(-2px);
}

.case-study-nav-btn:hover img {
    opacity: 0;
}

.case-study-nav-btn:hover .case-study-hover-text {
    opacity: 1;
}

/* Work Page Layout */
.work-page {
    background: #111111;
    min-height: 100vh;
    padding: 4rem 0 6rem;
}

.work-page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
}

/* Sticky Sidebar */
.work-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.work-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-title {
    font-family: 'PP Editorial New', serif;
    font-weight: 200;
    font-size: 2.375rem;
    line-height: 1.1;
    color: #EFEAE8;
}

.sidebar-subtitle {
    font-family: 'PP Telegraf', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #989898;
}

.sidebar-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #989898;
}

.sidebar-description h4 {
    font-family: 'PP Telegraf', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    color: #EFEAE8;
    text-transform: capitalize;
}

.sidebar-description p {
    font-family: 'PP Telegraf', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #989898;
}

/* Sidebar CTA */
.sidebar-cta {
    margin-top: 23rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #EFEAE8;
    color: #111111;
    font-family: 'PP Telegraf', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.cta-button svg {
    width: 14px;
    height: 14px;
}

/* Project Grid - Vertical Single Column Layout */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 3rem;
}

/* Project Card */
.project-card {
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
    pointer-events: none;
}

.project-card.hidden {
    display: none;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1512 / 982;
    border-radius: 0;
    overflow: hidden;
    background: #2a2828;
    margin-bottom: 0;
    border-radius: 4px;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-link:hover .project-video {
    transform: scale(1.02);
}

.project-info {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .case-study-nav-bar {
        margin-bottom: 2rem;
    }

    .case-study-nav-container {
        gap: 0.5rem;
    }

    .case-study-nav-btn img {
        padding: 20px;
    }

    .case-study-nav-btn {
        width: 100%;
        height: 60px;
    }

    .work-page {
        padding: 2rem 0 4rem;
    }

    .work-page-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .work-sidebar {
        position: relative;
        top: 0;
    }

    .sidebar-title {
        font-size: 2.375rem;
    }

    .sidebar-subtitle {
        font-size: 0.875rem;
    }

    .sidebar-cta {
        margin-top: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
        width: 100%;
        justify-content: center;
    }

    .work-grid {
        gap: 1rem;
        padding-top: 3rem;
    }

    .project-media {
        aspect-ratio: 1512 / 982;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .case-study-nav-bar {
        margin-bottom: 2.5rem;
    }

    .case-study-nav-btn {
        width: 24%;
        height: 70px;
    }

    .work-page-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .work-sidebar {
        top: 100px;
    }

    .sidebar-title {
        font-size: 2.375rem;
    }

    .work-grid {
        gap: 1rem;
        padding-top: 3rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .work-page-wrapper {
        gap: 5rem;
    }

    .sidebar-title {
        font-size: 2.375rem;
    }

    .work-grid {
        gap: 1rem;
        padding-top: 3rem;
    }
}

/* Animation for filter transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.4s ease forwards;
}