@import url('https://fonts.googleapis.com/css2?family=Grandiflora+One&display=swap');

:root {
  --primary-color: #222222;
  --primary-color-dark: #242424;
  --secondary-color: #1f2937;
  --text-dark: #181818;
  --text-light: #5a5a5a;
  --extra-light: #e0e0e0;
  --extra-dark: #c9c9c9;
  --max-width: 1200px;
}

* {
  user-select: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

body {
  font-family: "Grandiflora One", cursive;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 99;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}
nav .logo a:hover {
  color: var(--primary-color-dark);
}

nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: left 0.3s;
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  transition: 0.3s;
}

ul li a:hover {
  border-top-color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  color: var(--secondary-color);
}

.section {
  background-color: var(--extra-light);
}

.second_section {
  background-color: var(--extra-dark);
}

.section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.title span {
  font-weight: 1000;
}

.description {
  font-weight: 1000;
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.action__btns {
  display: flex;
  gap: 1rem;
}

.action__btns button {
  font-family: "Grandiflora One", cursive;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  outline: none;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.about__me {
  background-color: var(--primary-color);
  color: #ffffff;
}

.about__me:hover {
  background-color: var(--primary-color-dark);
}

.videos {
  color: var(--primary-color);
}

.videos:hover {
  background-color: var(--primary-color-dark);
  color: #ffffff;
}

.image {
  display: grid;
  place-items: center;
}

.image img {
  width: min(25rem, 90%);
  border-radius: 100%;
}


/* 포트폴리오 CSS */

.pf_subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: -0.5rem;
}

.pf_title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.pf_title span {
  font-weight: 600;
}

.pf_description {
  font-weight: 1000;
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}


/* 패치노트 CSS */

.pn_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pn_subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pn_title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.pn_title span {
  font-weight: 600;
}

.pn_description {
  font-weight: 1000;
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.history_btn {
  color: var(--primary-color);
  border-radius: 5px;
  border: 2px solid var(--primary-color);
  font-family: "Grandiflora One", cursive;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  outline: none;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.history_btn:hover {
  background-color: var(--primary-color-dark);
  color: #ffffff;
}

/* 모바일 최적화 */

@media (width < 750px) {
  nav .checkbox {
    display: block;
  }

  ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 85px);
    left: -100%;
    top: 83px;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  nav #check:checked ~ ul {
    left: 0;
  }

  ul li a {
    font-size: 1.25rem;
  }

  .section__container {
    padding: 10rem 1rem 5rem 1rem;
    text-align: center;
    grid-template-columns: repeat(1, 1fr);
  }

  .image {
    grid-area: 1/1/2/2;
  }

  .action__btns {
    margin: auto;
  }

}