@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

/* Reset and base styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 1)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    padding: 100px 50px;
    text-align: center;
    border-bottom: 1px solid #303030;
}

.hero-content h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.hero-content .tagline {
    margin: 10px 0 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ccc;
    letter-spacing: 1px;
}

.hero-content p {
    max-width: 800px;
    margin: 25px auto 0;
    font-size: 1.4rem; /* Increased size */
    font-weight: 400;   /* Regular weight for better readability */
    line-height: 1.7;   /* Increased line height */
}

/* Gallery Container */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between rows */
    padding: 40px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.video-gallery-row {
    display: flex;
    width: max-content;
    animation: scroll-left 75s linear infinite;
}

/* Different animation for even rows */
.video-gallery-row:nth-child(even) {
    animation: scroll-right 85s linear infinite;
}

.video-gallery-row:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.video-item {
    margin: 0 12.5px;
    background-color: #202020;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Default size (vertical) */
    flex: 0 0 280px; 
    aspect-ratio: 9 / 16;
}

/* Alternating size 1 (landscape) */
.video-item:nth-child(4n+2) {
    flex: 0 0 450px;
    aspect-ratio: 16 / 9;
}

/* Alternating size 2 (squarish) */
.video-item:nth-child(4n+3) {
    flex: 0 0 350px;
    aspect-ratio: 4 / 3;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the container, cropping if necessary */
    display: block;
}

/* Modal for video playback */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#modal-video {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #bbb;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 50px;
    margin-top: 20px;
    border-top: 1px solid #303030;
    color: #888;
    font-size: 0.9rem;
}