@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Russo+One&display=swap');


/* Base for project pages (distinct from main landing) */
body {
  background: #fff;
  font-family: 'Comfortaa', sans-serif;
  position: relative;
  color: #111;
}


/* Full-viewport hero image */
.project-hero {
  /* background feature behaviour: large initial zoom, fixed, fades/zooms on scroll */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-background-size: 115%;
     -moz-background-size: 115%;
       -o-background-size: 115%;
          background-size: 115%;
  background-position: center center;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  color: #fff;
  text-align: center;
  -webkit-box-shadow: 0 -50px 20px -20px #232323 inset;
     -moz-box-shadow: 0 -50px 20px -20px #232323 inset;
          box-shadow: 0 -50px 20px -20px #232323 inset;
}

/* copy of the main site's top purple overlay (sits above the image but behind header content) */
.project-hero::before{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -175px;
  height: 350px;
  background: linear-gradient(180deg, rgba(139,92,246,0.72) 0%, rgba(0,0,0,0) 100%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

/* position the site header elements inside the hero image */
.project-hero .site-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  box-sizing: border-box;
  z-index: 3;
}

.project-hero .site-inner .brand { margin-right: auto; }
.project-hero .site-inner .nav { margin-left: auto; }

.project-hero h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 7.111vh;
  letter-spacing: 1px;
  margin: 0;
  transition: opacity 200ms linear, transform 200ms linear;
}

/* match landing header font + button styles */
.project-hero .brand a {
  font-family: 'Archivo Black', 'Russo One', sans-serif;
  font-size: 3.556vh;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 6px 10px;
  /* sharp bottom-left drop shadow (no blur) */
  text-shadow: 2px 2px 0 #000;
  position: relative;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms;
  transform-origin: center;
}

.project-hero .nav .btn {
  background: #ffffff;
  border: 3px solid #222;
  padding: 8px 12px;
  margin-left: 0;
  text-decoration: none;
  color: #222;
  font-weight: 700;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.18);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms;
  transform-origin: center;
  display: inline-block;
}

/* improve readability: dark outline + subtle translucent background behind title */
.project-hero h1 {
  text-shadow:
    0 1px 0 rgba(0,0,0,0.95),
    0 -1px 0 rgba(0,0,0,0.95),
    1px 0 0 rgba(0,0,0,0.95),
    -1px 0 0 rgba(0,0,0,0.95),
    1px 1px 6px rgba(0,0,0,0.6);
  background: rgba(28,28,30,0.45);
  padding: 0.28em 0.6em;
  display: inline-block;
}

/* opaque overlay used for non-Chrome/Safari browsers */
.opaque { position: absolute; top:0; left:0; right:0; bottom:0; opacity:0; background:#d2d6f1; pointer-events:none; }

/* ensure page content flows above the fixed hero */
.project-content { margin-top: 100vh; position: relative; z-index: 1; }


/* Content area beneath hero */
.project-content {
  background: #1e1e1f;
  color: #fff;
  padding: 48px 20px;
  /* ensure the grey content panel fills the viewport below the fixed hero */
  min-height: 100vh;
}
.project-inner {
  max-width: 75vw;
  margin: 0 auto;
}

/* Stacked feature cards (light grey blocks) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-card {
  background: #2b2b2b;
  border: 2px solid #3b3b3b;
  padding: 22px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 440px;
}

.feature-card.reverse { flex-direction: row-reverse; }

.feature-card.feature-card-split {
  flex-direction: column;
  min-height: auto;
}

.feature-subsection {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.feature-subsection.reverse { flex-direction: row-reverse; }

.feature-text {
  flex: 1;
  color: #e7e7e7;
  display: flex;
  flex-direction: column;
}

.feature-text h3 {
  margin: 6px 0 12px 0;
  font-size: 2.667vh;
  color: #fff;
}

.feature-text p {
  margin: 0;
  margin-top: auto;
  margin-bottom: auto;
  line-height: 1.6;
  font-size: 1.956vh;
  color: #d7d7d7;
}

.feature-media {
  width: clamp(0px, 30vw, 80vw);
  height: auto;
  background: #3a3a3a;
  border: 3px solid #1d1d1d; /* placeholder green frame */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9ad26a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media span { opacity: 0.8; }

/* Responsive */
@media (max-width: 900px){
  .feature-card,
  .feature-card.reverse { flex-direction: column; }
  .feature-subsection,
  .feature-subsection.reverse { flex-direction: column; }
  .feature-media { width: 100%; height: 320px; }
}

/* Footer placeholder to mirror landing vibe */
.project-footer{ text-align:center; padding:24px 0; color:#bbb; }

