/* 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 20px;
   }

   /* 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: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    padding:  0 2rem;
    gap:30px;
   }
   /* Project Card New Design */

.project-simple-card {
  position: relative;
  width: 100%;
  max-width: 662px;
  height: auto;
  min-height: 480px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.project-simple-card .project-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.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: 100%;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-simple-card .project-name {
  font-weight: 700;
  font-size: var(--p1);
  line-height: 36px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.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: var(--p1);
  line-height: 30px;
  color: #FFFFFF;
}

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

.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;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
}

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

@media (max-width: 768px) {
  .project-cards-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 0 1rem;
    gap: 20px;
  }
  .project-simple-card .project-info {
    padding: 15px 20px;
  }
  .project-simple-card .project-name {
    font-size: var(--p1-small);
    line-height: 28px;
  }
  .project-simple-card .project-label{
    font-size: var(--p1-small);
  }

  .project-simple-card .project-img {
    height: 220px;
  }
  .project-nav-row, .project-header {
    margin: 1rem 1rem;
  }
 
}
