/* ==========================================
   OUR PROJECTS / PORTFOLIO - TR7ASSEMBLY
   ========================================== */

.projects-container {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.projects-header {
  text-align: center;
  margin-bottom: 40px;
}

.projects-subtitle-tag {
  color: #ff0000;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.projects-header h1 {
  font-size: 2.3rem;
  color: #fff;
  margin: 10px 0;
  font-weight: 900;
  text-transform: uppercase;
}

.projects-desc-lead {
  color: #888;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filter Bar */
.project-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-family: monospace;
  font-size: 0.8rem;
}

.filter-btn {
  background: rgba(20, 20, 20, 0.8);
  color: #aaa;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
  font-weight: bold;
}

/* Projects Showcase List & Cards */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.project-case-card {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Left Thumbnail Section */
.project-img-wrapper {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #222;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.project-case-card:hover .project-preview-img {
  transform: scale(1.03);
}

.project-id-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.85);
  color: #ff0000;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border: 1px solid #ff0000;
  border-radius: 3px;
  font-weight: bold;
}

/* Right Specs Section */
.project-specs-wrapper {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specs-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.category-indicator {
  font-family: monospace;
  font-size: 0.75rem;
  color: #00ff66;
  font-weight: bold;
}

.tags-row {
  display: flex;
  gap: 5px;
}

.spec-tag {
  background: #151515;
  color: #888;
  font-family: monospace;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #222;
}

.project-item-title {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  font-weight: 800;
}

/* Case Study Grid Breakdown */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-family: monospace;
  font-size: 0.78rem;
  margin-bottom: 25px;
}

.case-box {
  background: rgba(20, 20, 20, 0.8);
  padding: 10px;
  border-radius: 4px;
}

.border-problem { border-left: 2px solid #ff4d4d; }
.border-system { border-left: 2px solid #00e5ff; }
.border-assembly { border-left: 2px solid #ff9900; }
.border-result { border-left: 2px solid #00ff66; }

.case-title {
  display: block;
  margin-bottom: 3px;
}

.text-problem { color: #ff4d4d; }
.text-system { color: #00e5ff; }
.text-assembly { color: #ff9900; }
.text-result { color: #00ff66; }

.case-text {
  color: #aaa;
  line-height: 1.4;
  display: block;
}

/* Footer Button */
.project-specs-footer {
  border-top: 1px dashed #222;
  padding-top: 15px;
  text-align: right;
}

.btn-preview-system {
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-preview-system:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE MOBILE VIEWPORT (ANDROID)
   ========================================== */
@media (max-width: 768px) {
  .projects-container {
    margin: 20px auto 40px;
    padding: 0 12px;
  }

  .projects-header h1 {
    font-size: 1.8rem;
  }

  .project-case-card {
    grid-template-columns: 1fr;
  }

  .project-img-wrapper {
    border-right: none;
    border-bottom: 1px solid #222;
  }

  .project-preview-img {
    min-height: 200px;
  }

  .project-specs-wrapper {
    padding: 20px 15px;
  }

  .case-study-grid {
    grid-template-columns: 1fr; /* Stack problem/system/assembly/result di HP */
  }

  .project-specs-footer {
    text-align: center;
  }

  .btn-preview-system {
    width: 100%;
    text-align: center;
  }
}