/* --- Global Reset & Base Styles (Dark Theme) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Uses the recommended fonts if you included the <link> tags in the HTML */
    font-family: 'Lato', sans-serif;
    background-color: #111; /* Dark background */
    color: #f4f4f4; /* Light text */
    min-height: 100vh;
}

/* --- Header --- */
.site-header {
    text-align: center;
    padding: 50px 20px 30px;
    border-bottom: 1px solid #333;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    color: #aaa;
}

/* --- Section Styling --- */
.work-category {
    padding: 0 0 30px 0;
}

.category-heading {
    /* Cinematic red line on the left */
    border-left: 5px solid #e50914; 
    padding: 10px 0 10px 20px;
    margin: 40px 0 20px 40px;
    font-size: 1.8rem;
    font-weight: 400;
}

/* --- Horizontal Scroll Container (The core of the layout) --- */
.project-scroll-container {
    display: flex; /* Puts all video tiles in a row */
    overflow-x: auto; /* Enables the horizontal scrolling */
    padding: 10px 40px 20px 40px;
    gap: 30px; /* Space between video tiles */
    
    /* Hiding the scrollbar for aesthetics */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hiding scrollbar for Webkit browsers (Chrome, Safari) */
.project-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- Individual Video Tile (Ensures fixed width) --- */
.project-tile {
    flex-shrink: 0; /* Prevents shrinking in the flex container */
    width: 320px; /* Fixed width (similar to your old w-80 class) */
    background-color: #1a1a1a;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.video-clip {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    font-size: 0.9rem;
    padding: 15px;
    color: #ccc;
}

/* --- Footer --- */
.site-footer {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    border-top: 1px solid #333;
}

.site-footer a {
    color: #e50914; /* Cinematic red link color */
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness (Ensures it looks great on phones) --- */
@media (max-width: 768px) {
    
    .site-header {
        padding: 30px 15px 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    /* Reduce horizontal padding on the scroll container for small screens */
    .project-scroll-container {
        padding: 10px 20px 20px 20px;
    }

    /* Reduce the size of the video tiles for small screens */
    .project-tile {
        width: 280px; 
    }

    .category-heading {
        margin-left: 20px;
    }
}