/* About row */
.about-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
  width: 380px;
  order: 1;
  position: sticky;
  top: 92px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.about-text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 0;
}

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

.expand-content {
  animation: expandFadeIn 0.6s ease forwards;
}

@keyframes expandFadeIn {
  0% { background: var(--color-hover); border-radius: 4px; color: #4285F4; }
  100% { background: transparent; color: #4285F4; }
}

[data-theme="dark"] .expand-content {
  animation: expandFadeInDark 0.6s ease forwards;
}

@keyframes expandFadeInDark {
  0% { background: var(--color-border); border-radius: 4px; color: #8ab4f8; }
  100% { background: transparent; color: #8ab4f8; }
}

/* Section title */
.about-section {
  margin-bottom: 56px;
}

.about-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

/* ===== Contributions bento =====
   Each card has its own visual format inspired by Apple's iOS bento
   reveal: a feature hero, mock UI tiles (contribution graph,
   avatar stack), big-typography decorations (quote mark, code
   brackets), and an article-preview tile. Palette stays restrained
   to the portfolio's cream/dark base — only GitHub keeps a dark bg
   because dark = "code editor" reads instantly. Slot content lives
   in ContributionsBentoCreative.tsx. */
.bento-creative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(140px, auto));
  grid-template-areas:
    "a a b c"
    "a a b d"
    "e e e f";
  gap: 14px;
}

.bento-c {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-c:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  border-color: var(--color-text-secondary);
}
[data-theme="dark"] .bento-c:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.bento-c-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.25s ease, transform 0.25s ease, stroke 0.25s ease;
}

.bento-c:hover .bento-c-arrow {
  opacity: 1;
  transform: translate(0, 0);
  stroke: var(--color-text);
}

.bento-c-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  display: inline-block;
  align-self: flex-start;
}

.bento-c-a { grid-area: a; }
.bento-c-b { grid-area: b; }
.bento-c-c { grid-area: c; }
.bento-c-d { grid-area: d; }
.bento-c-e { grid-area: e; }
.bento-c-f { grid-area: f; }

/* === A — LinkedIn HERO ===
   Two-column layout: brand text on the left, "Recent posts" feed
   panel on the right (showing the 5 most-recent journeyUpdates as
   real LinkedIn post rows). */
.bento-c-a {
  padding: 28px;
}
.bento-c-a .bento-c-hero-layout {
  display: flex;
  flex: 1;
  gap: 24px;
  margin-top: 4px;
  min-height: 0;
}
.bento-c-a .bento-c-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.bento-c-a .bento-c-hero-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bento-c-a .bento-c-hero-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
/* Recent-posts panel — sits at the right of the hero like a small
   LinkedIn-style feed widget. Each row is a real post (title +
   formatted month/year). Whole panel is decorative; clicking the
   bento card still goes to the LinkedIn profile. */
.bento-c-a .bento-c-post-list {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .bento-c-a .bento-c-post-list {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.bento-c-a .bento-c-post-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 6px;
}
.bento-c-a .bento-c-post-list-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.bento-c-a .bento-c-post-list-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.bento-c-a .bento-c-post-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.3s ease;
}
.bento-c-a:hover .bento-c-post-row {
  transform: translateX(2px);
}
.bento-c-a .bento-c-post-row + .bento-c-post-row {
  border-top: 1px solid var(--color-border);
}
.bento-c-a .bento-c-post-row-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0a66c2, #0a4d8c);
}
.bento-c-a .bento-c-post-row-image-placeholder {
  display: block;
}
.bento-c-a .bento-c-post-row-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bento-c-a .bento-c-post-row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.bento-c-a .bento-c-post-row-date {
  font-size: 10px;
  color: var(--color-text-secondary);
}
/* Shared live-dot pulse — used in both the LinkedIn "Live" indicator
   and the UzTech channel preview footer. Soft expanding ring. */
.bento-c .bento-c-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: bento-live-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes bento-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* === B — UzTech COMMUNITY === */
.bento-c-b {
  padding: 22px;
}
.bento-c-b .bento-c-avatars {
  display: flex;
  margin: 6px 0 16px;
}
.bento-c-b .bento-c-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--color-card);
  margin-left: -10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bento-c-b .bento-c-avatar svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.92);
}
.bento-c-b .bento-c-avatar:first-child { margin-left: 0; }
.bento-c-b .bento-c-avatar-1 { background: linear-gradient(135deg, #f97316, #fb923c); }
.bento-c-b .bento-c-avatar-2 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.bento-c-b .bento-c-avatar-3 { background: linear-gradient(135deg, #ec4899, #f9a8d4); }
.bento-c-b .bento-c-avatar-4 { background: linear-gradient(135deg, #84cc16, #a3e635); }
.bento-c-b .bento-c-avatar-5 { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.bento-c-b:hover .bento-c-avatar { transform: translateY(-2px); }
.bento-c-b:hover .bento-c-avatar-1 { transform: translateY(-2px) rotate(-4deg); }
.bento-c-b:hover .bento-c-avatar-3 { transform: translateY(-2px) rotate(4deg); }
.bento-c-b:hover .bento-c-avatar-5 { transform: translateY(-2px) rotate(-3deg); }
.bento-c-b .bento-c-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.bento-c-b .bento-c-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}
/* Telegram-style channel preview footer at the bottom of UzTech.
   `margin-top: auto` pushes it to the bottom of the flex column to
   fill the empty space. The green live dot pulses continuously
   (shared `.bento-c-live-dot` rules). */
.bento-c-b .bento-c-channel-preview {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-hover);
  border: 1px solid var(--color-border);
}
.bento-c-b .bento-c-channel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38b6e8 0%, #229ed9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(34, 158, 217, 0.3);
}
.bento-c-b .bento-c-channel-avatar svg {
  width: 20px;
  height: 20px;
  color: #fff;
  /* Nudge the paper-plane visually so it sits centred in the circle */
  transform: translate(-1px, 1px);
}
.bento-c-b .bento-c-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bento-c-b .bento-c-channel-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.bento-c-b .bento-c-channel-status {
  font-size: 10px;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Activity pills below the avatars — what UzTech actually does.
   Each pill has a small status dot; one dot at a time lights up
   green on a stagger to feel "live". */
.bento-c-b .bento-c-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.bento-c-b .bento-c-activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  background: var(--color-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.bento-c-b .bento-c-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  opacity: 0.4;
  flex-shrink: 0;
}
.bento-c-b .bento-c-activity-1 .bento-c-activity-dot { animation: bento-activity-live 6s ease-in-out infinite; }
.bento-c-b .bento-c-activity-2 .bento-c-activity-dot { animation: bento-activity-live 6s ease-in-out infinite 2s; }
.bento-c-b .bento-c-activity-3 .bento-c-activity-dot { animation: bento-activity-live 6s ease-in-out infinite 4s; }
@keyframes bento-activity-live {
  0%, 75%, 100% {
    background: var(--color-text-secondary);
    opacity: 0.4;
    box-shadow: none;
  }
  10%, 20% {
    background: #16a34a;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  }
}

/* === C — GitHub CONTRIBUTION GRAPH (only colored card; dark = code) === */
.bento-c-c {
  background: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
  padding: 18px;
}
.bento-c-c:hover {
  border-color: #6e7681;
}
.bento-c-c .bento-c-tag { color: #7d8590; margin-bottom: 12px; }
.bento-c-c .bento-c-graph {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  flex: 1;
  align-content: center;
  margin-bottom: 12px;
}
.bento-c-c .bento-c-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #21262d;
  transition: transform 0.4s ease;
}
.bento-c-c .bento-c-cell-1 { background: #0e4429; }
.bento-c-c .bento-c-cell-2 { background: #006d32; }
.bento-c-c .bento-c-cell-3 { background: #26a641; }
.bento-c-c:hover .bento-c-cell-3 { transform: scale(1.15); }
.bento-c-c .bento-c-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
}
.bento-c-c .bento-c-arrow { stroke: #7d8590; }
.bento-c-c:hover .bento-c-arrow { stroke: #e6edf3; }

/* === D — Publink QUOTE === */
.bento-c-d {
  padding: 18px;
}
.bento-c-d .bento-c-quote-mark {
  position: absolute;
  top: -22px;
  right: 12px;
  font-size: 130px;
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.1;
  z-index: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.bento-c-d:hover .bento-c-quote-mark {
  transform: rotate(-8deg) scale(1.05);
  opacity: 0.16;
}
.bento-c-d .bento-c-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.bento-c-d .bento-c-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.bento-c-d .bento-c-desc-mini {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* === E — Medium ARTICLE PREVIEW (3-wide banner) ===
   Desktop: side-by-side row — article content on the left, mini-article
   tile fully visible on the right. Mobile: see the responsive block
   below for the peek-from-corner treatment. */
.bento-c-e {
  padding: 28px 32px;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.bento-c-e .bento-c-article-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.bento-c-e .bento-c-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bento-c-e .bento-c-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  flex-shrink: 0;
}
[data-theme="dark"] .bento-c-e .bento-c-avatar-mini {
  background: linear-gradient(135deg, #f5f5f5 0%, #d4d4d4 100%);
}
.bento-c-e .bento-c-tag-inline {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
.bento-c-e .bento-c-article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-family: Lora, Georgia, "Times New Roman", serif;
}
.bento-c-e .bento-c-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--color-text-secondary);
  max-width: 540px;
}
.bento-c-e .bento-c-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  align-self: flex-start;
  transition: transform 0.25s ease;
}
.bento-c-e:hover .bento-c-cta { transform: translateX(4px); }
.bento-c-e .bento-c-arrow { display: none; }
/* Mock article-card — black-themed thumbnail (Medium's brand colour)
   + the latest article's title/date. Sits at the right of the banner,
   tilted slightly with a gentle continuous float; hover straightens
   & lifts. */
.bento-c-e .bento-c-mini-article {
  flex-shrink: 0;
  width: 220px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(-3deg) translateY(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  animation: bento-article-float 7s ease-in-out infinite;
}
[data-theme="dark"] .bento-c-e .bento-c-mini-article {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.bento-c-e:hover .bento-c-mini-article {
  transform: rotate(0deg) translateY(-4px);
}
.bento-c-e .bento-c-mini-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a2a 0%, #0a0a0a 100%);
  position: relative;
}
.bento-c-e .bento-c-mini-thumb::after {
  content: "M";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Lora, Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}
.bento-c-e .bento-c-mini-article-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-c-e .bento-c-mini-article-date {
  font-size: 10px;
  color: var(--color-text-secondary);
}
@keyframes bento-article-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

/* === F — LeetCode CODE BRACKETS === */
.bento-c-f {
  padding: 18px;
}
.bento-c-f .bento-c-brackets {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 90px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.08;
  letter-spacing: -6px;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
}
.bento-c-f:hover .bento-c-brackets {
  transform: translate(-50%, -50%) rotate(8deg) scale(1.05);
  opacity: 0.14;
}
.bento-c-f .bento-c-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.bento-c-f .bento-c-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-creative-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: minmax(140px, auto);
    grid-template-areas:
      "a a"
      "b c"
      "b d"
      "e e"
      "f f";
  }
  .bento-c-a { padding: 24px; }
  .bento-c-a .bento-c-hero-title { font-size: 24px; }
  .bento-c-a .bento-c-hero-layout { flex-direction: column; gap: 16px; }
  .bento-c-a .bento-c-post-list { width: 100%; }
  .bento-c-e {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .bento-c-e .bento-c-mini-article { display: none; }
  .bento-c-e .bento-c-article-title { font-size: 24px; }
}

@media (max-width: 600px) {
  .bento-creative-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-rows: auto;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f";
  }
  .bento-c-a { padding: 22px; }
  .bento-c-a .bento-c-hero-title { font-size: 22px; }
  .bento-c-a .bento-c-post-row-title { max-width: none; white-space: normal; }
  /* `margin-top: auto` collapses on the short mobile card; force a
     real gap between the description and the channel preview. */
  .bento-c-b .bento-c-channel-preview { margin-top: 20px; }
  /* Medium mini-article peeks out of the bottom-right corner of the
     mobile card — only a sliver shows. The card's `overflow: hidden`
     (inherited from .bento-c) crops the off-edge portion. */
  .bento-c-e {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
  }
  .bento-c-e .bento-c-mini-article {
    display: flex;
    position: absolute;
    bottom: -54px;
    right: -52px;
    width: 150px;
    padding: 10px;
    gap: 6px;
    transform: rotate(-10deg);
    animation: none;
  }
  .bento-c-e .bento-c-mini-thumb::after {
    font-size: 22px;
  }
  .bento-c-e .bento-c-mini-article-title {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
  .bento-c-e .bento-c-mini-article-date {
    font-size: 9px;
  }
  .bento-c-e .bento-c-article-title { font-size: 22px; }
}

/* Responsive */
@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
    gap: 32px;
  }
  .about-photo {
    width: 100%;
    position: static;
    order: -1;
  }
  .about-photo img {
    aspect-ratio: 1 / 1;
  }
  .about-text {
    order: 0;
  }
}




@media (max-width: 600px) {
  .about-text p {
    font-size: 15px;
  }
}
