@import url("./reset.css");
@import url("./common.css");
@import url("./loader.css");

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  mix-blend-mode: difference;
  text-transform: uppercase;
  font-family: var(--font-family-nenu);
  z-index: 99;
}
header .logo {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  gap: 4px;
}
header .logo img {
  width: 40px;
}
@media (max-width: 898px) {
  header .logo img {
    width: 32px;
  }
}
.gnb ul {
  display: flex;
  align-items: center;
  font-size: clamp(14px, 1rem, 16px);
  gap: 1.5rem;
}
.gnb ul li a {
  display: block;
}

aside {
  position: fixed;
  mix-blend-mode: difference;
  font-family: var(--font-family-nenu);
  font-size: clamp(14px, 1rem, 16px);
  text-transform: uppercase;
  z-index: 99;
}
.current-section {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-lr;
}
.scroll-direction {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
}
.cursor-position {
  position: fixed;
  bottom: 4rem;
  left: 2rem;
  letter-spacing: 0.1rem;
}
.scroll-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 300px;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  --progress: 0;
}
.scroll-bar::before {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: var(--progress);
  background: #fff;
  border-radius: 16px;
  transition: 0.5s;
}
.copyright {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2rem;
}
.email {
  position: fixed;
  right: 2rem;
  bottom: calc(2rem - 3px);
  text-transform: none;
}
.email a {
  display: block;
}
.underline::after {
  display: block;
  content: "";
  width: 0%;
  height: 1px;
  background-color: #fff;
  margin-top: 2px;
  transition: 0.5s;
}
.underline:hover::after {
  width: 100%;
}

footer {
  position: relative;
  margin-top: 50vh;
  width: 100%;
  height: 100vh;
  padding: 3rem;
  overflow: hidden;
  padding-bottom: 5rem;
}
footer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
}
footer .footer-title {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  font-size: clamp(55px, 11vw, 210px);
}

.cursor {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.3s linear;
}
.cursor:not(.link) {
  mix-blend-mode: difference;
}
.cursor .cursor-dot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  margin-right: 1rem;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.cursor .cursor-dot.on {
  width: 6rem;
  height: 6rem;
}
.cursor.link .cursor-dot {
  display: none;
}
.cursor .circle {
  display: none;
  text-transform: capitalize;
  font-family: var(--font-family-nenu);
  letter-spacing: 2px;
  will-change: transform;
  animation: circleAnimation 15s linear infinite;
}
.cursor.link .circle {
  display: block;
}

@keyframes circleAnimation {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
