/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* === Variables === */
:root {
  --color-teal-600: #0d9488;
  --color-cyan-500: #06b6d4;
  --color-teal-500: #14b8a6;
  --color-gray-100: #f3f4f6;
  --color-gray-500: #6b7280;
  --color-gray-800: #1f2937;
  --color-white: #ffffff;

  --tag-language-start: #ea580c;   --tag-language-end: #fb923c;
  --tag-framework-start: #9333ea;  --tag-framework-end: #c084fc;
  --tag-architecture-start: #2563eb; --tag-architecture-end: #60a5fa;
  --tag-other-start: #ca8a04;      --tag-other-end: #facc15;

  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 80rem; /* max-w-7xl */
}

/* === Base === */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-subset.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

html {
  background: var(--color-white);
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  color: #111827;
  background: var(--color-white);
}

.container {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
}
@media (min-width: 768px) {
  .container { padding-left: 5rem; padding-right: 5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 10rem; padding-right: 10rem; }
}

@media (hover: hover) and (pointer: fine) {
  .hoverable { transition: transform 150ms ease; }
  .hoverable:hover { transform: scale(1.1); }
}

/* === Hero === */
.hero {
  padding-top: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
  background: var(--color-white);
}
@media (min-width: 768px) {
  .hero { padding-left: 5rem; padding-right: 5rem; }
}
@media (min-width: 1024px) {
  .hero { padding-left: 10rem; padding-right: 10rem; }
}
.hero__intro {
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
}
.hero__name {
  font-size: 3rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--color-teal-600);
  font-weight: 500;
}
@media (min-width: 768px) {
  .hero__name { font-size: 3.75rem; }
}
.hero__title {
  font-size: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 400;
}
@media (min-width: 768px) {
  .hero__title { font-size: 1.875rem; }
}
.hero__bio {
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 2rem;
  color: var(--color-gray-500);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero__bio { font-size: 1.125rem; }
}
@media (min-width: 1280px) {
  .hero__bio { max-width: 48rem; }
}
.hero__socials {
  display: flex;
  justify-content: center;
  gap: 3rem;
  color: var(--color-gray-800);
  padding-top: 1rem;
}
.hero__socials .icon-link svg { width: 3rem; height: 3rem; }
.hero__avatar {
  position: relative;
  margin: 2rem auto;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Apps === */
.apps {
  background: var(--color-gray-100);
  margin-top: 4rem;
  padding-bottom: 4rem;
}
.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 4rem;
}
@media (min-width: 1280px) {
  .section-header { max-width: 48rem; }
}
.section-header h3 {
  font-size: 1.875rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
.section-header p {
  line-height: 2rem;
  color: var(--color-gray-800);
}
@media (min-width: 768px) {
  .section-header p { font-size: 1.125rem; }
}

.apps-grid {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.app-card {
  text-align: center;
}
.app-card__trigger {
  display: block;
  width: 100%;
  transition: transform 200ms ease;
}
.app-card__trigger:hover {
  transform: scale(1.05);
}
.app-card__trigger img {
  border-radius: 36px;
  width: 12rem;
  height: 12rem;
  margin: 0 auto 0.5rem;
}
.app-card__trigger h4 {
  font-weight: 600;
}
.app-card__trigger p {
  font-size: 0.875rem;
}

/* === Tag === */
.tag {
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  display: inline-block;
}
.tag--language     { background: linear-gradient(to right, var(--tag-language-start), var(--tag-language-end)); }
.tag--framework     { background: linear-gradient(to right, var(--tag-framework-start), var(--tag-framework-end)); }
.tag--architecture { background: linear-gradient(to right, var(--tag-architecture-start), var(--tag-architecture-end)); }
.tag--other         { background: linear-gradient(to right, var(--tag-other-start), var(--tag-other-end)); }

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}
.modal[hidden] { display: none; }
.modal__close {
  color: var(--color-white);
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 600;
}
.modal__content {
  background: var(--color-white);
  border-radius: 0.5rem;
  overflow-y: auto;
  margin-left: 2rem;
  margin-right: 2rem;
  max-height: 85vh;
}
@media (min-width: 768px) {
  .modal__content { max-width: var(--max-width); }
}

.app-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}
@media (min-width: 1024px) {
  .app-detail {
    flex-direction: row;
    gap: 0;
    padding: 2rem;
  }
}
.app-detail__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin: auto 0;
}
.app-detail__media img.screenshot {
  max-height: 400px;
  max-width: 100%;
  width: auto;
  height: auto;
  flex-shrink: 0;
  margin: 0 auto;
  object-fit: contain;
}
.app-detail__screenshots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.app-detail__screenshots img.screenshot {
  max-height: 230px;
  margin: 0;
}
@media (min-width: 768px) {
  .app-detail__screenshots img.screenshot {
    max-height: 380px;
  }
}
.app-detail__store-link {
  margin: 0 auto;
  transform: scale(1.1);
  transition: transform 100ms ease;
}
.app-detail__store-link:hover {
  transform: scale(1.25);
}
.app-detail__store-link img { width: 160px; }
.app-detail__discontinued {
  margin: 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  font-size: 0.875rem;
  text-align: center;
}
.app-detail__info {
  margin-top: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .app-detail__info { margin-top: 0; margin-top: auto; margin-bottom: auto; }
}
.app-detail__info h3 {
  font-size: 1.5rem;
  padding-bottom: 1rem;
  font-weight: 600;
}
.app-detail__info p {
  color: var(--color-gray-800);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .app-detail__info p { font-size: 1.125rem; }
}
.app-detail__tags {
  padding: 2rem 0;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  background: var(--color-gray-100);
}
.footer__inner {
  padding: 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; }
}
.footer__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--color-gray-800);
}
.footer__socials .icon-link svg { width: 1.875rem; height: 1.875rem; }

.icon-link svg { display: block; fill: currentColor; }

/* === Career === */
.career {
  background: var(--color-white);
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.timeline__item {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
}
.timeline__marker {
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
}
.timeline__logo,
.timeline__badge {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--color-white);
}
.timeline__badge {
  background: var(--color-gray-100);
  border: 1px solid #e5e7eb;
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
}
/* connector line linking each marker to the next */
.timeline__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2.75rem;
  bottom: -1.25rem;
  width: 2px;
  background: #d1d5db;
}
.timeline__item:last-child .timeline__marker::after {
  display: none;
}
.timeline__card {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 3px rgba(17, 24, 39, 0.06);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .timeline__card:hover {
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08), 0 2px 4px rgba(17, 24, 39, 0.05);
    transform: translateY(-2px);
  }
}
.timeline__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}
.timeline__company {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-gray-800);
}
.timeline__dates {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  white-space: nowrap;
}
.timeline__role {
  font-size: 0.9375rem;
  color: #4b5563;
  font-weight: 500;
  margin-top: 0.125rem;
}
.timeline__location {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-top: 0.125rem;
}
.timeline__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
}
.timeline__note::before {
  content: "\2191";
  color: var(--color-teal-600);
  font-weight: 600;
}
.timeline__bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--color-gray-800);
  line-height: 1.6;
}
.timeline__bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
}
.timeline__bullets li:last-child {
  margin-bottom: 0;
}
.timeline__bullets li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.55rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #4b5563;
}
