/*
 * Site-specific styles for faresjalled.org.
 * Kept separate from the vendor files (Bootstrap etc.) so that updating
 * a library never wipes out the site's own look.
 */

/* ---------- Readability ---------- */

/* Body text: #868e96 on white is only 3.3:1 contrast; #6c757d passes WCAG AA (4.7:1). */
body {
  color: #6c757d;
}

/* Sidebar links: 50% white on green was 2.3:1. Use full white and mark the
   active section with a darker pill instead of a brighter colour. */
#sideNav .navbar-nav .nav-link {
  color: #fff;
  border-radius: .25rem;
}
#sideNav .navbar-nav .nav-link:hover,
#sideNav .navbar-nav .nav-link:focus {
  background-color: rgba(0, 0, 0, .12);
}
#sideNav .navbar-nav .nav-link.active {
  background-color: rgba(0, 0, 0, .25);
}

/* "M.Sc." next to the name */
.degree {
  font-size: 70px;
}
@media (max-width: 575px) {
  .degree {
    font-size: 48px;
  }
}

/* ---------- Small link "pills" (credentials, team pages, papers) ---------- */

.GFG {
  display: inline-block;
  background-color: whitesmoke;
  color: green;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.GFG:hover,
.GFG:focus {
  background-color: #e3eed6;
  color: #2f5a00;
  text-decoration: none;
}

/* Plain bullet lists (Learn IT, Interests) with breathing room between items */
.spaced-list li {
  margin-bottom: 1rem;
}

/* ---------- Skills logos ---------- */

.skill-logos .list-inline-item {
  margin: 0 1rem 1.25rem 0;
  vertical-align: middle;
}

/* ---------- Language bars ---------- */

/* One bar per language, no grey track behind it: the green bar alone shows the level
   (set per language with style="--level: 80%"). */
.lang-bars {
  max-width: 52rem;
}
.bar {
  margin-bottom: .6rem;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}

.bar::before {
  content: attr(data-skill);
  display: block;
  box-sizing: border-box;
  width: var(--level, 50%);
  min-width: 7.5rem;
  padding: 7px 14px;
  border-radius: 2rem;
  background: linear-gradient(90deg, #3d6b00 0%, #568203 55%, #7fb02a 100%);
  box-shadow: 0 3px 10px rgba(61, 107, 0, .25);
  white-space: nowrap;
  overflow: hidden;
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1), min-width 1.2s cubic-bezier(.2, .8, .2, 1);
}

/* Bars start empty and fill when the Languages section scrolls into view
   (js/site.js adds/removes this class; without JS the bars are just full). */
.bars-pending .bar::before {
  width: 0;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bar::before {
    transition: none;
  }
}

/* ---------- Support me ---------- */

.moroccan-teapot-container {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #fef7e0 0%, #f5e6ca 100%);
  border-radius: 15px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 15px rgba(212, 175, 55, .3);
  max-width: 280px;
  margin: 3rem auto 0;
}

.moroccan-teapot-image {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4af37;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.moroccan-tea-btn {
  display: inline-block;
  background-color: green;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 8px rgba(0, 100, 0, .3);
  font-family: Arial, sans-serif;
}

.moroccan-tea-btn:hover,
.moroccan-tea-btn:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 100, 0, .4);
}

/* ---------- Smooth scrolling (replaces the jQuery easing plugin) ---------- */

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Skills logos: one height for all, width follows the logo ---------- */

.skill-logos img {
  height: 56px;
  width: auto;
  max-width: 100%;
}

/* ---------- Visitor counter (hidden until the count has loaded) ---------- */

[data-visitor-bar]:not(.is-ready) {
  display: none !important;
}

.visitor-chip {
  margin: 0 auto 1rem;
  padding: .25rem .75rem;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, .2);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid #dee2e6;
  font-size: .9rem;
}
.visitor-bar {
  font-weight: 600;
}
.visitor-note {
  font-weight: 400;
}

/* ---------- Category colours (book covers, library tiles) ---------- */

.cat-systems    { --cat: #3d6b00; }
.cat-languages  { --cat: #1d5f9e; }
.cat-web        { --cat: #a8420c; }
.cat-databases  { --cat: #6b3fa0; }
.cat-frameworks { --cat: #1f6f6b; }
.cat-mobile     { --cat: #a3214f; }
.cat-science    { --cat: #6f5200; }

/* ---------- Learn IT section (CV page) ---------- */

.learn-lead {
  font-size: 1.1rem;
  max-width: 50rem;
}

.learn-heading {
  margin: 3rem 0 1rem;
  font-size: 1.75rem;
}
.learn-count {
  font-size: 1rem;
  color: #6c757d;
  vertical-align: middle;
}

/* Learning paths: cards side by side, steps as numbered stations */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 100%), 1fr));
  gap: 1rem;
}
.path {
  position: relative;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e3e7ea;
  box-shadow: 0 6px 18px rgba(33, 37, 41, .06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.path::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cat), #7fb02a);
}
.path:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(33, 37, 41, .12);
}
.path-head {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .75rem;
}
.path-icon {
  flex: 0 0 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  font-size: 1.45rem;
}
.path-title {
  font-size: 1.3rem;
  line-height: 1.1;
  margin-bottom: 0;
  color: var(--cat);
}
.path-blurb {
  font-size: .88rem;
  margin-bottom: 0;
  line-height: 1.35;
}
.path-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.path-steps li {
  counter-increment: step;
  position: relative;
  padding: .3rem 0 .3rem 2.1rem;
}
.path-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .3rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--cat);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.path-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .72rem;
  top: 1.85rem;
  bottom: -.3rem;
  width: 2px;
  background: color-mix(in srgb, var(--cat) 30%, #fff);
}
.path-steps a {
  font-weight: 600;
}

.library-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}
.library-tile {
  display: block;
  border: 1px solid #dee2e6;
  border-left: 6px solid var(--cat);
  border-radius: .5rem;
  padding: .75rem 1rem;
  color: #6c757d;
}
.library-tile:hover,
.library-tile:focus {
  text-decoration: none;
  color: #495057;
  background-color: #f8f9fa;
}
.library-tile-name {
  display: block;
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--cat);
}
.library-tile-books {
  font-size: .85rem;
}

.library-btn {
  display: inline-block;
  background-color: #568203;
  color: #fff;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 2rem;
}
.library-btn:hover,
.library-btn:focus {
  color: #fff;
  background-color: #3f6002;
  text-decoration: none;
}

/* ---------- IT library page (learn-it.html) ---------- */

.library section.resume-section {
  min-height: 0;
}
.library-title {
  font-size: 4.5rem;
  line-height: 1;
}
.library-lead {
  font-size: 1.1rem;
  max-width: 50rem;
}
.library-credit {
  font-size: .85rem;
  max-width: 50rem;
  margin: 1.5rem 0 0;
}

.book-search {
  width: 100%;
  max-width: 32rem;
  padding: .6rem 1rem;
  border: 2px solid #ced4da;
  border-radius: 2rem;
  font-size: 1rem;
}
.book-search:focus {
  outline: none;
  border-color: #568203;
}
.book-search-empty {
  margin-top: .75rem;
  font-weight: 600;
}

.library-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.library-chip {
  border: 2px solid var(--cat);
  border-radius: 2rem;
  padding: .2rem .8rem;
  color: var(--cat);
  font-weight: 600;
  font-size: .9rem;
}
.library-chip span {
  opacity: .75;
}
.library-chip:hover,
.library-chip:focus {
  background-color: var(--cat);
  color: #fff;
  text-decoration: none;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}
.book-body .GFG {
  white-space: normal;
}

.book {
  display: flex;
  gap: 1rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: 1rem;
  scroll-margin-top: 4rem;
}
.book:target {
  border-color: var(--cat);
  box-shadow: 0 0 0 3px var(--cat);
}

.book-cover {
  flex: 0 0 4.5rem;
  height: 6.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .5rem .4rem .4rem .7rem;
  border-radius: 2px 6px 6px 2px;
  background-color: var(--cat);
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .25), 0 2px 4px rgba(0, 0, 0, .2);
  color: #fff;
  overflow: hidden;
}
.book-cover-title {
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.book-cover-title--sm {
  font-size: .78rem;
}
.book-cover-title--xs {
  font-size: .64rem;
}
.book-cover-sub {
  font-size: .55rem;
  line-height: 1.1;
  opacity: .9;
}

.book-body {
  min-width: 0;
}
.book-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}
.book-meta {
  font-size: .8rem;
  margin-bottom: .4rem;
}
.book-desc {
  font-size: .95rem;
  margin-bottom: .6rem;
}
.book-badge {
  display: inline-block;
  vertical-align: middle;
  padding: .05rem .5rem;
  border-radius: 1rem;
  background-color: #e3eed6;
  color: #2f5a00;
  font-family: 'Open Sans', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: none;
}

.nav-back {
  opacity: .85;
}

/* ---------- Click-to-load Spotify player ---------- */

.embed-facade {
  border: 1px dashed #adb5bd;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: #f8f9fa;
}
.embed-facade-btn {
  border: 0;
  border-radius: 2rem;
  padding: .7rem 1.5rem;
  background-color: #1db954;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.embed-facade-btn:hover,
.embed-facade-btn:focus {
  background-color: #1ed760;
}
.embed-facade-note {
  font-size: .85rem;
  margin: 1rem 0 0;
}

/* ---------- Support me ---------- */

.support-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 3rem;
}
.support-grid .moroccan-teapot-container {
  margin: 0;
  max-width: 300px;
}
.tea-title {
  font-size: 1.6rem;
  margin-bottom: .25rem;
}
.tea-text {
  font-size: .9rem;
  color: #5a4a2a;
}
.tea-small {
  font-size: .8rem;
  color: #5a4a2a;
  margin: .75rem 0 0;
}
.tea-paypal {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(212, 175, 55, .5);
}
.tea-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
.tea-amount {
  border: 2px solid green;
  border-radius: 1rem;
  padding: .15rem .6rem;
  background-color: #fff;
  color: green;
  font-weight: 700;
  font-size: .85rem;
}
.tea-amount:hover,
.tea-amount:focus {
  background-color: green;
  color: #fff;
  text-decoration: none;
}

.free-support {
  flex: 1 1 18rem;
}
.free-support-title {
  font-size: 1.6rem;
}
.free-support li {
  margin-bottom: .75rem;
}
.link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: #568203;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover,
.link-btn:focus {
  text-decoration: underline;
}

/* ---------- Visitor count in the phone top bar ---------- */

.visitor-chip-mobile {
  margin-left: auto;
  margin-right: .75rem;
  padding: .15rem .6rem;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, .2);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- References ---------- */

.ref {
  font-size: .75em;
  vertical-align: super;
  line-height: 0;
  font-weight: 600;
}
.references {
  padding-left: 1.5rem;
  font-size: .9rem;
}
.references li {
  margin-bottom: .4rem;
  scroll-margin-top: 4rem;
}
.references li:target {
  background-color: #e3eed6;
}
.references-note {
  font-size: .85rem;
}
.library-more {
  font-size: .95rem;
  margin: 1.25rem 0 0;
}

/* =====================================================================================
   2026-11 redesign: news ticker, typing hero, cards, IT library, contact form
   ===================================================================================== */

/* ---------- News ticker (top of the page) ---------- */
.ticker {
  position: -webkit-sticky;
  position: sticky;
  top: 54px;                 /* below the phone menu bar */
  z-index: 1020;
  overflow: hidden;
  background: linear-gradient(90deg, #2f5a00, #568203 50%, #2f5a00);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: inline-flex;
  padding: .55rem 0;
}
.ticker-track.is-moving {
  animation: ticker-move 60s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  padding: 0 2.5rem;
  position: relative;
}
.ticker-item::after {
  content: "•";
  position: absolute;
  right: -.2rem;
  opacity: .6;
}
.ticker a,
.ticker .link-btn {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
@media (min-width: 992px) {
  .ticker { top: 0; }        /* computers: the menu is on the left, the ticker sits at the very top */
}
@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* without the moving copy (no JS or "reduce motion"): the items wrap normally */
.ticker-track:not(.is-moving) {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
  row-gap: .25rem;
  padding: .55rem 1rem;
}

/* ---------- Hero ---------- */
.hero-name {
  animation: hero-in .9s ease-out both;
}
.hero-hello {
  animation: hero-in .9s ease-out .1s both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-typing {
  font-family: 'Saira Extra Condensed', serif;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #495057;
  margin: .25rem 0 .75rem;
  min-height: 2.6rem;
}
.typed {
  color: #568203;
  font-weight: 700;
}
.typed-caret {
  display: inline-block;
  width: 3px;
  height: 1.6rem;
  margin-left: 3px;
  vertical-align: -.2rem;
  background: #568203;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.hero-msg {
  font-family: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border: 2px solid #568203;
  border-radius: 2rem;
  background: #fff;
  color: #3d6b00;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-hero:hover,
.btn-hero:focus {
  text-decoration: none;
  color: #fff;
  background: #568203;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(86, 130, 3, .3);
}
.btn-hero--primary {
  background: linear-gradient(135deg, #3d6b00, #6a9a12);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(61, 107, 0, .3);
}
.btn-hero--primary:hover,
.btn-hero--primary:focus {
  background: linear-gradient(135deg, #2f5a00, #568203);
}
.btn-hero:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.hero-visitors {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 2rem;
  background: #eef5e4;
  color: #2f5a00;
  font-size: .95rem;
}

/* ---------- Experience: the current position ---------- */
.resume-item--current {
  position: relative;
  padding: 1rem 1.25rem .25rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f3f8ec 0%, #fff 70%);
  border: 1px solid #dfeccd;
}
.now-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: .4rem;
  padding: .1rem .55rem;
  border-radius: 1rem;
  background: #568203;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.maser-logo {
  display: block;
  height: 35px;
  width: auto;
  margin: 0 0 .6rem;
}

/* ---------- Skills: official logo + product name, hover lift ---------- */
.skill-logos .list-inline-item img,
.logo-combo {
  transition: transform .2s ease, filter .2s ease;
}
.skill-logos .list-inline-item:hover img,
.logo-combo:hover {
  transform: translateY(-3px) scale(1.04);
}
.logo-combo {
  display: inline-flex !important;
  align-items: center;
  gap: .55rem;
}
.logo-combo img {
  width: auto;
}
.logo-combo-name {
  font-size: 1.65rem;
  line-height: 1;
  white-space: nowrap;
}
.logo-combo-name--ms {
  font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #505050;
}
.logo-combo-name--zabbix {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: .06em;
  color: #d40000;
  font-size: 1.9rem;
}
.logo-combo img {
  height: 50px;
}

/* ---------- Awards ---------- */
.award-new {
  font-weight: 600;
  color: #495057;
}
.group-photo {
  margin: 2.5rem 0 0;
  max-width: 60rem;
}
.group-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(33, 37, 41, .18);
}
.group-photo figcaption {
  margin-top: .75rem;
  font-size: .95rem;
}
.photo-credit {
  display: block;
  font-size: .75rem;
  color: #868e96;
}

/* ---------- IT library (inside Learn IT) ---------- */
.library-intro {
  max-width: 52rem;
}
.library-tools {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 1rem 0 1.25rem;
}
.library-tools[hidden] {
  display: none;
}
.library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.library-tab {
  --cat: #568203;
  border: 2px solid var(--cat);
  border-radius: 2rem;
  padding: .3rem .85rem;
  background: #fff;
  color: var(--cat);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.library-tab span {
  display: inline-block;
  min-width: 1.4rem;
  margin-left: .2rem;
  padding: 0 .35rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--cat) 14%, #fff);
  font-size: .78rem;
}
.library-tab:hover {
  transform: translateY(-1px);
}
.library-tab.is-active {
  background: var(--cat);
  color: #fff;
}
.library-tab.is-active span {
  background: rgba(255, 255, 255, .25);
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  gap: 1.1rem;
}
.book-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e3e7ea;
  box-shadow: 0 6px 16px rgba(33, 37, 41, .05);
  scroll-margin-top: 5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.book-card[hidden] {
  display: none;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(33, 37, 41, .12);
  border-color: color-mix(in srgb, var(--cat) 40%, #fff);
}
.book-card.is-target,
.book-card:target {
  border-color: var(--cat);
  box-shadow: 0 0 0 3px var(--cat), 0 14px 30px rgba(33, 37, 41, .12);
}
.book-card .book-cover {
  transition: transform .3s ease;
}
.book-card:hover .book-cover {
  transform: rotate(-4deg) scale(1.05);
}
.book-card .book-title {
  font-size: 1.35rem;
  margin-bottom: .1rem;
  color: #343a40;
}
.book-card .book-meta {
  font-size: .75rem;
  color: var(--cat);
  font-weight: 600;
  margin-bottom: .35rem;
}
.book-card .book-desc {
  font-size: .88rem;
  line-height: 1.45;
  margin-bottom: .55rem;
}
.book-link {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  color: var(--cat);
  font-size: .82rem;
  font-weight: 700;
}
.book-link:hover,
.book-link:focus {
  background: var(--cat);
  color: #fff;
  text-decoration: none;
}
.library-more-btn {
  display: block;
  margin: 1.25rem auto 0;
  padding: .6rem 1.5rem;
  border: 2px solid #568203;
  border-radius: 2rem;
  background: #fff;
  color: #3d6b00;
  font-weight: 700;
  cursor: pointer;
}
.library-more-btn:hover,
.library-more-btn:focus {
  background: #568203;
  color: #fff;
}

/* ---------- Learning platforms and book collections (cards) ---------- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
}
.res-card {
  --c: #568203;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e3e7ea;
  box-shadow: 0 6px 16px rgba(33, 37, 41, .05);
  color: #6c757d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.res-card:hover,
.res-card:focus {
  text-decoration: none;
  color: #6c757d;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(33, 37, 41, .12);
  border-color: color-mix(in srgb, var(--c) 45%, #fff);
}
.res-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  background: var(--c);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.res-name {
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #343a40;
}
.res-ref {
  font-family: 'Open Sans', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  vertical-align: super;
  color: #868e96;
}
.res-desc {
  font-size: .88rem;
  line-height: 1.45;
  flex: 1;
}
.res-go {
  font-size: .82rem;
  font-weight: 700;
  color: var(--c);
}

/* ---------- References: small, at the bottom ---------- */
.references-box {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  color: #868e96;
}
.references-title {
  font-size: 1rem;
  color: #868e96;
  margin-bottom: .5rem;
}
.references-box .references {
  font-size: .72rem;
  line-height: 1.5;
  columns: 2 22rem;
  column-gap: 2rem;
}
.references-box .references li {
  margin-bottom: .2rem;
  break-inside: avoid;
}
.references-box .references-note {
  font-size: .7rem;
  margin: .5rem 0 0;
}

/* ---------- Support me: free ways to help ---------- */
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.help-card {
  --c: #568203;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, #fff) 0%, #fff 60%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
  box-shadow: 0 6px 16px rgba(33, 37, 41, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(33, 37, 41, .12);
}
.help-card--linkedin { --c: #0a66c2; }
.help-card--message  { --c: #b8860b; }
.help-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.help-title {
  font-size: 1.35rem;
  margin: .25rem 0 0;
}
.help-text {
  font-size: .88rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.help-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  padding: .45rem 1rem;
  border: 0;
  border-radius: 2rem;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.help-btn:hover,
.help-btn:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--c) 35%, transparent);
}

/* ---------- Contact form (dialog) ---------- */
.contact-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  color: #495057;
}
.contact-dialog::backdrop {
  background: rgba(20, 30, 10, .55);
  backdrop-filter: blur(3px);
}
.contact-dialog[open] {
  animation: dialog-in .25s ease-out;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.contact-form {
  position: relative;
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(180deg, #f3f8ec 0, #fff 7rem);
}
.contact-close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .06);
  font-size: 1.5rem;
  line-height: 1;
  color: #495057;
  cursor: pointer;
}
.contact-close:hover,
.contact-close:focus {
  background: rgba(0, 0, 0, .12);
}
.contact-title {
  font-size: 2.2rem;
  margin: 0 0 .25rem;
}
.contact-lead {
  font-size: .92rem;
  margin-bottom: 1rem;
}
.contact-row {
  margin-bottom: .8rem;
}
.contact-row label {
  display: block;
  margin-bottom: .2rem;
  font-size: .85rem;
  font-weight: 700;
  color: #495057;
}
.contact-row small {
  font-weight: 400;
  color: #868e96;
}
.contact-row input,
.contact-row select,
.contact-row textarea {
  width: 100%;
  padding: .55rem .8rem;
  border: 2px solid #dee2e6;
  border-radius: .7rem;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: #343a40;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-row textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-row input:focus,
.contact-row select:focus,
.contact-row textarea:focus {
  outline: none;
  border-color: #568203;
  box-shadow: 0 0 0 4px rgba(86, 130, 3, .15);
}
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status {
  min-height: 1.4rem;
  margin: .25rem 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
}
.contact-status.is-ok {
  color: #2f7a00;
}
.contact-status.is-error {
  color: #b02a37;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}
.contact-alt {
  font-size: .88rem;
  font-weight: 600;
}
.contact-privacy {
  margin: 1rem 0 0;
  font-size: .75rem;
  color: #868e96;
}

/* ---------- Fade-in while scrolling (only with JavaScript, never for "reduce motion") ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out, transform .6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-name,
  .hero-hello,
  .contact-dialog[open] {
    animation: none;
  }
  .typed-caret {
    animation: none;
  }
  .path,
  .book-card,
  .res-card,
  .help-card,
  .btn-hero {
    transition: none;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 575px) {
  .hero-typing {
    font-size: 1.45rem;
    min-height: 3.8rem;
  }
  .resume-item--current {
    margin-left: -.5rem;
    margin-right: -.5rem;
    padding: .9rem .9rem .1rem;
  }
  .contact-form {
    padding: 1.4rem 1.1rem 1rem;
  }
  .contact-title {
    font-size: 1.8rem;
  }
  .book-card {
    padding: .85rem;
  }
}

/* =====================================================================================
   2026-11 round 2: animations in every section, science fun, visitor stats, likes
   ===================================================================================== */

/* ---------- Scientific Assistant: same size as the other lines ---------- */
.maser-logo {
  display: inline-block;
  height: 21px;
  width: auto;
  margin: 0 .5rem .15rem 0;
  vertical-align: middle;
}
.now-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .3rem;
  border-radius: 50%;
  background: #b7f36b;
  vertical-align: .05rem;
  animation: now-pulse 1.6s ease-out infinite;
}
@keyframes now-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(183, 243, 107, .9); }
  100% { box-shadow: 0 0 0 .5rem rgba(183, 243, 107, 0); }
}

/* ---------- Section titles: emoji that floats, pops in and a growing underline ---------- */
.sec-title {
  position: relative;
  padding-bottom: .4rem;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 0;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 252, 214, .95), rgba(255, 255, 255, 0)) no-repeat,
    linear-gradient(90deg, #3d6b00, #7fb02a, #f4c542);
  background-size: 2.2rem 100%, 100% 100%;
  background-position: -2.5rem 0, 0 0;
  transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s;
}
.in-view .sec-title::after {
  animation: photon-run 3.2s ease-in-out 1.2s infinite;
}
@keyframes photon-run {
  0%   { background-position: -2.5rem 0, 0 0; }
  60%, 100% { background-position: 6rem 0, 0 0; }
}
.in-view .sec-title::after,
.no-observer .sec-title::after {
  width: 5.5rem;
}
.sec-emoji {
  display: inline-block;
  margin-right: .15em;
  font-size: .85em;
  transform-origin: 50% 80%;
  animation: emoji-float 3.2s ease-in-out infinite;
}
.in-view .sec-emoji {
  animation: emoji-pop .8s cubic-bezier(.3, 1.6, .5, 1) both, emoji-float 3.2s ease-in-out .8s infinite;
}
@keyframes emoji-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-5px) rotate(-6deg); }
}
@keyframes emoji-pop {
  0%   { transform: scale(0) rotate(-40deg); }
  70%  { transform: scale(1.25) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

/* staggered fade-in (js/site.js sets --i on each item) */
.reveal.is-visible {
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* ---------- Hero: atom, maser wave, fun facts ---------- */
#about {
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.atom {
  position: absolute;
  right: 7%;
  top: 30%;
  width: 210px;
  height: 210px;
  margin-top: -105px;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}
.atom-nucleus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, #f4c542 45%, #c98b00);
  box-shadow: 0 0 25px 6px rgba(244, 197, 66, .55);
  animation: nucleus-glow 2.4s ease-in-out infinite;
}
@keyframes nucleus-glow {
  50% { transform: scale(1.15); box-shadow: 0 0 35px 12px rgba(244, 197, 66, .7); }
}
.atom-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(86, 130, 3, .45);
  border-radius: 50%;
  transform: rotateX(70deg) rotateZ(0deg);
  animation: orbit-spin 6s linear infinite;
}
.atom-orbit:nth-child(3) { transform: rotateX(70deg) rotateY(60deg); animation-name: orbit-spin-2; animation-duration: 7.5s; }
.atom-orbit:nth-child(4) { transform: rotateX(70deg) rotateY(-60deg); animation-name: orbit-spin-3; animation-duration: 9s; }
.atom-electron {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e9ffd0, #568203);
  box-shadow: 0 0 12px rgba(127, 176, 42, .9);
}
@keyframes orbit-spin   { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes orbit-spin-2 { to { transform: rotateX(70deg) rotateY(60deg) rotateZ(360deg); } }
@keyframes orbit-spin-3 { to { transform: rotateX(70deg) rotateY(-60deg) rotateZ(360deg); } }
@media (max-width: 1199px) {
  .atom { display: none; }
}

.maser-wave {
  display: block;
  width: min(32rem, 100%);
  height: 26px;
  margin: -.3rem 0 .6rem;
  overflow: visible;
}
.maser-wave path {
  fill: none;
  stroke: #6a9a12;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 22 10;
  animation: wave-run 1.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(127, 176, 42, .55));
}
@keyframes wave-run {
  to { stroke-dashoffset: -56; }
}

.fun-fact {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  max-width: 44rem;
  margin: -1.5rem 0 2.5rem;
  padding: .8rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fffbe6, #f3f8ec);
  border: 1px solid #f1e3a6;
  box-shadow: 0 6px 16px rgba(33, 37, 41, .06);
  font-size: .95rem;
  color: #5a4a2a;
}
.fun-fact-icon {
  font-size: 1.5rem;
  line-height: 1;
  animation: bulb 2.6s ease-in-out infinite;
}
@keyframes bulb {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(244, 197, 66, 0)); transform: rotate(0); }
  50%      { filter: drop-shadow(0 0 10px rgba(244, 197, 66, .9)); transform: rotate(-10deg); }
}
.fun-fact-text {
  transition: opacity .45s ease, transform .45s ease;
}
.fun-fact-text.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- Skills, awards, languages: small extra life ---------- */
.skill-logos .list-inline-item:hover img {
  animation: logo-wiggle .5s ease-in-out;
}
@keyframes logo-wiggle {
  25% { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
  75% { transform: translateY(-3px) rotate(4deg) scale(1.05); }
}
.fa-trophy {
  animation: trophy-shine 3s ease-in-out infinite;
}
@keyframes trophy-shine {
  0%, 80%, 100% { transform: scale(1) rotate(0); filter: none; }
  88%           { transform: scale(1.3) rotate(-12deg); filter: drop-shadow(0 0 6px rgba(244, 197, 66, .9)); }
}
.group-photo img {
  transition: transform .5s ease, box-shadow .5s ease;
}
.group-photo:hover img {
  transform: scale(1.015) rotate(-.3deg);
  box-shadow: 0 20px 44px rgba(33, 37, 41, .25);
}
.bar::before {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #3d6b00 0%, #568203 35%, #7fb02a 50%, #568203 65%, #3d6b00 100%);
  animation: bar-shine 4s linear infinite;
}
@keyframes bar-shine {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.resume-item {
  border-radius: .75rem;
  transition: background-color .3s ease, transform .3s ease;
}
.resume-item:hover {
  background-color: #f6faf0;
  transform: translateX(4px);
}

/* ---------- Interests: a swimmer crossing the pool ---------- */
.pool {
  position: relative;
  height: 64px;
  max-width: 40rem;
  margin: 2rem 0 0;
  border-radius: 1rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .5) 46px 48px),
    linear-gradient(180deg, #7fd3f7, #2a9fd6);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .15);
}
.pool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 30px 6px at 50% 50%, rgba(255, 255, 255, .35), transparent) 0 0 / 60px 20px;
  animation: pool-ripple 3s linear infinite;
}
@keyframes pool-ripple {
  to { background-position: 60px 20px; }
}
.swimmer {
  position: absolute;
  top: 12px;
  left: -50px;
  font-size: 2rem;
  animation: swim 9s linear infinite;
}
@keyframes swim {
  0%   { left: -50px; transform: scaleX(-1) translateY(0); }
  25%  { transform: scaleX(-1) translateY(-3px); }
  50%  { transform: scaleX(-1) translateY(2px); }
  75%  { transform: scaleX(-1) translateY(-3px); }
  100% { left: 100%; transform: scaleX(-1) translateY(0); }
}
.pool-fish {
  position: absolute;
  top: 30px;
  right: -40px;
  font-size: 1.3rem;
  animation: fish 12s linear infinite;
  animation-delay: -4s;
}
@keyframes fish {
  from { right: -40px; }
  to   { right: 100%; }
}
.pool-magnet {
  position: absolute;
  bottom: 6px;
  left: 70%;
  font-size: 1.1rem;
  animation: magnet-bob 2.4s ease-in-out infinite;
}
@keyframes magnet-bob {
  50% { transform: translateY(-6px) rotate(15deg); }
}

/* ---------- Support: steaming tea ---------- */
.tea-visual {
  position: relative;
  width: 120px;
  margin: 0 auto;
}
.steam {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 34px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  opacity: 0;
  z-index: 2;
  animation: steam-rise 3s ease-out infinite;
}
.steam:nth-child(1) { margin-left: -22px; animation-delay: .4s; }
.steam:nth-child(3) { margin-left: 12px; animation-delay: 1.4s; }
@keyframes steam-rise {
  0%   { transform: translateY(20px) scaleX(1); opacity: 0; }
  30%  { opacity: .9; }
  100% { transform: translateY(-30px) scaleX(2.2) rotate(12deg); opacity: 0; }
}

/* ---------- Scroll progress, rocket to the top, floating like ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1100;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #3d6b00, #7fb02a, #f4c542, #a03cc8);
}
.to-top,
.float-like {
  position: fixed;
  right: 1.1rem;
  z-index: 1050;
  border: 0;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.to-top {
  bottom: 1.1rem;
  width: 3rem;
  height: 3rem;
  background: #fff;
  font-size: 1.5rem;
}
.to-top[hidden] {
  display: none;
}
.to-top:hover,
.to-top:focus {
  transform: translateY(-4px) rotate(-8deg);
}
.to-top.is-launching {
  animation: rocket-launch .8s ease-in forwards;
}
@keyframes rocket-launch {
  30%  { transform: translateY(6px); }
  100% { transform: translateY(-110vh); opacity: 0; }
}
.float-like {
  bottom: 4.9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem .45rem .65rem;
  background: linear-gradient(135deg, #ff5f7e, #ff3d6e);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.float-like:hover,
.float-like:focus {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(255, 61, 110, .45);
}
.float-like-heart {
  display: inline-block;
  font-size: 1.3rem;
  animation: heart-beat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .8));
}
@keyframes heart-beat {
  0%, 40%, 100% { transform: scale(1); }
  10%, 30%      { transform: scale(1.25); }
  20%           { transform: scale(1.05); }
}
.float-like.is-liked {
  background: linear-gradient(135deg, #ff3d6e, #c2185b);
}
@media (max-width: 991px) {
  .float-like { bottom: 4.6rem; right: .8rem; }
  .to-top { right: .8rem; bottom: .9rem; }
}

/* emoji burst (likes, reactions) */
.burst {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  font-size: 1.6rem;
  animation: burst-fly 1.1s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes burst-fly {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Visitors & likes ---------- */
.stats-section {
  min-height: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(127, 176, 42, .12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(160, 60, 200, .10), transparent 45%),
    linear-gradient(180deg, #fff, #f6faf0);
}
.stats-lead {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stats-grid[hidden] {
  display: none;
}
.stat-card {
  --c1: #3d6b00;
  --c2: #7fb02a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: 1.2rem 1.2rem 1rem;
  border-radius: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c1) 35%, transparent);
  overflow: hidden;
  transition: transform .3s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: rotate(20deg);
  animation: card-shine 5s ease-in-out infinite;
}
.stat-card:nth-child(2)::after { animation-delay: 1s; }
.stat-card:nth-child(3)::after { animation-delay: 2s; }
.stat-card:nth-child(4)::after { animation-delay: 3s; }
.stat-card:nth-child(5)::after { animation-delay: 4s; }
@keyframes card-shine {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}
.stat-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}
.stat-card--today { --c1: #f59e0b; --c2: #fbbf24; }
.stat-card--month { --c1: #0ea5e9; --c2: #38bdf8; }
.stat-card--year  { --c1: #7c3aed; --c2: #a78bfa; }
.stat-card--total { --c1: #3d6b00; --c2: #7fb02a; }
.stat-card--likes { --c1: #e11d48; --c2: #fb7185; }
.stat-emoji {
  font-size: 1.8rem;
  line-height: 1;
  animation: emoji-float 3s ease-in-out infinite;
}
.stat-number {
  font-family: 'Saira Extra Condensed', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.stat-label {
  font-size: .85rem;
  font-weight: 600;
  opacity: .95;
}

.reactions-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem .6rem .8rem;
  border: 2px solid #e3e7ea;
  border-radius: 2rem;
  background: #fff;
  color: #495057;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(33, 37, 41, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.reaction:hover,
.reaction:focus {
  transform: translateY(-3px) scale(1.04);
  border-color: #7fb02a;
  box-shadow: 0 10px 20px rgba(33, 37, 41, .12);
}
.reaction-emoji {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .2s ease;
}
.reaction:hover .reaction-emoji {
  transform: scale(1.3) rotate(-10deg);
}
.reaction-count {
  min-width: 1.5rem;
  padding: 0 .45rem;
  border-radius: 1rem;
  background: #eef5e4;
  color: #2f5a00;
  font-size: .85rem;
  text-align: center;
}
.reaction-count:empty {
  display: none;
}
.reaction.is-reacted {
  border-color: #7fb02a;
  background: #f3f8ec;
}
.reaction.is-popping .reaction-emoji {
  animation: emoji-pop .6s cubic-bezier(.3, 1.6, .5, 1);
}
.reaction-thanks {
  min-height: 1.5rem;
  margin: .9rem 0 0;
  font-weight: 700;
  color: #3d6b00;
}

/* ---------- Everything still, for visitors who prefer reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .now-dot, .sec-emoji, .in-view .sec-emoji, .atom-nucleus, .atom-orbit, .sec-title::after,
  .maser-wave path, .fun-fact-icon, .fa-trophy, .bar::before, .pool::before, .swimmer, .pool-fish,
  .pool-magnet, .steam, .float-like-heart, .stat-emoji, .stat-card::after, .burst {
    animation: none !important;
  }
  .swimmer { left: 40%; }
  .pool-fish { right: 20%; }
  .steam { display: none; }
  .sec-title::after { transition: none; }
  .resume-item, .stat-card, .reaction, .group-photo img { transition: none; }
}

/* the template makes every section a full screen high; the visitors section only needs its content */
section.resume-section.stats-section {
  min-height: 0;
}
/* buttons: no black ring after a click, a soft ring for keyboard users */
.reaction:focus,
.float-like:focus,
.to-top:focus,
.help-btn:focus,
.btn-hero:focus,
.library-tab:focus {
  outline: none;
}
.reaction:focus-visible,
.float-like:focus-visible,
.to-top:focus-visible,
.help-btn:focus-visible,
.btn-hero:focus-visible,
.library-tab:focus-visible {
  outline: 3px solid rgba(127, 176, 42, .6);
  outline-offset: 2px;
}
.maser-logo {
  height: 24px;
}
