/* =========================================================
   IRIS BUILDS — PROJECTS PAGE
   Loaded after global.css
========================================================= */


/* =========================================================
   PROJECTS HERO
========================================================= */

.projects-hero {
  padding-top: 84px;
  padding-bottom: 92px;
}

.projects-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 72px;
}

.projects-hero-content {
  max-width: 780px;
}

.projects-hero-content h1 {
  max-width: 860px;
}

.projects-hero-intro {
  max-width: 720px;
  color: var(--color-accent-light);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.65;
}

.projects-hero-content > p:not(.eyebrow):not(.projects-hero-intro) {
  max-width: 720px;
}

.projects-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}


/* =========================================================
   PROJECTS SUMMARY CARD
========================================================= */

.projects-summary-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
}

.projects-summary-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -100px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(201, 188, 245, 0.2),
      transparent 70%
    );
  pointer-events: none;
}

.projects-summary-card > * {
  position: relative;
  z-index: 1;
}

.projects-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid rgba(169, 213, 239, 0.28);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(169, 213, 239, 0.18),
      rgba(201, 188, 245, 0.1)
    );
  color: var(--color-accent-light);
  font-size: 1.25rem;
}

.projects-summary-card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.projects-summary-card > p {
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.projects-summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(190, 219, 239, 0.09);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.projects-summary-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.projects-summary-list i {
  width: 18px;
  margin-top: 4px;
  color: var(--color-accent);
  text-align: center;
}


/* =========================================================
   CURRENTLY BUILDING
========================================================= */

.currently-building-section {
  padding-top: 86px;
}

.currently-building-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.building-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
}

.building-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(169, 213, 239, 0.11),
      transparent 70%
    );
  pointer-events: none;
}

.building-card > * {
  position: relative;
  z-index: 1;
}

.building-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.building-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(169, 213, 239, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(169, 213, 239, 0.17),
      rgba(201, 188, 245, 0.1)
    );
  color: var(--color-accent-light);
  font-size: 1.2rem;
}

.building-stage {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(201, 188, 245, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(201, 188, 245, 0.08);
  color: var(--color-pastel-purple);
  font-size: 0.72rem;
  font-weight: 800;
}

.building-card h3 {
  margin-bottom: 14px;
}

.building-card > p {
  margin-bottom: 22px;
}

.building-card .technology-list {
  margin-bottom: 26px;
}

.project-progress {
  margin-top: auto;
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--color-text-soft);
  font-size: 0.84rem;
}

.progress-heading strong {
  color: var(--color-accent-light);
  font-size: 0.88rem;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 219, 239, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.055);
}

.progress-fill {
  display: block;
  width: var(--progress-width);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  background:
    linear-gradient(
      90deg,
      var(--color-accent),
      var(--color-pastel-purple)
    );
  box-shadow:
    0 0 16px rgba(169, 213, 239, 0.25);
}

.js .progress-fill {
  width: var(--progress-width);
  transform: scaleX(0);
  animation: none;
}

.js .progress-ready.progress-visible {
  animation: fill-progress 1.1s ease forwards;
}

@keyframes fill-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.building-next-step {
  margin-top: 18px;
  margin-bottom: 0 !important;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 219, 239, 0.09);
  color: var(--color-muted);
  font-size: 0.84rem;
}

.building-next-step strong {
  color: var(--color-accent-light);
}


/* =========================================================
   COMPLETED PROJECTS
========================================================= */

.completed-projects-section {
  padding-top: 90px;
}

.completed-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.project-card .project-icon {
  margin-bottom: 22px;
}

.project-card h3 {
  margin-bottom: 14px;
}

.project-card > p {
  margin-bottom: 22px;
}

.project-card .technology-list {
  margin-bottom: 26px;
}

.professional-status {
  border-color: rgba(241, 191, 216, 0.32);
  background: rgba(241, 191, 216, 0.1);
  color: var(--color-pastel-pink);
}

.professional-project-card {
  background:
    linear-gradient(
      145deg,
      rgba(45, 40, 62, 0.72),
      rgba(18, 27, 44, 0.66)
    );
}


/* =========================================================
   PROJECT PROOF AREA
========================================================= */

.project-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.project-proof > div {
  padding: 15px;
  border: 1px solid rgba(190, 219, 239, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.project-proof strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-accent-light);
  font-size: 0.76rem;
}

.project-proof span {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}


/* =========================================================
   PROCESS SECTION
========================================================= */

.process-section {
  padding-top: 86px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.process-card {
  position: relative;
  min-height: 100%;
  padding: 26px;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(147, 213, 190, 0.1),
      transparent 70%
    );
  pointer-events: none;
}

.process-card > * {
  position: relative;
  z-index: 1;
}

.process-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.process-card h3 {
  margin-bottom: 11px;
}

.process-card p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PROJECT CTA
========================================================= */

.cta-section {
  padding-top: 78px;
  padding-bottom: 108px;
}

.cta-card {
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -120px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(201, 188, 245, 0.16),
      transparent 70%
    );
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   ENTRANCE ANIMATIONS
========================================================= */

.projects-hero-content,
.projects-summary-card,
.currently-building-section .section-heading,
.building-card,
.completed-projects-section .section-heading,
.project-card,
.process-section .section-heading,
.process-card,
.cta-card {
  animation: projects-fade-up 720ms ease both;
}

.projects-summary-card {
  animation-delay: 100ms;
}

.building-card:nth-child(1) {
  animation-delay: 80ms;
}

.building-card:nth-child(2) {
  animation-delay: 160ms;
}

.building-card:nth-child(3) {
  animation-delay: 240ms;
}

.project-card:nth-child(1) {
  animation-delay: 80ms;
}

.project-card:nth-child(2) {
  animation-delay: 140ms;
}

.project-card:nth-child(3) {
  animation-delay: 200ms;
}

.project-card:nth-child(4) {
  animation-delay: 260ms;
}

.process-card:nth-child(1) {
  animation-delay: 70ms;
}

.process-card:nth-child(2) {
  animation-delay: 130ms;
}

.process-card:nth-child(3) {
  animation-delay: 190ms;
}

.process-card:nth-child(4) {
  animation-delay: 250ms;
}

@keyframes projects-fade-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

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


/* =========================================================
   MEDIUM SCREENS
========================================================= */

@media (max-width: 1080px) {
  .projects-hero-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 48px;
  }

  .currently-building-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .building-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {
  .projects-hero {
    padding-top: 66px;
  }

  .projects-hero-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .projects-hero-content,
  .projects-hero-content h1,
  .projects-hero-intro,
  .projects-hero-content > p {
    max-width: none;
  }

  .projects-summary-card {
    max-width: 560px;
  }

  .completed-projects-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  .projects-hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .projects-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .currently-building-grid {
    grid-template-columns: 1fr;
  }

  .building-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .building-card,
  .project-card,
  .process-card,
  .projects-summary-card {
    padding: 22px;
  }

  .building-card-header,
  .project-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-proof {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
  .projects-hero-intro {
    font-size: 1.04rem;
  }

  .project-card-actions .button {
    width: 100%;
  }

  .progress-heading {
    font-size: 0.8rem;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .projects-hero-content,
  .projects-summary-card,
  .currently-building-section .section-heading,
  .building-card,
  .completed-projects-section .section-heading,
  .project-card,
  .process-section .section-heading,
  .process-card,
  .cta-card {
    animation: none;
  }

  .progress-fill {
    width: var(--progress-width);
    transform: none;
    animation: none;
  }
}
