/* ================================
   Reset and Global Styles
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 130%;
}

body, html {
    height: 100%;
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
    background-color: #000000;
    color: #dcdcdc;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow: auto;
  scrollbar-width: none;        /* Firefox */
}

body::-webkit-scrollbar {
  display: none;                /* Chrome, Safari */
}


a {
  text-decoration: none;
  color: #76e039;
}

a:hover,
a:focus {
  color: #76e039;             /* or any hover color you want */
}

.header {
    display: flex;
    justify-content: space-between; /* Keeps name left and links right */
    align-items: center;
    padding: 5%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #dadada;
    width: 100%;
    top: 0;
    z-index: 9999;
    font-size: 1.25em;
    mix-blend-mode: color-burnplus-lighter;
    margin-top: 8em;
}

:root {
    --header-height: 80px;
}

/* Responsive header font size and padding */
@media (max-width: 768px) {
    .header {
        padding: 4% 3%;
        font-size: 1.25em;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 4% 3%;
        font-size: 0.75em;
    }
}

.menu-links {
    display: flex;
    gap: 2rem;
    text-transform: uppercase;
    font-size: .75em;
}

.menu-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: #76e039;
}

/* ================================
   Video Section Styles
================================ */
.video-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Allows expansion if content overflows */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));
    z-index: 1;
}

/* Text Overlay */
.text-overlay {
    position: relative;
    width: 100%;
    color: white;
    z-index: 2;
    padding: 3% 5% 3% 5%;
    text-align: left;
    margin: 0 auto;
    box-sizing: border-box;
}

.text-overlay h2 {
    font-size: clamp(1.2em, 2.5vw, 2em); /* Scales dynamically with screen size */
    line-height: 1.75;
    color: #ffffff;
    display: inline-block;
    border-radius: 0.5em;
}

/* Adjust spacing and font size for smaller screens */
@media (max-width: 768px) {
    .text-overlay h2 {
        font-size: clamp(1em, 4vw, 1.5em); /* Reduce font size on smaller screens */
        padding: clamp(0.8em, 1.5vw, 2em); /* Adjust padding for smaller devices */
        text-align: center;
    }
}

/* ================================
   Portfolio Section
================================ */
.portfolio {
}

.grid {
    display: block;
    margin: 0 auto;
    width: 90%;
}

.grid-item {
    width: 33%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.75s ease, filter 0.75s ease;
    border-style: solid;
    border-width: 1em;
    border-color: #000000;
}

.grid-item:hover img {
    filter: blur(6px);
}

/* Caption Styling */
.caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000003b;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4%;
  box-sizing: border-box;
  z-index: 1;
}

.grid-item:hover .caption {
    opacity: 1;
}

/* Title Styling */
.caption .title {
    font-size: 5em;
    color: #ffffff;
    padding-left:5%;
    padding-right: 5%;
    text-transform: uppercase;
    padding-top: 5%;
}

/* Categories Styling */
.caption .categories {
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: auto;
    padding: 0% 0% 0% 5%;
}

.caption .categories span {
    background-color: #121212;
    color: #76e039;
    padding: 0.3em 0.6em;
    border-radius: .5em;
}

/* Stack images vertically on screens smaller than 768px */
@media (max-width: 768px) {
    .grid-item {
        width: 100%;
        padding: 0;
    }
}


/* ================================================================================================================================
   Project Page Styles
=================================================================================================================================== */


.project-wrapper {
    padding: 0% 2.5%;
}


/* Project Header */
.project-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  max-width: 100%;
  margin: 2em 4em;
  margin-bottom: 20%;
}

.project-title-column {
    font-size: 300%;
    line-height: 1.2;
    /*text-transform: uppercase;*/
    padding: 5% 4.5%;
    color: #ffffff;
    background-color: #0000005e;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(15px);
}

.project-body-column {
    font-size: 1.5em;
    line-height: 1.6;
    color: #fff;
    width: 65%;
    padding: 1% 2.5%;
}


.project-text-columns .column {
  font-size: 4em;
  line-height: 1.45;
  border-top-color: #76e039;
  border-top-style: solid;
}

@media (max-width: 768px) {
  .project-text-columns {
    grid-template-columns: 1fr;
  }
}

.project-header {
    color: white;
    padding: 2rem 3rem;
}

.project-header h1 {
    font-size: 2.5rem; /* Adjust to match visual size from screenshot */
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}

/* Hero Image */
.project-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-width sections */

.project-section-full-width img {
    width: 100%;
    height: auto;
    display: block;
}

/* Title and Graphic Section */
.title-graphic-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: var(--header-height); /* Ensures content starts below the header */
    margin: 0;
    position: relative;
    box-sizing: border-box;
    z-index: 1; /* Ensures it is above the header */
}

.title-graphic-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 3% 0 0 0;
    align-items: stretch; /* Ensure both sides take equal height */
}

.title-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #00ff00; /* Green background */
    padding: 3.5%; /* Adjust spacing */
}

.title-left h1 {
    font-size: 4vw; /* Scales dynamically */
    text-transform: uppercase;
    color: #000000;
}

/* For the first image (usually the "intro" image) */
.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* For all other gallery images */
.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-caption {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: white;
}

.image-caption {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: #ccc;
}

/* Full-width image styling */
.project-image-full-width {
  width: 100%;
  padding-top: 10%;
  padding-bottom: 10%;
  display: block;
}

.project-banner-image {
  width: 100%;
  padding-top: 5%;
  display: block;
}

/* Half-width image styling */
.project-image-half-width {
  width: 48%;
  max-width: 100%;
  padding-top: 10%;
  padding-bottom: 10%;
  display: inline-block;
  vertical-align: top;
  margin: 1%;
}

/* Responsive behavior: stack half-width images on smaller screens */
@media (max-width: 768px) {
  .project-image-half-width {
    width: 100%;
    margin: 10px 0;
  }
}

/* Grid container for project images */
.project-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two across */
  gap: 2%;                        /* space between columns/rows */
  margin: 2% 0;
}

/* Inside the grid, each "half-width" image fills its grid cell */
.project-images-grid .project-image-half-width {
  width: 100%;        /* override the 48% */
  max-width: 100%;
  display: block;     /* avoid inline gaps */
  margin: 0;          /* spacing comes from grid gap */
  height: auto;
  object-fit: cover;
}

/* Mobile: stack full width */
@media (max-width: 768px) {
  .project-images-grid {
    grid-template-columns: 1fr;   /* single column */
    gap: 1rem;
  }
}


.project-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: .35em;
}

.project-tags span {
    background-color: #76e039;
    color: #121212;
    padding: 0.3em 0.6em;
    border-radius: 0.5em;
    text-transform: uppercase;
}

.project-credits-column {
  line-height: 1.6;
  text-align: left;
  padding: .75% 2.5% 2.5% 2.5%;
  color: #7d7d7d;
}

.project-credits {
}

/* Optional: Make credits right-aligned if you prefer */
@media (min-width: 769px) {
  .project-credits-column {
  }
}

.categories {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
  margin: 1em 0;
  padding:2.5% 2.5% .5% 2.5%;
}

.categories span {
  background-color: #76e039;
  color: #0f0f0f;
  padding: 0.4em 0.8em;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  text-transform: uppercase;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 4%;
}

.video-wrapper video {
  max-width: 100%;
  height: auto;
  display: block;
}

.video-caption {
  text-align: center;
  margin-top: 0.5rem;
  color: #7d7d7d;
  width:55%;
  padding-top: 2%;
}

.project-hero-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 3%;
}