/* ---------- Global responsive base ---------- */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

main p, main li {
  overflow-wrap: break-word;
}

h1.title, .quarto-title h1 {
  font-size: clamp(1.75rem, 4vw + 0.75rem, 2.75rem);
  line-height: 1.15;
}

/* ---------- Hero ---------- */
.hero {
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.hero-photo img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

/* ---------- Tech stack ---------- */
.tech-stack-section {
  margin: 40px 0;
}

.tech-stack-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 24px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-pill {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--bs-border-color, #d1d5db);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bs-body-color, #4b5563);
  background-color: transparent;
  line-height: 1.4;
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #2563eb;
  border-radius: 50%;
  text-decoration: none;
  color: #2563eb;
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: #2563eb;
  color: white;
}

/* ---------- CTA ---------- */
.contact-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #2563eb;
  border-radius: 20px;
  text-decoration: none;
  color: #2563eb;
  font-size: 1rem;
  background-color: transparent;
}

.contact-btn:hover {
  background-color: #2563eb;
  color: white;
}

.time-badge {
  display: inline-block;
  padding: 4px 14px;
  background-color: #eff6ff;
  border: 1px solid #2563eb;
  border-radius: 999px;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .hero {
    gap: 1.25rem;
  }

  .hero-photo img {
    display: block;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  /* Safety net: kill any leftover floated images */
  main img[style*="float"],
  main .float-end,
  main .float-start {
    float: none !important;
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
  }

  .tech-stack-section {
    margin: 28px 0;
  }

  .tech-pills {
    gap: 10px;
  }

  .tech-pill {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
  }

  main table {
    display: block;
    overflow-x: auto;
  }
}
