/* about.css — About page: blueprint/schematic motif */

/* Blueprint background motif */
.about-page {
  position: relative;
  min-height: 100vh;
  padding: 12rem 2rem 4rem;
}

.about-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Thin blueprint grid lines */
    linear-gradient(rgba(200, 208, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 208, 220, 0.03) 1px, transparent 1px),
    /* Larger grid subdivision */
    linear-gradient(rgba(200, 208, 220, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 208, 220, 0.015) 1px, transparent 1px);
  background-size:
    40px 40px,
    40px 40px,
    200px 200px,
    200px 200px;
  pointer-events: none;
  z-index: 0;
}

.about-page>* {
  position: relative;
  z-index: 1;
}

/* Page layout container */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section header with dimension-line rule */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-bright);
  white-space: nowrap;
  margin-bottom: 0;
}

.section-header .dimension-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--dim), transparent);
}

.section-header .dimension-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- BIO SECTION ---- */
.about-bio-section {
  margin-bottom: 5rem;
}

.about-bio-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: var(--text);
  max-width: 72ch;
}

/* ---- SKILLS SECTION ---- */
.about-skills-section {
  margin-bottom: 5rem;
}

.skill-bars-container {
  display: grid;
  gap: 2rem;
  max-width: 800px;
}

.skill-bar-item {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .about-page {
    padding: 8rem var(--container-px) 3rem;
  }

  .skill-bar-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .skill-bar-label {
    margin-bottom: 0.25rem;
  }

  .skill-bar-value {
    text-align: right;
    margin-top: -1.75rem;
  }
}

.skill-bar-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
}

.skill-bar-track {
  height: 8px;
  background: var(--dim);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.skill-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  /* Gold → accent → redline gradient matching chevron arcs */
  background: linear-gradient(90deg,
      #ffb5a0 0%,
      var(--accent) 60%,
      var(--accent2) 100%);
  transition: transform 0s;
}

/* Redline marker — the small vertical tick near the end of the track */
.skill-bar-track::after {
  content: '';
  position: absolute;
  right: 10%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--accent2);
  opacity: 0.4;
  z-index: 1;
}

.skill-bar-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.1em;
}

/* ---- TAGS / PILLS SECTION ---- */
.about-tags-section {
  margin-bottom: 5rem;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---- CERTIFICATIONS SECTION ---- */
.about-certs-section {
  margin-bottom: 5rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cert-card-wrapper {
  position: relative;
  padding: 0.35rem;
  /* Outer tray padding */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s cubic-bezier(0.32, 0.72, 0, 1), transform 0.1s ease-out;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
}

.cert-card-wrapper:hover {
  border-color: rgba(232, 255, 0, 0.25);
}

.cert-card-wrapper:active {
  transform: scale(0.98);
}

.cert-card {
  padding: 1.5rem;
  border-radius: 1.15rem;
  /* Concentric inner radius */
  background-color: rgba(10, 14, 20, 0.95);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.cert-card-wrapper:hover .cert-card {
  /* Ambient gradient hover effect */
  background-color: rgba(18, 22, 28, 0.95);
  box-shadow: inset 0 1px 1px rgba(232, 255, 0, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}

.cert-card-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  transform: translateZ(30px);
}

.cert-card-issuer {
  font-family: var(--font-mono);
  font-size: var(--font-size-min);
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  transform: translateZ(20px);
}

.cert-card-date {
  font-family: var(--font-mono);
  font-size: var(--font-size-min);
  color: var(--accent);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
  transform: translateZ(25px);
}

/* In-progress cert styling */
.cert-card-wrapper.in-progress {
  border-color: rgba(255, 69, 0, 0.2);
}

.cert-card-wrapper.in-progress .cert-card-date {
  color: var(--accent2);
}

/* ---- EDUCATION SECTION ---- */
.about-education-section {
  margin-bottom: 5rem;
}

.education-block {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(13, 17, 23, 0.3);
}

.education-degree {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}

.education-university {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.education-years {
  font-family: var(--font-mono);
  font-size: var(--font-size-min);
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ---- DOSSIER SIGNATURE ---- */
.dossier-sign-off {
  margin-top: 6rem;
  display: flex;
  justify-content: flex-end;
  padding-right: 2rem;
}

.dossier-signature {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text);
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin: 0;
  transform: rotate(-3.5deg);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .about-page {
    padding: 7rem 1.25rem 3rem;
  }

  .skill-bar-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .skill-bar-value {
    text-align: left;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .skill-bar-fill {
    transition: none !important;
  }

  .cert-card-wrapper,
  .cert-card {
    transition: none;
  }
}