/*
================================================
PORTFOLIO PROJECT - SHARED FOUNDATION
================================================
*/

/*
------------------------------------------------
Shared Section Spacing
------------------------------------------------
*/

.hs-project-overview,
.hs-project-technology,
.hs-project-challenges,
.hs-project-architecture,
.hs-project-outcomes,
.hs-project-resources {
  padding: 100px 0;
}

/*
------------------------------------------------
Shared Containers
------------------------------------------------
*/

.hs-project-overview-inner {
  max-width: 950px;
  margin: 0 auto;
}

.hs-project-technology-inner,
.hs-project-challenges-inner,
.hs-project-architecture-inner,
.hs-project-outcomes-inner,
.hs-project-resources-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/*
------------------------------------------------
Shared Section Header
------------------------------------------------
*/

.hs-project-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.hs-project-section-header h2 {
  margin-bottom: 20px;
}

.hs-project-section-lead {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  opacity: 0.9;
}

/*
================================================
PORTFOLIO HERO
================================================
*/

.hs-project-hero {
  padding: 80px 0 60px;
}

.hs-project-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hs-project-hero h1 {
  margin-bottom: 30px;
}

.hs-project-hero-lead {
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.9;
  font-size: 1.1rem;
}

.hs-project-hero-actions {
  margin-bottom: 50px;
}

/*
================================================
PRIMARY HERO IMAGE
================================================
*/

.hs-project-hero-primary {
  margin: 60px auto 40px;
  max-width: 1200px;
}

.hs-project-hero-primary img {
  display: block;
  width: 100%;
  height: auto;

  padding: 15px;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 215, 0, 0.15);

  border-radius: 8px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/*
================================================
HERO GALLERY
================================================
*/

.hs-project-hero-gallery {
  display: grid;
  gap: 25px;
  margin: 40px auto 60px;
}

/*
------------------------------------------------
Gallery Layouts
------------------------------------------------
*/

.hs-gallery-1 {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.hs-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
}

.hs-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1300px;
}

.hs-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1600px;
}

/*
------------------------------------------------
Gallery Images
------------------------------------------------
*/

.hs-project-gallery-image img {
  display: block;
  width: 100%;
  height: auto;

  padding: 10px;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 215, 0, 0.15);

  border-radius: 8px;

  transition: transform 0.25s ease;
}

.hs-project-gallery-image img:hover {
  transform: translateY(-4px);
}

/*
================================================
PORTFOLIO OVERVIEW
================================================
*/

.hs-project-overview {
  background: rgba(75, 0, 0, 0.2);
}

/*
------------------------------------------------
Overview Content
------------------------------------------------
*/

.hs-project-overview-content p {
  margin-bottom: 28px;

  line-height: 1.9;

  font-size: 1.05rem;
}

.hs-project-overview-content p:last-child {
  margin-bottom: 0;
}

/*
================================================
SHARED CARD FOUNDATION
================================================
*/

.hs-project-technology-card,
.hs-project-challenge-card {
  background: rgba(255, 255, 255, 0.03);

  border: 1px solid #333;

  border-radius: 8px;

  transition: all 0.25s ease;
}

.hs-project-technology-card:hover,
.hs-project-challenge-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
}

/*
================================================
PORTFOLIO TECHNOLOGY
================================================
*/

.hs-project-technology {
  background: #111;
}

/*
------------------------------------------------
Technology Grid
------------------------------------------------
*/

.hs-project-technology-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

/*
------------------------------------------------
Technology Card
------------------------------------------------
*/

.hs-project-technology-card {
  padding: 30px;

  text-align: center;
}

.hs-project-technology-card:hover {
  transform: translateY(-3px);
}

/*
------------------------------------------------
Technology Accent
------------------------------------------------
*/

.hs-project-technology-card::before {
  content: "";

  display: block;

  width: 40px;

  height: 2px;

  margin: 0 auto 20px;

  background: linear-gradient(to right, var(--hs-gold), rgba(75, 0, 0, 0.5));
}

/*
------------------------------------------------
Technology Text
------------------------------------------------
*/

.hs-project-technology-card span {
  font-weight: 600;

  line-height: 1.6;
}

/*
================================================
PORTFOLIO CHALLENGES
================================================
*/

.hs-project-challenges {
  background: #111;
}

/*
------------------------------------------------
Challenges Grid
------------------------------------------------
*/

.hs-project-challenges-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;
}

/*
------------------------------------------------
Challenge Card
------------------------------------------------
*/

.hs-project-challenge-card {
  position: relative;

  padding: 35px;
}

.hs-project-challenge-card:hover {
  transform: translateY(-3px);
}

/*
------------------------------------------------
Challenge Accent
------------------------------------------------
*/

.hs-project-challenge-card::before {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  margin-bottom: 20px;

  background: linear-gradient(to right, var(--hs-gold), rgba(75, 0, 0, 0.5));
}

/*
------------------------------------------------
Challenge Text
------------------------------------------------
*/

.hs-project-challenge-card h3 {
  margin: 0;

  font-size: 1.05rem;

  line-height: 1.6;

  color: var(--hs-gold);

  font-weight: 600;
}

/*
================================================
PORTFOLIO ARCHITECTURE
================================================
*/

.hs-project-architecture {
  background: rgba(75, 0, 0, 0.18);
}

/*
------------------------------------------------
Architecture Grid
------------------------------------------------
*/

.hs-project-architecture-grid {
  display: grid;

  gap: 30px;
}

/*
------------------------------------------------
Architecture Card
------------------------------------------------
*/

.hs-project-architecture-card {
  display: grid;

  grid-template-columns: 100px 1fr;

  gap: 35px;

  padding: 35px;

  background: rgba(255, 255, 255, 0.03);

  border-left: 3px solid var(--hs-gold);

  border-radius: 8px;

  transition: all 0.25s ease;
}

.hs-project-architecture-card:hover {
  transform: translateX(4px);
}

/*
------------------------------------------------
Architecture Number
------------------------------------------------
*/

.hs-project-architecture-number {
  font-size: 2rem;

  font-weight: 700;

  color: var(--hs-gold);

  opacity: 0.85;
}

/*
------------------------------------------------
Architecture Text
------------------------------------------------
*/

.hs-project-architecture-content p {
  margin: 0;

  line-height: 1.9;

  font-size: 1.05rem;
}

/*
================================================
PORTFOLIO OUTCOMES
================================================
*/

.hs-project-outcomes {
  background: #111;
}

/*
------------------------------------------------
Outcomes Grid
------------------------------------------------
*/

.hs-project-outcomes-grid {
  display: grid;

  gap: 25px;
}

/*
------------------------------------------------
Outcome Card
------------------------------------------------
*/

.hs-project-outcome-card {
  display: grid;

  grid-template-columns: 60px 1fr;

  gap: 25px;

  align-items: start;

  padding: 30px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid #333;

  border-radius: 8px;

  transition: all 0.25s ease;
}

.hs-project-outcome-card:hover {
  transform: translateX(4px);

  border-color: rgba(255, 215, 0, 0.25);
}

/*
------------------------------------------------
Outcome Icon
------------------------------------------------
*/

.hs-project-outcome-icon {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  font-size: 1.2rem;

  font-weight: 700;

  color: #111;

  background: var(--hs-gold);
}

/*
------------------------------------------------
Outcome Text
------------------------------------------------
*/

.hs-project-outcome-content p {
  margin: 0;

  line-height: 1.8;

  font-size: 1.02rem;
}

/*
================================================
PORTFOLIO RESOURCES
================================================
*/

.hs-project-resources {
  background: rgba(75, 0, 0, 0.12);
}

/*
------------------------------------------------
Resources Grid
------------------------------------------------
*/

.hs-project-resources-links {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;

  margin: 0 auto;

  max-width: 1200px;
}

/*
------------------------------------------------
Single Resource Centering
------------------------------------------------
*/

.hs-project-resources-links:has(.hs-project-resource-link:only-child) {
  max-width: 500px;
}

/*
------------------------------------------------
Resource Card
------------------------------------------------
*/

.hs-project-resource-link {
  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 80px;

  padding: 22px 30px;

  text-align: center;

  text-decoration: none;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid #333;

  border-radius: 8px;

  color: #fff;

  font-weight: 600;

  transition: all 0.25s ease;
}

/*
------------------------------------------------
Resource Hover
------------------------------------------------
*/

.hs-project-resource-link:hover {
  transform: translateY(-4px);

  border-color: rgba(255, 215, 0, 0.35);

  background: rgba(255, 215, 0, 0.04);
}

/*
------------------------------------------------
External Link Icon
------------------------------------------------
*/

.hs-project-resource-link::before {
  content: "↗";

  display: inline-block;

  margin-right: 12px;

  font-size: 1.1rem;

  color: var(--hs-gold);
}

/*
------------------------------------------------
Accessibility
------------------------------------------------
*/

.hs-project-resource-link:focus-visible {
  outline: 3px solid #005fcc;

  outline-offset: 3px;
}

/*
================================================
PORTFOLIO CTA
================================================
*/

.hs-project-cta {
  padding: 120px 0;

  background: #111;

  border-top: 1px solid #333;
}

.hs-project-cta-inner {
  max-width: 900px;

  margin: 0 auto;

  text-align: center;
}

/*
------------------------------------------------
CTA Typography
------------------------------------------------
*/

.hs-project-cta h2 {
  margin-bottom: 35px;
}

.hs-project-cta-lead {
  font-size: 1.2rem;

  line-height: 1.8;

  margin-bottom: 30px;
}

.hs-project-cta-secondary {
  margin-bottom: 30px;

  opacity: 0.92;
}

.hs-project-cta-note {
  max-width: 700px;

  margin: 0 auto;

  font-size: 0.95rem;

  opacity: 0.8;
}

/*
------------------------------------------------
CTA Actions
------------------------------------------------
*/

.hs-project-cta-actions {
  margin: 50px 0;
}

/*
================================================
UNIFIED RESPONSIVE SYSTEM
================================================
*/

/*
------------------------------------------------
Tablet Large
------------------------------------------------
*/

@media (max-width: 1200px) {
  /*
  Hero gallery
  */

  .hs-gallery-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
------------------------------------------------
Tablet
------------------------------------------------
*/

@media (max-width: 1000px) {
  /*
  Hero gallery
  */

  .hs-gallery-4,
  .hs-gallery-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /*
  Technology
  */

  .hs-project-technology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
------------------------------------------------
Small Tablet
------------------------------------------------
*/

@media (max-width: 900px) {
  /*
  Challenges
  */

  .hs-project-challenges-grid {
    grid-template-columns: 1fr;
  }
}

/*
------------------------------------------------
Mobile
------------------------------------------------
*/

@media (max-width: 768px) {
  /*
  Shared Section Spacing
  */

  .hs-project-overview,
  .hs-project-technology,
  .hs-project-challenges,
  .hs-project-architecture,
  .hs-project-outcomes,
  .hs-project-resources {
    padding: 70px 0;
  }

  /*
  Hero
  */

  .hs-project-hero {
    padding: 60px 0 40px;
  }

  .hs-project-hero-lead {
    font-size: 1rem;
  }

  /*
  Primary Hero Image
  */

  .hs-project-hero-primary {
    margin: 40px auto 30px;
  }

  /*
  Hero Gallery
  */

  .hs-gallery-4,
  .hs-gallery-3,
  .hs-gallery-2 {
    grid-template-columns: 1fr;
  }

  .hs-project-hero-gallery {
    gap: 20px;
  }

  /*
  Technology
  */

  .hs-project-technology-grid {
    grid-template-columns: 1fr;
  }

  .hs-project-technology-card {
    padding: 25px;
  }

  /*
  Challenges
  */

  .hs-project-challenge-card {
    padding: 28px;
  }

  /*
  Architecture
  */

  .hs-project-architecture-card {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 30px;
  }

  .hs-project-architecture-number {
    font-size: 1.5rem;
  }

  /*
  Outcomes
  */

  .hs-project-outcome-card {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 25px;
  }

  .hs-project-outcome-icon {
    width: 35px;
    height: 35px;
  }

  /*
  Resources
  */

  .hs-project-resources-links {
    grid-template-columns: 1fr;
  }

  .hs-project-resource-link {
    min-height: auto;

    padding: 25px;
  }

  /*
  CTA
  */

  .hs-project-cta {
    padding: 80px 0;
  }

  .hs-project-cta-lead {
    font-size: 1rem;
  }
}
