:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111827;
  color: #e5e7eb;
}

html {
  zoom: normal !important;
}

body {
  background:
    linear-gradient(to bottom, #020b2b66 0%, #020b2b99 100%),
    url("ocean-wallpaper.jpg") center center / cover no-repeat !important;
  background-attachment: fixed;
  color: #e5e7eb;
  line-height: 1.6;
  margin: 0 !important;
  min-width: 0;
  padding: clamp(1rem, 4vw, 3rem) !important;
}

.language-selector {
  background: #111827e6;
  border: 1px solid #ffffff2b;
  border-radius: 999px;
  display: flex;
  gap: .15rem;
  padding: .25rem;
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 10;
}

.language-selector a {
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .5rem;
  text-decoration: none;
}

.language-selector a[aria-current="page"] {
  background: #374151;
}

.language-selector .contact-link {
  background: #166534;
}

.language-selector .contact-link:hover,
.language-selector .contact-link:focus-visible {
  background: #15803d;
}

body, body * {
  color: #e5e7eb;
}

h1, h2 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
}

.terminal-prompt {
  background: #0b1220;
  border: 1px solid #22c55e66;
  border-radius: .75rem;
  box-shadow: inset 0 0 1.5rem #22c55e12;
  color: #bbf7d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(.8rem, 2vw, 1rem);
  margin: 1rem 0 2rem;
  max-width: 52rem;
  min-height: 3.25rem;
  padding: 1rem;
}

.terminal-prefix {
  color: #86efac;
  font-weight: 700;
  margin-right: .5rem;
}

.terminal-cursor {
  animation: terminal-blink 1s steps(1) infinite;
  background: #86efac;
  display: inline-block;
  height: 1em;
  margin-left: .15rem;
  vertical-align: -.15em;
  width: .55ch;
}

.terminal-contact-form {
  background: #0b1220;
  border: 1px solid #22c55e66;
  border-radius: .75rem;
  box-shadow: inset 0 0 1.5rem #22c55e12;
  margin: 3rem auto 0;
  max-width: 52rem;
  padding: 1rem;
}

.terminal-contact-title {
  color: #bbf7d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin: 0 0 .75rem;
}

.terminal-contact-form label {
  align-items: center;
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  gap: .5rem;
  margin: .65rem 0;
}

.terminal-contact-form input,
.terminal-contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4ade8088;
  border-radius: 0;
  color: #ffffff;
  flex: 1;
  font: inherit;
  min-width: 0;
  outline: none;
  padding: .35rem .15rem;
}

.terminal-contact-form input:focus,
.terminal-contact-form textarea:focus {
  border-bottom-color: #86efac;
}

.terminal-contact-form input::placeholder,
.terminal-contact-form textarea::placeholder {
  color: #86efac99;
  opacity: 1;
}

.terminal-contact-form label.message-field {
  align-items: flex-start;
}

.terminal-contact-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.contact-honeypot {
  left: -9999px;
  position: absolute;
}

.terminal-contact-form button {
  background: #166534;
  border: 1px solid #4ade80;
  border-radius: .5rem;
  color: #ffffff;
  cursor: pointer;
  font: 700 .85rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-top: .5rem;
  padding: .6rem .85rem;
}

.terminal-contact-form button:hover,
.terminal-contact-form button:focus-visible {
  background: #15803d;
}

.terminal-contact-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.contact-status {
  color: #bbf7d0;
  font-size: .85rem;
  margin: .75rem 0 0;
}

@keyframes terminal-blink {
  50% { opacity: 0; }
}

a {
  color: #f3f4f6 !important;
}

a:hover, a:focus-visible {
  color: #ffffff !important;
}

#timesheet, #timesheet2 {
  background: #1f2937;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem #0006;
  display: block !important;
  max-width: 100%;
  overflow-x: auto;
  padding: .5rem;
  width: 100% !important;
}

#timesheet > *, #timesheet2 > * {
  background-color: #1f2937 !important;
}

#timesheet, #timesheet *, #timesheet2, #timesheet2 * {
  color: #ffffff !important;
}

#timesheet a:link, #timesheet a:visited, #timesheet a:hover, #timesheet a:active,
#timesheet2 a:link, #timesheet2 a:visited, #timesheet2 a:hover, #timesheet2 a:active {
  color: #ffffff !important;
}

@media (min-width: 1027px) {
  #timesheet, #timesheet2 {
    height: 16rem !important;
    overflow: visible;
  }

  .desktop-timeline-legend {
    display: flex;
    gap: 1.25rem;
    margin: .75rem auto 1.25rem;
    max-width: 1200px;
  }

  .desktop-timeline-legend span {
    align-items: center;
    color: #f3f4f6;
    display: inline-flex;
    font-size: .85rem;
    gap: .4rem;
  }

  .desktop-timeline-legend i {
    background: var(--timeline-color);
    border-radius: 50%;
    display: inline-block;
    height: .75rem;
    width: .75rem;
  }

  .desktop-timeline-legend .education { --timeline-color: rgb(60, 182, 227); }
  .desktop-timeline-legend .development { --timeline-color: rgb(154, 202, 39); }
  .desktop-timeline-legend .management { --timeline-color: rgb(244, 207, 48); }

}

.mobile-timeline {
  display: none;
}

.desktop-timeline-legend {
  display: flex;
  gap: 1.25rem;
  margin: .75rem auto 1.25rem;
  max-width: 1200px;
}

.desktop-timeline-legend span {
  align-items: center;
  color: #f3f4f6;
  display: inline-flex;
  font-size: .85rem;
  gap: .4rem;
}

.desktop-timeline-legend i {
  background: var(--timeline-color);
  border-radius: 50%;
  display: inline-block;
  height: .75rem;
  width: .75rem;
}

body > div:last-of-type {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 3rem auto 0;
  max-width: 1100px;
}

body > div:last-of-type > div,
body > div:last-of-type > section {
  background: #1f2937;
  border: 1px solid #ffffff1f;
  border-radius: 1rem;
  box-shadow: 0 .75rem 2rem #0004;
  flex: 1 1 20rem;
  float: none !important;
  margin: 0;
  max-width: 100%;
  padding: clamp(1rem, 3vw, 2rem) !important;
  transform: none !important;
  width: auto !important;
}

#skills p {
  margin: 1.25rem 0 .35rem;
}

.container {
  background: #374151 !important;
  border-radius: 999px;
  overflow: hidden;
}

.skills {
  box-sizing: border-box;
  border-radius: inherit;
  color: #ffffff;
  min-width: 0;
  padding: .55rem 1rem;
  text-align: right;
}

.good { background-color: forestgreen; width: 70%; }
.veryGood { background-color: seagreen; width: 80%; }
.tooGood { background-color: darkolivegreen; width: 100%; }
.ai { background-color: seagreen; width: 85%; }

.youth-services {
  background-color: seagreen;
  width: 75%;
}

img {
  height: auto;
  max-width: 100%;
}

body > div:last-of-type img {
  border: 4px solid #ffffff2b;
  border-radius: 50%;
  box-shadow: 0 .75rem 2rem #0005;
  display: block;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
  width: min(14rem, 100%);
}

@media (max-width: 1026px) {
  body {
    display: flex;
    flex-direction: column;
    padding: 1rem !important;
  }

  .language-selector {
    right: .75rem;
    top: .75rem;
  }

  .desktop-timeline-legend {
    display: none;
  }

  #timesheet, #timesheet2 {
    display: none !important;
  }

  #years-98-12, #years-12-23 {
    display: none !important;
  }

  .mobile-timeline {
    display: grid;
    gap: .9rem;
    margin: 1.5rem 0;
    order: 2;
  }

  .mobile-timeline h2 {
    margin: 0 0 .25rem;
  }

  .timeline-legend {
    display: none;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .timeline-legend span {
    align-items: center;
    display: inline-flex;
    font-size: .8rem;
    gap: .35rem;
  }

  .timeline-legend i {
    background: var(--timeline-color);
    border-radius: 50%;
    display: inline-block;
    height: .7rem;
    width: .7rem;
  }

  .timeline-card {
    background: #1f2937;
    border: 1px solid #ffffff1f;
    border-left: .3rem solid var(--timeline-color, #60a5fa);
    border-radius: .75rem;
    padding: 1rem;
  }

  .timeline-card time {
    color: #93c5fd;
    display: block;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .timeline-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: .3rem 0 0;
  }

  body > div:last-of-type {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    order: 1;
  }

  #contact-form {
    order: 3;
  }

  .timeline-category {
    color: var(--timeline-color);
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-top: .65rem;
    text-transform: uppercase;
  }

  .timeline-card.education { --timeline-color: rgb(60, 182, 227); }
  .timeline-card.development { --timeline-color: rgb(154, 202, 39); }
  .timeline-card.management { --timeline-color: rgb(244, 207, 48); }
  .timeline-legend .education { --timeline-color: rgb(60, 182, 227); }
  .timeline-legend .development { --timeline-color: rgb(154, 202, 39); }
  .timeline-legend .management { --timeline-color: rgb(244, 207, 48); }
}
