html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: black;
  text-align: center;
  align-items: center;
  background-image: url("images/background2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: -1;
}

header h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 200px;
  font-weight: 400;
  color: white;
  margin: 0 auto;
}

.title-wrap {
  display: inline-block;
}

.viz {
  height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

#viz-top {
  margin: 200px auto -37.5px auto;
}

#viz-bottom {
  margin: -50px auto 200px auto;
  align-items: flex-end;
  transform: scaleY(-1);
}

.viz .bar {
  width: 16px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
  transform-origin: bottom center;
  transition: height 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .viz .bar {
    transition: none;
  }
}

#hero-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 300px 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  font-weight: 400;
  margin: 30px;
  display: inline-block;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 100%;
  height: 2px;
  background-color: white;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover::after {
    transform: scaleX(1);
  }

  nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

@media (hover: none) and (pointer: coarse) {
  nav a:active::after {
    transform: scaleX(1);
    transition-duration: 0.4s;
  }
}

.fly-nav {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffffdd;
  backdrop-filter: saturate(180%) blur(10px);
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}

.fly-nav.visible {
  transform: translateY(0);
}

.fly-nav .container {
  margin: 5px auto 5px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fly-nav a {
  color: #000000;
  margin: 0 20px;
  font-size: 36px;
}

.fly-nav a::after {
  background-color: black;
}

.fly-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

main h2 {
  color: rgb(151, 151, 151);
  font-family: "Bebas Neue", sans-serif;
  font-size: 64px;
  font-weight: 400;
}

main h3 {
  color: white;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 64px;
}

#about-me {
  scroll-margin-top: 80px;
}

#skills {
  scroll-margin-top: 80px;
}

#projects {
  scroll-margin-top: 80px;
}

#contact {
  scroll-margin-top: 80px;
}

#about-me {
  margin-bottom: 200px;
}

#about-me ul {
  color: white;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

#about-me img {
  display: block;
  margin: 0 auto 10px;
}

#skills {
  color: white;
  margin-bottom: 200px;
}

#skills ul {
  list-style: none;
}

.skill-types {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 36px;
  padding: 0;
}

.skill-types > li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  font-weight: 700;
}

.skill-names {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.skill-names li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 5px;
  font-weight: 600;
  color: black;
  gap: 8px;
  padding: 5px 10px;
}

.skill-names li img {
  display: block;
  max-height: 30px;
  width: auto;
  height: auto;
}

.skill-names a {
  text-decoration: none;
  color: black;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#projects {
  margin-bottom: 200px;
}

#project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0 10% 0 10%;
  text-align: left;
}

@media (max-width: 1600px) {
  #project-list {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  color: white;
  padding: 0;
  margin: 10px 0 10px 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 32px;
  background-color: black;
  border-radius: 5px;
  padding: 0 10px;
  align-self: center;
}

.project-card hr {
  margin: 0 10px;
}

.project-card .project-description {
  margin: 10px 10px 10px 20px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.project-card ul {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 500;
  list-style: disc;
  margin: 0 10px 10px 0;
}

.project-card .project-skills {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 10px 0 10px;
  padding: 2px 5px;
  color: rgb(110, 104, 45);
  background-color: rgb(255, 234, 165);
  border-radius: 5px;
  border: 1px solid rgb(255, 221, 109);
  align-self: flex-start;
}

.project-card a {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  padding: 2px 5px;
  text-decoration: none;
  color: black;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  border: 1px solid rgb(173, 173, 173);
  align-self: flex-start;
  display: flex;
  align-items: center;
}

.project-card img {
  display: inline-block;
  max-height: 30px;
  width: auto;
  height: auto;
  margin-right: 10px;
}

.project-related-links {
  display: flex;
  flex-wrap: wrap;
  margin: 10px;
  gap: 10px;
}


#contact h2 {
  margin-bottom: 0;
}

#contact h3 {
  font-size: 24px;
}

footer p {
  color: rgb(68, 68, 68);
}
footer a {
  color: rgb(68, 68, 68);
}

/* 모바일용 */

@media (max-width: 700px) {
  header h1 {
    font-size: 100px;
    margin: 25px 0;
  }

  #viz-top {
    margin: 20px auto -37.5px auto;
  }

  #viz-bottom {
  margin: -42.5px auto 50px auto;
  }

  #hero-nav ul {
    flex-wrap: wrap;
    margin: 0 0 150px 0;
  }

  nav a {
    font-size: 64px;
    margin: 0 30px;
  }

  .fly-nav a {
    margin: 0 10px;
    font-size: 24px;
  }

  #about-me {
    margin-bottom: 0px;
  }
  #about-me h3 {
    font-size: 24px;
  }

  #about-me ul {
    font-size: 18px;
    gap: 20px;
  }

  #skills {
    margin: 0;
  }

  .skill-names {
    flex-wrap: wrap;
    margin: 0 20px;
    justify-content: center;
  }

  .skill-types > li {
    font-size: 24px;
    word-break: keep-all;
    flex-direction: column;
  }

  #projects {
    margin: 0;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card .project-description {
    font-size: 16px;
  }

  .project-card ul {
    font-size: 16px;
  }

  .project-card .project-skills {
    font-size: 16px;
  }

  .project-card a {
    font-size: 16px;
  }
}
