@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(Montserrat), url(./latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  box-sizing: border-box;
  font-size: 10px;
}

body {
  font-family: Montserrat, sans-serif;
  font-feature-settings: "kern", "liga", "pnum";
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 300;
}

.colortheme {
  background: #fff;
  color: #222;
}

@media (prefers-color-scheme: dark) {
  .colortheme.adaptive {
    background: #222;
    color: #fff;
  }
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

.container {
  margin-top: 30px;
}

.header-container {
  margin-top: 50px;
}

.header-right p {
  font-size: 1.6rem;
  text-align: right;
  margin-bottom: 3px;
}

@media print {
  body {
    font-size: 1.5rem;
  }

  h3 {
    margin-bottom: 20px;
  }

  .no-print,
  .no-print * {
    display: none !important;
  }
}

.button.button--sacnite {
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #477dca;
  transition: color 150ms;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: inherit;
  font-size: 3rem;
  text-align: center;
  padding-bottom: 10px;
}

p,
ul {
  font-size: 1.6rem;
  text-align: justify;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
}

a i {
  font-size: 1.6rem;
}

ul.icons li {
  display: inline-block;
  padding-left: 0.5rem;
}

ul.icons a {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.8rem;
  text-align: center;
  border: 0;
  padding: 0;
  border-radius: 100%;
}

.icons {
  padding-left: 0;
  font-size: 1rem;
  text-align: center;
}

.header-right a {
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .header-container div {
    text-align: center;
  }

  .header-right p {
    text-align: center;
  }

  .header-left {
    margin-top: 0px;
  }

  .icons {
    text-align: center;
  }

  ul.icons {
    padding-left: 0px;
  }

}

.profile-img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: repeat, no-repeat;
  -moz-box-shadow: inset 0 0 20px #636161;
  -webkit-box-shadow: inset 0 0 20px #636161;
  box-shadow: inset 0 0 20px #636161;
  background-image: url(./portrait.webp);
}

.list-container h3 {
  margin-bottom: 0;
}

.footer-container {
  margin-top: 20px;
}

.footer-container p {
  text-align: center;
}

.page-content {
  padding: 0;
}

svg {
  fill: currentColor;
}

.row {
  margin-right: -15px;
  margin-left: -15px;
}

.container:after,
.container:before,
.clearfix:after,
.clearfix:before,
.row:after,
.row:before {
  display: table;
  content: " ";
}

.container:after,
.clearfix:after,
.row:after {
  clear: both;
}

.container {
  margin-right: auto;
  margin-left: auto;
  width: 90%;
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 65%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 750px;
  }
}

h4 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.2;
  margin-top: 30px;
}

@media (min-width: 1200px) {
  hr {
    width: 65%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #222;
  cursor: pointer;
  transition: background 150ms;
}

.btn:hover {
  background: #f0f0f0;
  text-decoration: none;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .btn {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .btn:hover {
    background: #333;
  }
}

/* Expertise tags */
.skill-group {
  margin-bottom: 1rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-label {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 1.3rem;
  padding: 4px 11px;
  border-radius: 20px;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Project & cert cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.project-card,
.cert-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-desc:last-child {
  margin-bottom: 0;
}

.cert-name {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.cert-valid {
  font-size: 1.3rem;
  color: #666;
}

/* Interest pills */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest {
  font-size: 1.4rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .skill-label {
    color: #aaa;
  }

  .tag {
    background: #333;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .project-card,
  .cert-card {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .project-desc,
  .cert-valid {
    color: #aaa;
  }

  .interest {
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.spelling {
  position: relative;
  border-bottom: 1px dashed #000;
  cursor: pointer;
}

.spelling::before {
  content: attr(data-hover);
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 300px;
  background-color: #fff;
  color: #000;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.9em;
  line-height: 1.4;

  position: absolute;
  z-index: 10;
  left: 50%;
  top: 130%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.spelling:hover::before {
  opacity: 1;
  visibility: visible;
}
