:root {
  color-scheme: dark;
}

.portfolio-page {
  --text: #F0C674;
  --text-soft: rgba(240, 198, 116, 0.8);
  --text-muted: rgba(111, 231, 221, 0.72);
  --line: rgba(40, 194, 209, 0.24);
  --line-strong: rgba(30, 76, 115, 0.34);
  --accent: #28C2D1;
  --accent-soft: #6FE7DD;
  --accent-strong: #7EE081;
  --header-bg: rgba(23, 32, 51, 0.94);
  --header-border: rgba(40, 194, 209, 0.18);
  --header-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  --header-text: #F0C674;
  --header-text-soft: rgba(240, 198, 116, 0.8);
  --header-text-muted: rgba(111, 231, 221, 0.72);
  --header-button-bg: rgba(23, 32, 51, 0.98);
  --header-button-border: rgba(111, 231, 221, 0.22);
  --header-accent: #7EE081;
  background:
    radial-gradient(circle at 14% 18%, rgba(30, 76, 115, 0.22), transparent 0 20%),
    radial-gradient(circle at 82% 16%, rgba(40, 194, 209, 0.18), transparent 0 20%),
    radial-gradient(circle at 56% 82%, rgba(126, 224, 129, 0.12), transparent 0 18%),
    linear-gradient(180deg, #1d2d47 0%, #172033 42%, #101827 100%);
  color: var(--text);
}

.portfolio-page::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(40, 194, 209, 0.12), transparent 0 18%),
    radial-gradient(circle at 80% 20%, rgba(126, 224, 129, 0.12), transparent 0 18%),
    radial-gradient(circle at 48% 84%, rgba(240, 198, 116, 0.08), transparent 0 18%);
  filter: blur(20px);
  opacity: 1;
}

.portfolio-page::after {
  opacity: 0.16;
  background:
    linear-gradient(rgba(40, 194, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 194, 209, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(240, 198, 116, 0.08), transparent 36%);
  background-size: 72px 72px, 72px 72px, auto;
}

.portfolio-page .skip-link {
  background: #F0C674;
  color: #172033;
}

.portfolio-page .section-page-hero {
  position: relative;
  border-bottom: 1px solid rgba(40, 194, 209, 0.2);
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.16) 0%, rgba(23, 32, 51, 0.46) 100%),
    url("../assets/portfolio/portfolio-hero-abstract.svg") center / cover no-repeat;
}

.portfolio-page .section-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.12) 0%, rgba(23, 32, 51, 0.34) 100%),
    linear-gradient(90deg, rgba(40, 194, 209, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(111, 231, 221, 0.04) 1px, transparent 1px);
  background-size: auto, 4rem 4rem, 4rem 4rem;
  pointer-events: none;
}

.portfolio-page .section-page-hero > .inner {
  position: relative;
  z-index: 1;
}

.portfolio-page .eyebrow,
.portfolio-page .proof-kicker {
  color: #7EE081;
}

.portfolio-page .section-page-hero h1,
.portfolio-page .content-block h2 {
  color: #F0C674;
}

.portfolio-page .hero-copy,
.portfolio-page .content-block p,
.portfolio-page .content-block li,
.portfolio-page .footer-content {
  color: var(--text-soft);
}

.portfolio-page .content-block {
  border: 1px solid rgba(40, 194, 209, 0.22);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.94) 0%, rgba(17, 24, 39, 0.92) 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.portfolio-page .content-block::before {
  background:
    linear-gradient(135deg, rgba(126, 224, 129, 0.12) 0%, rgba(126, 224, 129, 0) 42%),
    linear-gradient(225deg, rgba(40, 194, 209, 0.14) 0%, rgba(40, 194, 209, 0) 36%);
}

.portfolio-page .content-block::after {
  width: 100%;
  height: 0.32rem;
  background: linear-gradient(90deg, #7EE081 0%, #28C2D1 52%, #F0C674 100%);
  opacity: 0.98;
}

.portfolio-page .inline-link,
.portfolio-page main a {
  color: #6FE7DD;
}

.portfolio-page .inline-link:hover,
.portfolio-page .inline-link:focus-visible,
.portfolio-page main a:hover,
.portfolio-page main a:focus-visible {
  color: #F0C674;
}

.portfolio-page .button-primary,
.portfolio-page .button-primary:visited {
  background: #7EE081;
  color: #172033;
  border-color: #7EE081;
  box-shadow: 0 16px 30px rgba(126, 224, 129, 0.2);
}

.portfolio-page .button-secondary,
.portfolio-page .button-secondary:visited {
  background: rgba(23, 32, 51, 0.94);
  color: #6FE7DD;
  border-color: rgba(40, 194, 209, 0.28);
  box-shadow: inset 0 0 0 1px rgba(240, 198, 116, 0.02);
}

.portfolio-page .button-primary:hover,
.portfolio-page .button-primary:focus-visible {
  background: #F0C674;
  border-color: #F0C674;
  color: #172033;
}

.portfolio-page .button-secondary:hover,
.portfolio-page .button-secondary:focus-visible {
  background: #1E4C73;
  border-color: #28C2D1;
  color: #F0C674;
  box-shadow: 0 18px 34px rgba(30, 76, 115, 0.24);
}

.portfolio-page .site-footer {
  background: rgba(23, 32, 51, 0.72);
  backdrop-filter: blur(14px);
}

.portfolio-page .footer-content {
  border-top-color: rgba(40, 194, 209, 0.22);
}

.portfolio-page .footer-name {
  color: #F0C674;
}

.portfolio-page .footer-role,
.portfolio-page .footer-year {
  color: rgba(111, 231, 221, 0.72);
}

.portfolio-page .footer-links a {
  color: #F0C674;
}

.portfolio-page .footer-links a:hover,
.portfolio-page .footer-links a:focus-visible {
  color: #6FE7DD;
}

.portfolio-page .certification-layout {
  display: grid;
  gap: 1rem;
}

.portfolio-page .certification-browser {
  display: grid;
  grid-template-columns: minmax(16rem, 0.64fr) minmax(0, 1.36fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.portfolio-page .certification-list-card,
.portfolio-page .certification-detail-card {
  height: 100%;
  min-width: 0;
}

.portfolio-page .certification-list-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.portfolio-page .certification-list-card h3 {
  color: #F0C674;
}

.portfolio-page .certification-list {
  display: grid;
  gap: 0.8rem;
}

.portfolio-page .certification-list-item {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 1.05rem;
  text-align: left;
  border-radius: 1rem;
  border: 1px solid rgba(40, 194, 209, 0.16);
  background: rgba(10, 17, 28, 0.58);
  color: var(--text-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.portfolio-page .certification-list-item:hover,
.portfolio-page .certification-list-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(40, 194, 209, 0.32);
  color: #F0C674;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.portfolio-page .certification-list-item.is-active {
  border-color: rgba(126, 224, 129, 0.4);
  background: rgba(12, 22, 36, 0.9);
  color: #F0C674;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

.portfolio-page .certification-list-title {
  font-family: "Chakra Petch", "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.portfolio-page .certification-list-meta {
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.portfolio-page .certification-detail-column {
  display: grid;
  min-width: 0;
}

.portfolio-page .certification-detail-column > .preview-panel {
  display: none;
}

.portfolio-page .certification-detail-column > .preview-panel.is-active {
  display: grid;
}

.portfolio-page .certification-detail-column > .preview-panel[hidden] {
  display: none !important;
}

.portfolio-page .certification-detail-card {
  display: grid;
  gap: 1.1rem;
}

.portfolio-page .certification-preview-frame {
  display: block;
  margin: 0;
}

.portfolio-page .certification-image-frame {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 22rem;
  min-width: 0;
  padding: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(40, 194, 209, 0.18);
  background: #f5f7fb;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.portfolio-page .certification-zoomable-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0.85rem;
  background: #f5f7fb;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.portfolio-page .certification-copy {
  display: grid;
  gap: 0.95rem;
}

.portfolio-page .certification-copy h3 {
  color: #F0C674;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.portfolio-page .certification-summary {
  max-width: 44rem;
}

.portfolio-page .certification-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-page .certification-meta li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(40, 194, 209, 0.16);
  background: rgba(10, 17, 28, 0.54);
}

.portfolio-page .certification-meta span,
.portfolio-page .certification-support-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.portfolio-page .certification-meta strong {
  color: #F0C674;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.portfolio-page .certification-links {
  margin-top: 0.15rem;
}

.portfolio-page .certification-links .button {
  min-width: 11rem;
}

.portfolio-page .certification-skill-list {
  margin-top: 0.2rem;
}

.portfolio-page .certification-skill {
  cursor: default;
  color: #F0C674;
  border-color: rgba(126, 224, 129, 0.18);
  background: rgba(11, 18, 30, 0.76);
}

.portfolio-page .certification-skill:hover,
.portfolio-page .certification-skill:focus-visible {
  transform: none;
  color: #F0C674;
  border-color: rgba(126, 224, 129, 0.18);
  background: rgba(11, 18, 30, 0.76);
}

@media (max-width: 1180px) {
  .portfolio-page .certification-browser {
    grid-template-columns: 1fr;
  }

  .portfolio-page .certification-meta {
    grid-template-columns: 1fr;
  }

  .portfolio-page .certification-zoomable-shot {
    max-height: none;
    width: 100%;
  }
}
