/* ---------------------- Project Detail Page ---------------------- */
.project-detail {
  background-color: var(--primary-bg);
  padding-top: 100px;
}

.project-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
  border-radius: 12px;
}

.project-header h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-color), #1589a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-header .project-tags {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.project-tag {
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 400;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.project-link i {
  font-size: 1.2rem;
}

/* Project content sections */
.project-section {
  margin-bottom: 50px;
  padding: 30px;
  /* background-color: var(--secondary-bg); */
  /* border-radius: 8px; */
  border-bottom: 1px solid var(--border-color);
}

.project-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: left;
  color: var(--primary-text-color);
}

.project-section h3 {
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--primary-text-color);
}

.project-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.project-section ul {
  list-style-type: disc;
  padding-left: 30px;
  margin-bottom: 15px;
}

.project-section ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Image container */
.project-image {
  width: 100%;
  margin: 30px 0;
  text-align: center;
}

.project-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-image figcaption {
  margin-top: 10px;
  font-style: italic;
  color: var(--secondary-text-color);
  font-size: 0.9rem;
}

/* Tech stack grid */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tech-item {
  background-color: var(--primary-bg);
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.tech-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

/* Results/Metrics section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  background-color: var(--primary-bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--accent-color);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.metric-label {
  font-size: 1rem;
  color: var(--secondary-text-color);
}

/* Code snippet styling */
.code-snippet {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
  margin: 20px 0;
  overflow-x: auto;
}

.code-snippet code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-header h1 {
    font-size: 2rem;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .project-section {
    padding: 20px;
  }

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