/* =====================
   About page-specific CSS
   ===================== */

/* Hero / intro (eyebrow + H1 at top) */
.about-hero {
  margin-bottom: 2rem;
}

.about-hero h1 {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Photo + text layout row */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Photo column */
.about-photo {
  justify-self: start;
}

.about-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  background-color: transparent !important;
  display: block;
}

[data-theme="dark"] .about-photo img {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* Copy column */
.about-copy {
  max-width: 70ch;
}

.about-intro {
  /* Remove narrow max-width so it doesn't wrap oddly */
  max-width: none;
  margin-bottom: 1rem;
}

.about-copy p {
  margin-bottom: 1rem;
}

.about-highlight {
  font-weight: 500;
  color: var(--text);
}

/* Experience section */
.about-experience {
  margin-top: 3rem;
}

.about-experience h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.experience-item {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.experience-item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.experience-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.experience-item ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}

/* Experience project section label */
.experience-projects-label {
  margin: 1.75rem 0 0.75rem;
}

.experience-projects-label h4 {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Experience – Project Row */
.experience-projects-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.experience-projects-row::-webkit-scrollbar {
  height: 6px;
}

.experience-projects-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
}

/* Card */
.experience-project-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
  background: var(--surface-card);
  box-shadow: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

/* Make full card clickable */
.experience-project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Thumb */
.experience-project-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.6rem;
}

.experience-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.experience-project-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.experience-project-title {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.experience-project-description {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-muted);
}

.experience-project-cta {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Hover state – lift card, keep text colors consistent */
.experience-project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

/* Desktop: 4-column grid for experience project rows */
@media (min-width: 960px) {
  .experience-projects-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    overflow: visible;
  }

  .experience-project-card {
    min-width: 0;
    max-width: none;
  }
}

/* Smaller devices */
@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-photo {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .about-hero h1,
  .about-header h1 {
    font-size: 2.1rem;
  }
}
