:root {
  --bg: #080808;
  --blured: rgba(0, 0, 0, 0.65);

  --accent: #a93226;
  --surface: #111111;
  --surface-muted: #0d0d0d;
  --text: #f0f0f0;
  --text-hightlighted: #999999;
  --text-muted: #555555;
  --border: rgba(255, 255, 255, 0.1);
  --button: #080808;
  --closeButton: #a93226;
  --saveButton: #1a1a1a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --deleteToast: #a93226;
  --addToast: #555555;
  --note-accent: #c9843a;
  --journal-accent: #6b8f6b;
  --todo-accent: #4a7fa5;
  --surface-hovered: #1a1a1a;
  --border-hovered: rgba(255, 255, 255, 0.13);
  --button-hovered: #111111;
  --svg-fill: #aaaaaa;
  --svg-fill-hovered: #eeeeee;

  --large: 20px;
  --medium: 14px;
  --small: 12px;
  --tiny: 10px;

  --occupied: green;
  --unoccupied: red;
}

.light {
  --bg: #f7f7f5;
  --blured: rgba(255, 255, 255, 0.65);
  --accent: #2563eb;
  --surface: #ffffff;
  --surface-muted: #f0f0ee;
  --text: #111111;
  --text-hightlighted: #505050;
  --text-muted: #aaaaaa;
  --border: rgba(0, 0, 0, 0.1);
  --button: #f7f7f5;
  --closeButton: #1a56db;
  --saveButton: #f0f0ee;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --deleteToast: #1a56db;
  --addToast: #aaaaaa;
  --surface-hovered: #ebebea;
  --border-hovered: rgba(0, 0, 0, 0.15);
  --button-hovered: #ebebea;
  --svg-fill: #444444;
  --svg-fill-hovered: #222222;

  --large: 20px;
  --medium: 14px;
  --small: 10px;

  --occupied: green;
  --unoccupied: red;
}

*,
*::after,
*::before {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

svg {
  fill: var(--svg-fill);
}

img {
  width: 100%;
}

body {
  width: 100%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--medium);
  font-family: sans-serif;
  transition:
    background 0.2s ease-in,
    color 0.2s ease-in;
}

main {
  padding: 0 25vw 4rem 25vw;
  overflow-x: hidden;
}

header {
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 2rem;
  display: flex;
  justify-content: center;
}

nav {
  width: 100%;
  width: 50vw;
  padding: 0.5rem 1rem;
  background-color: var(--blured);
  box-shadow: var(--shadow), var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav ul {
  width: 100%;
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  text-align: center;
  font-size: var(--medium);
  color: var(--text-muted);
  transition: all 0.25s ease-in-out;
}

nav ul li a:hover {
  color: var(--text);
}

.avatarHolder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
}

ul .kr {
  margin-right: auto;
}

.theme {
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.theme:hover {
  transform: scale(1.1) rotate(45deg);
}

.mainPage {
  width: 100%;
  /* min-height: 100vh; */
  display: flex;
  column-gap: 1rem;
  margin: 10rem 0 4rem 0;
}

.me {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}

.meImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.introduction {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.introduction :nth-child(1) {
  font-size: var(--large);
  color: var(--text);
}

.introduction :nth-child(2) {
  font-size: var(--medium);
  display: flex;
  column-gap: 0.75rem;
}

.availability {
  display: flex;
  align-items: center;
}

.availability .availabilityDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--occupied);
  margin-right: 0.5rem;
  box-shadow: 0 0 10px var(--occupied);
  animation: blink 1.5s ease-in-out infinite;
}

.availability .availabilityInfo {
  font-size: var(--small);
  color: var(--text-muted);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.85);
  }
}

.media {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.media a {
  text-decoration: none;
  position: relative;
}

.media a::after {
  content: attr(data-tooltip);
  position: absolute;
  width: max-content;
  padding: 2px 4px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120%;
  background: var(--surface-hovered);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  /*z-index: 100;*/
}

.media a:hover::after {
  opacity: 1;
}

.media a i {
  font-size: var(--large);
  color: var(--svg-fill);
  transition: color 0.2s ease-in;
}

.media a i:hover {
  color: var(--accent);
}

.mainPageButtons {
  display: flex;
  column-gap: 0.5rem;
}

.mainPageButtons a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--medium);
  background: var(--button);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease-in-out;
}

.mainPageButtons a:hover {
  color: var(--text);
  background: var(--button-hovered);
}

.projects {
  width: 100%;
}

.projectTitle {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--large);
}

.projectGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: var(--surface);
  box-shadow: var(--shadow), var(--shadow);
}

.cardPreview {
  overflow: hidden;
}

.cardPreviewImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cardDetails {
  padding: 0.5rem;
}

.projectGenre {
  font-size: var(--small);
}

.cardTitle {
  color: var(--text);
  font-size: var(--medium);
  margin: 0.5rem 0;
}

.cardDescription {
  font-size: var(--small);
}

.cardLinks {
  display: flex;
  column-gap: 0.5rem;
  margin-top: 1rem;
}

.cardLinks a {
  text-decoration: none;
  position: relative;
}

.cardLinks a::after {
  content: attr(data-tooltip);
  position: absolute;
  width: max-content;
  padding: 2px 4px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120%;
  background: var(--surface-hovered);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  /*z-index: 100;*/
}

.cardLinks a:hover::after {
  opacity: 1;
}

.cardLinks a i {
  font-size: var(--large);
  color: var(--svg-fill);
  transition: color 0.2s ease-in;
}

.media a {
  text-decoration: none;
}

.cardLinks a i:hover {
  color: var(--accent);
}

.setUp {
  width: 100%;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  row-gap: 14px;
}

.setUpContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  /*justify-content: space-between;*/
}

.setUpTitle {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--large);
}

.mySystem {
  width: 100%;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  padding: 10px;
}

.systemUl {
  padding: 10px;
}

.myTools {
  width: 100%;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  padding: 10px;
}

.toolsUl {
  padding: 10px;
}

.skills {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.skills a {
  text-decoration: none;
  position: relative;
}

.skills a i {
  font-size: var(--large);
  color: var(--svg-fill);
  transition: color 0.2s ease-in;
}

.skills a::after {
  content: attr(data-tooltip);
  position: absolute;
  width: max-content;
  padding: 2px 4px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120%;
  background: var(--surface-hovered);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  /*z-index: 100;*/
}

.skills a:hover::after {
  opacity: 1;
}

.skills a i:hover {
  color: var(--accent);
}

.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 4rem;
}

.contactTitle {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: var(--large);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
}

.line {
  width: 100%;
  height: 2px;
  background: var(--border);
}

.contactWrapper {
  display: flex;
  justify-content: space-between;
}

.contactDescription {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 1rem;
}

.contactDescription :nth-child(1) {
  font-size: var(--large);
  color: var(--text);
}

.contactDescription :nth-child(2) {
  font-size: var(--medium);
}

.toContact {
  width: 50%;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.toContact input,
.toContact textarea {
  background: transparent;
  color: var(--text);
  border: none;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  outline: none;
  transition: all 0.25s ease-in-out;
}

.toContact textarea {
  resize: vertical;
  min-height: 10rem;
}

.toContact input:focus-within,
.toContact textarea:focus-within {
  border-color: var(--border-hovered);
  box-shadow: var(--shadow);
}

.toContact input::placeholder,
.toContact textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.toContact button {
  background: transparent;
  display: flex;
  column-gap: 0.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.toContact button:hover {
  border-color: var(--border-hovered);
  box-shadow: var(--shadow);
  background: var(--button-hovered);
}

.toContact button:active {
  transform: scale(0.95);
  box-shadow: none;
  border-color: var(--border);
}

.toast {
  position: fixed;
  z-index: 1000;
  bottom: 4rem;
  right: 2rem;
  background: var(--blured);
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--border);
  animation: toastAnimation 5s ease-in-out both;
}

@keyframes toastAnimation {
  0% {
    transform: translateX(1rem);
    opacity: 0;
  }

  10% {
    transform: translateX(0);
    opacity: 1;
  }

  80% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(1rem);
    opacity: 0;
  }
}

footer {
  width: 100%;
  padding: 1rem 25vw;
  background: var(--surface-muted);
  color: var(--text-muted);
}

footer p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

@media screen and (max-width: 768px) {
  main {
    padding: 0 10vw 2rem 10vw;
  }

  nav {
    width: 80vw;
  }

  footer {
    padding: 1rem 10vw;
  }
}

@media screen and (max-width: 480px) {
  main {
    padding: 0 5vw 2rem 5vw;
  }

  nav {
    width: 90vw;
  }

  .mainPage {
    flex-direction: column;
    row-gap: 2rem;
  }

  .projectGrid {
    grid-template-columns: 1fr;
  }

  .contactWrapper {
    flex-direction: column;
    row-gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .contactDescription {
    width: 100%;
    align-items: flex-start;
  }

  .toContact {
    width: 100%;
  }

  footer {
    padding: 1rem 5vw;
  }
}
