/* ============================================
   Projects — style.css (shared by all project detail pages)
   ============================================ */

/* === HERO === */
.project-hero {
  min-height: 24vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 56px) 5% 48px;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(76,81,191,0.15) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 20%, rgba(124,58,237,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.project-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.project-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 4px 14px;
}

/* === CONTENT === */
.project-content {
  padding: 0 5% 100px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === SECTION CARD === */
.project-section {
  padding: 36px 40px;
}

.project-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-section h3:not(:first-child) {
  margin-top: 30px;
}

.project-section p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
  word-spacing: 0.5px;
}

.project-section p:last-child { margin-bottom: 0; }

.project-section ul,
.project-section ol {
  padding-left: 20px;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-section li {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.project-section li > ul,
.project-section li > ol {
  margin-top: 6px;
}

.project-section li > p {
  margin: 4px 0 0;
}

.project-section span {
  color: var(--text);
  font-weight: 600;
}

.project-section a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.project-section a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

/* Responsive iframes */
.project-section iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 24px auto;
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
  .project-hero {
    padding: calc(var(--nav-height) + 36px) 5% 36px;
    min-height: 20vh;
  }

  .project-content {
    padding: 0 4% 80px;
    gap: 16px;
  }

  .project-section {
    padding: 24px 20px;
  }

  .project-section iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .project-section {
    padding: 20px 16px;
  }
}
