.contact {
  grid-column: 1;
  grid-row: 2;
}

.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-form {
  padding: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 40rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: bold;
}

.form-field input,
.form-field textarea {
  padding: 0.75rem;
  border: 2px solid var(--text-color-normal-lighter);
  border-radius: 0.25rem;
  background-color: var(--background-color-normal);
  color: var(--text-color-normal);
  font-family: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text-color-highlight);
}

.submit-button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: var(--background-color-highlight);
  color: var(--text-color-highlight);
  border: none;
  border-radius: 0.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 3px solid var(--text-color-normal);
  z-index: 1001;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.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(--text-color-highlight);
  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;
}
.contact-me-button:hover {
  background-color: var(--accent-color-dark);
}

.contact-me-button:hover {
  background-color: var(--text-color-highlight);
  color: var(--background-color-highlight);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.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: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.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 2rem 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;
}

@media (750px < width <= 1500px) {
  .hobbies {
    background-color: var(--background-color-highlight);
    color: var(--text-color-highlight);
  }

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

@media (width > 1500px) {
  .hobbies {
    grid-column: 3;
    grid-row: 3;
  }
}
.education {
  grid-column: 2;
  grid-row: 3;
  padding: 0 2rem;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 100;
}

@media (width <= 750px) {
  .education {
    padding: 2rem;
    display: flex;
    flex-direction: column;
  }
}
.experiences {
  grid-column: 2;
  grid-row: 2;
  padding: 0 2rem;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 100;
}

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

.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;
}

.experience-note {
  font-size: 0.9rem;
  text-wrap: nowrap;
  margin-left: 1rem;
}

@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: auto 1fr;
    gap: 3px 10px;
    align-items: center;
  }

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

  .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;
  }
}
.header {
  grid-column: 2;
  grid-row: 1;
  padding: var(--top-margin);
  min-height: 15rem;
}

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

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

@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;
    width: max-content;
    margin: 0 auto;
    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-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: 400px;
  }
}
.languages {
  grid-column: 1;
  grid-row: 3;
  padding: 0 2rem;
}

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

.language-name {
  justify-self: end;
  white-space: nowrap;
}

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

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

.dot.filled {
  background-color: var(--text-color-highlight);
}
.skills {
  grid-column: 2;
  grid-row: 4;
  padding: 0 2rem 2rem;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 100;
}

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

@media (width > 1500px) {
  .skills {
    grid-column: 3;
    grid-row: 2;
  }
}
@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 .modal-container,
  html body .tooltip::after,
  html body .hobby-link-icon {
    display: none;
  }

  /* Compact header area */
  html body .header {
    min-height: auto;
  }

  html body h1 {
    font-size: 28pt;
    margin-top: 0.3rem;
  }

  html body h2 {
    font-size: 11pt;
    line-height: 1.2;
    margin: 0 0 0.4rem;
    padding: 0.3rem 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 .picture {
    background-color: var(--background-color-normal);
  }

  html body .profile-picture-box {
    position: absolute;
    top: 0;
    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 and hobbies lists */
  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 .experience-block {
    margin: 0 0 0.4rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  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 3px;
  }

  html body .language-name {
    margin: 0 3px;
    font-size: 8.5pt;
  }

  html body .language-level {
    padding: 2px;
    height: 60%;
  }

  /* 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;
  }
}
.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;
}.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(--text-color-highlight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .fab-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }

  .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%);

  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%);
}

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);
  }
}

@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);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
