@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "pretendard";
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  all: unset;
  cursor: pointer;
}

html,
body {
  font-size: 10px;
}
body {
  background-color: #111;
}

.inner {
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: 250px 0;
}

/* 전체 스크롤바 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: #1d1d1d;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::-webkit-scrollbar-button {
  background: #1d1d1d;
}

::-webkit-scrollbar-corner {
  background: #1d1d1d;
}

/* 공통설정 끝 */

/* -------------- header 시작 ------------------- */

header {
  position: fixed;
  width: 100%;
  height: 58px;
  top: 0;
  background: rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(5px);
  z-index: 100;
}

header .inner {
  width: 100%;
  height: 58px;
  display: flex;
  justify-content: space-between;
  line-height: 58px;
  align-items: center;
}

header .inner .logo a {
  display: flex;
}

header .inner .nav {
  display: flex;
  gap: 60px;
}
header .inner .nav li:hover a {
  color: #0f0;
  text-shadow: 0 0 12px rgba(0, 255, 47, 0.5);
}

header .inner .nav li {
}
header .inner .nav li a {
  color: #ffffff;
  font-size: 1.6rem;
  text-transform: uppercase;
}

/* ----------------- header 끝 -------------- */

.main-wrapper {
  padding-top: 58px;
  max-width: 1500px;
  margin: 0 auto;
}
.main-wrapper .text-wrapper {
  text-align: center;
  padding-top: 150px;
}
.main-wrapper .text-wrapper .sub-title h3 {
  color: #d6d6d6;
  font-size: 3rem;
  font-style: normal;
  font-weight: 300;
  line-height: 35px;
  letter-spacing: -1px;
}
.main-wrapper .text-wrapper .main-title h1 {
  color: #fff;
  font-size: 7rem;
  font-style: normal;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: -1px;
  padding-top: 12px;
}
.main-wrapper .btn-wrapper {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 100px;
  background-color: #111;
}

.main-wrapper .btn-wrapper button {
  border-radius: 8px;
  background: #333;
  color: #767676;
  text-align: center;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 500;
  line-height: 35px; /* 300% */
  letter-spacing: -1px;
  width: 100px;
  height: 35px;
}

.main-wrapper .btn-wrapper button.active {
  border: 1px solid #0f0;
  background-color: #111;
  color: #0f0;
}

/* work-wrapper는 Isotope의 레이아웃에 맡기므로 grid 대신 block 사용 */
.main-wrapper .work-wrapper {
  display: block;
  position: relative; /* Isotope가 절대 위치를 계산하기 위해 필요 */
  width: 100%;
  margin-top: 50px;
  overflow: hidden;
  margin-bottom: 100px;
}
/* 각 프로젝트 아이템: 5열 구성 (가로 20%에서 gap 고려) */
.main-wrapper .work-wrapper .project {
  position: absolute; /* Isotope가 위치 지정 */
  width: calc(20% - 12px); /* 5열 배치, gap 12px 고려 */
  margin-bottom: 12px;
  overflow: hidden;
  /* 기본 높이는 내용에 따라 결정되거나, 고정 높이를 줄 수 있습니다. */
}
.main-wrapper .work-wrapper .project:hover .bg {
  opacity: 1;
}

.main-wrapper .work-wrapper .project:hover .text {
  bottom: 0;
}

.main-wrapper .work-wrapper .project .bg {
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.9);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 5px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.main-wrapper .work-wrapper .project .text .txt {
  font-size: 1.3rem;
  font-weight: 200;
  line-height: 140%;
  color: #ddd;
}
.main-wrapper .work-wrapper .project .text .title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 7px;
}
.main-wrapper .work-wrapper .project .text {
  position: absolute;
  bottom: -100%;
  left: 0;
  padding: 0 0 20px 20px;
  width: 90%;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}
.main-wrapper .work-wrapper .project img {
  width: 100%;
  border-radius: 5px;
}

/* ------------ 팝업 설정 ------------ */

#popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: start;
  justify-content: center;
  z-index: 99;
  overflow-y: auto;
}

#popup img {
  width: 40%;
  padding-top: 70px;
}

/* ------------ 팝업 설정 끝 ------------ */

/* --------- footer 시작 -------------- */
footer {
}
footer .footer-wrapper {
  width: 100%;
  height: 150px;
  background: #0e0e0e;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footer-wrapper p {
  color: #767676;
  text-align: center;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 27px */
  letter-spacing: -1px;
}

/* --------- footer 끝 -------------- */
