html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #F9F9F9;
}

::selection {
  color: #F9F9F9; /* Change the text color (white in this example) */
  background: #676767; /* Change the highlight background color (red in this example) */
}

/* --- LANDING PAGE --- */



.image-container {
  height: 100vh;
  width: 100vw;  
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out; 
  z-index: 1; 
}

.video-link.previous {
  opacity: 1;
  visibility: visible;
  z-index: 2; 
  transition: none; 
}

/* The video transitioning TO */
.video-link.active {
  opacity: 1;
  visibility: visible;
  z-index: 3; 
}

/* Standardize video behavior */
.video-link video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-graphic {
  position: absolute;
  bottom: 10%;      /* Distance from bottom */
  right: 40px;      /* This is "Minimum Gap" from the right wall */
  width: 600px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: difference;
}

.standalone-logo {
    position: fixed;
    top: 60px;
    left: 80px;
    width: 60px;
    height: auto;
    z-index: 301;
}

/* The Navigation - Stacked below the logo */
.top-nav {
    position: fixed; 
    top: 220px;    
    left: 80px;      
    z-index: 300;    
    display: flex;
    flex-direction: column; 
    gap: 20px;
    mix-blend-mode: difference;
}

.top-nav a {
    text-decoration: none;
    color: white;    
    font-family: "Montserrat", sans-serif;
    font-weight: 100;
    font-size: 1.4rem;
    transition: opacity 0.3s ease;
    width: max-content;
}

.menu-logo {
  width: 60px; 
  height: auto;
  margin-bottom: 10px;
}

.top-nav a:hover {
  color: #676767;    
}



/* --- PROJECTS PAGE ---*/





/* --- Static Page Specific Styles --- */



.static-page {
  overflow-y: auto; 
  margin: 0;
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header {
  position: fixed;
  top: calc(62px - 3vw);
  left: 280px;
  z-index: 100;
  mix-blend-mode: difference; 
}

.main-title {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 10vw;
  margin: 0;
  text-transform: uppercase;
}

.content-wrapper {
  position: relative; 
  z-index: 200;      /* Set this higher than the title's 100 */
  background: #F9F9F9; /* Ensure this is solid, not transparent */
  padding: 20px 80px 0px 282px;
  min-height: 100vh;

}

.content-wrapper h2, .content-wrapper h3, .content-wrapper p {
  color: rgb(0, 0, 0);
  font-family: "Montserrat", sans-serif;
  
}

.content-wrapper h3, .content-wrapper p {
  text-align: justify;
  hyphens: auto;
}

.project-picture {
  width: 100%; /* Make it responsive to its column */
  height: auto;
}

.content-wrapper h2 {
  font-size: 2.4rem;
  text-transform: uppercase;
  font-weight: 300;
}

.active-link {
  opacity: 0.5; 
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%; 
  transform: translateX(-50%); 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  mix-blend-mode: difference;
  animation: fadeInOutCentered 2s ease-in-out infinite;
}

.arrow {
  width: 20px;
  height: 20px;
  border-right: 8px solid white;
  border-bottom: 8px solid white;
  transform: rotate(45deg);
}

@keyframes fadeInOutCentered {
  0%, 100% { 
  opacity: 0.3; 
  transform: translate(-50%, 0); 
  }
  50% { 
  opacity: 1; 
  transform: translate(-50%, 8px);
  }
}

/* Base style for the picture */
.project-picture {
    width: 100%; /* Make it responsive to its column */
    height: auto;
}

/* Two-column layout for desktops */
@media (min-width: 1000px) {
    .project-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 40px; /* Space between text and image */
        align-items: start;
    }
}



/* Mobile adjustments for the title */



@media (max-width: 768px) {
  .page-header {
  position: absolute;
  top: auto;
  bottom: 120px;
  left: 0;
  right: 0;
  padding: 0 30px;
  z-index: 10;
  }

  .main-title {
  text-align: right;
  font-size: 14vw;
  }

  .scroll-indicator {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .content-wrapper {
    position: relative; 
    z-index: 200;      /* Set this higher than the title's 100 */
    background: #F9F9F9; /* Ensure this is solid, not transparent */
    padding: 100px 20px 0px 160px;
    min-height: 100vh
  }
}



/* --- MOBILE RESPONSIVE STYLES --- */



@media (max-width: 768px) {
    
  /* 1. Tighten the margins for the logo and nav */
  .standalone-logo {
  top: 30px;
  left: 30px;
  width: 50px; /* Slightly smaller logo */
  }

  .top-nav {
  top: 110px; /* Adjusted to stay tucked under the logo */
  left: 30px;
  gap: 15px;
  }

  .top-nav a {
  font-size: 1.1rem; /* Smaller text for mobile */
  }

  /* 2. Scale the overlay graphic so it doesn't cover the whole screen */
  .overlay-graphic {
  width: 70vw;    /* Uses 70% of the screen width instead of fixed 600px */
  right: 20px;    /* Smaller gap from the wall */
  bottom: 5%;
  }

  /* 3. Video handling */
  .video-link video {
  /* On mobile, 'cover' is still good, but ensure the center is the focus */
  object-position: center center;
  }
}