body {
  margin: 0;
  background: black;
  color: #00ff00;
  overflow-x: hidden;
  font-family: "Pretendard-Regular", sans-serif;
  padding-top: 70px;
  height: 100vh;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

@font-face {
  font-family: "Pretendard-Regular";
  src: url("https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 255, 0, 0.1);
  padding: 1rem;
  text-align: center;
  z-index: 100;
  backdrop-filter: blur(5px);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: larger;
}

nav a {
  color: #00ff00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #99ff99;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
  padding: 100px 20px;
}

.text-box {
  background-color: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ff00;
  max-width: 90%;
  margin: 0 auto;
}

.text-box h1 {
  color: #00ff00;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #00ff00;
}

.text-box p {
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
  font-size: 1.2rem;
  margin-top: 1rem;
  max-width: 800px;
  text-shadow: 0 0 5px #00ff00;
}

ul li {
  font-size: 1.2rem;
  margin: 10px 0;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
}

.image-animate {
  width: 300px;
  margin-top: 30px;
  animation: popUp 3s ease-in-out forwards;
  opacity: 0;
}

@keyframes popUp {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  h1 {
    font-size: 32px;
  }

  .container,
  .section {
    padding: 60px 15px;
  }

  .text-box {
    padding: 1.5rem 1.5rem;
  }
}

.menu {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  list-style: none;
}

.menu a {
  color: #00ff00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
  color: #99ff99;
}

/* 반응형에서도 가로 정렬 유지 */
@media (max-width: 768px) {
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
