
.flip-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Hero ── */
.hero-heading {
  font-size: min(14vw, 10rem);
  line-height: 1;
  text-align: center;
  margin: 0;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin: 0;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-cta {
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--rounded-1);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.8;
}

.hero-cta.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(39, 15, 3, 0.25);
}

.hero-cta.outline:hover {
  border-color: var(--primary);
  opacity: 1;
}

.hero-social-row,
.footer-social-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.social-icon-link {
  color: var(--primary);
  opacity: 0.35;
  transition: opacity 0.2s;
  display: inline-flex;
}

.social-icon-link:hover {
  opacity: 1;
}

.footer-social {
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-dot {
  opacity: 0.4;
}

/* ── About ── */
.about-grid {
  display: flex;
  gap: 3rem;
  width: 100%;
}

.about-text {
  flex: 1.4;
}

.about-focus {
  flex: 1;
}

.about-paragraph {
  line-height: 1.75;
  opacity: 0.7;
  margin: 0 0 1rem;
}

.about-focus-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin: 0 0 0.75rem;
}

.focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(39, 15, 3, 0.15);
  border-radius: 2rem;
  font-size: 0.85rem;
  opacity: 0.75;
  white-space: nowrap;
}

/* ── GitHub Stat Cards ── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(39, 15, 3, 0.1);
  border-radius: 1rem;
  min-width: 7rem;
  background: rgba(39, 15, 3, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(39, 15, 3, 0.08);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
  margin-top: 0.5rem;
  font-weight: 600;
}

.github-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(39, 15, 3, 0.15);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.github-profile-link:hover {
  opacity: 1;
  background: rgba(39, 15, 3, 0.05);
}

/* ── Contribution Heatmap ── */
.heatmap-wrapper {
  width: 100%;
}

.heatmap-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.heatmap {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.level-0 { background: rgba(39, 15, 3, 0.06); }
.level-1 { background: #9be9a8; }
.level-2 { background: #40c463; }
.level-3 { background: #30a14e; }
.level-4 { background: #216e39; }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

/* ── Title Cards ── */
.title-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--rounded-1);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-heading {
    font-size: min(18vw, 8rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }
}
