@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Karla:wght@700&display=swap");

:root {
  --image-size: 90px;
  --line-height: 1.55;
  --primary-font-color: rgb(30, 30, 30);
  --secondary-font-color: rgb(80, 80, 80);
  --accent-color: rgb(230, 230, 230);
  --highlight-color: rgba(255, 215, 80, 0.25);
  --border-color: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: var(--line-height);
}

body {
  font-family: "Heebo", sans-serif;
  background: #333;
  color: var(--primary-font-color);
  font-size: 14px;
}

.loading-page {
  position: absolute;
  inset: 0;
  background-color: #fff;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease-in-out;
  pointer-events: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease-in-out;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}

.spinner:before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 100%;
  border: 5px solid transparent;
  border-top-color: var(--primary-font-color);
  animation: spin 0.8s infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.page {
  margin: 1cm auto;
  width: 21.59cm;
  height: 35.56cm;
  position: relative;
}

.print-container {
  padding: 1cm 1.2cm;
  background: white;
  height: 100%;
}

.header {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 10px;
}

.header .profile {
  width: var(--image-size);
  height: var(--image-size);
  flex-shrink: 0;
}

.header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-info .name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.occupation-wrapper {
  margin-bottom: 7px;
}

.occupation {
  font-size: 14px;
  font-weight: 300;
  color: var(--secondary-font-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.occupation::after {
  content: " ";
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--secondary-font-color);
}

.contact > * {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.contact .material-icons-sharp {
  font-size: 16px !important;
  color: var(--secondary-font-color);
}

.contact a {
  color: var(--secondary-font-color);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.content {
  display: flex;
  gap: 40px;
}

.left-column {
  flex: 3;
}

.right-column {
  flex: 2;
}

section {
  margin-bottom: 30px;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-font-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-color);
}

section p {
  margin-bottom: 10px;
  color: var(--primary-font-color);
}

section p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  vertical-align: top;
  padding: 6px 0;
  text-align: left;
}

th {
  width: 90px;
  font-weight: 400;
  color: var(--secondary-font-color);
  font-size: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

td {
  color: var(--primary-font-color);
}

td strong {
  display: block;
  font-weight: 600;
  color: var(--primary-font-color);
}

td span {
  display: block;
  margin-top: 2px;
}

ul {
  list-style: none;
}

li {
  padding: 4px 0;
  position: relative;
  padding-left: 14px;
}

li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-font-color);
}

.projects-list li {
  padding: 5px 0;
  padding-left: 14px;
}

.projects-list li strong {
  display: block;
  font-weight: 600;
  color: var(--primary-font-color);
}

.projects-list li span {
  display: block;
  margin-top: 2px;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
}

.tech-list li {
  padding: 0;
  padding-left: 0;
  font-size: 14px;
  white-space: nowrap;
}

.tech-list li::before {
  display: none;
}

.buttons {
  opacity: 0;
  position: fixed;
  display: flex;
  gap: 10px;
  right: 50px;
  bottom: 50px;
  transition: opacity 0.2s ease-in-out;
  z-index: 300;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  font-family: "Karla", sans-serif;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
  background-color: #09090b;
  color: #fafafa;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  gap: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

button:hover {
  background-color: #18181b;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 2px;
}

button > .text {
  margin: 0;
  font-size: 14px !important;
  font-weight: 500;
  color: #fafafa;
}

button > span.icon {
  font-size: 18px !important;
  margin: 0 !important;
  color: #fafafa;
  line-height: 1;
}

button > .spinner {
  display: none;
  width: 14px;
  height: 14px;
}

button > .spinner:before {
  inset: -3px;
  border: 3px solid transparent;
  border-top-color: #fafafa;
}

@media print {
  body {
    background: white;
  }

  .page {
    margin: 0;
    width: 100%;
  }

  .buttons,
  .loading-overlay,
  .loading-page {
    display: none !important;
  }
}
