/* Single Project styles */
.content {
    padding: 0;
    text-align: center;
}
/* Hero section */
.project-hero {
  width: 100vw;
  height: 100vh;
  display: grid;
  position: absolute;
  top: 0;
  grid-template-columns: 1fr 1fr;
  background-color: #d0e6e7;
  overflow: hidden;
  padding: 0rem 0rem;
  align-items: center;
}
.hero-spacer {
  height: 100vh; /* Same as post-hero height */
}   
.project-hero-content {
  text-align: right;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  /*make a responsive margins*/
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.project-hero-content:hover .badge {
  transform: translateY(0);
  opacity: 1;
}
.project-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 30px 0px 10px 0px;
}
.project-meta {
  font-size: 0.9rem;
  color: #555;
}  
.project-hero-image {
  clip-path: polygon(4% 0%, 100% 0, 100% 100%, 15% 80%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}  
.project-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  mix-blend-mode: normal;
}

/* Project section */
.project-section {
  width: 100vw;
  min-height: 50vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: transparent;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  overflow: hidden; /* Ensure SVG stays contained */
}
/* Support Project section reversed layout */
.project-section.reversed {
  direction: rtl;
}
.project-section.reversed > .section-content,
.project-section.reversed > .section-media {
  direction: ltr;
}
/* Fixes reversed layout issues*/
.project-section.reversed .section-content {
  align-items: flex-start;
  text-align: left;
}
/*End*/
.project-section .background-svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind content */
  pointer-events: none; /* Allow clicks through */
  opacity: 0.7; /* Optional: Adjust transparency */
}
.project-section object {
  width: 100%;
  height: 100%;
}
/* Project section (Left side) */
.project-section-h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 30px 0px 10px 0px;
  font-family: 'Raleway-Black';
  background: linear-gradient(to right, #08202a, #0e4151, #0e5776);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.project-section .section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}
.project-section .section-meta {
  font-size: 0.9rem;
  color: #666;
}
.project-section .section-description {
  font-size: 1rem;
  line-height: 1.5;
}
.project-section .section-qr img {
  max-width: 150px;
  height: auto;
}
/* Project section (Right side) */
.project-section .section-video,
.project-section .section-qr {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-section .section-video video {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}
.project-section .section-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-section .section-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}
  
@media (max-width: 768px) {
  /* HERO section */
  .project-hero {
      grid-template-columns: 1fr; /* Stack content & image vertically */
  }
  .project-hero-content {
      padding: 5rem 2rem 0rem 2rem;
      clip-path: none;
      text-align: center;
      background-color: transparent; /* optional */
  }
  .section-qr img {
      display: none;
    }
  .project-hero-image {
      clip-path: polygon(26% 0%, 80% 7%, 75% 38%, 75% 100%, 20% 100%, 20% 40%, 75% 40%, 20% 33%);
      height: auto;
  }
  .project-hero-image img {
      object-fit: cover;
      height: 100%;
  }
  /* Project section */
  .project-section {
    grid-template-columns: 1fr; /* Stack content vertically */
    padding: 2rem 1rem; /* Optional: Adjust padding for smaller screens */
  }
  .project-section .section-content {
    text-align: center; /* Center text */
    align-items: center; /* Center flex items */
  }
  .project-section .section-qr img,
  .project-section .section-video video,
  .project-section .section-image img {
    max-width: 100%; /* Ensure media elements scale down */
    height: auto;
  }
  .project-section-h2 {
    font-size: 2.5rem;
  }
  /* Fixes section invert feature on mobile */
  .project-section,
  .project-section.reversed {
    direction: ltr !important;           /* Cancel rtl */
    display: grid !important;            /* Ensure grid stacking stays */
    grid-template-columns: 1fr !important; /* One column layout */
  }
  .project-section .section-content,
  .project-section .section-media {
    order: initial !important;
    text-align: center !important;;
    align-items: center !important;;
  }
}
