/* Push content below fixed navbar */
main {
  padding-top: 90px;
  min-height: 100vh;
}

/* ===== ABOUT HERO ===== */
.about-hero {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 30px 0 40px;
}

.about-wrap {
  width: min(92%, 1400px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

/* ===== PORTRAIT ===== */
.about-portrait {
  position: relative;
  flex: 0 0 auto;
  width: min(46vw, 620px);
  max-width: 620px;
  user-select: none;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0.98) contrast(1.02);
}

/* bottom fade only */
.portrait-fade.bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 28%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* ===== COPY ===== */
.about-copy {
  flex: 1 1 auto;
  max-width: 720px;
}

.about-copy h1 {
  font-size: 78px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 18px;
  text-wrap: balance;
}

.about-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.95;
  margin: 0 0 26px;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* ===== ABOUT MY WORK ===== */
.about-work {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 70px 0 120px;
}

.about-work-header {
  width: min(92%, 1400px);
  margin: 0 auto;
  text-align: center;
}

.about-work-header h2 {
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 14px;
  text-wrap: balance;
}

.about-work-header p {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}

.about-work-list {
  width: min(92%, 1400px);
  margin: 70px auto 0;

  /* ✅ divider line style like mobile */
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-work-block {
  /* ✅ replace the old spacing style with clean divider lines */
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* dropdown row button */
.about-work-item {
  /* ✅ full width row, caret can go right */
  width: 100%;

  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: #fff;

  /* ✅ nice tap/click area, keeps spacing consistent */
  padding: 6px 0;
  margin: 0;
  cursor: pointer;

  /* ✅ flex row: title left, caret right */
  display: flex;
  align-items: center;
  gap: 14px;

  font-family: inherit;
  text-align: left;
}

.about-work-title {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ✅ caret right side */
.about-work-caret {
  margin-left: auto;
  font-size: 18px;
  opacity: 0.95;
  transform: translateY(2px);
  transition: transform 0.2s ease;
}

.about-work-item:hover {
  opacity: 0.85;
}

.about-work-item.is-open .about-work-title {
  font-size: 34px;
}

/* rotate caret to point up when open */
.about-work-item.is-open .about-work-caret {
  transform: translateY(2px) rotate(180deg);
}

/* ===== DROPDOWN PANEL (animated) ===== */
.about-work-panel {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.about-work-panel.open {
  opacity: 1;
}

/* ✅ 2×2 alignment:
   Row 1: ABOUT | SOFTWARE
   Row 2: EDU/DEV/KNOWLEDGE | EXPERIENCE
*/
.about-work-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  grid-template-rows: auto auto;
  column-gap: 90px;
  row-gap: 34px;
  align-items: start;

  padding-top: 22px;
  padding-bottom: 10px;
}

.about-cell {
  min-width: 0;
}

.about-subhead {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-body {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  opacity: 0.92;
  max-width: 820px;
  text-wrap: balance;
}

/* ✅ Link style (white + subtle glow, no blue/purple) */
.about-body .inline-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  opacity: 0.95;
  transition:
    opacity 0.2s ease,
    text-shadow 0.2s ease;
}

.about-body .inline-link:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

/* ===== SOFTWARE ===== */
.software-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin: 8px 0 0;
}

.software-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.software-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
}

.software-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  opacity: 1;
  filter: none;
}

.software-name {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.95;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .about-wrap {
    gap: 50px;
  }
  .about-copy h1 {
    font-size: 64px;
  }
  .about-copy {
    max-width: 680px;
  }
  .about-work-header h2 {
    font-size: 48px;
  }
  .about-work-grid {
    column-gap: 60px;
  }
}

@media (max-width: 900px) {
  .about-wrap {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 30px;
  }

  .about-portrait {
    width: min(78vw, 560px);
  }

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

  .about-copy h1 {
    font-size: 58px;
    text-align: center;
  }

  .about-work-header p br {
    display: none;
  }

  /* stack all on mobile */
  .about-work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 18px;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding: 20px 0 35px;
  }

  .about-copy h1 {
    font-size: 44px;
  }

  .about-copy p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-work {
    padding: 60px 0 100px;
  }

  .about-work-header h2 {
    font-size: 38px;
  }

  .about-work-header p {
    font-size: 16px;
  }

  .about-work-title {
    font-size: 24px;
  }

  .about-work-item.is-open .about-work-title {
    font-size: 28px;
  }

  .about-subhead {
    font-size: 22px;
  }

  .about-body {
    font-size: 14px;
    line-height: 1.85;
  }
}
