/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent 70%);
  border-radius: 50%;
}

.page-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-desc {
  color: rgba(240, 240, 240, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Project List ===== */
.projects {
  padding: 2rem 5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
  transition: all 0.4s;
}

.project-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-visual {
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.project-visual .color-bg {
  width: 100%;
  height: 100%;
}

.project-visual .preview-hint {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-visual:hover .preview-hint { opacity: 1; }

.project-detail h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-detail p {
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.project-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
}

/* ===== Preview Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-overlay.active { display: flex; }

.modal-header {
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-close:hover { background: rgba(255, 107, 53, 0.5); }

.modal-iframe {
  width: 90%;
  max-width: 1100px;
  height: 75vh;
  border: none;
  border-radius: 12px;
  background: white;
}

/* ===== Project Page Responsive ===== */
@media (max-width: 900px) {
  .projects { padding: 2rem; }
  .project-card { grid-template-columns: 1fr; }
}
