/* ============================================================ */
/* style/site.css                                                */
/* Shared appearance of every page of the site.                  */
/* ============================================================ */


/* ============================================================ */
/* PALETTE AND BASE                                              */
/* ============================================================ */
:root {
  --ink: #111418;
  --ink-soft: #5b636d;
  --line: #e3e6ea;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --accent: #0a58ca;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }


/* ============================================================ */
/* TOP BAR, HOLDS THE LOGO                                       */
/* ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar-logo img { height: 26px; display: block; }

.topbar-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.topbar-nav a:hover { color: var(--ink); }


/* ============================================================ */
/* HOME, TWO COLUMNS                                             */
/* ============================================================ */
.home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* The identity block sits inside the height of the software development card. */
.identity { padding-top: 196px; }

.identity-name {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.identity-text {
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 34em;
}

.identity-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Row of actions centred on the width of the page. */
.actions-centered { justify-content: center; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: var(--surface);
}

.button:hover { border-color: var(--ink); }

.button-solid {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.button-solid:hover { background: #000000; }

/* Blue action button, same tone as the Discover more links.                       */
.button-accent {
  background: var(--accent);                /* filled with the site blue */
  border-color: var(--accent);              /* border follows the fill */
  color: #ffffff;                           /* label stays white on the blue */
}

.button-accent:hover { background: var(--accent); border-color: var(--accent); }

/* The label of the blue button stays white whatever rule comes later.          */
a.button-accent, a.button-accent:link, a.button-accent:visited,
a.button-accent:hover, a.button-accent:active { color: #ffffff; }     /* the blue does not change */

/* The About me button of the home carries the blue of the Discover more links.    */
.home .button-solid {
  background: var(--accent);               /* same tone as .area-card-enter */
  border-color: var(--accent);             /* border follows the fill */
  color: #ffffff;                          /* label stays white on the blue */
}

.home .button-solid:hover { background: var(--accent); }                            /* the blue does not change */


/* ============================================================ */
/* SOCIAL LOGOS, BOTTOM LEFT CORNER JUST ABOVE THE FOOTER        */
/* ============================================================ */
/* LinkedIn on the left, GitHub on the right, logo only.          */
.social-corner {
  max-width: var(--max);                   /* same width as the content above */
  margin: 0 auto;                          /* centred container, icons on its left */
  padding: 0 22px 15px;                    /* left edge aligned to the page content */
  display: flex;                           /* the two icons sit side by side */
  align-items: center;                     /* same optical line */
  justify-content: flex-start;             /* pinned to the left corner */
  gap: 14px;                               /* space between the two logos */
}

/* On the page carrying the logos the footer drops its own top spacing, so the     */
/* real distance between the logos and the footer edge is the 15px declared above. */
main:has(.social-corner) + .site-footer { margin-top: 0; }

.social-icon { display: inline-block; }    /* the link is as wide as its icon */

.social-icon img {
  width: 22px;                             /* small icon size */
  height: 22px;                            /* square, both logos are 512x512 */
  display: block;                          /* no baseline gap under the image */
}


/* ============================================================ */
/* AREA CARDS ON THE RIGHT OF THE HOME                           */
/* ============================================================ */
.areas-label {
  margin: 6px 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.area-card {
  display: block;
  min-height: 158px;                       /* the box keeps the height it had with the descriptive text */
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.area-card:hover { border-color: var(--ink); transform: translateY(-2px); }

.area-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.area-card-name { font-size: 28px; font-weight: 600; }                              /* medium large section name */

.area-card-enter {
  display: inline-block;                   /* the row accepts its own top spacing */
  margin-top: 40px;                        /* distance from the section name */
  font-size: 14px;
  color: var(--accent);
}


/* ============================================================ */
/* FIGURES TICKER, ONE CARD PER FIGURE, SCROLLING RIGHT TO LEFT   */
/* ============================================================ */
.ticker {
  background: transparent;
  overflow: hidden;
  padding: 54px 0 10px;
}

/* The track carries the same run twice, so a shift of exactly half its width      */
/* lands on the start of the second run and the loop never shows a seam.           */
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: ticker-slide 62s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.ticker-run { display: flex; gap: 12px; padding-right: 12px; }

/* One card per figure, same box as before, the whole content on a single line. */
.figure {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 210px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  white-space: nowrap;
}

.figure-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.figure-label {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.figure-centered { justify-content: center; }                                       /* content centred in its box */


/* ============================================================ */
/* PRINCIPLES STRIP                                              */
/* ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 22px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.principle-name { font-size: 16px; font-weight: 600; }

.principle-line {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}


/* ============================================================ */
/* AREA PAGE, PROJECT ROWS                                       */
/* ============================================================ */
.back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}

.back:hover { color: var(--ink); }

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 22px 10px;
}

.page-name {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.page-line {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60em;
}

.projects { list-style: none; margin: 0; padding: 0; }

.project {
  border-top: 1px solid var(--line);
}

.project:last-child { border-bottom: 1px solid var(--line); }

.project-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 4px;
  transition: background 0.16s ease;
}

.project-link:hover { background: var(--surface-soft); }

.project-name { font-size: 20px; font-weight: 600; }

.project-line {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62em;
}

.project-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Bullet list of what the project does, under the repository name. */
.project-bullets { display: block; margin-top: 12px; }

.project-bullet {
  position: relative;                      /* holds the round marker */
  display: block;                          /* one bullet per row */
  margin-top: 9px;                         /* space between two bullets */
  padding-left: 18px;                      /* room for the marker */
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62em;
}

.project-bullet::before {
  content: "";                             /* the round marker of the bullet */
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-enter { font-size: 14px; color: var(--accent); white-space: nowrap; }


/* ============================================================ */
/* PROJECT PAGE                                                  */
/* ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 44px;
  align-items: start;
}

.detail-block { margin-bottom: 34px; }

.detail-block h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.detail-block p, .detail-block li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.detail-block ul { margin: 10px 0 0; padding-left: 20px; }

.fact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--surface-soft);
}

.fact { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; }

.fact + .fact { border-top: 1px solid var(--line); }

.fact-name { color: var(--ink-soft); }

.fact-value { font-weight: 600; text-align: right; }


/* ============================================================ */
/* ABOUT AND EXPERIENCE                                          */
/* ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: auto;                            /* the attributes in the tag give the box, the height follows the width */
  border-radius: 20px;
  display: block;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.68;
}

.about-text a { color: var(--accent); }

.timeline-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.timeline-title {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Title of the column, under the small label. */
.timeline-name {
  margin: 0 0 30px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline { position: relative; padding-left: 26px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.step { position: relative; padding-bottom: 30px; }

.step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.step-when { font-size: 13px; color: var(--ink-soft); }

.step-what { margin: 4px 0 0; font-size: 17px; font-weight: 600; }

.step-line { margin: 6px 0 0; font-size: 15px; line-height: 1.58; color: var(--ink-soft); }

/* Company name, right under the role. */
.step-company { margin: 2px 0 0; font-size: 15px; font-weight: 600; }

/* Bullet list of what was done in that role. */
.step-bullets {
  margin-top: 14px;                        /* distance from the two meta lines */
  display: flex;                           /* one bullet per row */
  flex-direction: column;                  /* stacked vertically */
  gap: 9px;                                /* space between two bullets */
}

.step-bullet {
  position: relative;                      /* holds the round marker */
  margin: 0;                               /* the gap of the list handles the spacing */
  padding-left: 18px;                      /* room for the marker */
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.step-bullet::before {
  content: "";                             /* the round marker of the bullet */
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Skill pills of that role. */
.step-skills {
  margin-top: 14px;                        /* distance from the bullet list */
  display: flex;                           /* pills flow in a row */
  flex-wrap: wrap;                         /* they wrap on narrow columns */
  gap: 8px;                                /* space between two pills */
}

.step-skill {
  display: inline-flex;                    /* label and mark on one line */
  align-items: center;                     /* vertically centred */
  padding: 5px 12px;
  border-radius: 980px;                    /* full round ends */
  background: rgba(10, 88, 202, 0.08);     /* the site blue, very light */
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

.step-skill::after { content: "\2713"; margin-left: 6px; font-size: 11px; }          /* check mark after the label */


/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  margin-top: 40px;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 22px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-name { font-size: 17px; font-weight: 600; }

.footer-claim {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 30em;
}

.footer-heading {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.footer-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }

.footer-list a:hover { color: var(--accent); }

/* Copyright and the privacy link sit side by side on the left of the base row. */
.footer-base-group { display: inline-flex; align-items: center; gap: 20px; }

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px 34px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}


/* ============================================================ */
/* MOBILE FIRST ADAPTATION                                       */
/* ============================================================ */
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 44px; padding-top: 46px; }
  .identity { padding-top: 0; }
  .identity-name { font-size: 34px; white-space: normal; }
  .principles { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .timeline-columns { grid-template-columns: 1fr; gap: 34px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .page-name { font-size: 30px; }
  .project-link { grid-template-columns: 1fr; gap: 10px; }
  .metric-value { font-size: 24px; }
}
