/***************************** BACKGROUND *****************************/
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/Montserrat-Bold.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura-pt/futura-light.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

html, body {
    margin: 0;
    font-family: Georgia, serif, Arial, sans-serif;
    background: linear-gradient(180deg, #fbe9f1 0%, #f1d1b1 20%, #e6e2db 60%, #eeebe6 100%);
    color: #252425;
    overflow-x: hidden;
    position: relative;
}

/***************************** WORKS CONTENT *****************************/
.intro-banner {
    padding: 30px 20px;
    text-align: center;
    margin: 0 auto;
    font-size: 1.2em;
    position: relative;
    width: 80%;
    z-index: 10;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.intro-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px; /* thickness */
    background: linear-gradient(to right, transparent, #3f5048, #2a3530, #3f5048, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.intro-banner p {
    margin: 0;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-banner strong {
    color: #3f5048;
    text-shadow: 1px 1px 2px #0000006c;
}

.intro-banner p::first-line {
    color: #252525;
}

/* Video Content*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

h2 {
    text-shadow: 2px 2px 4px #00000038;
    margin: 40px 0 20px;
}

.video-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #3f5048 transparent;
}

.video-frame {
    flex: 0 0 auto;
    width: 130px;
    height: 250px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(
    10% 0%, 90% 0%,
    100% 10%, 100% 90%,
    90% 100%, 10% 100%,
    0% 90%, 0% 10%
    );            
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    position: relative;
    cursor: pointer;
}

.video-frame:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(255,255,255,0.1);
    animation-play-state: paused;
}

.video-frame.flip {
    animation: flip var(--duration, 3s) infinite alternate;
    animation-delay: var(--delay, 0s);
}

@keyframes flip {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    mix-blend-mode: overlay;
    transition: all 0.4s ease;
}

.video-strip::-webkit-scrollbar {
    height: 6px; /* thinner */
}

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

.video-strip::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #2e5a93, #58a4f8);
    border-radius: 10px;
}

.video-strip::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, #3b75c2, #76c2ff);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #3f5048;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup iframe {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    border-radius: 0;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff0202;
    font-size: 30px;
    cursor: pointer;
}

/***************************** MOBILE STYLES *****************************/
@media (max-width: 768px) {   
    .intro-banner {
        font-size: 1em;
        padding: 10px 5px;
        margin-bottom: 3px;
    }

    h2 {
        font-size: 1.2em;
        margin-top: 4px;
        margin-bottom: 3px;
    }

    .video-frame {
        width: 50px;
        height: 100px;
        margin: 2px;
    }
    
    .popup {
        max-height: 95%;
        align-items: center;
    }
    
    .popup iframe {
        max-height: 90%;
        z-index: 1000;
        align-items: center;
    }
    
    .close-btn {
        font-size: 3rem;
        top: 20px;
        right: 20px;
        z-index: 1100;
    }
}