/* Site overrides for the MyPage template.
   Kept in a separate file so the vendor stylesheet stays upgradable, and so
   markup doesn't carry long inline style="" attributes. Everything here uses
   the template's own colour variables. */

/* ---------------------------------------------------------------
   Startups section — products built end to end. Two columns on
   desktop, one on mobile; all colours come from the template vars.
   --------------------------------------------------------------- */

.startup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* four cards → 2×2 */
  gap: 24px;
}

@media (max-width: 991px) {
  .startup-grid { grid-template-columns: minmax(0, 1fr); }
}

.startup-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 12px;
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.startup-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
}

.startup-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.startup-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  font-size: 22px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
}

.startup-title h3 {
  margin: 0;
  font-size: 20px;
  color: var(--heading-color);
}

.startup-title a {
  font-size: 13px;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.startup-title a i { font-size: 11px; }

.startup-desc {
  margin: 0 0 16px;
  font-size: 0.95em;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.startup-features {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  font-size: 0.9em;
}

.startup-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.startup-features li::before {
  content: '\F26E';                 /* bootstrap-icons check-lg */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--accent-color);
}

.startup-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0;
  margin-bottom: 16px;
  /* Stats + tags sit together at the card's foot, so cards of different
     text length still line up along the bottom. */
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.startup-stats div { display: flex; flex-direction: column; }

.startup-stats strong {
  font-family: var(--heading-font);
  font-size: 19px;
  line-height: 1.2;
  color: var(--accent-color);
}

.startup-stats span {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* .achievement-tag is styled only inside .resume in the template CSS, so the
   same markup here needs its own pill styling. */
.startup-card .key-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.startup-card .achievement-tag {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 999px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
}

@media (max-width: 575px) {
  .startup-card { padding: 20px; }
  .startup-stats { gap: 14px; }
}

/* Mobile menu button — was a ~400 character inline style on the <i> tag. */
.header-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  padding: 8px 12px;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-toggle:hover,
.header-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
}

/* Project bullets inside the résumé timeline. The old inline style hardcoded
   #555, which is nearly invisible on the dark surface. */
.resume .project-list {
  margin-top: 10px;
  margin-bottom: 0;
  padding-left: 18px;
  font-size: 0.92em;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.resume .project-list li + li { margin-top: 3px; }
.resume .project-list strong { color: var(--heading-color); font-weight: 600; }

/* Honours sit side by side once a card carries more than one badge. */
.resume .honors { display: flex; flex-wrap: wrap; gap: 8px; }

/* The projects / languages / volunteering blocks reuse .cert-item; the two
   that are links need the same colour and a hover cue. */
.resume a.cert-item { color: inherit; text-decoration: none; }

.resume a.cert-item:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.resume a.cert-item:hover .cert-name { color: var(--accent-color); }
