body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #141414;
  font-size: 1rem;
  margin-top: 4.5rem;
}

.font-weight-light {
  font-weight: 200;
}

.font-weight-medium {
  font-weight: 400;
}

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

.font-weight-black {
  font-weight: 900;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background-color: #0a2540;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  height: 4.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
}

.nav__img {
  width: 42px;
  height: 42px;
}

.nav__brand {
  font-size: 1.5rem;
}

.nav__list {
  display: flex;
}

.nav__item {
  margin-left: 2.5rem;
}

.nav__link {
  position: relative;
  transition: all 0.3s ease;
}

.nav__link:hover {
  color: #2ecc71;
  font-weight: 700;
}

.project-hero-video {
  z-index: 1001;
}
.active-link::after,
.nav__link:hover::after {
  background-color: #2ecc71;
  height: 0.18rem;
  content: '';
  width: 100%;
  position: absolute;
  left: 0;
  top: 2rem;
}

/* Home */
.home {
  text-align: center;
  padding: 6rem 0;
}

.home__content {
  max-width: 800px;
  margin: 0 auto;
}

.home__title {
  font-size: 2.5rem;
  line-height: 3.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
  margin-top: 2.5rem;
}

.home__fade-in-block {
  opacity: 0;
  transform: scale(0.95);
  animation: fade-scale-in 1.5s ease forwards;
}

@keyframes fade-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.home__title-color {
  color: #2ecc71;
}

.home__video {
  width: 100%;
  max-width: 840px;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 2rem;
}

.home__social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.5rem;
}

.home__social-icon {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.home__social-icon:hover {
  color: #2ecc71;
}

.home__site-link {
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  height: 1.5rem;
}

.home__site-link:hover {
  color: #2ecc71;
  transform: scale(1.05);
}

.button {
  background-color: #04aa6d;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.section {
  padding: 5.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section__title {
  font-size: 2rem;
  color: #2ecc71;
  text-align: center;
  font-weight: 900;
  margin-bottom: 4rem;
  position: relative;
}

.section__title::after {
  position: absolute;
  content: '';
  width: 64px;
  height: 0.25rem;
  background-color: #2ecc71;
  left: 0;
  right: 0;
  top: 3rem;
  margin: 0 auto;
}

.section__description {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.2rem;
}

.bg-grey-1 {
  background-color: #f6f6f6;
}

/* About */
.about__container {
  display: flex;
  align-items: flex-start;
  column-gap: 3rem;
  padding-inline: 2rem;
}

.about__subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.about__text {
  line-height: 1.6;
}

.about__data {
  padding-left: 1rem;
}

.about__img {
  max-width: 500px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* Tech */
.tech-card__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-card {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tech-card__title {
  font-size: 1.4rem;
  font-weight: 900;
  justify-content: center;
  text-align: center;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-card__list {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #141414;
}

.tech-card__list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-card__list li i {
  margin-right: 0.3rem;
  font-size: 1rem;
}

.tech-tag__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-tags {
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 2rem;
}

.tech-tag__img:hover {
  transform: scale(1.2);
}

/* 카테고리별 컬러 */
.tech-card.backend {
  border-left: 4px solid #00a651;
  color: #00a651;
}

.tech-card.frontend {
  border-left: 4px solid #007acc;
  color: #007acc;
}

.tech-card.devops {
  border-left: 4px solid #8e44ad;
  color: #8e44ad;
}

/* Icon Wall */
.tech-tags {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 2rem;
  color: #555;
}

.tech-tags i:hover {
  color: #00a651;
  transform: scale(1.2);
  transition: 0.3s ease;
}

/* Work */
.work__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.work__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  display: block;
}

.work__link {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.work__link--overlay {
  position: relative;
  overflow: hidden;
}

.work__link--overlay::after {
  content: attr(title);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
  white-space: normal;
  line-height: 1.4;
  word-break: keep-all;
}

.work__link--overlay:hover::after {
  opacity: 1;
}

.work__img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: #0a2540;
  color: #ffffff;
  text-align: center;
  padding: 3rem 0;
  font-weight: 700;
}

.footer__title {
  font-size: 1.75rem;
  margin-bottom: 3rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
  margin-bottom: 3rem;
}

.footer__icon {
  font-size: 1.2rem;
}

.footer__copy {
  font-size: 0.875rem;
  font-weight: 400;
}

/* Floating Button */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #ffffff;
  background-color: #2ecc71;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
}

.floating-button:hover {
  background-color: #1d1d1d;
}

.floating-button-icon {
  font-size: 1.2rem;
}

/* Certificates */
.certificates__container ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.certificates__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  flex: 1;
}

.certificates__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  list-style: none;
}

.certificates__list li i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: #141414;
  font-size: 1.2rem;
}

.certificates__list li::marker {
  content: none;
}

.certificates__year {
  float: right;
  font-weight: 400;
  color: #555;
}

.certificates__flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
}

.footer__info {
  font-size: 0.875rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* 햄버거 버튼 PC에서는 안 보이게 설정 */
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  padding-right: 1rem;
}

/* Toggle button */
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* 모바일용 메뉴 */
@media (max-width: 768px) {
  /* Header */
  .header {
    height: auto;
    padding: 1rem 0;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 0.1rem 0;
  }

  .nav__logo {
    margin-bottom: 0;
  }

  /* 햄버거 버튼 보이기 */
  .nav__toggle {
    display: block;
  }

  /* 슬라이드 메뉴 */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 40%;
    height: 100vh;
    background-color: rgba(10, 37, 64, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 200;
  }

  /* 슬라이드 메뉴 show 상태 */
  .nav__menu.show-menu {
    right: 0;
  }

  /* 슬라이드 메뉴 내 닫기 버튼 */
  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 999;
  }

  .nav__list {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .nav__item {
    margin-left: 0;
  }

  /* Section padding 조정 */
  .section {
    padding: 3rem 1rem;
  }

  /* Home */
  .home__title {
    font-size: 1.8rem;
    line-height: 2.5rem;
  }

  .home__video {
    width: 100%;
    max-width: 100%;
    border-radius: 0.5rem;
  }

  .home__social {
    flex-direction: column;
    row-gap: 1rem;
  }

  .home__site-link {
    height: auto;
  }

  /* About */
  .about__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 1rem;
  }

  .about__img {
    max-width: 80%;
    margin-bottom: 1.5rem;
  }

  .about__data {
    padding-left: 0;
  }

  /* Work */
  .work__container {
    grid-template-columns: 1fr;
  }

  .work__img {
    height: auto;
  }

  .section__description {
    font-size: 0.95rem;
  }

  /* Tech */
  .tech-card__container {
    grid-template-columns: 1fr;
  }

  .tech-tags {
    font-size: 1.5rem;
    gap: 1rem;
  }

  /* Certificates */
  .certificates__list li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
  }

  .certificates__year {
    float: none;
    display: block;
    margin-top: 0.3rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem;
  }

  .footer__title {
    font-size: 1.5rem;
  }

  .footer__social {
    flex-direction: column;
    row-gap: 1rem;
  }

  .footer__info,
  .footer__copy {
    font-size: 0.8rem;
  }

  /* Floating Button */
  .floating-button {
    bottom: 25px;
    right: 15px;
  }
}

/* PC에서는 X 닫기 버튼 숨기기 */
@media (min-width: 769px) {
  .nav__close {
    display: none;
  }
}
