/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts */
body {
  font-family: -apple-system, "SF Pro", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #9e9e9e;
  background-color: #08090a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page Layout */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 200px;
  width: 1069px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-name {
  color: #9e9e9e;
  font-size: 16px;
  line-height: 24px;
}

.description-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-item {
  color: #9e9e9e;
  font-size: 16px;
  line-height: 24px;
}

.nav-item:hover {
  color: #dedede;
}

/* Projects Section */
.projects {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 245px;
  flex-shrink: 0;
}

.card-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #dedede;
}

.description {
  font-size: 16px;
  line-height: 24px;
  color: #9e9e9e;
}

.description a {
  text-decoration: underline;
}

.description a:hover {
  color: #dedede;
}

.hero .description {
  color: #dedede;
}

.card-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 24px;
  color: #9e9e9e;
}

.card-action {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #d5a282;
  font-size: 16px;
  line-height: 24px;
}

.card-action:hover {
  color: #e8b99a;
}

.card-image {
  width: 800px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image img,
.card-image video {
  border-radius: 12px;
}

/* Hobby Sections (Gel Nails, Video Editing) */
.hobby-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #dedede;
}


/* Carousel */
.carousel {
  display: flex;
  gap: 16px;
  align-items: center;
}

.carousel-item {
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
  min-width: 0;
  flex: 1 0 0;
  opacity: 0.4;
  cursor: pointer;
  transition: flex 0.5s ease, opacity 0.5s ease, transform 0.3s ease;
}

.carousel-item:not(.active):hover {
  opacity: 0.6;
  transform: scale(1.01);
}

.carousel-item.active {
  opacity: 1;
  cursor: default;
}

/* Nail carousel: active item 360px wide */
.carousel[data-active-width="360"] .carousel-item.active {
  flex: 0 0 360px;
}

/* Video carousel */
.carousel[data-active-width="800"] .carousel-item {
  height: 524px;
}

.carousel[data-active-width="800"] .carousel-item.active {
  flex: 0 0 800px;
  height: 528px;
}

/* Per-item active width override */
.carousel[data-active-width="800"] .carousel-item.active[data-active-width="297"] {
  flex: 0 0 297px;
}

/* Mobile */
@media (max-width: 768px) {
  .page {
    padding: 120px 24px;
  }

  .container {
    width: 100%;
    max-width: 464px;
    gap: 80px;
  }

  /* Projects */
  .projects {
    gap: 56px;
  }

  .project-card {
    flex-direction: column-reverse;
  }

  .card-content {
    width: 100%;
    gap: 24px;
  }

  .card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2876 / 1730;
  }

  /* Carousels: vertical */
  .carousel {
    flex-direction: column;
  }

  .carousel-item {
    width: 100%;
    height: 100px;
    min-width: unset;
    flex: none;
    transition: height 0.5s ease, opacity 0.5s ease;
  }

  .carousel[data-active-width="360"] .carousel-item.active {
    flex: none;
    height: 619px;
  }

  .carousel[data-active-width="800"] .carousel-item {
    height: 80px;
  }

  .carousel[data-active-width="800"] .carousel-item.active {
    flex: none;
    height: auto;
    aspect-ratio: 1562 / 1030;
  }

  .carousel[data-active-width="800"] .carousel-item.active[data-active-width="297"] {
    flex: none;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .carousel-item:not(.active):hover {
    transform: none;
  }
}
