/* ==========================================================================
   FilmHütte Portfolio & Project Styles
   ========================================================================== */

/* Filter Bar */
.portfolio-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 40px;
    align-items: center;
}

.portfolio-filter-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #b5b5b5;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.portfolio-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.portfolio-filter-btn.active {
    background: #ed803c;
    color: #0b0b0b;
    border-color: #ed803c;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(237, 128, 60, 0.35);
}

.portfolio-filter-count {
    display: inline-block;
    font-size: 11px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 7px;
    border-radius: 12px;
}

.portfolio-filter-btn.active .portfolio-filter-count {
    background: rgba(0, 0, 0, 0.2);
    color: #0b0b0b;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}

@media (max-width: 860px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Project Card */
.project-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(237, 128, 60, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(237, 128, 60, 0.1);
}

.project-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0d0d;
    cursor: pointer;
}

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

.project-card:hover .project-thumb-img {
    transform: scale(1.05);
}

.project-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.project-card:hover .project-play-badge {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
}

.play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .play-circle {
    transform: scale(1.12);
    background: #ed803c;
    border-color: #ed803c;
    color: #000;
}

.project-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 14px;
}

.project-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(237, 128, 60, 0.14);
    color: #ed803c;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(237, 128, 60, 0.25);
}

.project-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25em;
    color: #ffffff;
    margin: 0;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: #ed803c;
}

.project-customer {
    font-size: 14px;
    color: #9e9e9e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-quote {
    font-size: 14px;
    line-height: 1.55em;
    color: #b0b0b0;
    font-style: italic;
    border-left: 2px solid rgba(237, 128, 60, 0.5);
    padding-left: 12px;
    margin: 4px 0;
}

.project-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-btn-watch {
    appearance: none;
    border: none;
    background: rgba(237, 128, 60, 0.15);
    color: #ed803c;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.project-btn-watch:hover {
    background: #ed803c;
    color: #000;
    transform: translateX(2px);
}

.project-btn-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.project-btn-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Project Lightbox Modal
   ========================================================================== */
.fh-project-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 4, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fh-project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.fh-project-modal-dialog {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 40px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
    transform: scale(0.96) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fh-project-modal.active .fh-project-modal-dialog {
    transform: scale(1) translateY(0);
}

@media (max-width: 600px) {
    .fh-project-modal-dialog {
        padding: 24px 20px;
        border-radius: 18px;
    }
}

.fh-modal-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
}

.fh-modal-close-btn:hover {
    background: #ed803c;
    color: #000000;
    border-color: #ed803c;
    transform: scale(1.08);
}

/* Video Container & 2-Click Consent */
.fh-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 18px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fh-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
}

.fh-video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.fh-video-play-btn {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ed803c;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(237, 128, 60, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fh-video-placeholder:hover .fh-video-play-btn {
    transform: scale(1.12);
    box-shadow: 0 12px 35px rgba(237, 128, 60, 0.7);
}

.fh-video-consent-notice {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    font-size: 12px;
    color: #c4c4c4;
    text-align: center;
    max-width: 440px;
    line-height: 1.4;
    padding: 0 16px;
}

.fh-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    inset: 0;
}

/* Modal Meta Grid */
.fh-modal-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 28px;
}

@media (max-width: 700px) {
    .fh-modal-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fh-fact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fh-fact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888888;
    font-weight: 600;
}

.fh-fact-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}

/* Quote Callout */
.fh-modal-quote {
    background: rgba(237, 128, 60, 0.08);
    border-left: 4px solid #ed803c;
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 28px;
}

.fh-modal-quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: #ffffff;
    line-height: 1.45em;
    margin: 0;
}

/* Story Text */
.fh-modal-story-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.fh-modal-story-body {
    font-size: 15px;
    line-height: 1.7em;
    color: #cccccc;
    margin-bottom: 28px;
}

.fh-modal-story-body p {
    margin-bottom: 12px;
}

/* Gallery Grid */
.fh-modal-gallery-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .fh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.fh-gallery-item {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    overflow: hidden;
    background: #0d0d0d;
    cursor: pointer;
    position: relative;
}

.fh-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fh-gallery-item:hover .fh-gallery-img {
    transform: scale(1.06);
}

/* Production Team & Services */
.fh-modal-team-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.fh-team-section {
    flex: 1;
    min-width: 220px;
}

.fh-team-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ed803c;
    margin-bottom: 8px;
}

.fh-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fh-team-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Bottom Navigation */
.fh-modal-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fh-nav-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.fh-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.fh-permalink-btn {
    background: #ed803c;
    color: #000000;
    border-color: #ed803c;
    font-weight: 700;
    text-decoration: none;
}

.fh-permalink-btn:hover {
    background: #ff914d;
    box-shadow: 0 4px 14px rgba(237, 128, 60, 0.4);
}

/* ==========================================================================
   FilmHütte Custom Plyr Video Player Theme
   ========================================================================== */
:root {
    --plyr-color-main: #ed803c;
    --plyr-video-background: #0d0d0d;
    --plyr-video-control-color: #ffffff;
    --plyr-video-control-color-hover: #ed803c;
    --plyr-menu-background: rgba(20, 20, 20, 0.95);
    --plyr-menu-color: #ffffff;
    --plyr-badge-background: #ed803c;
    --plyr-badge-text-color: #000000;
    --plyr-font-family: 'Space Grotesk', -apple-system, sans-serif;
    --plyr-range-thumb-background: #ffffff;
    --plyr-control-radius: 8px;
}

.plyr--video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plyr__menu__container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

/* ==========================================================================
   FilmHütte Image Lightbox Modal
   ========================================================================== */
.fh-gallery-item {
    position: relative;
    cursor: zoom-in;
}

.fh-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: 10px;
}

.fh-gallery-item:hover::after {
    opacity: 1;
}

.fh-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fh-image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.fh-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.fh-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    pointer-events: none;
}

.fh-lightbox-img-wrapper {
    max-width: 90vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.fh-lightbox-img {
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fh-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.fh-lightbox-close:hover {
    background: #ed803c;
    color: #000000;
    border-color: #ed803c;
    transform: scale(1.08);
}

.fh-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.fh-lightbox-nav.prev {
    left: 28px;
}

.fh-lightbox-nav.next {
    right: 28px;
}

.fh-lightbox-nav:hover {
    background: #ed803c;
    color: #000000;
    border-color: #ed803c;
    transform: translateY(-50%) scale(1.1);
}

.fh-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    pointer-events: auto;
    letter-spacing: 0.5px;
    user-select: none;
}

@media (max-width: 768px) {
    .fh-lightbox-content {
        padding: 16px;
    }

    .fh-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .fh-lightbox-nav.prev {
        left: 12px;
    }

    .fh-lightbox-nav.next {
        right: 12px;
    }

    .fh-lightbox-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .fh-lightbox-counter {
        bottom: 16px;
        font-size: 12px;
        padding: 5px 12px;
    }
}


