/* ePortfolio page — builds on ../styles.css */

.ep {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 0;
  box-sizing: border-box;
}

.ep-back { padding-left: 0; margin: 0 0 8px; color: #bbb; }
.ep-title { padding-left: 0; margin: 0 0 20px; font-size: clamp(26px, 3vw + 1rem, 48px); }

/* tab bar */
.ep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #444;
  padding-bottom: 12px;
}

.ep-tabs a {
  margin: 0;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgb(28, 28, 28);
  border: 1px solid #3a3a3a;
  transition: background 160ms, color 160ms, border-color 160ms;
}

.ep-tabs a:hover,
.ep-tabs a:focus { text-decoration: none; border-color: #f18c07; }

.ep-tabs a[aria-current="page"] {
  background: #f18c07;
  border-color: #f18c07;
  color: #222;
  font-weight: bold;
}

/* panels: with JS only the active one shows; without JS all show stacked */
.ep-panel {
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.js .ep-panel { display: none; }
.js .ep-panel.active { display: block; animation: ep-fade 320ms ease; }

@keyframes ep-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ep-panel h3 { padding-left: 0; margin-top: 0; font-size: 1.6rem; }
.ep-panel p { padding-left: 0; line-height: 1.6; color: #ddd; }

/* home intro */
.ep-intro {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ep-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #f18c07;
}

@media (max-width: 640px) {
  .ep-intro { flex-direction: column; text-align: center; }
}

/* document cards */
.ep-doc {
  border-top: 1px solid #3a3a3a;
  padding-top: 18px;
  margin-top: 18px;
}

.ep-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ep-doc h4 { margin: 0; padding-left: 0; font-size: 1.2rem; }

.ep-btn,
.ep-btn:visited {
  background: #f18c07;
  color: #222;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.ep-btn:hover, .ep-btn:focus { background: #ffb347; text-decoration: none; }

.ep-pdf {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  margin-top: 14px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #222;
}

@media (max-width: 640px) {
  .ep-pdf { height: 60vh; min-height: 320px; }
}

.ep-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  margin-top: 14px;
}

.ep-link, .ep-link:visited { color: #f18c07; text-decoration: underline; }
