/* ============================================
   FLOATEX SOLAR — projects.css
   All sections specific to projects.html
============================================ */

/* ============================================
   PROJECTS HERO
============================================ */
.proj-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem clamp(2.5rem, 7vw, 6rem) 5rem;
}

.proj-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.proj-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: projHeroZoom 10s ease-in-out infinite alternate;
}

@keyframes projHeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}

.proj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 80, 0.80) 0%,
    rgba(15, 50, 120, 0.60) 50%,
    rgba(5, 25, 70, 0.45) 100%
  );
}

.proj-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(28px);
  animation: projHeroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes projHeroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.proj-hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.proj-hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .proj-hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    min-height: 50vh;
  }
}

@media (max-width: 480px) {
  .proj-hero {
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
    min-height: 45vh;
  }
}

/* ============================================
   PROJECTS PAGE — TIMELINE SECTION
============================================ */

.proj-tl {
  background: #f7f7f5;
  padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 7vw, 6rem);

}

.project-tl__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.project-tl__eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
}

.project-tl_title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  max-width: 800px;
  margin-bottom: 60px;
}
.project-tl_title .accent{
  color: var(--color-primary);
}

.proj-tl__inner {
  margin: 0 auto;
}

/* ---- Year group row ---- */
.proj-tl__group {
  display: grid;
  grid-template-columns: 160px 1fr;
  /* border: 1px solid red; */
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.proj-tl__group--last {
  margin-bottom: 0;
}

/* ---- Year label ---- */
.proj-tl__year-col {
  padding-top: 0.25rem;
}

.proj-tl__year {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  position: sticky;
  top: 110px;
  align-self: start;
  letter-spacing: -0.02em;
  display: inline;
  border-bottom: 0.4px solid var(--color-primary);

}

/* ---- Cards grid ---- */
.proj-tl__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* ---- Single card ---- */
.proj-tl__card {
  display: block;
  text-decoration: none;
  color: #111;
  cursor: pointer;
}

.proj-tl__card-img-wrap {
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.proj-tl__card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  box-shadow: 4px 4px 4px black;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.proj-tl__card:hover .proj-tl__card-img {
  transform: scale(1.06);
}

/* ---- Card text ---- */
.proj-tl__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proj-tl__card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #111111;
  margin: 0 0 0.15rem;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-tl__card-mw {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.proj-tl__card-partner {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
  line-height: 1.4;
}

.proj-tl__card-loc {
  font-size: var(--text-md);
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.proj-tl__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.18);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.proj-tl__card:hover .proj-tl__card-link {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .proj-tl__group {
    grid-template-columns: 120px 1fr;
  }

  .proj-tl__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .proj-tl {
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
  }

  .proj-tl__group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .proj-tl__year {
    position: static;
  }

  .proj-tl__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .proj-tl__cards {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   PROJECT DETAIL PAGE
   Used by projects/[slug].html
============================================ */

/* -- Detail Hero -- */
.proj-detail-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.proj-detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.proj-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 10, 20, 0.92) 0%,
      rgba(5, 10, 20, 0.45) 50%,
      rgba(5, 10, 20, 0.15) 100%);
}

.proj-detail-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proj-detail-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.proj-detail-hero__back:hover {
  color: var(--color-primary);
}

.proj-detail-hero__year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.proj-detail-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.proj-detail-hero__loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* -- Stats bar -- */
.proj-detail-stats {
  background: #111;
  padding: clamp(1.5rem, 3vw, 2rem) var(--container-pad);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.proj-detail-stats__inner {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.proj-detail-stat {
  flex: 1 1 140px;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.02);
}

.proj-detail-stat__value {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.proj-detail-stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* -- Detail body -- */
.proj-detail-body {
  background: #ffffff;
  padding: clamp(4rem, 7vw, 6rem) var(--container-pad);
}

.proj-detail-body__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.proj-detail-body__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

.proj-detail-body__text p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

/* Sidebar meta card */
.proj-detail-meta {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: sticky;
  top: 100px;
}

.proj-detail-meta__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin: 0 0 1.25rem;
}

.proj-detail-meta__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.proj-detail-meta__row:last-child {
  border-bottom: none;
}

.proj-detail-meta__key {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}


.proj-detail-meta__val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .proj-detail-body__inner {
    grid-template-columns: 1fr;
  }

  .proj-detail-meta {
    position: static;
  }
}

@media (max-width: 600px) {
  .proj-detail-hero {
    height: 70vh;
  }

  .proj-detail-stats__inner {
    flex-direction: column;
  }

  .proj-detail-stat {
    flex: none;
    width: 100%;
  }
}