@import url("https://fonts.googleapis.com/css2?family=Gruppo&display=swap");

@font-face {
  font-family: "nijimi";
  src: url("fonts/nijimi.woff2") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999; 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}

.loading-content {
  text-align: center;
  width: 200px;
}

.loading-text {
  font-family: 'nijimi', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.5em;
  margin-bottom: 20px;
}

.loading-bar-container {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

#loading-bar {
  width: 0%;
  height: 100%;
  background-color: #fff;
  transition: width 0.3s ease;
}

.noscript {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "serif";
}

body {
  background-color: #000;
  margin: 0;
  color: #c3c3c3;
  line-height: 1.8;
  overflow-x: hidden; 
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.6;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.menu-top ul li,
.section-title,
.tech-label,
.tech-stack,
.sns-links,
.title-en {
  font-family: "Gruppo", sans-serif;
  letter-spacing: 0.15em;
}

.section-body {
  font-family: "nijimi", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: 2;
  letter-spacing: 0.05em;
  border-left: 0.5px solid #ffffff;
  padding-left: 10px;
}

#ui-wrapper {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.fixed-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  z-index: 20;
}

.fixed-ui nav,
.fixed-ui a {
  pointer-events: auto;
}

.menu-top ul li {
  font-size: 1rem;
  cursor: default;
  transition:
    color 0.5s ease,
    opacity 0.5s ease;
  font-family: "Gruppo", sans-serif;
  letter-spacing: 0.15em;
}

.menu-top ul li.is-active {
  color: #da5252;
  transition: color 0.5s ease;
}

.menu-top ul {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.title-bottom h1 {
  font-size: 25px;
  font-weight: 300;
  font-family: "nijimi", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: 2;
  letter-spacing: 0.1em;
  margin: 0;
}

.inner {
  width: 100%;
  max-width: 400px;
  pointer-events: auto; 
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.section-body p {
  margin-bottom: 1.5em;
  font-size: 15px;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  opacity: 0.7;
}

.btn-link {
  display: inline-block;
  border: 0.5px solid #fff;
  padding: 10px 20px;
  font-size: 13px;
  margin-top: 10px;
  font-family: "Gruppo", sans-serif;
}

.sns-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}


.sound-btn {
  position: fixed;
  z-index: 100;
  cursor: pointer;
  font-family: "Gruppo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  border: 0.5px solid rgba(255, 255, 255, 0.3); 
  padding: 4px 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.sound-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.05);
}


@media (min-width: 1025px) {
  #ui-wrapper {
    position: fixed;
    height: 100vh;
    width: 100%; 
  }

  .content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    display: flex;
    pointer-events: none;
  }


  .inner {
    flex-shrink: 0; 
    width: 400px; 
    filter: url(#mist-filter); 
    will-change: filter, opacity;
  }

  .s1 {
    justify-content: flex-end;
    align-items: center;
    padding: 0 10% 10% 0;
  }

  .s2 {
    justify-content: flex-start;
    align-items: center;
    padding: 5% 0 0 10%;
  }

  
  .s3 {
    justify-content: center;
    align-items: center;
  }

  .sound-btn {
    bottom: 30px;
    left: 30px;
  }
}

@media (max-width: 1024px) {
  .title-bottom h1 {
    text-align: center;
    font-size: 20px;
  }

  .content-section {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px; 
    text-align: center;
  }
  .inner {
    max-width: 100%;
    text-align: left;
  }

  .fixed-ui {
    justify-content: flex-end;
    padding: 20px 0;
  }

  .menu-top {
    display: none;
  }

  .tech-stack,
  .sns-links {
    justify-content: normal;
    align-items: start;
  }

  .sound-btn {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}
