/* --- Variables and Base --- */
:root {
    --primary-color: #ff00ff5b; /* Dark grey / black */
    --secondary-color: rgba(244, 244, 244, 0.1); /* Light grey */
    --accent-color: #ffffff; /* Muted accent - adjust as needed */
    --text-color: #ffffff;
    --bg-color: #000000;
    --font-family: 'Montserrat', sans-serif;
    /* Add a variable for the heading font (optional but good practice) */
    --heading-font-family: 'Road Rage', sans-serif; /* New heading font */
    --container-width: 1200px;
    --breakpoint-md: 768px;
}

/* --- Font Definitions --- */
@font-face {
    font-family: 'Road Rage'; /* Choose the name you want to use in CSS */
    /* Adjust the URL path based on your file structure and font file name/extension */
    /* This path assumes 'fonts' folder is a sibling of the 'css' folder */
    src: url('../fonts/Road_Rage.otf') format('opentype');
    /* Or if it's a TTF file: */
    /* src: url('../fonts/RoadRage.ttf') format('truetype'); */
  
    /* You might specify weight/style if needed, but Road Rage is usually single-style */
    font-weight: normal; /* Or bold if it behaves like that */
    font-style: normal;
  }
  

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    /* Remove gradient, set simple fallback BG */
    background-color: #111; /* Dark fallback */
    min-height: 100vh;
    margin: 0;
    font-weight: 300;
    /* Body needs relative positioning if using ::before for overlay */
    /* position: relative; */
}
/* NEW: Page Background Scroller */
#page-background-scroller {
    position: fixed; /* Fixed position to stay behind content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    z-index: -1; /* Behind all other content */
    /* overflow: hidden;  */
    display: flex;
    background-color: #000; /* Base background for scroller */

    /* Animation properties will be added via JS */
     --scroll-animation-name: infiniteScroll;
     --scroll-duration: 360s; /* Slower scroll for full background */

    will-change: transform;
    backface-visibility: hidden;
}
/* Add state when animation is ready */
#page-background-scroller.is-scrolling {
    animation: var(--scroll-animation-name) var(--scroll-duration) linear infinite;
}

/* Images within the scroller */
#page-background-scroller img {
    height: 100%; /* Fill height */
    width: auto;
    flex-shrink: 0;
    object-fit: cover; /* Cover the viewport height */
    object-position: center;
    margin-right: 5px;
    opacity: 0.2; /* <<< Make background images very dim */
    display: block;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Bolder headings */
    margin-bottom: 0.8em;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-family: var(--font-family); /* Default fallback for H1s not in .container */
    font-size: 2.8rem;
  }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.container h1 {
    font-family: var(--heading-font-family); /* Apply Road Rage */
    font-weight: normal; /* Road Rage often includes weight, 'normal' might be needed */
    /* Road Rage is quite distinct, you might need to adjust size/spacing */
    /* Example adjustments (tweak these values): */
    font-size: 3.5rem; /* Might need to be larger or smaller */
    letter-spacing: 1px; /* Adjust letter spacing if needed */
    text-transform: uppercase; /* Ensure it's uppercase like the logo */
}
/* Keep other heading levels using the default or Montserrat if needed */
.container h2 { font-size: 2rem; /* Keep or adjust */ }
.container h3 { font-size: 1.5rem; /* Keep or adjust */ }


p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove bottom space */
}

/* --- Header & Navigation --- */
.site-header {
    /* Make header background slightly transparent or solid white/black?
       Let's keep it solid white for now for nav readability */
    background-color: var(--bg-color);
    /* Or maybe slightly transparent: background-color: rgba(255, 255, 255, 0.9); */
    /* backdrop-filter: blur(5px); /* Optional: blur effect behind header */
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px; /* Adjust as needed */
}
.logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    /* This section already has a background, which will override the body gradient */
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
    /* Add border-radius if you want rounded corners against the gradient */
}

/* --- Hero Section (Homepage Specific) --- */
.hero-home {
    background-color: transparent; /* Remove hero background */
    padding: 6rem 0 4rem 0; /* Adjust padding */
    text-align: center;
    min-height: 60vh; /* Ensure minimum height */
    display: flex; /* Help center content vertically */
    flex-direction: column;
    justify-content: center;
}

.hero-image-container {
    position: relative; /* Establishes positioning context for ::after */
    display: block; /* Or inline-block if you prefer */
    margin: 0 auto 1.5rem auto; /* Centers the container */
    max-width: 800px; /* Optional: Constrain the container width */
    /* Adjust max-width as needed, or remove if image should be fully fluid */
    line-height: 0; /* Prevent extra space if container is inline-block */
    overflow: hidden;
    aspect-ratio: 771 / 202;
    width: 100%;
    height: auto;

}

.hero-logo-image {
    display: block;
    max-width: 100%;
    height: auto;
    /* Optional but recommended: Make the original image invisible,
       as the ::after element will draw the visible part */
    opacity: 0;
    /* Or use visibility: hidden; */
}




/* The Overlay Pseudo-Element */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* --- Animated Gradient Background --- */
    /* Use a gradient that repeats visually. Having the primary color at both ends helps. */
    background: linear-gradient(
        90deg, /* Left to right */
        var(--primary-color, #1a1a1a),
        var(--accent-color, #cccccc),
        var(--secondary-color, #f4f4f4),
        var(--primary-color, #1a1a1a) /* Repeat first color at the end */
    );
    /* Size needs to cover AT LEAST one full cycle visually.
       Since we have P->A->S->P, that's 3 segments. 300% covers this. */
    background-size: 300% 100%;

    /* --- Animation --- */
    /* Use new keyframes name, LINEAR timing, and infinite */
    animation: animateGradientScroll 12s linear infinite; /* Adjust duration (8s) */

    /* --- CSS MASKING (Keep as before) --- */
    mask-image: url('../images/hero.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../images/hero.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    pointer-events: none;
}

/* --- Mission Statement --- */
.mission-statement {
    background-color: var(--secondary-color); /* Light, semi-transparent bg */
    padding: 4rem 0;
    text-align: center;
}
.mission-statement h2 {
    font-family: var(--heading-font-family); /* Road Rage */
    font-weight: normal;
    font-size: 2.5rem; /* Adjust size */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.mission-statement p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color); /* Slightly darker text */
}


/* Optional: Pause animation on hover (still applies) */
/* .hero-image-container:hover::after {
    animation-play-state: paused;
} */

@keyframes infiniteScroll {
    0% {
      transform: translateX(-0%);
    }
    100% {
      /* Check the variable name and fallback */
      transform: var(--scroll-translate-x, translateX(-50%));
    }
  }
  

/* --- UPDATED Keyframes for Continuous Scroll --- */
@keyframes animateGradientScroll {
  0% {
    background-position: 0% 50%; /* Start at the beginning */
  }
  100% {
    /* Move position across exactly one full visual cycle.
       Since the gradient visually repeats after the P->A->S sequence,
       and our gradient is (P, A, S, P) over 300% size,
       moving the position by 100% effectively shifts it by one full cycle length. */
    background-position: 300% 0%;
  }
  /* No need for a 50% step anymore */
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 0; /* Remove bottom margin if no button follows */
}

/* --- Buttons --- */
.btn, .btn-small, .btn-secondary { /* Assuming you group common styles */
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 3px;
    font-weight: 400; /* Make sure normal weight is set (e.g., 400) */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer; /* Good practice for buttons */
    text-align: center;
     /* Add/update transition to include font-weight or use 'all' */
    transition: all 0.3s ease;
    /* Or more specific: */
    /* transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, font-weight 0.2s ease, transform 0.2s ease; */
}

/* Primary button style */
.btn, .btn-small {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}
.btn-small { /* Specific overrides for btn-small */
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Secondary button style */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    /* margin-left: 10px; /* Spacing if needed */
}

/* --- Add the HOVER rule --- */
.btn:hover,
.btn-small:hover,
.btn-secondary:hover {
    font-weight: 900; /* Or 'bold' */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle dark shadow */
    /* Keep existing hover styles */
    background-color: var(--accent-color); /* Example for .btn */
    color: var(--primary-color); /* Example for .btn */
    border-color: var(--accent-color); /* Example for .btn */
    /* Add specific hover styles for btn-secondary if needed */
}

/* You might need specific hover rules if backgrounds/colors differ */
.btn-secondary:hover {
     background-color: var(--secondary-color); /* Lighten on hover */
     /* font-weight: 700; is already applied by the grouped rule */
     color: var(--primary-color);
     border-color: var(--primary-color);
}

/* --- About Brief Section --- */
.about-brief {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

/* --- Page Title Section --- */
.page-title {
    /* Overrides body gradient */
    background-color: var(--primary-color);
    color: var(--light-text-color); /* Use light text on dark background */
    padding: 3rem 0;
    text-align: center;
}
.page-title h1 {
    color: var(--light-text-color); /* Ensure h1 is also light */
    margin-bottom: 0;
}

/* --- Project Listing (Features, Shorts, Theatre) --- */
.project-listing {
    padding: 4rem 0;
    /* No background here by default, gradient shows through. */
    /* Text readability relies on the white center of the gradient. */
}

.project-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    /* Add a subtle border or background to items if needed for separation */
     background-color: rgba(255, 255, 255, 0.05); 
     padding: 2rem;
     border-radius: 5px;
     box-shadow: 0 3px 10px rgba(0,0,0,0.07);
     border: 1px solid rgba(0,0,0,0.05);
}

.project-item:last-child {
    /* border-bottom: none; */
    margin-bottom: 0;
    /* padding-bottom: 0; */
}

.project-image {
    flex: 0 0 250px; /* Fixed width for image container */
}

.project-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-content {
    flex: 1;
}

.project-content h2 {
    margin-top: 0;
}

.project-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    font-style: italic;
}

/* --- Blog Listing --- */
.blog-listing {
    padding: 4rem 0;
}

.blog-post-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 3rem;
}

.blog-post-summary:last-child {
     border-bottom: none;
     margin-bottom: 0;
     padding-bottom: 0;
}

.blog-post-image {
    flex: 0 0 200px; /* Adjust width as needed */
}

.blog-post-image img {
    width: 100%;
    height: 130px; /* Adjust height */
    object-fit: cover;
}

.blog-post-content {
    flex: 1;
}

.blog-post-content h2 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.read-more {
    margin-top: 1rem;
}


/* --- Footer --- */
.site-footer {
    /* Footer will sit over the gradient */
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    color: var(--light-text-color); /* Light text for readability */
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0; /* Remove default margin-top if .about-content added margin-bottom */
    position: relative; /* Ensure it's above gradient */
    z-index: 10;
}
.site-footer p {
    margin: 0;
    color: var(--light-text-color); /* Explicitly set p color */
}


/* --- Responsiveness --- */
@media (max-width: var(--breakpoint-md)) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .container {
        padding: 0 15px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Above nav menu */
        position: relative; /* Needed for z-index */
    }

    .main-nav .nav-menu {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-top: 1px solid var(--secondary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

     .main-nav .nav-menu.active {
        display: flex; /* Show when active */
    }

    .main-nav li {
        margin: 0;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: none; /* Remove underline */
    }
    .main-nav a:hover,
    .main-nav a.active {
        background-color: var(--secondary-color);
        border-bottom: none;
    }

     /* Adjust hamburger icon when active */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

    /* Project Listing */
    .project-item {
        flex-direction: column; /* Stack image and content */
        gap: 1.5rem;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .project-image {
        flex: 0 0 auto; /* Reset fixed width */
        max-width: 300px; /* Limit image size on mobile */
        margin: 0 auto; /* Center image */
    }

    /* Blog Listing */
     .blog-post-summary {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    .blog-post-image {
        flex: 0 0 auto;
        max-width: 100%;
        margin: 0 auto;
    }
     .blog-post-image img {
        height: auto; /* Adjust height */
        max-height: 200px;
    }
}

@media (max-width: 480px) {
     h1 { font-size: 1.8rem; }
     h2 { font-size: 1.5rem; }

     .preview-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
}



/* ... (Keep existing Base, Header, Nav, Hero, Buttons styles) ... */

/* --- Section Previews (Homepage) --- */
.section-preview {
    padding: 4rem 0;
}

.section-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; /* Increased gap slightly */
}

.preview-item {
    text-align: center;
    border: 1px solid var(--secondary-color);
    padding: 0; /* Remove padding, content will add its own */
    overflow: hidden; /* Important for border-radius if added */
    display: flex; /* Use flex to control content flow */
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.preview-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- Featured Posters Section --- */
.featured-posters {
    padding: 2rem  0 0 0;
    /* Sits over scrolling background, consider readability */
    /* Optionally add a subtle pattern or very transparent overlay */
    /* background-color: rgba(0,0,0, 0.05); */
}
.featured-posters h2 {
    text-align: center;
    font-family: var(--heading-font-family); /* Road Rage */
    font-weight: normal;
    font-size: 3rem;
    margin-bottom: 3rem;
     /* Needs to be readable over background */
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.poster-grid {
    display: grid;
    /* Create 5 columns on larger screens, fewer on smaller */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0rem; /* Adjust gap */
    max-width: var(--container-width); /* Use container width */
    margin: 0 auto;
    padding: 0 0px; /* Add padding like container */
}
.poster-item {
    position: relative; /* For overlay positioning */
    display: block; /* Make the link a block */
    overflow: hidden; /* Clip overlay/image */
    border-radius: 0px; /* Rounded corners */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
    aspect-ratio: 2 / 3; /* Typical poster aspect ratio */
    background-color: #333; /* Fallback color */
    transition: transform 0.3s ease; /* Optional scale effect */
}
.poster-item:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    z-index: 2;


}
.poster-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the aspect ratio */
    transition: opacity 0.4s ease-in-out;
}
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark overlay */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease-in-out;
    pointer-events: none; /* Allow clicks to pass to the link */
}
.poster-item:hover img {
    opacity: 0.1; /* Fade out image on hover */
}
.poster-item:hover .poster-overlay {
    opacity: 1; /* Fade in overlay on hover */
}
.poster-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.poster-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* NEW: Info Panel Styles */
.poster-info-panel {
    position: absolute;
    bottom: 0; /* Position at the bottom */
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.9); /* Dark semi-transparent background */
    color: #e0e0e0; /* Light text */
    padding: 0.5rem 0.75rem; /* Adjust padding */
    font-size: 0.75rem; /* Smaller font */
    text-align: center;
    z-index: 2; /* <<< Above image, below overlay */
    transform: translateY(100%); /* <<< Initially hidden below */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide */
    white-space: nowrap; /* Prevent wrapping on small panels */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if text too long */
}
.poster-info-panel span {
    display: inline-block; /* Treat spans nicely */
    margin: 0 0.25em; /* Small space around separator */
}
/* --- End Info Panel Styles --- */

.poster-item:hover .poster-info-panel {
    transform: translateY(0%); /* <<< Slide panel into view */
}

/* --- Adjust About Brief Spacing --- */
.about-brief {
    /* Ensure enough space after posters */
    margin-top: 4rem;
    /* Keep existing styles */
}


/* --- About Brief Section (Homepage) --- */
.about-brief {
    /* This section also overrides the body gradient */
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

/* Add style for secondary button if needed */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 10px; /* Space between buttons */
}
.btn-secondary:hover {
    background-color: var(--secondary-color); /* Lighten on hover */
}


/* --- About Page Content --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    /* Gradient shows through here too. */
    /* Option: Add a background to the container if readability is an issue */
     /* background-color: rgba(255, 255, 255, 0.9);  */
     padding: 4rem 3rem; /* Add padding inside the background */
     border-radius: 5px;
     box-shadow: 0 3px 10px rgba(0,0,0,0.07);
     margin-top: -2rem; /* Pull up slightly over page-title bottom */
     margin-bottom: 4rem;
     position: relative; /* Needed for z-index or margin-top pull */
     z-index: 5; /* Ensure it's above gradient/page title transition */
}

.about-content-wrapper { /* You might need to wrap .about-content in a div with this class if margin-top causes issues */
    padding: 4rem 0;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Optional Team Styles */
.team-heading {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-member h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.team-member .role {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.team-member p:not(.role) { /* Bio paragraph */
    font-size: 0.95rem;
}

/* --- Social Media Links --- */
.social-links {
    margin-top: 2rem; /* Space above the links */
    text-align: center; /* Center the links */
    padding-bottom: 1rem; /* Add some padding at the bottom if needed */
}

.social-links a {
    display: inline-block; /* Allows margin/padding */
    margin: 0 12px; /* Horizontal space between icons */
    color: var(--text-color); /* Use default text color for icons initially */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
}

.social-links a:hover {
    color: var(--accent-color); /* Change color on hover (adjust as needed) */
    transform: scale(1.1); /* Slightly enlarge icon on hover */
}

.social-links svg {
    width: 28px; /* Icon size */
    height: 28px; /* Icon size */
    vertical-align: middle; /* Align nicely */
    fill: currentColor; /* SVG color inherits from the 'a' tag's color */
}

/* Optional: Specific styles for social links on about page if needed */
/* .about-page-socials { */
    /* text-align: left; */ /* Example: align left on about page */
/* } */

/* --- Project Detail Page --- */
.project-detail-header {
    padding: 4rem 0;
    background-color: var(--primary-color); /* Fallback */
    background-size: cover;
    background-position: center center;
    color: #fff; /* Text color for banner */
    text-align: center;
    position: relative; /* For potential overlay */
    min-height: 250px; /* Ensure some height */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Optional overlay for readability */
.project-detail-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0, 0.5); /* Dark overlay */
    z-index: 1;
}
.project-detail-header .container {
    position: relative; /* Place container content above overlay */
    z-index: 2;
}

.project-title {
    font-family: 'Road Rage', sans-serif; /* Apply specific font */
    font-size: 4.5rem; /* Adjust size */
    color: #fff; /* White text on banner */
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); /* Add shadow for readability */
    font-weight: normal; /* Road Rage is often inherently bold */
}

.project-title-image {
    display: block; /* Allow margin auto centering */
    margin: 0 auto; /* Center the image horizontally */
    max-width: 90%; /* Prevent image from touching container edges */
    width: auto; /* Allow image to shrink */
    max-height: 350px; /* <<< Control max height. ADJUST AS NEEDED */
    height: auto; /* Maintain aspect ratio */
    /* Optional: Add margin below if you have a subtitle */
    /* margin-bottom: 1rem; */
}

.project-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    margin: 0;
}

.project-detail-content {
    padding: 4rem 0;
    /* background-color: rgba(255, 255, 255, 0.9); */
    margin-top: -2rem; /* Pull up slightly */
    position: relative;
    z-index: 5;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.07);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sidebar fixed width, main content takes rest */
    gap: 3rem;
}

.project-detail-meta {
    /* Styles for the left sidebar */
}

.project-poster {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 3px;
    cursor: pointer; /* Indicate it's clickable for the lightbox */
    transition: opacity 0.2s ease; /* Optional hover effect */
    
}

.project-detail-meta h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.project-detail-meta p {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.project-detail-meta p strong {
    color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}
.back-link:hover {
    color: var(--primary-color);
}

.project-detail-main {
    /* Styles for the main content area */
}

.project-detail-main h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem; /* Space between sections */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary-color);
}
.project-detail-main h2:first-child {
    margin-top: 0; /* No top margin for the first heading (Synopsis) */
}

.project-detail-main p {
    margin-bottom: 1.5rem;
}

.project-detail-main ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
.project-detail-main li {
    margin-bottom: 0.5rem;
}

/* Responsive Video Embed */
.video-responsive {
    overflow: hidden; /* Ensures content outside the aspect ratio is hidden */
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 (9 / 16 = 0.5625) */
    position: relative; /* Required for absolute positioning of the iframe */
    height: 0; /* Height is determined by padding-bottom based on width */
    width: 100%; /* <<< Make the container take full width of its parent */
    max-width: 100%; /* <<< Ensure it doesn't exceed parent width */
    margin-bottom: 2rem; /* Space below the video */
    background-color: #000; /* Optional: black background while iframe loads */
}

.video-responsive iframe {
    left: 0;
    top: 0;
    /* These make the iframe fill the .video-responsive container */
    height: 100%;
    width: 100%;
    position: absolute; /* Positioned absolutely within the relative parent */
    border: none; /* Clean look */
}

/* Stills Gallery */
.stills-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stills-gallery img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    /* cursor: pointer;  */
    transition: opacity 0.2s ease; /* Add hover effect */
}

.stills-gallery img:hover {
    opacity: 0.8; /* Slight fade on hover */
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed (though image is constrained) */
    background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
    /* Use Flexbox to center the content */
    align-items: center;
    justify-content: center;
    padding: 20px; /* Padding around the content */
    cursor: pointer; /* Indicate clicking background closes it */
}

/* Style for when the lightbox is active */
.lightbox.active {
    display: flex; /* Change display to flex to show it and enable centering */
}

/* The actual image inside the lightbox */
.lightbox-content {
    display: block;
    margin: auto; /* Helps with centering, although flexbox does most work */
    max-width: 90%; /* Max width relative to viewport */
    max-height: 85vh; /* Max height relative to viewport height */
    width: auto; /* Let image determine width up to max */
    height: auto; /* Let image determine height up to max */
    object-fit: contain; /* Ensure entire image fits without cropping */
    cursor: default; /* Normal cursor over the image itself */
    animation: lightboxZoom 0.4s ease; /* Optional zoom-in effect */
    border-radius: 3px; /* Optional slight rounding */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4); /* Optional shadow */
}

/* Optional zoom animation */
@keyframes lightboxZoom {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

/* The Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001; /* Ensure it's above the image if overlap occurs */
    line-height: 1; /* Prevent extra vertical space */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

.lightbox-img {
    cursor: pointer;
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 4rem 0;
    /* background-color: var(--secondary-color);  */
    /* If using over scrolling background: */
    /* background-color: rgba(255, 255, 255, 0.85); */
    /* backdrop-filter: blur(3px); */
}

.reviews-heading {
    text-align: center;
    font-family: var(--heading-font-family); /* Optional: Road Rage */
    font-weight: normal;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
     /* text-shadow: 1px 1px 2px rgba(0,0,0,0.1); */
}

.reviews-grid {
    display: grid;
    /* Adjust minmax for desired card width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* Space between cards */
}

.review-card {
    display: block; /* Make link block-level */
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 6px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    height: 100%; /* Make cards in same row equal height if needed */
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color); /* Or primary color */
}

/* Optional style for highlighted card */
.review-card--highlight {
    border-left: 4px solid var(--primary-color); /* Example highlight */
     /* Or use the pink border from the image: border: 2px solid #ff4d6d; */
}

.review-tagline {
    font-size: 1.1rem;
    font-weight: 600; /* Bold */
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrap if needed */
}

.review-tagline .emoji {
    font-size: 1.3rem; /* Slightly larger emoji */
    margin-right: 0.5em;
    line-height: 1; /* Prevent extra line height from emoji */
}

.review-meta {
    font-size: 0.8rem;
    color: #666; /* Muted color */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #eee; /* Separator */
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-color);
}

.reviews-link-footer {
    text-align: center;
    margin-top: 3rem;
}

.reviews-link-footer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 400;
}
.reviews-link-footer a:hover {
    color: var(--accent-color);
}


/* --- Responsiveness for Project Detail --- */
@media (max-width: 900px) {
     .project-detail-grid {
        grid-template-columns: 200px 1fr; /* Smaller sidebar */
        gap: 2rem;
    }
     .project-title {
         font-size: 3.5rem;
     }
     .poster-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) { /* Matches main breakpoint */
    .project-detail-header {
        padding: 3rem 0;
        min-height: 200px;
    }
     .project-title {
         font-size: 2.8rem;
     }
     .project-detail-content {
         padding: 2rem 0;
         margin-top: -1.5rem;
     }
     .project-detail-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem;
    }
    .project-poster {
        max-width: 250px; /* Limit poster size when stacked */
        margin-left: auto;
        margin-right: auto;
    }
    .project-detail-meta {
        text-align: center; /* Center meta content when stacked */
    }
     .project-detail-meta h3 {
        text-align: left; /* Keep heading left-aligned */
     }
      .project-detail-meta p {
        text-align: left; /* Keep text left-aligned */
     }
     .back-link {
         display: block; /* Make back link block level for centering */
         text-align: center;
     }
     .project-title-image {
        max-height: 120px; /* Smaller max height on mobile */
        max-width: 85%;
   }
   .mission-statement { padding: 3rem 0; }
    .mission-statement h2 { font-size: 2rem; }
    .mission-statement p { font-size: 1rem; }

    .featured-posters { padding: 3rem 0; }
     .featured-posters h2 { font-size: 2.5rem; margin-bottom: 2rem; }
    .poster-grid {
        /* Go down to 2 or 3 columns */
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .poster-overlay h3 { font-size: 1rem; }
    .poster-overlay p { font-size: 0.85rem; }

    .about-brief { margin-top: 3rem; }

    .reviews-heading {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    .review-card {
        padding: 1.25rem;
    }

}

@media (max-width: 480px) {
      .project-title {
         font-size: 2.2rem;
     }
      .stills-gallery {
          grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
          gap: 0.5rem;
      }
      .project-title-image {
        max-height: 90px; /* Even smaller */
        max-width: 80%;
   }
    .reviews-heading {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    .review-card {
        padding: 1.25rem;
    }

}

/* --- Responsiveness --- */
/* ... (Keep existing media query and mobile nav styles) ... */

@media (max-width: var(--breakpoint-md)) {
    /* ... (Existing mobile styles for nav, headings etc.) ... */

    /* Adjust slideshow container height maybe */
    .slideshow-container {
        height: 220px; /* Slightly smaller on mobile */
    }
    .project-item {
        padding: 1.5rem; /* Adjust padding for mobile */
        flex-direction: column; /* Keep mobile stacking */
    }

    .project-listing .project-item { /* Keep existing mobile stack */
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }
     .project-listing .project-image { /* Keep existing mobile image styles */
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        padding: 1.5rem 1rem; /* Adjust padding */
        margin-top: -1rem;
        margin-bottom: 2rem;
    }

    .team-grid {
         grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust team grid */
         gap: 1.5rem;
    }
}

@media (max-width: 480px) {
     /* ... (Existing smallest screen styles) ... */
     .preview-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
    .slideshow-container {
        height: 200px; /* Even smaller */
    }
    .slideshow-container .prev,
    .slideshow-container .next {
        padding: 8px 10px;
        font-size: 16px;
    }
    .hero-image-container { max-width: 300px; }
    .hero .tagline { font-size: 1rem; }

    .poster-grid {
       grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
       gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    .hero-logo-image {
        margin-bottom: 1rem; /* Slightly less space below image on mobile */
         /* max-width: 90%; /* Example: limit width further on mobile if needed */
    }
}