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

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --border-color: #505050;
  --text-dark: #3d3d3d;
  --text-light-gray: #7a7a7a;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR",
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
}

body {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  line-height: 1.6;
}

/* 공통 헤더 스타일 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 48px;
  max-width: 1920px;
  margin: 0 auto;
}

/* 1. 메인 헤더 (최상단 고정) */
.header-main {
  position: fixed;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease;
  color: #ffffff;
}

/* 2. 스티키 헤더 (스크롤 시 등장) */
.header-sticky {
  position: fixed;
  background-color: #ffffff;
  border-bottom: 1px solid rgb(36, 36, 36);
  /* 초기 상태: 위로 숨김 */
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 스크롤 시 활성화 클래스 */
.header-sticky.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* 로고 스타일링 */
.logo-svg {
  height: 28px;
  width: auto;
  fill: currentColor;
  overflow: visible;
  display: flex;
  align-items: center;
}

/* 로고 스타일링 (제공된 코드 참고) */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-size: clamp(20px, 4vw, 28px);
  /* 반응형 폰트 크기 */
  font-family: "Cormorant Garamond", serif;
  font-weight: bold;
  letter-spacing: 0.33em;
  text-transform: uppercase;
}

/* 스티키 헤더의 로고는 검은색으로 반전 */
.header-sticky .logo {
  filter: invert(1);
}

/* 메뉴 버튼 (4x4 그리드 점) */
.menu-button {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.menu-button span {
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* 메인 헤더 내부의 점: 흰색 */
.header-main .menu-button span {
  background-color: #ffffff;
}

/* 스티키 헤더 내부의 점: 검정색 */
.header-sticky .menu-button span {
  background-color: #1a1a1a;
}

/* Main Content */
main {
  width: 100%;
}

/* 슬라이더 스타일 */
.slider-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide h1 {
  font-size: clamp(40px, 5vw, 120px);
  color: var(--secondary-color);
}
/* 텍스트 내 구분선(hr) 스타일 정의 */
.slide h1 hr {
  border: none;
  margin: 10px 0;
}

/* 비디오 배경을 위한 추가 스타일 */
.slide-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 화면 분할 클릭 영역 추가 */
.click-areas {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 15;
  /* 텍스트보다는 위, 메뉴보다는 아래 */
}

.click-area {
  flex: 1;
  height: 100%;
  cursor: pointer;
}

/* 마우스 호버 시 커서 모양 변화 피드백 (선택 사항) */
.click-left {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>'),
    auto;
}

.click-right {
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>'),
    auto;
}

/* 인디케이터 */
.indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #fff;
}

.dot.active::after {
  width: 100%;
  transition: width 5s linear;
  /* 자동 재생 시간과 일치 */
}

.content {
  height: 100vh;
  background: white;
  padding: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
}

.hero-text {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 830px;
}

.hero-text h1 {
  font-size: 90px;
  font-weight: bold;
  color: #f1f1f1;
  line-height: 122px;
  letter-spacing: -1px;
  font-family: "Noto Sans KR", sans-serif;
}

.divider {
  position: absolute;
  left: 611px;
  top: -61px;
  width: 2px;
  height: 130px;
  border-right: 2px solid #d9d9d9;
}

.scroll-indicator {
  position: absolute;
  left: 70px;
  bottom: 100px;
  text-align: center;
  color: white;
}

.scroll-line {
  width: 2px;
  height: 22px;
  background-color: white;
  margin: 11px auto;
  display: block;
}

.scroll-indicator p {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  line-height: 25px;
}

.carousel-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  border-color: white;
}

/* Content Sections */
.content-section.dark1 {
  padding: 0;
  border-top: 1px solid var(--primary-color);
  background-color: var(--primary-color);
}

.content-section.dark2 {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* common sections 구조 */
.content-section.dark1,
.content-section.dark2 {
  border-top: 1px solid var(--secondary-color);
  overflow-x: hidden;

  /* 넘침 방지 */
}

.content-section.light {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.col-right1 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.col-right2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
  min-height: 400px;
  max-width: 1200px;
  width: 100%;
}

/* 이미지 크기 최적화 및 그림자 효과 (Modern UI) */
.col-right2 img {
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.col-right3 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.col-right4 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.col-right5 {
  flex: 1;
  padding: 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 400px;
}

.col-left1 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

/* 수직 구분선 설정 (길이 및 시작점 조절 버전) */
.dark1 .section-grid{
  position: relative;
}
.col-left1::after {
/* .dark1 .section-grid::after { */
  content: "";
  position: absolute;
  right: 0%;
  top: 15%;
  height: 70%;
  width: 1px;
  /* transform: translate(-50%,-50%); */
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.6) 50%,
    transparent
  );
}

.col-left2 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.col-left2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

/* 오른쪽 선(Right) 조절 (필요한 경우 추가) */
.col-left2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%
  );
}

.col-left3 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.col-left4 {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
}

.col-left4 .content-text {
  width: 100%;
  max-width: 1000px;
  /* 너무 퍼지지 않게 너비 제한 */
  text-align: left;
  /* 텍스트 자체도 오른쪽 정렬 */
}

.col-left5 {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  min-height: 400px;
}

.border-vertical {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-color);
}

.portfolio-section.border-vertical {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2) 50%,
    transparent
  );
}

/* Content Text */
.content-text h2 {
  font-size: 47px;
  font-weight: bold;
  line-height: 55.93px;
  letter-spacing: -1px;
  margin-bottom: 30px;
  font-family: "Noto Sans KR", sans-serif;
  color: #ddd;
}

.content-text.dark-text h2 {
  color: var(--primary-color);
  font-weight: 500;
}

.subtitle {
  font-size: 17px;
  line-height: 28.05px;
  color: var(--text-dark);
  font-weight: 350;
  letter-spacing: -1px;
  margin-bottom: 30px;
  max-width: 400px;
}

.see-more-link1 {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 20px;
  color: #ddd;
}

.see-more-link1:hover {
  opacity: 0.7;
}

.see-more-link.dark-link {
  font-size: 17px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  /* 화살표와 정렬을 위해 flex 유지 */
  align-items: center;
  margin-top: 20px;
  color: var(--primary-color);
  /* 다크모드가 아닐 경우 대비 */
  position: relative;
  padding-bottom: 5px;
  gap: 8px;
  width: fit-content;
  /* 콘텐츠 폭에 맞춤 */
}

/* 보더선 길이 조정을 위한 가상 요소 */
.see-more-link.dark-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  /* 이 수치를 조절하여 선의 길이를 결정하세요 (예: 50%, 100px 등) */
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

/* 화살표 요소 분리 및 애니메이션 설정 */
.see-more-link.dark-link .arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* 부드러운 가감속 효과 */
}

/* 마우스 호버 시 화살표가 오른쪽으로 8px 이동 */
.see-more-link.dark-link:hover .arrow {
  transform: translateX(8px);
}

/* 호버 시 선 길이 변화 예시 (선택 사항) */
.see-more-link.dark-link:hover::after {
  width: 140%;
}

/* 보너스: 텍스트 부분에도 살짝 효과 추가 */
.see-more-link.dark-link:hover {
  opacity: 0.8;
}

.dot-end {
  color: var(--primary-color);
}

/* Brand Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.brand-item {
  width: 150px;
  height: 310px;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item1 {
  height: 200px;
}

.brand-item2 {
  height: 200px;
}

.brand-item3 {
  height: 200px;
  margin-right: -70px;
}

.brand-item4 .brand-item5 {
  flex: 1;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.brand-item img {
  width: 150px;
  height: 310px;
  object-fit: contain;
  /* 310px 높이 내에서 로고가 잘리지 않게 조정 */
}

/* Section Images */

.section-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  padding-right: 30px;
  aspect-ratio: 16/9;
}

.section-image2 {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.brand-logo {
  width: 100%;
  max-width: 400px; /* 최대 크기 제한 */
  height: auto; /* 고정 px 대신 auto로 설정하여 비율 유지 */
  object-fit: contain;
  transition: var(--transition);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 40px;
  text-align: left;
  /* 그리드 내부는 다시 왼쪽 정렬 */
}

.service-item {
  display: flex;
  flex-direction: column;
}

.service-item h3 {
  font-size: 22px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.service-item ul {
  list-style: none;
  margin-bottom: 30px;
}

.service-item li {
  font-size: 17px;
  line-height: 34px;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.service-item.full-height {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* 텍스트 영역과 이미지 영역 분할 */
  align-items: center;
  gap: 60px;
}

.service-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Marquee Section */
.marquee-section1 {
  background-color: #ffffff;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
}

/* 사진 한 장의 크기와 간격 설정 */
.marquee img {
  height: 80px;
  width: auto;
  display: block;
  padding-right: 0px;
}

.marquee-section2 {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.marquee span {
  display: inline-block;
  padding-right: 20px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll var(--slider-speed) linear infinite;
  animation: scroll-left 35s linear infinite;
}

.marquee2 {
  display: flex;
  white-space: nowrap;
  font-size: 50px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  line-height: 60px;
  animation: scroll-left 15s linear infinite;
}

/* marquee ani */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 80px 0 100px 0;
  font-family: "Poppins", sans-serif;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4열 구성 */
  gap: 0;
  /* 테두리 연결을 위해 0 설정 */
  max-width: 100%;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  padding: 40px;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border: none;
}

/* [핵심] 우측 수직 보더 선: 위아래 40px씩 띄워서 끊기 */
.portfolio-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.6) 50%,
    transparent
  );
}

/* 이미지 영역: 상단 배치 */
.portfolio-img-box {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* 텍스트 영역: 이미지 하단 배치 */
.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-content h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.portfolio-content .category {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 5px;
}

.portfolio-content .client {
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}

.portfolio-img-box1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured: 강조하고 싶은 아이템 (가로 2칸 점유) */
.portfolio-item.featured {
  grid-column: span 2;
}

/* Final Section */
.final-section {
  position: relative;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  /* padding: 100px 0; */
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

/* 상단 조절용 보더선 */
.border-horizontal-top {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  background-color: var(--border-color);
  /* width 선 조절 */
  width: 100%;
  transition: width 0.3s ease;
}

/* 가운데 수직선 추가 */
.border-vertical-center {
  position: absolute;
  top: 80px;
  bottom: 60px;
  left: 50%;
  width: 1px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.contact-info {
  display: flex;
  gap: 60px;
  width: 100%;
  align-items: flex-start;
}

/* 주소 그룹 */
.contact-address {
  flex: 1;
}

.contact-info2 {
  flex: 1;
  margin-top: 100px;
}

.contact-info p {
  font-size: 22px;
  font-family: "Poppins", sans-serif;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light-gray);
  padding: 30px 0;
  text-align: left;
  padding-left: 80px;
  border-top: 1px solid var(--border-color);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
}

/* ===================================================================== */
/* ===========================팝          업============================ */
/* ===================================================================== */

/* 팝업 오버레이 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap");

.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 지정 규격 적용 (500x265) */
.popup {
  position: relative;
  background: #111;
  border: 1px solid #333;
  color: white;
  width: 500px;
  height: 265px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 상단 중앙 흰색 선 스타일 */
.popup-top-line {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.675);
  border-radius: 1px;
}

/* 텍스트 스타일 */
.popup .text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 30px;
  font-family: "Noto Sans KR", sans-serif;
}

.popup .highlight-text {
  font-weight: bold;
  border-bottom: 2px solid #fff;
  color: #fff;
  padding-bottom: 1px;
}

/* 버튼 스타일 */
.popup button {
  width: 100%;
  height: 50px;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup button:hover {
  background-color: #ddd;
}

/* pop up ani */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* Up button */
#upButton {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  /* 배경색을 약간 더 어둡게 조정하여 밝은 배경 대비 확보 */
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  backdrop-filter: blur(10px);
  /* 그림자를 추가하여 모든 배경에서 입체감과 가독성 부여 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

#upButton.show {
  opacity: 1;
  visibility: visible;
}

#upButton:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

#upButton svg {
  width: 20px;

  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 스크롤 제어용 */
.overflow-hidden {
  overflow: hidden;
}

/* 반응형 디자인 */

@media (min-width: 1601px) {
  .header-content {
    padding: 0 80px;
  }

  .col {
    padding: 120px 100px;
  }

  .portfolio-item {
    padding: 60px;
  }

  .hero-text h1 {
    font-size: 110px;
  }
}

/* 2. 1201px ~ 1600px (일반 데스크탑) */
@media (max-width: 1600px) and (min-width: 1201px) {
  .header-content {
    padding: 0 48px;
  }

  .col {
    padding: 80px 60px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3. 993px ~ 1200px (태블릿 가로/노트북) */
@media (max-width: 1200px) and (min-width: 993px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-content {
    padding: 0 24px;
  }

  .brand-logo {
    max-width: 300px;
  }

  /* 태블릿에서 로고 크기 축소 */
  .col {
    padding: 80px 40px;
  }

  .hero-text h1 {
    font-size: clamp(40px, 7vw, 70px);
  }
}

/* 4. 601px ~ 992px (태블릿 세로) */
@media (max-width: 992px) {
  .header-content {
    padding: 0 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-logo {
    max-width: 250px;
  }

  /* 화면이 작아질수록 로고도 작게 */
  .section-grid {
    grid-template-columns: 1fr;
  }

  .col {
    padding: 60px 24px;
    text-align: center;
    align-items: center;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  /* 이미지 순서 및 정렬 최적화 */
  .col.img-col {
    order: 2;
    padding-top: 0;
  }

  .col.text-col {
    order: 1;
  }

  .img-wrapper img {
    max-width: 90%;
  }

  .portfolio-item::after {
    display: none;
  }
}

/* 5. 600px 이하 (모바일) */
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    max-width: 180px;
  }

  /* 모바일 최적화 크기 */
  .header-content {
    padding: 0 16px;
  }

  .header {
    height: 60px;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 0.2em;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .content-text h2 {
    font-size: 26px;
  }

  .col {
    padding: 40px 20px;
  }

  .img-wrapper img {
    max-width: 100%;
    border-radius: 8px;
  }

  .marquee span {
    font-size: 24px !important;
    margin: 0 20px !important;
  }
}
