/* Project Nav Row Buttons */
.project-nav-btn {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 30px;
  border: 1px solid var(--secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
}

.project-nav-btn:hover {
  background: var(--secondary);
  color: var(--text-primary);
}

.project-nav-btn.active {
  background: var(--secondary);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(71, 115, 87, 0.18);
}

/* =========================================
   2. SHARED NAVIGATION STYLES
   (Used for Sectors, Projects, etc.)
   ========================================= */

/* Container for the buttons */
.subcode-nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-top: 4px;
}


/* The Button Style */
.subcode-nav-btn {
    border: none;
    background-color: var(--secondary);
    color: var(--text-primary);

    padding: 12px 28px;
    border-radius: 30px;
    font-size: var(--p2);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* SVG Icon Styling (Forces icon to be WHITE) */
.subcode-nav-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
    transition: all 0.3s ease;
}

/* Hover Effect */
.subcode-nav-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- ACTIVE STATE --- */
.subcode-nav-btn.active {
    background-color: var(--text-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Force icon to be DARK when active */
.subcode-nav-btn.active img {
    filter: brightness(0.2); 
}

/* =========================================
   3. FEATURED PROJECT SECTION
   ========================================= */

/* Smooth Fade Transition Utility */
.fade-wrapper {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    display: flex;
    padding-top: 1rem;
    flex-direction: row;
    
}


/* =========================================
   4. PROJECT CARD COMPONENT
   =================================   ======== */
   .projects-container {
    max-width: 1440px;
    margin: 1rem auto;
    padding: 0 2rem;
   }

   /* projects nav row */
   .project-nav-row ,.project-header{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0;
    flex-wrap: wrap;
   }

   .project-cards-list{
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    gap: 30px;
   }
   /* Project Card New Design */

.project-simple-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 380px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  
  display: flex;
  flex-direction: row-reverse;
  margin: 0 auto;
  overflow: hidden;
  background: var(--secondary);
  border: 1px solid rgba(71, 115, 87, 0.25);
}

.project-simple-card .project-img-container {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  min-height: 504px;
  padding: 25px 20px 13px;
  z-index: 1;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
}

.project-simple-card .project-img-container::before {
  content: '';
  position: absolute;
  top: 25px;
  right: 20px;

  left: 20px;
  width: 100%;
  height: 90%;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
}

.project-simple-card .project-img {
  position: absolute;
  top: 44px;
  left: 40px;
  width: calc(100% + 220px);
  height: 83%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.project-simple-card .project-info-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-simple-card .project-info {
  width: 50%;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.project-simple-card .project-name {
width: fit-content;
  max-height: 58px;
  padding: 14px 26px;
  background: rgba(26, 36, 33, 0.1);
  border-radius: 8px;
  font-style: normal;
  font-weight: 400;
  font-size: var(--p1);
  line-height: 30px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-simple-card .project-title {
  color: var(--text-primary);
  font-size: var(--h3);
  line-height: 1.5;
}

.project-simple-card .project-description {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 26px;
}

.project-simple-card .project-content-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-simple-card .project-section-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-simple-card .project-solutions {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 8px;
}

.project-simple-card .project-solutions li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 24px;
  list-style: none;
}

.project-simple-card .project-solutions li img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.project-simple-card .project-label-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-simple-card .project-label-dot {
  width: 10px;
  height: 10px;
  background: #D9D9D9;
  border-radius: 50%;
}

.project-simple-card .project-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
  background: rgba(71, 115, 87, 0.2);
  border: 1px solid rgba(71, 115, 87, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
}

.project-simple-card .project-techstack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.project-techstack p{
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--secondary);
}

.project-simple-card .project-chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.project-simple-card .project-chip {
  padding: 6px 10px;
  font-weight: 300;
  font-size: var(--p2);
  line-height: 28px;
  color: var(--text-primary);
  opacity: 0.9;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.project-simple-card .project-feature-chip {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.project-simple-card .project-category-chip {
  background: rgba(71, 115, 87, 0.18);
  color: var(--secondary);
  border: 1px solid rgba(71, 115, 87, 0.32);
}

.project-simple-card .project-meta-group {
  gap: 12px;
}

.project-simple-card .project-info-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.project-simple-card .project-tech {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: none;
}

.project-simple-card .project-tech-dot {
  width: 5px;
  height: 5px;
  background: #477357;
  border-radius: 50%;
}

.project-simple-card .project-tech-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #477357;
}

.project-simple-card .btn-project-view {

  border: 1px solid #477357;
  border-radius: 30px;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  background: none;
  width: fit-content;
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.project-simple-card .btn-project-view:hover {
  background: #477357;
  color: #fff;
}

.home-projects-section {
  padding: 2rem 0;
}

.projects-grid-container {

  margin: 0 auto;

}

.projects-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.project-component-wrapper {
  position: relative;
  flex: 1 1 0;
  min-width: 180px;
  background: var(--secondary);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(71, 115, 87, 0.1), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s, opacity 0.3s;
  overflow: hidden;
  cursor: pointer;
}

.project-component-wrapper.active {
  flex: 2 1 0;
  box-shadow: 0 12px 40px rgba(71, 115, 87, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.02);
  z-index: 2;
  cursor: default;
}

.project-component-wrapper.inactive {
  opacity: 0.72;
  z-index: 1;
}

.project-card-body {
  color: var(--text-primary);
  padding: 20px;
}

.project-card-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px 12px;
}

.plus-sign {
  font-size: 88px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 28px;
  user-select: none;
}

.sector-label {
  font-weight: 700;
  font-size: var(--p1);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-visuals {
  width: 100%;
  height: clamp(190px, 21vw, 240px);
  border-radius: 16px;
  overflow: hidden;
}

.project-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.project-card-title {
  font-size: var(--h3);
  line-height: 1.4;
  margin: 16px 0 10px;
  color: var(--text-primary);
}

.project-card-description {
  font-size: var(--p2);
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
}

.project-btn {
  display: flex;
  justify-content: flex-start;
}

.project-card-body .btn-project-view {
  background-color: var(--text-primary);
  color: var(--secondary);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
}

.project-card-body .btn-project-view:hover {
  transform: translateY(-2px);
}

.project-card-visual {
position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
}
@media (max-width: 768px) {
  .projects-grid-container {
    padding: 0;
  }
  .projects-grid {
    flex-direction: column;
    gap: 20px;
  }
  .project-component-wrapper,
  .project-component-wrapper.active,
  .project-component-wrapper.inactive {
    flex: 1 1 auto;
    transform: none;
    opacity: 1;
  }
  .project-card-minimal {
    min-height: 280px;
  }
  .plus-sign {
    font-size: 62px;
    margin-bottom: 14px;
  }

  .project-cards-list {
    padding: 0;
    gap: 20px;
  }
  .project-simple-card {
    flex-direction: column;
    min-height: unset;
  }
  .project-simple-card .project-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
  }
  .project-simple-card .project-img-container::before {
    content: none;
  }
  .project-simple-card .project-img {
    position: static;
    width: 100%;
    height: 100%;
    left: auto;
    top: auto;
    border-radius: 16px 16px 0 0;
  }
  .project-simple-card .project-info {
    width: 100%;
    padding: 15px 20px;
  }
  .project-simple-card .project-name {
    width: fit-content;
    height: auto;
    padding: 12px 18px;
    font-size: var(--p2);
    line-height: 26px;
  }
  .project-simple-card .project-title,
  .project-simple-card .project-description,
  .project-simple-card .project-solutions li,
  .project-techstack p {
    font-size: var(--p2);
    line-height: 1.4;
  }
  .project-simple-card .project-label {
    font-size: 13px;
  }
  .project-simple-card .project-info-header {
    align-items: flex-start;
  }
  .project-nav-row, .project-header {
    margin: 1rem 1rem;
  }
}
