@font-face {
  font-family: 'roboto regular';
  /* 원하는 이름 */
  src: url('./fonts/Roboto-Regular.woff2') format('woff2'),
    url('./fonts/Roboto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;

}

.about-title {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 좌측 정렬 */
}

.about-title h1 {
  font-size: 3.5rem;
  margin: 0;
  /* 기본 마진 제거 */
  padding: 0;
  /* 기본 패딩 제거 */
  font-weight: bold;
  letter-spacing: 3px;
  width: max-content;
  /* 텍스트 길이만큼 너비 */
}

.tag {

  padding: 5px 10px;
  background-color: #ffffffaf;
  font-size: 0.8rem;
  color: #37383a;
  border: 2px solid rgba(189, 189, 189, 0.475);
  box-shadow: 0.1px 1px 5px rgba(0, 0, 0, 0.077);
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

body {
  line-height: 1.6;
  color: #000000;
  margin: 0;
  padding: 0;
  font-family: 'roboto regular';

}

.short-rounded-line {
  height: 1px;
  /* 두께 */
  width: 95%;
  /* 전체 너비 중 일부만 차지 */
  background-color: #b8b8b8;
  /* 선 색상 */
  border-radius: 999px;
  /* 둥근 양 끝 */
  margin: 40px auto;
  /* 가운데 정렬 & 위아래 여백 */
}

.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2200ff;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: multiply;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: #f00404;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.scroll-to-works {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  border: none;
  color: #000;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.scroll-to-works:hover {
  opacity: 0.7;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.317);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo-image {
  height: 40px;
  width: auto;
}

.image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

nav a {
  text-decoration: none;
  color: #000000;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.s;
}

nav a:hover {
  color: #2f00ff;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* 링크들 사이 간격 */
  text-align: left;
}

#modeToggle {
  background: #000000;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background-color: white;
}

.contact {
  color: #000000
}

.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 18rem;
  padding: 2rem;
  flex-wrap: wrap;
}

#modeToggle:hover {
  background: #ffffff;

  stroke: #000000;

}

#hero-animation {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.right-menu {
  display: flex;
  gap: 50px;
  /* 우측 메뉴 간격 */
}

a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'roboto regular';
  background-color: #f5f5f5;
  color: #333;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  color: #000
}


.header-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.theme-toggle {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Removed duplicate menu-toggle styles */

.main-content {
  margin-top: 100px;
  padding: 0 40px;
}

/* ── Project Hero ── */
.project-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f5f5f5;
  padding: 3% 6% 3%;
  margin: 0 -40px 30px;
  gap: 0.75rem;
}

.project-hero-left {
  flex: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.project-hero-right {
  flex: none;
  width: 100%;
  max-width: 560px;
  padding: 0;
  margin: 0 auto;
}

.project-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
  line-height: 1.1;
  text-align: center;
}

.project-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.75;
  font-weight: 400;
  margin: 0;
}

.project-hero .project-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.6rem;
}

.project-hero .tag {
  background: none;
  border: none;
  box-shadow: none;
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  margin: 0;
}

.project-hero .tag+.tag::before {
  content: ' · ';
  color: #aaa;
  margin: 0 0.3rem;
}

@media (max-width: 768px) {
  .project-hero {
    padding: 4rem 20px 2rem;
    margin: 0 -20px 20px;
    gap: 0.5rem;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .project-hero-right {
    max-width: 100%;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.project-video {
  text-align: center;
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 5px;
}

.project-gif {
  text-align: center;
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 5px;
}


.project-header {
  margin-bottom: 10px;
}

.hero-image img {
  width: cover;
  /* 원본 너비대로 표시 */
  max-width: 100%;
  /* 너무 커지지 않도록 제한 */
  height: auto;
  /* 원본 비율 유지 */
  border-radius: 20px;
}

.project-details {
  margin-bottom: 0px;
  text-align: center;
}

.project-image {
  text-align: center;
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: -4px;
}


@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.content-section {
  display: flex;
  flex-direction: column;
  max-width: 660px;
  margin: 0 auto 100px;
  gap: 2.5rem;
  padding: 0;
  align-items: stretch;
}

.description {
  order: 1;
}

.project-info {
  order: 2;
}

.description {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
  color: #d9d9d9;
  padding: 0;
  text-align: left;
}

.description p {
  margin-bottom: 1.2em;
}

/* 스크롤 reveal - 각 word span */
.description .word {
  display: inline;
}

.project-info {
  columns: 2;
  column-gap: 4rem;
  position: static;
  top: auto;
  width: 100%;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  break-inside: avoid;
  margin-bottom: 1.8rem;
}

.info-label {
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.95rem;
  color: #222;
  font-weight: 400;
  line-height: 1.5;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-list {
  color: #222;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .content-section {
    max-width: 100%;
    gap: 2rem;
  }

  .description {
    font-size: 1rem;
  }

  .project-info {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

}

@media (max-width: 480px) {
  .project-info {
    columns: 1;
  }
}

.links-section {
  display: flex;
  gap: 30px;
  margin-bottom: 80px;
}

.next-page-link {

  text-align: right;
  /* 오른쪽 정렬 */
  margin-top: 4rem;
  /* 위와 간격 */
  margin-bottom: 2rem;
  padding-right: 2rem;
  /* 오른쪽 여백 */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: all 0.3s;
}

body.dark-mode .hamburger span {
  background: #fff;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 5rem 2.5rem 2.5rem;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.side-drawer.open {
  transform: translateX(0);
}

.side-drawer a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.side-drawer a:hover {
  color: #2f00ff;
}

.drawer-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.dark-mode .side-drawer {
  background: #111;
}

.dark-mode .side-drawer a {
  color: #fff;
}

.dark-mode .drawer-close {
  color: #fff;
}

header,
.custom-cursor,
.main-content {
  z-index: auto;
}

header,
.main-content {
  z-index: 10;
}

.custom-cursor {
  z-index: 9999;
}

.next-project-preview {
  max-width: 660px;
  margin: 5rem auto 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e0e0e0;
}

.next-project-preview > a {
  display: block;
  text-decoration: none;
  color: inherit;
  font-weight: normal;
}

.next-label {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.next-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #111;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.next-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
}

.next-thumb img,
.next-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.next-project-preview > a:hover .next-title {
  color: #2200ff;
}

.next-project-preview > a:hover .next-thumb img,
.next-project-preview > a:hover .next-thumb video {
  transform: scale(1.03);
}

/* 기존 스타일 유지 (다른 페이지 호환) */
.next-page-link a {
  font-family: 'roboto light';
  gap: 8px;
  font-size: 3rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
}

.next-page-link a:hover {
  color: #0800ff;
}

.arrow-icon {
  width: 3rem;
  height: auto;
}

.next-page-link .arrow {
  font-size: 4rem;
  /* 화살표 크게 */
  margin-left: 0.5rem;
}

.next-project {
  font-family: 'roboto light';
  margin-bottom: 80px;
  font-weight: 300
}

.next-project h2 {
  font-family: 'roboto light';
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 40px;
  margin-top: 40px;


}

.next-project-title {

  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 8px;

}


@media (max-width: 768px) {
  .main-content {
    padding: 10 16px;
  }


  .project-title {
    font-size: 2.5rem;

  }

  .project-subtitle {
    font-size: 1.3rem;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .description {
    padding: 0;
  }


  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .links-section {
    flex-direction: column;
    gap: 20px;
  }
}

#modeToggle {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 11px;
  margin-right: 20px;
}

.dark-mode {
  background-color: #1e1e1e;
  color: #fff;
}

#modeToggle {
  width: 18px;
  /* 원 크기 */
  height: 18px;
  border-radius: 50%;
  /* 원 모양 */
  background-color: black;
  /* 다크 모드일 때 검은 원 */
  border: 2px solid black;
  /* 테두리 없애기 */
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
}

.mode-transition {
  content: "";
  position: absolute;
  top: var(--circle-y, 50%);
  left: var(--circle-x, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  animation: expandCircle 0.6s ease-out forwards;
}

.dark-mode-transition {
  background: #1e1e1e;
}

.light-mode-transition {
  background: white;
}

@keyframes expandCircle {
  0% {
    width: 0;
    height: 0;
  }

  100% {
    width: 300vw;
    height: 300vw;
  }
}

body.dark-mode .about-description p {
  color: #fff;
}

.dark-mode header {
  background: #333;
}

.dark-about-description {
  color: white;
}

.dark-mode nav a {
  color: white;
}

.dark-mode #modeToggle {
  border: 1px solid black;
  background-color: white;
}

body.dark-mode .description {
  color: #ffffff !important;
}

body.dark-mode .info-label {
  color: #0015ff !important;
}

body.dark-mode .info-value {
  color: #ffffff !important;
}

body.dark-mode .team-list {
  color: #ffffff !important;
}

team-list .contact-info {

  display: flex;
  justify-content: left;
  gap: 1rem;
  flex-wrap: wrap;
  color: #000000;
}

.contact-item {

  text-align: center;
  flex: 1;
  min-width: 200px;
}

.more-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0;
  /* 위아래 간격 */
  width: 100%;
}

.more-button:hover {
  transform: scale(1.05);
}

.contact-info {
  display: flex;
  justify-content: left;
  gap: 1rem;
  flex-wrap: wrap;
  color: #000000;
}

.contact-icon {

  font-size: 2rem;
  margin-bottom: 1rem;
}

.icons {
  size: 10px;
}

.get-in-touch-section {
  font-family: 'roboto regular';
  background-color: white;
  padding: 4rem 2rem;
}

footer {
  font-family: 'roboto regular';
  background: #98989a;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.fade-in {
  font-family: 'roboto regular';
  transform: translateY(30px);
  transition: all 0.8s ease;
  color: #0000ff;
}

.fade-in.visible {

  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-family: 'roboto regular';
  text-align: left;
  padding-left: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.right-link {

  color: #000000
}

@media (max-width: 768px) {
  .about-content {
    font-family: 'roboto regular';
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    font-family: 'roboto regular';
    flex-direction: column;
    gap: 2rem;
  }

  .section-title {
    font-family: 'roboto regular';
    font-size: 2rem;
  }
}

/* ══ Vertical Behance-style Gallery ══ */
.vertical-image-gallery {
  display: flex;
  flex-direction: column;
  width: calc(100% + 80px);
  margin: 0 -40px 60px;
  gap: 0;
}

.vertical-image-gallery .project-image,
.vertical-image-gallery .project-video {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

@media (max-width: 768px) {
  .vertical-image-gallery {
    width: calc(100% + 40px);
    margin: 0 -20px 40px;
  }
}

/* ══ Media Carousel Slider ══ */
.media-carousel-container {
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.media-carousel-container::-webkit-scrollbar {
  display: none;
}

.media-carousel-container.active {
  cursor: grabbing;
}

.media-carousel-track {
  display: flex;
  gap: 30px;
  padding: 0 40px;
  width: max-content;
}

.media-carousel-card {
  width: auto;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.dark-mode .media-carousel-card {
  background-color: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.media-carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark-mode .media-carousel-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.media-carousel-card img,
.media-carousel-card video {
  width: auto;
  height: 100%;
  object-fit: unset;
  display: block;
  pointer-events: auto;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.media-carousel-card:hover img,
.media-carousel-card:hover video {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .media-carousel-track {
    padding: 0 20px;
    gap: 15px;
  }

  .media-carousel-card {
    width: auto;
    height: 280px;
    border-radius: 16px;
  }
}

/* ══ Lightbox Overlay ══ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark-mode .lightbox-overlay {
  background-color: rgba(15, 15, 15, 0.98);
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-overlay.fade-out {
  animation: lightboxFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.lightbox-media {
  max-width: 80vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: lightboxZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.9);
  }

  to {
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 3.5rem;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dark-mode .lightbox-close {
  color: #fff;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: #000;
}

.dark-mode .lightbox-close:hover {
  color: #ff5f56;
}

.lightbox-media-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
  max-height: 82vh;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  outline: none;
  padding: 12px 20px;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  z-index: 1;
  opacity: 0.6;
  line-height: 1;
}

.lightbox-nav:hover {
  opacity: 1;
  color: #000;
  transform: translateY(-50%) scale(1.15);
}

.dark-mode .lightbox-nav {
  color: #fff;
}

.dark-mode .lightbox-nav:hover {
  color: #fff;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #888;
}

.dark-mode .lightbox-counter {
  color: #aaa;
}