.hobbies-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.hobbies-list li {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

.hobbies {
  padding: 0 0 2rem;
}

.hobbies-text {
  display: flex;
  flex-direction: column;
}

.hobby-icon {
  width: 30px;
  height: auto;
  min-height: 30px;
  min-width: 30px;
  stroke-width: 2;
  padding: 3px;
  border: 2px solid;
  border-radius: 100%;
}

.hobbies-title {
  font-weight: bold;
  font-size: 1rem;
}

.hobbies-description {
  font-size: 0.7rem;
}

.hobbies-description-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hobby-links {
  display: flex;
  gap: 0.5rem;
}

.hobby-link-icon {
  width: 1rem;
  height: 1rem;
}
.languages {
  padding: 0;
}

.languages-box {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 10px 12px;
  align-items: center;
}

.language-row {
  display: contents;
}

.language-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1rem;
  flex-shrink: 0;
}

.flag-icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.language-name {
  font-weight: 600;
  white-space: nowrap;
}

.language-bar {
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--text-color-highlight-lighter);
  overflow: hidden;
}

.language-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background-color: var(--text-color-highlight);
}

.language-level {
  display: block;
  width: fit-content;
  min-width: 3.5ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0 0.15em 0.2em;
  white-space: nowrap;
}

.language-level-note {
  position: absolute;
  top: -0.35em;
  right: -0.25em;
  font-size: 0.6em;
  font-weight: 400;
  line-height: 1;
  opacity: 0.5;
  pointer-events: none;
  text-transform: none;
}

/* Tooltips sit inside the dark highlight column, so they need a light
   background with dark text for contrast (overrides the default .tooltip). */
.languages .tooltip::after {
  background-color: var(--text-color-highlight-stronger);
  color: var(--background-color-highlight);
}

.language-level.level-native {
  color: var(--text-color-highlight-stronger);
  border-bottom: 2px solid var(--text-color-highlight-stronger);
}

.language-level.level-c2 {
  color: var(--text-color-highlight);
  border-bottom: 1.5px solid var(--text-color-highlight);
}

.language-level.level-b2 {
  color: var(--text-color-highlight);
  border-bottom: 1px solid var(--text-color-highlight-lighter);
}
.skills {
  padding: 0;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 100;
}

.skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.skills li {
  margin: 0;
  line-height: 1.35;
  border-left: 2px solid var(--text-color-normal-lighter);
  padding: 0.4rem 0.6rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.trait-title {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.trait-description {
  display: block;
  font-size: 0.85em;
  opacity: 0.85;
}

@media (width <= 750px) {
  .skills {
    grid-column: 1/3;
    padding: 2rem;
  }

  .skills ul {
    grid-template-columns: 1fr;
  }
}

@media print {
  .skills {
    padding: 0 0 0.75rem;
  }

  .skills ul {
    gap: 0.4rem;
  }

  .skills li {
    padding: 0.2rem 0.4rem;
    line-height: 1.25;
  }

  .trait-title {
    font-size: 8.5pt;
    margin-bottom: 0.05rem;
  }

  .trait-description {
    font-size: 7.5pt;
    opacity: 1;
  }
}
.technologies {
  padding: 0 0 2rem;
}

.tech-cols {
  display: flex;
  gap: 0.75rem;
}

.tech-col {
  flex: 1;
}

.tech-category {
  margin-bottom: 0.75rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.tech-category h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  opacity: 0.7;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tech-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--text-color-normal) 7%, transparent);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.tech-icon-wrapper:hover {
  background-color: color-mix(in srgb, var(--text-color-normal) 15%, transparent);
  transform: translateY(-2px);
}

.tech-icon {
  width: 22px;
  height: 22px;
  transition: opacity 0.2s ease;
}

.tech-icon-wrapper:not(:hover) .tech-icon {
  opacity: 0.85;
}

@media (width <= 750px) {
  .tech-cols {
    flex-direction: column;
  }

  .tech-col {
    flex: unset;
  }

  .tech-icon-wrapper {
    width: 42px;
    height: 42px;
  }

  .tech-icon {
    width: 24px;
    height: 24px;
  }

  .tech-icons {
    gap: 0.5rem;
  }
}

@media print {
  .technologies {
    padding: 0 0 0.75rem;
  }

  .tech-cols {
    display: flex;
    gap: 0.5rem;
  }

  .tech-col {
    flex: 1;
  }

  .tech-category {
    margin-bottom: 0.4rem;
  }

  .tech-category h3 {
    font-size: 0.55rem;
    margin: 0 0 0.2rem;
  }

  .tech-icon-wrapper {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background-color: color-mix(in srgb, var(--text-color-normal) 10%, transparent);
  }

  .tech-icon {
    width: 14px;
    height: 14px;
  }

  .tech-icons {
    gap: 0.3rem;
  }
}
.header {
  grid-column: 2;
  grid-row: 1;
  padding: var(--top-margin);
  min-height: 15rem;
  position: relative;
}

.picture {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
}

.header-description {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 200;
}

.header-contact-me {
  display: none;
}

@media (width > 750px) {
  .header-contact-me {
    display: flex;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.1em) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (width <= 750px) {
  .header {
    grid-column: 1;
    grid-row: 1;
    padding: 2rem;
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .picture {
    display: none;
  }

  .profile-picture {
    background-color: var(--background-color-highlight);
    margin: var(--picture-margin);
    overflow: hidden;
    object-fit: cover;
    width: 250px;
    height: 250px;
    padding: 3vw;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
  }

  .profile-picture-box {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .profile-picture-wrapper {
    display: flex;
    align-self: center;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--text-color-highlight);
  }

  .profile-picture-floated {
    display: block;
    overflow: hidden;
    --diameter: 60vw;
    width: var(--diameter);
    height: var(--diameter);
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--background-color-highlight);
    color: transparent;
    font-size: 0;
    animation: profileFadeIn 0.8s ease 0.3s both;
  }

  .header h2 {
    animation: nameFadeIn 0.6s ease 0.4s both;
  }

  .header-description {
    max-width: 60ch;
    margin: 0.5rem auto 1rem auto;
    animation: nameFadeIn 0.6s ease 0.6s both;
  }
}

@media (width > 750px) {
  .profile-picture-wrapper {
    display: none;
  }

  .profile-picture-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: var(--second-column-width);
    align-items: center;
    justify-content: center;
  }

  .profile-picture {
    background-color: var(--background-color-highlight);
    padding: 0.5rem;
    margin: var(--picture-margin);
    height: auto;
    width: auto;
    overflow: hidden;
    min-height: min(20vw, var(--max-profile-height));
    max-height: var(--max-profile-height);
    color: transparent;
    font-size: 0;
  }

  .profile-picture-floated {
    display: none;
  }
}

@media (width > 1500px) {
  .header {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .header h1 {
    flex-shrink: 0;
  }

  .header-text-group {
    flex: 1;
    align-self: center;
    margin-right: 10vw;
  }

  .profile-picture-box {
    right: calc(var(--second-column-width) + var(--third-column-width));
  }

  .profile-picture {
    --max-profile-height: 333px;
  }
}
.contact-button {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.contact-button :hover::after {
  content: attr(alt);
  font-size: 12px;
  line-height: 15px;
  position: absolute;
  right: 20px;
  background-color: var(--text-color-normal);
  color: var(--text-color-highlight);
  padding: 2px 4px;
  border-radius: 5px;
}

.contact-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.contact-list li {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 30px;
  height: auto;
  min-height: 30px;
  min-width: 30px;
  stroke-width: 2;
  padding: 3px;
  border: 2px solid;
  border-radius: 100%;
}

.contact-me-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--background-color-normal);
  color: var(--text-color-normal);
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--accent-cta);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.contact-me-button:hover {
  background-color: var(--accent-cta);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-me-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-button-wrapper {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Add a nice effect to the icon */
.contact-me-button .contact-icon {
  transition: transform 0.2s ease;
  background-color: transparent;
  border: none;
}

.contact-me-button:hover .contact-icon {
  transform: scale(1.1);
}

@media (width > 750px) {
  .contact {
    padding: 3rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-button-wrapper {
    display: none;
  }
}

@media (width > 1500px) {
  .contact {
    padding-top: 4rem;
  }

  .contact-button-wrapper {
    display: none;
  }
}
.highlight {
  background-color: var(--background-color-highlight);
  color: var(--text-color-highlight);
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color-highlight);
  color: var(--text-color-highlight);
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.tooltip-wrap::after {
  white-space: normal;
  width: max-content;
  max-width: 240px;
  line-height: 1.4;
  text-align: center;
}

.tooltip-right::after {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
}
.highlight h2::after {
  background-color: var(--text-color-highlight);
}

.navbar {
  display: none;
}

.theme-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
}

.language-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.language-option {
  color: var(--text-color-normal-lighter);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  padding: 0.1rem 0;
}

.language-option:hover {
  color: var(--text-color-normal);
}

.language-option.active {
  color: var(--text-color-normal-stronger);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.language-switcher-separator {
  color: var(--text-color-normal-lighter);
  opacity: 0.4;
  user-select: none;
}

/* Print Button */
.print-container {
  position: fixed;
  top: 1rem;
  left: 3.5rem;
  z-index: 1000;
}

.print-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color-normal-lighter);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0.1rem 0;
}

.print-button:hover {
  color: var(--text-color-normal);
}

.print-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.5;
}

@media (width > 750px) {
  .print-container {
    position: absolute;
    top: calc(var(--top-margin) + 3rem);
    left: auto;
    right: var(--top-margin);
    z-index: 10;
  }
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.75rem;
}

.theme-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-normal-lighter);
  transition: color 0.2s ease;
  padding: 0.1rem 0;
}

.theme-icon-wrapper:hover {
  color: var(--text-color-normal);
}

.theme-icon-wrapper.active {
  color: var(--text-color-normal-stronger);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.theme-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.5;
}

.theme-switcher-separator {
  color: var(--text-color-normal-lighter);
  opacity: 0.4;
  user-select: none;
}

@media (width > 750px) {
  main {
    position: relative;
  }

  .theme-container {
    position: absolute;
    top: calc(var(--top-margin) + 1.5rem);
    left: auto;
    right: var(--top-margin);
    z-index: 10;
  }

  .language-container {
    position: absolute;
    top: var(--top-margin);
    right: var(--top-margin);
    z-index: 10;
  }
}

.fab-contact {
  display: none;
}

.fab-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

@media (width <= 750px) {
  .fab-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--background-color-normal);
    color: var(--text-color-normal);
    border: 2px solid var(--accent-cta);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .fab-contact:hover {
    background-color: var(--accent-cta);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }

  .theme-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  .print-container {
    position: absolute;
    top: 2.5rem;
    left: 1rem;
  }

  .language-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Theme Variables */
html {
  --text-color-normal-lighter: #153060;
  --text-color-normal: #0a244d;
  --text-color-normal-stronger: #0a1230;
  --text-color-highlight-lighter: hsl(218deg, 40%, 60%);
  --text-color-highlight: hsl(218, 55%, 85%);
  --text-color-highlight-stronger: hsl(218deg, 60%, 90%);
  --background-color-normal: hsl(0, 0%, 100%);
  --background-color-highlight: hsl(208, 32%, 43%);
  --accent-cta: #e07a5f;

  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Dark mode theme */
html[data-theme="dark"] {
  --text-color-normal-lighter: hsl(225, 15%, 48%);
  --text-color-normal: hsl(225, 22%, 72%);
  --text-color-normal-stronger: hsl(215, 45%, 91%);
  --text-color-highlight-lighter: hsl(228, 22%, 32%);
  --text-color-highlight: hsl(210, 55%, 65%);
  --text-color-highlight-stronger: hsl(200, 70%, 78%);
  --background-color-normal: hsl(228, 22%, 12%);
  --background-color-highlight: hsl(228, 28%, 21%);
  --accent-cta: #f4a261;
}

html[data-theme="red"] {
  --text-color-normal: hsl(210, 10%, 8%);
  --text-color-highlight: hsl(25, 70%, 80%);
  --background-color-normal: hsl(210, 10%, 100%);
  --background-color-highlight: hsl(5, 50%, 100%);
}

html[data-theme="dark"][data-theme="red"] {
  --text-color-normal: hsl(210, 10%, 80%);
  --text-color-highlight: hsl(25, 70%, 10%);
  --background-color-normal: hsl(210, 10%, 10%);
  --background-color-highlight: hsl(5, 50%, 10%);
}

/* System preference - only applies if no theme is explicitly set */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --text-color-normal-lighter: hsl(225, 15%, 48%);
    --text-color-normal: hsl(225, 22%, 72%);
    --text-color-normal-stronger: hsl(215, 45%, 91%);
    --text-color-highlight-lighter: hsl(228, 22%, 32%);
    --text-color-highlight: hsl(210, 55%, 65%);
    --text-color-highlight-stronger: hsl(200, 70%, 78%);
    --background-color-normal: hsl(228, 22%, 12%);
    --background-color-highlight: hsl(228, 28%, 21%);
  }

  html:not([data-theme]) img {
    opacity: 0.75;
    transition: opacity 0.5s ease-in-out;
  }

  html:not([data-theme]) img:hover {
    opacity: 1;
  }
}

/* General element styling */
@font-face {
  font-family: "3270";
  src: url("/static/fonts/3270-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Condenso";
  src: url("/static/fonts/Condenso Demo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Khuja-Uppercase";
  src: url("/static/fonts/Khuja-Uppercase.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Whisper";
  src: url("/static/fonts/whisper/Whisper-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  --top-margin: 3vw;
  color: var(--text-color-normal);
  background-color: var(--background-color-normal);
  font-family: "Overpass Mono", "Courier New", monospace;
  position: relative;
  --picture-margin: var(--top-margin);
  --max-profile-height: min(40vh, 450px);
}

h1 {
  font-size: clamp(56px, 12vw, 130px);
  line-height: 1;
  margin: 0;
}

@keyframes nameFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.1em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 .firstname {
  font-family: "Khuja-Uppercase", sans-serif;
  letter-spacing: 0.01em;
  display: block;
  text-transform: uppercase;
  color: var(--text-color-highlight);
  animation: nameFadeIn 0.6s ease both;
}

h1 .lastname {
  font-family: "Whisper", cursive;
  display: block;
  font-size: 1.05em;
  margin-top: -0.6em;
  margin-left: 0.8em;
  position: relative;
  z-index: 1;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-color-normal-stronger);
  animation: nameFadeIn 0.6s ease 0.2s both;
}

h2 {
  font-family: "3270", "Courier New", monospace;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 35px;
  margin: 0 0 1rem;
  padding: 2rem 0 0;
  text-wrap: balance;
}

h2::after {
  display: flex;
  flex-grow: 1;
  content: "";
  height: 3px;
  background-color: var(--text-color-normal);
  border-radius: 3px;
}

.experience-date {
  font-family: "Fanwood Text", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: inherit;
  border: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

ul {
  margin: 0;
}

.mobile-next {
  display: none;
}

@media (width <= 750px) {
  body {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  main {
    position: relative;
    max-height: 100vh;
    overflow: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
  }

  .mobile-view {
    display: contents;
  }

  .desktop-view {
    display: none;
  }

  main > section[id],
  .mobile-view > section[id],
  .mobile-page {
    scroll-snap-align: start;
    position: relative;
  }

  .mobile-page {
    min-height: 100vh;
  }

  .mobile-next {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color-normal-lighter);
  }

  .mobile-next::after {
    content: "\2193";
    font-size: 1.2rem;
  }

  h1 {
    margin: 2rem 0;
  }

  h1 .lastname {
    margin-left: 0;
    margin-top: -0.4em;
  }

  h2 {
    padding-top: 0.5rem;
  }
}

@media (750px < width <= 1500px) {
  .mobile-view {
    display: none;
  }

  .desktop-view {
    display: contents;
  }

  main {
    display: grid;
    --first-column-width: 30vw;
    --second-column-width: 70vw;
    grid-template-columns: var(--first-column-width) var(--second-column-width);
  }

  .bottom-left {
    grid-column: 1;
    grid-row: 2;
    background-color: var(--background-color-highlight);
    color: var(--text-color-highlight);
    padding: 0 1rem;
  }

  .bottom-left h2::after {
    background-color: var(--text-color-highlight);
  }

  .bottom-right {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  /* Flatten the main/sidebar wrappers so the three sections reorder
     as direct flex items: personality -> experiences -> technologies. */
  .bottom-right-main,
  .bottom-right-sidebar {
    display: contents;
  }

  .bottom-right .skills {
    order: 1;
  }

  .bottom-right .experiences {
    order: 2;
  }

  .bottom-right .technologies {
    order: 3;
  }
}

@media (width > 1500px) {
  .mobile-view {
    display: none;
  }

  .desktop-view {
    display: contents;
  }

  main {
    display: grid;
    --first-column-width: 20vw;
    --second-column-width: 40vw;
    --third-column-width: 40vw;
    grid-template-columns:
      var(--first-column-width) var(--second-column-width)
      var(--third-column-width);
  }

  .bottom-left {
    grid-column: 1;
    grid-row: 2;
    background-color: var(--background-color-highlight);
    color: var(--text-color-highlight);
    padding: 0 1rem;
  }

  .bottom-left h2::after {
    background-color: var(--text-color-highlight);
  }

  .bottom-right {
    grid-column: 2 / 4;
    grid-row: 2;
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
  }

  .bottom-right-main {
    flex: 1;
  }

  .bottom-right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 5mm;
  }

  /* Preserve background colors (highlights, progress bars, etc.).
     This is the one legitimate use of !important: it must apply
     globally to every element, overriding any element-level style. */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Disable animations and transitions */
  html body,
  html body::before,
  html body::after {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }

  /* Reset body for print */
  html body {
    overflow: visible;
    position: static;
    margin: 0;
    padding: 0;
    --navbar-height: 0;
    --picture-margin: 0;
    font-size: 8.5pt;
    line-height: 1.25;
  }

  /* Keep two-column desktop layout, remove scrolling constraints */
  html body main {
    display: grid;
    grid-template-columns: 28% 72%;
    max-height: none;
    overflow: visible;
    scroll-snap-type: none;
    scroll-padding-top: 0;
    position: relative;
  }

  /* Hide interactive chrome */
  html body .theme-container,
  html body .language-container,
  html body .print-container,
  html body .navbar,
  html body .contact-me-button,
  html body .contact-button-wrapper,
  html body .tooltip::after,
  html body .hobby-link-icon {
    display: none;
  }

  /* Compact header area */
  html body .header {
    min-height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  html body .header h1 {
    flex-shrink: 0;
    font-size: 28pt;
    margin-top: 0.3rem;
  }

  html body .header-text-group {
    flex: 1;
    align-self: center;
  }

  html body .header h2 {
    padding-top: 1rem;
  }

  html body h2 {
    font-size: 11pt;
    line-height: 1.2;
    margin: 0 0 0.4rem;
    padding: 1rem 0 0;
  }

  html body h2::after {
    height: 2px;
    margin-top: 0.2rem;
  }

  /* Full-height blue column behind the left side.
     Fixed to A4 content area height */
  html body main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 28%;
    height: 297mm;
    background-color: var(--background-color-highlight);
    z-index: -1;
  }

  html body .experiences {
    margin-bottom: 0;
  }

  html body .bottom-right-main,
  html body .bottom-right-sidebar {
    display: contents;
  }

  html body .bottom-right {
    gap: 1rem;
  }

  html body .bottom-right .skills {
    order: 1;
  }

  html body .bottom-right .experiences {
    order: 2;
  }

  html body .bottom-right .technologies {
    order: 3;
  }

  html body .picture {
    background-color: var(--background-color-normal);
  }

  html body .bottom-right {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
  }

  html body .bottom-left {
    padding: 0 1rem;
  }

  html body .profile-picture-box {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 72%;
    align-items: center;
    justify-content: center;
  }

  html body .profile-picture {
    margin: 0.2rem;
    max-height: 20vh;
    min-height: auto;
    height: auto;
    width: auto;
    padding: 0.5rem;
  }

  /* Compact contact section spacing */
  html body .contact {
    padding: 6rem 0 0;
  }

  /* Add vertical spacing around selected sidebar sections */
  html body .contact,
  html body .languages,
  html body .hobbies {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  /* Compact contact and hobbies lists */
  html body .contact-list,
  html body .hobbies-list,
  html body .skills ul,
  html body .tech-icons {
    padding-left: 0;
    margin-left: 0;
  }

  html body .contact-list,
  html body .hobbies-list {
    gap: 0.3rem;
  }

  html body .contact-list li,
  html body .hobbies-list li {
    gap: 0.3rem;
  }

  html body .contact-icon,
  html body .hobby-icon {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 2px;
    border-width: 1.5px;
  }

  /* Keep experience/education blocks together on one page */
  html body .experiences ol > li:first-child {
    margin-top: 0.5rem;
  }

  html body .experience-block {
    margin: 0 0 0.7rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  html body .education-separator {
    margin: 0.75rem 0 0.5rem;
  }

  html body .experience-points {
    margin: 0.1rem 0 0;
    width: 100%;
    padding-left: 0.8rem;
    font-size: 7pt;
  }

  html body .experience-points li {
    margin-bottom: 0.05rem;
    line-height: 1.25;
  }

  html body .experience-title {
    margin-right: 0.5rem;
  }

  html body .experience-subtitle {
    margin-left: 0.2rem;
  }

  html body .experience-note {
    margin-left: 0.3rem;
    font-size: 8pt;
  }

  /* Compact languages */
  html body .languages-box {
    gap: 5px 8px;
    grid-template-columns: 1fr 60px auto;
  }

  html body .language-name {
    font-size: 8.5pt;
  }

  html body .language-flag {
    width: 1.1rem;
    height: 0.75rem;
  }

  html body .language-bar {
    width: 60px;
    height: 4.5pt;
  }

  html body .language-level {
    font-size: 6.5pt;
    padding: 0 0.1em 0.15em;
  }

  /* Compact hobbies */
  html body .hobbies-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  html body .hobbies-title {
    font-size: 9pt;
  }

  /* Compact personality/skills */
  html body .skills ul {
    padding-left: 1rem;
    margin: 0.2rem 0;
  }

  html body .skills li {
    margin-bottom: 0.1rem;
    font-size: 8.5pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Compact header description */
  html body .header-description {
    font-size: 8pt;
    margin: 0.1rem 0;
    line-height: 1.25;
  }

  /* Compact hobbies description */
  html body .hobbies-description {
    font-size: 7pt;
    line-height: 1.2;
  }
}
.experiences {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 100;
}

.experiences ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.experiences ol > li:first-child {
  margin-top: 0.5rem;
}

.experience-block {
  margin: 0 0 1rem;
}

.experience-block:last-child {
  margin: 0;
}

.experience-points {
  margin: 0.5rem 0 0;
  width: 80%;
  list-style: disc;
  font-size: small;
}

.experience-header,
.experience-subheader {
  display: flex;
  justify-content: space-between;
}

.experience-title {
  font-weight: bold;
  color: var(--text-color-normal-stronger);
  text-wrap: nowrap;
  margin-right: 2rem;
}

.experience-date {
  text-wrap: nowrap;
  text-align: right;
}

.experience-company {
  text-wrap: pretty;
}

.experience-subtitle {
  text-wrap: balance;
  margin: 0 0 0 0.5rem;
  font-weight: normal;
  font-style: italic;
}

.education-separator {
  border: 0;
  height: 1px;
  background-color: var(--text-color-normal-lighter);
  margin: 1.5rem 0 0.75rem;
  opacity: 0.35;
}

@media (width <= 750px) {
  .experiences {
    padding: 2rem;
    display: flex;
    flex-direction: column;
  }

  .experience-header {
    flex-direction: column-reverse;
  }

  .experience-points {
    width: inherit;
    padding: 1em;
  }
}
.about {
  display: none;
}

@media (width <= 750px) {
  .about {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about-contact-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }

  .about-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .about-contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .about-icon {
    width: 22px;
    height: 22px;
    min-height: 22px;
    min-width: 22px;
    stroke-width: 2;
    padding: 2px;
    border: 1.5px solid;
    border-radius: 100%;
  }

  .about-languages {
    display: grid;
    grid-template-columns: 1fr 65px auto;
    gap: 6px 10px;
    align-items: center;
  }

  .about-language-row {
    display: contents;
  }

  .about-language-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .about-language-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 0.85rem;
    flex-shrink: 0;
  }

  .about-language-flag .flag-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  }

  .about-language-name {
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .about-language-bar {
    width: 65px;
    height: 5px;
    border-radius: 999px;
    background-color: var(--text-color-highlight-lighter);
    overflow: hidden;
  }

  .about-language-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-color: var(--text-color-highlight);
  }

  .about-language-level {
    position: relative;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0 0.15em 0.2em;
    white-space: nowrap;
  }

  .about-language-level-note {
    position: absolute;
    top: -0.35em;
    right: -0.25em;
    font-size: 0.6em;
    font-weight: 400;
    line-height: 1;
    opacity: 0.5;
    pointer-events: none;
    text-transform: none;
  }

  .about .tooltip::after {
    background-color: var(--text-color-highlight-stronger);
    color: var(--background-color-highlight);
  }

  .about-language-level.level-native {
    color: var(--text-color-highlight-stronger);
    border-bottom: 2px solid var(--text-color-highlight-stronger);
  }

  .about-language-level.level-c2 {
    color: var(--text-color-highlight);
    border-bottom: 1.5px solid var(--text-color-highlight);
  }

  .about-language-level.level-b2 {
    color: var(--text-color-highlight);
    border-bottom: 1px solid var(--text-color-highlight-lighter);
  }

  .about-language-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }

  .about-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--text-color-highlight);
    background: transparent;
  }

  .about-dot.filled {
    background-color: var(--text-color-highlight);
  }

  /* === TABS === */
  .about-tabs > input {
    display: none;
  }

  .about-tab-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .about-tab-bar label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    color: var(--text-color-highlight-lighter);
    transition:
      color 0.2s,
      border-color 0.2s;
  }

  #about-tab-hobbies:checked ~ .about-tab-bar label[for="about-tab-hobbies"],
  #about-tab-personality:checked
    ~ .about-tab-bar
    label[for="about-tab-personality"] {
    color: var(--text-color-highlight);
    border-bottom-color: var(--text-color-highlight);
  }

  .about-tab-panels {
    display: grid;
    padding-top: 0.5rem;
  }

  .about-tab-panel {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  #about-tab-hobbies:checked ~ .about-tab-panels > .hobbies-panel,
  #about-tab-personality:checked ~ .about-tab-panels > .personality-panel {
    opacity: 1;
    pointer-events: auto;
  }

  /* === BADGE GROUP === */
  .about-badge-group > input {
    display: none;
  }

  .about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }

  .about-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--text-color-highlight);
    border-radius: 99px;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.45;
    transition:
      opacity 0.2s,
      background-color 0.2s;
  }

  .about-badge-icon {
    width: 14px;
    height: 14px;
    min-height: 14px;
    min-width: 14px;
    stroke-width: 2;
  }

  /* Selected badge highlight — up to 12 items for personality traits */
  .about-badge-group
    > input:nth-of-type(1):checked
    ~ .about-badges
    .about-badge:nth-of-type(1),
  .about-badge-group
    > input:nth-of-type(2):checked
    ~ .about-badges
    .about-badge:nth-of-type(2),
  .about-badge-group
    > input:nth-of-type(3):checked
    ~ .about-badges
    .about-badge:nth-of-type(3),
  .about-badge-group
    > input:nth-of-type(4):checked
    ~ .about-badges
    .about-badge:nth-of-type(4),
  .about-badge-group
    > input:nth-of-type(5):checked
    ~ .about-badges
    .about-badge:nth-of-type(5),
  .about-badge-group
    > input:nth-of-type(6):checked
    ~ .about-badges
    .about-badge:nth-of-type(6),
  .about-badge-group
    > input:nth-of-type(7):checked
    ~ .about-badges
    .about-badge:nth-of-type(7),
  .about-badge-group
    > input:nth-of-type(8):checked
    ~ .about-badges
    .about-badge:nth-of-type(8),
  .about-badge-group
    > input:nth-of-type(9):checked
    ~ .about-badges
    .about-badge:nth-of-type(9),
  .about-badge-group
    > input:nth-of-type(10):checked
    ~ .about-badges
    .about-badge:nth-of-type(10),
  .about-badge-group
    > input:nth-of-type(11):checked
    ~ .about-badges
    .about-badge:nth-of-type(11),
  .about-badge-group
    > input:nth-of-type(12):checked
    ~ .about-badges
    .about-badge:nth-of-type(12) {
    opacity: 1;
    background-color: var(--text-color-highlight);
    color: var(--background-color-highlight);
  }

  /* Preview panel — both items occupy same grid cell, tallest wins */
  .about-preview {
    display: grid;
    margin-top: 0.75rem;
    min-height: 2.5rem;
  }

  .about-preview-item {
    grid-area: 1 / 1;
    visibility: hidden;
  }

  .about-badge-group
    > input:nth-of-type(1):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(1),
  .about-badge-group
    > input:nth-of-type(2):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(2),
  .about-badge-group
    > input:nth-of-type(3):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(3),
  .about-badge-group
    > input:nth-of-type(4):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(4),
  .about-badge-group
    > input:nth-of-type(5):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(5),
  .about-badge-group
    > input:nth-of-type(6):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(6),
  .about-badge-group
    > input:nth-of-type(7):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(7),
  .about-badge-group
    > input:nth-of-type(8):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(8),
  .about-badge-group
    > input:nth-of-type(9):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(9),
  .about-badge-group
    > input:nth-of-type(10):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(10),
  .about-badge-group
    > input:nth-of-type(11):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(11),
  .about-badge-group
    > input:nth-of-type(12):checked
    ~ .about-preview
    .about-preview-item:nth-of-type(12) {
    visibility: visible;
  }

  .about-preview-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    font-family: "Raleway", system-ui, sans-serif;
    font-weight: 400;
  }

  .about-preview-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.65rem;
  }

  .about-preview-links a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}
