* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: pretendard, sans-serif;
  font-weight: 100;
  background-color: #fff;
  color: #000;
}

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

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between; /* ✅ 핵심: 양쪽 끝으로 정렬 */
  align-items: center;
}

button.hamburger {
  all: unset; /* 기본 버튼 스타일 제거 */
  width: 28px;
  height: 30px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

button.hamburger span {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: black;
  left: 0;
  transition: 0.3s ease;
  border-radius: 2px;
}
button.hamburger span:nth-child(1) { top: 0; }
button.hamburger span:nth-child(2) { top: 10px; }
button.hamburger span:nth-child(3) { top: 20px; }

.menu-open button.hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
  background: white;
}
.menu-open button.hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-open button.hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
  background: white;
}

.menu-open header {
  background-color: rgba(0, 0, 0, 0.01);
}



.overlay {
  position: fixed; top: 0; left: 0; height: 500vh; width: 100vw;
  background-color: rgba(0,0,0,0.4); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; z-index: 999;
}
.menu-panel {
  position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
  background-color: #000; color: white; padding: 100px 40px;
  transition: right 0.3s ease; z-index: 1000;
}
.menu-panel a {
  display: block; margin: 1.2rem 0; text-decoration: none;
  font-size: 1.8rem; color: white;
}
.menu-panel a:hover { color: #d01a6f; }
.menu-open .menu-panel { right: 0; }
.menu-open .overlay { opacity: 1; pointer-events: auto; }

.hero {
  text-align: center; padding: 11rem 1rem 1rem;
}

.hero h1 {
  font-size: 4rem; margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.scroll-indicator {
  margin-top: 2rem; margin-bottom: 1rem;
  animation: bounce 2s infinite;
}


.rotating-text-container {
  position: relative;
  overflow: hidden;
  height: 6rem; /* 여기에 원하는 높이 조정 */
  margin: 3rem auto; /* 위아래 여백 */
  font-size: 2.2rem;
  line-height: 1.5em;
  padding: 0 1rem;
  text-align: center;
}

.rotating-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.rotating-text.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}



@media (max-width: 1024px) {
  .rotating-text-container {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .rotating-text-container {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .rotating-text-container {
    font-size: 1rem;
  }
}


.rotating-text.active {
  opacity: 1;
}


@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}


.portfolio-section {
  max-width: 1400px; margin: 0 auto; padding: 0rem 1rem 4rem 1rem;
  background-color: #fff;
}
.projects {
  column-count: 3; column-gap: 2.5rem; padding: 1rem;
}
@media (max-width: 1024px) {
  .projects { column-count: 2; }
}
@media (max-width: 680px) {
  .projects { column-count: 1; }
}
.project-card {
  display: inline-block; width: 100%; margin-bottom: 2.5rem;
  transition: transform 0.3s; break-inside: avoid;
}
.project-card:hover { transform: scale(1.02); }

.about {
  background-color: #f5f5f5; padding: 100px 40px; text-align: center;
}
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem; max-width: 1200px; margin: 0 auto;
}
.about-box { position: relative; overflow: hidden; }
.about-box img {
  width: 100%; display: block;
}
.about2-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; padding: 0.1rem; text-align: center;
}
.about2-text h3 {
  font-size: 50px; margin-bottom: 0.5rem;
  opacity: 0; transition: opacity 0.5s ease;
}
.about2-text h3[data-animated="true"] {
  opacity: 1;
}
.about2-text p {
  font-size: 18px; line-height: 1.4;
}

.count-circle {
  width: 240px;
  height: 240px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.count {
  font-size: 45px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.count .unit {
  font-size: 0.4em;
  margin-left: 0.4em;
  align-self: center;
  line-height: 1;
}

.label {
  font-size: 1.2rem;
  margin-top: 4px;
  color: #333;
}

.cta-section {
  max-width: 1400px; margin: 0 auto;
  background-color: #fff; padding: 100px 40px; text-align: center;
}

.cta-section h2 {
  font-size: 36px; margin-bottom: 50px;
}

#topBtn {
  position: fixed; bottom: 40px; right: 40px; z-index: 1001;
  background-color: #222; border: none; border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#topBtn:hover {
  opacity: 1; transform: scale(1.1);
}
#topBtn.hide {
  opacity: 0; pointer-events: none;
}
footer {
  text-align: center; background-color: #000;
  font-size: 1rem; padding: 4rem; color: #fff;
}
footer a {
  color: white; text-decoration: none;
}
.contact-info span {
  color: #888; font-size: 1rem;
}
.contact-info a {
  color: inherit; font-size: inherit; text-decoration: none;
}



@media (max-width: 768px) {
  .menu-open .menu-panel {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
  }

  .menu-panel a {
    color: white;
    font-size: 1.8rem;
    margin: 1.2rem 0;
    text-align: center;
  }

  .menu-open .logo img {
    filter: brightness(0) invert(1);
  }

  .menu-open button.hamburger span {
    background-color: white;
  }
}

.menu-open .logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.menu-panel .contact-info {
  color: #888;
  font-size: 1rem;
}

.menu-panel .contact-info a {
  color: #888;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-panel .contact-info a:hover {
  color: #d01a6f;
  font-size: 1rem; /* ✅ hover 시에도 글자 크기 고정 */
}
