/* CD BEDROCK - dark code studio portfolio */

:root {
  --bg: #05070a;
  --bg-2: #090d12;
  --surface: #0d1218;
  --surface-2: #111821;
  --surface-3: #151d27;
  --text: #f4f8f7;
  --text-soft: #9aa8a6;
  --muted: #6e7d7a;
  --border: #23302f;
  --border-bright: rgba(32, 255, 148, 0.32);
  --green: #20ff94;
  --green-2: #00c46f;
  --blue: #76a8ff;
  --gold: #d9b66f;
  --danger: #ff5d6c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(32, 255, 148, 0.1), transparent 28rem),
    linear-gradient(245deg, rgba(118, 168, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 52%, #050608);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(32, 255, 148, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 255, 148, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--green);
  color: #031008;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--green);
  color: #031008;
  font-weight: 800;
}

.skip-link:focus {
  top: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(35, 48, 47, 0.78);
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--green);
  background: linear-gradient(180deg, #111a20, #070b0f);
  box-shadow: 0 0 28px rgba(32, 255, 148, 0.14);
  font-size: 0.8rem;
}

.brand-text {
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 780;
}

.site-nav a {
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(32, 255, 148, 0.28);
  color: var(--green);
  background: rgba(32, 255, 148, 0.08);
  box-shadow: 0 0 24px rgba(32, 255, 148, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  padding: 96px 0;
  scroll-margin-top: 90px;
}

.section-muted {
  background: rgba(13, 18, 24, 0.74);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(32, 255, 148, 0.11), transparent 28rem),
    #070a0e;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 88px 0;
}

.hero-grid,
.page-hero-grid,
.contact-grid,
.two-column,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.card-label,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.page-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(32, 255, 148, 0.7);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 6vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

p {
  color: var(--text-soft);
}

.hero-text {
  max-width: 690px;
  font-size: 1.12rem;
  color: #c4d0cd;
}

.button-row,
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.card-link:hover article,
.card-link:hover.cert-row {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(32, 255, 148, 0.64);
  color: #04130c;
  background: linear-gradient(180deg, #35ff9f, #00c46f);
  box-shadow: 0 0 34px rgba(32, 255, 148, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 26px rgba(32, 255, 148, 0.1);
}

.text-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 850;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 9px 13px 9px 15px;
  border: 1px solid rgba(32, 255, 148, 0.42);
  border-radius: var(--radius);
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(32, 255, 148, 0.11), rgba(32, 255, 148, 0.035)),
    #08100d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 22px rgba(32, 255, 148, 0.06);
  font-weight: 850;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-more:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 255, 148, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 0 30px rgba(32, 255, 148, 0.13);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span,
.status,
.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(35, 48, 47, 0.9);
  border-radius: var(--radius);
  color: #b7c5c2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  font-weight: 760;
}

.hero-card,
.editor-panel,
.detail-card,
.project-card,
.skill-card,
.learning-card,
.blog-card,
.cert-row,
.contact-card,
.resume-box,
.terminal-card {
  border: 1px solid rgba(35, 48, 47, 0.86);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(13, 18, 24, 0.9);
  box-shadow: var(--shadow);
}

.hero-card,
.editor-panel,
.terminal-card {
  overflow: hidden;
}

.hero-card {
  padding: 24px;
}

.terminal-dots,
.editor-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: #0a0f14;
}

.terminal-dots {
  padding: 0 0 18px;
  border-bottom: 0;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(32, 255, 148, 0.6);
}

.terminal-dots span:nth-child(2) {
  background: var(--gold);
  box-shadow: none;
}

.terminal-dots span:nth-child(3) {
  background: var(--danger);
  box-shadow: none;
}

.progress-block {
  margin: 24px 0;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #05080b;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 18px rgba(32, 255, 148, 0.28);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 48px;
  row-gap: 18px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 760px;
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.section-heading .section-more {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin-top: 0;
}

.project-grid,
.skills-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card,
.skill-card,
.learning-card,
.blog-card,
.detail-card {
  height: 100%;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-link {
  display: block;
  height: 100%;
}

.card-link:hover article,
.card-link:hover.cert-row {
  border-color: var(--border-bright);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), 0 0 30px rgba(32, 255, 148, 0.08);
}

.project-card-featured {
  grid-column: span 2;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.status-active,
.status-complete {
  color: var(--green);
  border-color: rgba(32, 255, 148, 0.34);
}

.status-planned {
  color: var(--gold);
  border-color: rgba(217, 182, 111, 0.34);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.learning-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cert-list,
.detail-stack,
.cert-grid {
  display: grid;
  gap: 14px;
}

.cert-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-grid .cert-row {
  min-height: 190px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.cert-date {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 850;
}

.cert-grid .cert-date {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(32, 255, 148, 0.28);
  border-radius: var(--radius);
  background: rgba(32, 255, 148, 0.075);
}

.badge-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge-strip img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.cert-grid .badge-strip img {
  width: 92px;
  height: 92px;
}

.resume-section,
.contact-section {
  background:
    linear-gradient(90deg, rgba(32, 255, 148, 0.1), transparent 40rem),
    #070a0e;
}

.resume-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
}

.resume-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.resume-preview-grid .resume-box {
  height: 100%;
}

.resume-preview-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(32, 255, 148, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(32, 255, 148, 0.11), transparent),
    rgba(13, 18, 24, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resume-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
}

.resume-preview-card h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.resume-lines {
  display: grid;
  gap: 8px;
}

.resume-lines span {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(35, 48, 47, 0.9);
  border-radius: var(--radius);
  color: #c5d4d0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
}

.resume-preview-card strong {
  color: var(--green);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  grid-column: 1 / -1;
  width: 100%;
}

.contact-card a {
  color: var(--green);
  font-weight: 850;
}

.social-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(32, 255, 148, 0.28);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(32, 255, 148, 0.06);
  font-size: 0.9rem;
  font-weight: 850;
}

.social-link:hover {
  border-color: var(--border-bright);
  background: rgba(32, 255, 148, 0.1);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #05070a;
}

.footer-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-socials {
  justify-content: center;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.92rem;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 86px 0 70px;
}

.page-hero h1 {
  font-size: clamp(2.45rem, 4.8vw, 4.9rem);
}

.page-hero p {
  max-width: 720px;
  font-size: 1.06rem;
}

.editor-tabs {
  padding: 10px 12px 0;
}

.editor-tabs span {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--text-soft);
  background: #0d1218;
  font-size: 0.82rem;
  font-weight: 780;
}

.editor-body {
  display: grid;
  gap: 4px;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  color: #bed0cb;
  font-size: 0.9rem;
}

.code-line span:first-child {
  color: var(--muted);
  user-select: none;
}

.code-line strong {
  color: var(--green);
  font-weight: 800;
}

.detail-section {
  padding: 74px 0 96px;
}

.detail-grid {
  align-items: start;
}

.certifications-section .detail-grid,
.contact-section .detail-grid,
.apprenticeship-section .detail-grid,
.item-detail-section .detail-grid {
  display: block;
}

.detail-stack,
.detail-grid > .timeline,
.detail-grid > .detail-card,
.detail-grid > .project-grid,
.detail-grid > .skills-grid,
.detail-grid > .learning-layout,
.detail-grid > .blog-grid,
.detail-grid > .resume-box,
.detail-grid > .contact-card {
  grid-column: 1 / -1;
}

.item-detail-card {
  width: 100%;
}

.body-copy p {
  font-size: 1.02rem;
}

.about-events-section {
  padding-top: 0;
}

.about-event-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.about-event {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(32, 255, 148, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(13, 18, 24, 0.9);
  box-shadow: var(--shadow);
}

.about-event:nth-child(even) .about-event-media {
  order: 2;
}

.about-event-media {
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #070b10;
}

.about-event-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.about-event-copy {
  padding: 10px;
}

.event-date {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-event-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel,
.admin-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 18, 24, 0.92);
  box-shadow: var(--shadow);
}

.admin-panel {
  padding: 18px;
}

.admin-panel button {
  width: 100%;
  margin-top: 10px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  background: #070b10;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.admin-output {
  min-height: 190px;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5, 7, 10, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid,
  .page-hero-grid,
  .contact-grid,
  .two-column,
  .detail-grid,
  .resume-preview-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid,
  .blog-grid,
  .learning-layout,
  .cert-grid,
  .contact-shell,
  .about-event {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading p {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .section-heading .section-more {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .project-card-featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section,
  .hero,
  .page-hero {
    padding: 62px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 16vw, 3.8rem);
  }

  .project-grid,
  .skills-grid,
  .blog-grid,
  .learning-layout,
  .cert-grid,
  .contact-shell,
  .about-event,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .about-event:nth-child(even) .about-event-media {
    order: 0;
  }

  .resume-box,
  .cert-row,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
