:root {
  --bg-black: #0b0b10;
  --bg-gray: #12131a;
  --text-white: #fff;
  --text-gray: #696c80;
  --text-blue: #3c6bd7;
  --text-green: rgb(34 197 94);
  --text-purple: #8c9ed4;
  --gray-gradient: linear-gradient(
    180deg,
    rgba(11, 11, 15, 0.9) 0%,
    rgba(18, 19, 26, 0.9) 100%
  );
}

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
  margin: 0;
}
/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 1.6rem;
  animation: fade ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}
/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}
/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

ul {
  list-style: none;
  padding: 0;
}

.container {
  max-width: 600px;
  padding: 0 16px;
  margin: auto;
}

.text-gray {
  color: var(--text-gray);
}

.text-green {
  color: var(--text-green);
}

.text-blue {
  color: var(--text-blue);
}

.text-purple {
  color: var(--text-purple);
}

.mt-80 {
  margin-top: 80px;
}

.fz-20 {
  font-size: 2rem;
}

.font-syne {
  font-family: 'Syne', sans-serif;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.text-hover:hover {
  color: var(--text-white);
}

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

.cursor-pointer {
  cursor: pointer;
}

.fw-bold {
  font-weight: 700;
}

header {
  background-image: var(--gray-gradient);
  position: fixed;
  width: 100%;
  z-index: 2;
}

header h2 {
  font-size: 1.6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.nav-list a {
  font-size: 1.2rem;
}

.main {
  padding-top: 180px;
}

.intro {
  font-size: 24px;
}

.tech {
  margin-top: 20px;
}

.tech-item {
  position: relative;
  padding-left: 24px;
}

.tech-item::after {
  content: '☑️';
  font-family: 'Syne', sans-serif;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.section-project {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project {
  background-color: var(--bg-gray);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-radius: 4px;
  padding: 16px 24px;
  height: 360px;
}

.project img {
  transition: all 0.3s ease;
}

.project:hover img {
  opacity: 0.6;
}

.project-link {
  display: flex;
  gap: 12px;
}

footer {
  padding-bottom: 20px;
}

.toast {
  /* min-width: 250px; */
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--bg-gray);
  color: var(--text-white);
  visibility: hidden;
}

.toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@media screen and (min-width: 450px) {
  header h2 {
    font-size: 2rem;
    font-family: 'Syne', sans-serif;
  }

  .nav-list a {
    font-size: 1.6rem;
  }

  .project {
    height: 400px;
  }
}

@media screen and (min-width: 500px) {
  .project {
    height: 480px;
  }
}
