body {
    background: #0f0f0f;
    color: white;
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.video-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body.desktop-video-bg .video-background {
    opacity: 0.4;
}

/* layered crossfade backgrounds */
.video-background .bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    transform: scale(1.02);
    filter: blur(5px);
    will-change: opacity, transform;
}

.video-background .bg-layer.show {
    opacity: 0.5;
    transform: scale(1);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.container > h1 {
    padding-top: 260px;
    margin-top: 0;
    margin-bottom: 20px;
}

h1 {
    font-size: 48px;
}

.subtitle {
    color: #cfcfcf;
    margin-bottom: 400px;
    margin-top: 0;
    max-width: 530px;
}

section {
    margin-bottom: 100px;
}

h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.showreel-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.showreel-preview {
    margin-bottom: 18px;
}

.carousel-container {
    display: block;
    position: relative;
    margin-top: 18px;
}

.carousel-arrow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

@media (min-width: 901px) {
    .carousel-arrow {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .carousel-arrow:hover {
        color: rgba(255, 255, 255, 1);
        background: rgba(0, 0, 0, 0.3);
    }

    .carousel-arrow:active {
        background: rgba(0, 0, 0, 0.5);
    }
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.showreel-preview iframe,
.showreel-preview video {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}

.showreel-text {
    padding: 0 10px;
}

.showreel-text h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 32px;
}

.showreel-text p {
    color: #d5d5d5;
    line-height: 1.5;
    margin: 20px 0;
}

.video-thumbs {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    flex: 1 1 auto;
    min-width: 0;
}

.video-thumb {
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    color: white;
    padding: 0;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s ease;
    flex: 0 0 180px;
    min-width: 180px;
}

.video-thumb:hover {
    opacity: 1;
}

.video-thumb.active {
    opacity: 1;
    filter: brightness(1.08);
}

.video-thumb iframe,
.video-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.video-thumb span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    min-height: 40%;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1)); */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .video-thumb:hover iframe,
    .video-thumb:hover img {
        opacity: 0.3;
        filter: saturate(0.9);
    }

    .video-thumb:hover span {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .video-thumb span {
        position: static;
        display: block;
        min-height: auto;
        padding: 0 0 0 8px;
        background: none;
        opacity: 1;
        transform: none;
        color: #f2f2f2;
        font-size: 13px;
        line-height: 1.35;
    }

    .video-thumb iframe,
    .video-thumb img {
        opacity: 1;
        filter: none;
    }
}

/* webkit scrollbar styling for carousel */
.video-thumbs::-webkit-scrollbar {
    height: 8px;
}

.video-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.video-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.video-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.contact-card {

    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #cfcfcf;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;

}

.contact-card i {

    width: 20px;
    font-size: 18px;
    color: #cfcfcf;
    opacity: 0.8;

}

.contact-card:hover {

    transform: translateY(-2px);
    opacity: 0.8;

}

@media (max-width: 900px) {
    .container > h1 {
        padding-top: 180px;
    }

    .subtitle {
        margin-bottom: 300px;
    }

    .carousel-container {
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
    }

    .showreel-preview iframe,
    .showreel-preview video {
        min-height: 200px;
        max-height: 240px;
    }

    .showreel-preview {
        position: static;
        top: auto;
        z-index: auto;
        background: transparent;
        padding-top: 0;
        margin-bottom: 12px;
    }

    .showreel-layout.mobile-pinned {
        position: fixed;
        top: 0px;
        left: 20px;
        right: 20px;
        margin-bottom: 12px;
        z-index: 10;
        /*!padding: 8px 12px 12px;*/
        background: #0f0f0f;
        box-sizing: border-box;
    }

    .showreel-layout.mobile-pinned .showreel-preview,
    .showreel-layout.mobile-pinned .showreel-text {
        margin-bottom: 12px;
    }

    body.mobile-player-pinned .video-thumbs {
        padding-top: var(--mobile-pinned-height, 280px);
    }

    .showreel-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .showreel-text {
        margin-bottom: 12px;
    }

    .video-thumbs {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        scrollbar-gutter: stable;
        gap: 5px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .video-thumb {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 0 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex: 1 1 auto;
        min-width: auto;
    }

    .video-thumb iframe,
    .video-thumb img {
        width: 120px;
        min-width: 120px;
        flex: 0 0 120px;
        margin-bottom: 0;
        opacity: 1;
        filter: none;
    }

    .video-thumb span {
        position: static;
        display: block;
        min-height: auto;
        padding: 0;
        background: none;
        opacity: 1;
        transform: none;
        color: #f2f2f2;
        font-size: 13px;
        line-height: 1.35;
    }

    .video-thumb:hover iframe,
    .video-thumb:hover img,
    .video-thumb:hover span {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

