:root {
  --bg: #1c1c1c;
  --header: #ffffaf;
  --code: #8fafd7;
  --str: #87af87;
  --text: #bcbcbc;
}

* {
  font-size: 18px;
  box-sizing: border-box;
}

body {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  background-color: var(--bg);
  min-width: 100dvw;
  height: 100dvh;
  margin: 0;
  display: flex;
  justify-content: center;
}

p {
  max-width: 65ch;
  margin: 0;
}

.content {
  display: flex;
  flex-direction: row;
  max-width: 680px;
  width: 100%;
  padding: 24px;
  min-height: 100dvh;
  height: fit-content;
  gap: 12px;
  position: relative;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  gap: 50px;
  position: relative;
}

h1,
h2,
h3 {
  margin: 0;
  padding: 0;
}

h1 {
  color: var(--header);
}

h2 {
  color: var(--str);
  margin-bottom: 10px;
}

ul {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  transition: transform 200ms ease-in;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color ease-out 300ms;
}

a:hover {
  color: var(--header);
  transition: color 0ms;
}

#about {
  margin-top: 64px;
}

.text-header {
  color: var(--code);
}

.desc-body {
  margin-top: 24px;
}

.skills {
  margin-top: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
}

#projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-cont {
  height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #8fafd74a;
  padding: 24px;
  border-radius: 24px;
  box-sizing: border-box;
  transition: border-color ease-out 300ms;
}

.project-cont:hover {
  border-color: var(--header);
  transition: border-color ease-in 500ms;
}

.project-cont img {
  width: 256px;
  height: 100%;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-title {
  color: var(--str);
}

.project-btn-cont {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.school {
  color: var(--code);
}

button {
  background-color: var(--code);
  color: var(--bg);
  border: none;
  width: fit-content;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  border-radius: 25px;
  transition: transform ease-out 100ms;
}

button:hover {
  transform: scale(1.05);
}

.educ-sub-detail {
  font-size: 14px;
}

footer {
  margin-top: 48px;
}

footer p {
  font-size: 14px;
}

@media (max-width: 480px) {
  * {
    font-size: 14px;
  }
  .content {
    width: 100dvw;
    padding: 20px;
  }

  ul {
    gap: 15px;
  }

  .project-cont {
    flex-direction: column;
  }
}

@media (min-width: 481px) and (max-width: 840px) {
  .content {
    width: 80dvw;
  }
}
