/* --------- Common ----------- */

@font-face {
  font-family: openSans;
  font-style: normal;
  font-weight: 400;
  src: url("open-sans-v34-latin-regular.woff2") format('woff2');
  font-display: block;
}

:root {
  --font-sans: "openSans";
  --font-code: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
  monospace;
  --nav-height: 60px;
  --footer-height: 50px;
  --max-page-width: 1080px;

  --color-blue: #0078ff;
  --color-gray-dark: #313942;
  --color-gray-light: #586067;
  --color-gray-lighter: #d3d2db;
  --color-gray-lightest:#f0f2fd;

  --bg-primary-color: var(--color-gray-lightest);
  --bg-secondary-color: var(--color-gray-lighter);
  --text-color: var(--color-gray-dark);
  --text-highlight-color: var(--color-blue);
  --text-secondary-color: var(--color-gray-light);
  --text-link-color: #8100ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  transition: background-color 0.3s, color .1s, transform 0.3s;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary-color);
  color: var(--text-color);
  letter-spacing: 0.1pt;
  line-height: 1.5;
  word-spacing: 2pt;
  font-family: var(--font-sans);
  font-size: 14px;
  height: 100%;
  margin: 0;
}

body.dark {
  --bg-primary-color: #1A374D;
  --bg-secondary-color: #0e293d;
  --text-color: #C8C6C6;
  --text-highlight-color: var(--color-blue);
  --text-secondary-color: #B1D0E0;
  --text-link-color: #bfbf1f;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

h6 {
  font-size: 12px;
}

kbd {
  font-family: var(--font-sans);
}

code {
  font-family: var(--font-code);
}

a,
button {
  cursor: pointer;
  text-decoration: none;
}

a.text-link {
  color: var(--text-link-color);
}

a.text-link:hover {
  border-bottom: 1px solid var(--text-link-color);
}

p {
  line-height: 2;
}

button {
  background-color: var(--bg-primary-color);
  border: 1px solid var(--text-secondary-color);
}

button.square-40 {
  height: 40px;
  width: 40px;
}

button.rounded {
  border-radius: 50%;
}

svg {
  color: var(--text-secondary-color);
  overflow: hidden;
  vertical-align: middle;
}

.hide {
  display: none;
}

.flex {
  display: flex;
}

.flex-right {
  margin-left: auto;
}

.sticky {
  position: sticky;
  top: 0;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.social-link .icon {
  height: 18px;
  width: 18px;
}

.social-link path {
  fill: var(--text-secondary-color);
}

/* --------- Common ----------- */

/* --------- Nav ----------- */

.page-nav {
  background-color: var(--bg-primary-color);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1;
}

.nav-items {
  align-items: center;
  display: flex;
  gap: 16px;
}

.cmdK {
  border: 1px solid var(--text-secondary-color);
  color: var(--text-secondary-color);
  border-radius: 3px;
  padding: 2px 6px;
}

/* --------- Nav ----------- */


/* --------- Header ----------- */

.page-banner {
  display: grid;
  align-items: center;
  height: calc(100vh - var(--nav-height));
  text-align: center;
}

.intro-text {
  color: var(--text-secondary-color);
  display: inline-block;
  transform: translate(0, 8px);
}

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

.page-banner .header-text {
  font-size: 48px;
}

.header-sub-text {
  color: var(--text-secondary-color);
  font-weight: 300;
  margin-bottom: 16px;
}

.page-banner .social-links {
  gap: 32px;
  margin-bottom: 40px;
  justify-content: center;
}

.profile-image {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 8px 0 var(--text-secondary-color);
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (min-width: 768px) {
  .page-banner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
  }
}

/* --------- Header ----------- */

/* --------- Content ----------- */

.page-content {
  border-radius: 5px;
  min-height: var(--content-height);
}

.sub-header {
  align-items: center;
  display: flex;
  position: relative;
  margin-bottom: 24px;
}

.sub-header::after {
  align-self: flex-end;
  content: "";
  border-radius: 3px;
  display: inline-block;
  flex: 1;
  height: 2px;
  background-color: var(--text-highlight-color);
  margin: 0 0 16px 16px;
}

.about,
.projects {
  margin-bottom: 40px;
}

.project {
  align-items: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 16px;
}

.project-card {
  display: flex;
  box-shadow: 1px 1px 10px 0 var(--bg-secondary-color);
  border-radius: 5px;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.project-image {
  height: 400px;
}

.project-link {
  position: relative;
  height: 100%;
}

.project-footer {
  background-color: var(--bg-primary-color);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  height: 35%;
  transform: translateY(60%);
}

.project-card:hover .project-footer {
  transform: translateY(0%);
  transition-delay: 100ms;
}

.project-card:hover .project-image {
  transform: scale(105%);
  transition-delay: 100ms;
}

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

.project-desc {
  color: var(--text-link-color);
  text-align: center;
  font-size: 12px;
}

/* --------- Content ----------- */

.page-nav,
.page-banner,
.page-content,
.page-footer {
  margin-inline: auto;
  max-width: var(--max-page-width);
  padding: 24px;
}

.icon {
  height: 24px;
  width: 24px;
}

/* --------- Footer ----------- */
.page-footer {
  align-items: center;
  color: var(--text-secondary-color);
  display: flex;
  font-size: 12px;
  height: var(--footer-height);
}

.page-footer a {
  padding: 4px;
}

.copyright {
  font-size: 14px;
}

/* --------- Footer ----------- */