/* 기본 설정 */
body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Lora";
  font-weight: 600;
  color: #fffffaee;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

h1 {
  margin: 0;
  padding: 30px;
}

h2 {
  margin: 0;
  padding: 0;
}

/* 메인 콘텐츠 래퍼 */
.main-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* 팝업창 열릴 때 메인 콘텐츠 고정 */
.main-content.no-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 공통 섹션 스타일 */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

/* 로고, 컨택트 */
.logo {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
}

.logo-img {
  width: 90px;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.contact {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
}

.contact-img {
  width: 80px;
  height: auto;
  position: absolute;
  top: 0;
  right: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  animation: arrowBounce 2s infinite;
  margin-bottom: 5px;
}

.scroll-text {
  color: #fffffa;
  font-size: 9px;
  font-family: "Noto Sans KR";
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes arrowBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
} 

/* 좌우 분할 레이아웃 (Section 1,2,3 등) */
.split-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.split-left {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 30px;
  box-sizing: border-box;
  background: transparent;
  z-index: 1;
}

.split-left.top {
  align-items: flex-start;
  margin-top: 100px;
}

.split-left.bottom {
  align-items: flex-end;
  margin-bottom: 50px;
}

.split-right {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 1;
}

.center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 1;
  position: relative;
}

.caption {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 300;
}

#section4 .caption {
padding: 30px;
}

.circle-dot {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.circle-dot-orange {
  margin-top: 160px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ff8800;
}

.intro-title {
  font-size: 1.6rem;
  font-weight: 500;
}

.intro-desc-en {
  font-weight: 100;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.intro-desc-kr {
  font-family: "Noto Sans KR";
  font-weight: 100;
  font-size: 0.8rem;
  color: #fffffaee;
}

/* CTA 버튼 스타일 */
.cta-button {
  margin-top: 30px;
}

.cta-button a {
  display: inline-block;
  padding: 15px 30px;
  background-color: rgba(255, 136, 0, 0.85);
  color: #fffffa;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button a:hover {
  background-color: rgba(255, 136, 0, 1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 반응형 */
@media (max-width: 767px) {
  .split-container {
    flex-direction: column;
  }

  .split-left,
  .split-right {
    width: 100%;
    padding: 1.5rem;
    align-items: flex-start;
  }

  .circle-dot-orange {
    margin-top: 120px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ff8800;
  }


  .split-left {
    align-items: flex-end !important;
    padding-bottom: 2rem;
    margin-top: 3rem;
    flex: 1.9;
  }

  .split-right {
    align-items: flex-end !important;
    padding-bottom: 2rem;
    margin-top: 3rem;
    justify-content: flex-end;
    flex: 0.1;
    margin-top: 0;
  }

  .caption {
    margin-top: 1rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-desc-en {
    font-size: 0.85rem;
  }

  .intro-desc-kr {
    font-size: 0.75rem;
  }

  .logo {
    top: 30px;
    left: 20px;
    z-index: 1000;
  }
  

  .logo-img {
    width: 90px;
  }

  .contact {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 1000;
  }

  .contact-img {
    width: 80px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .split-left,
  .split-right {
    padding: 2rem;
  }

  .intro-title {
    font-size: 1.8rem;
  }

  .intro-desc-en {
    font-size: 0.95rem;
  }

  .intro-desc-kr {
    font-size: 0.85rem;
  }

  .logo-img {
    width: 100px;
  }

  .contact-img {
    width: 80px;
  }
}

@media (min-width: 1200px) {
  .split-left,
  .split-right {
    padding: 3rem;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-desc-en {
    font-size: 1rem;
  }

  .intro-desc-kr {
    font-size: 0.9rem;
  }

  .logo-img {
    width: 110px;
  }

  .contact-img {
    width: 100px;
  }
}

/* 예시 배경 이미지 */
#section1 {
  background-image: url('images/intro.jpg');
}

#section2 {
  background-image: url('images/section_01.jpg');
}

#section3 {
  background-image: url('images/section_02.jpg');
}

#section4 {
  background-image: url('images/section_03.jpg');
}

#section6 {
  background-image: url('images/outro.jpg');
}

.white-logo,
.white-contact {
  opacity: 1;
  pointer-events: auto;
}

.black-logo,
.black-contact {
  opacity: 0;
  pointer-events: none;
}

/* 다크/라이트 테마 */
.section[data-theme="dark"] {
  background-color: #333333;
  color: #fffffa;
}

.section[data-theme="light"] {
  background-color: #fffffa;
  color: #333333;
}

/* 섹션 4의 캡션 위치 조정 */
#section4 {
  position: relative;
  display: flex;
  flex-direction: column;
}

#section4 .center-content {
  flex: 1;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#section4 .caption {
  position: relative;
  bottom: auto;
  right: auto;
  margin-top: auto;
  margin-left: auto;
  margin-right: 16px;
  margin-bottom: 16px;
  align-self: flex-end;
  font-size: 0.9rem;
  color: #fffffa;
}

/* 모바일 대응 - 섹션 4 캡션 */
@media (max-width: 767px) {
  #section4 .caption {
    margin-right: 0;
    margin-bottom: 0;
  }

  #section4 .center-content .intro-title {
    padding: 3rem;
  }
}

/* 섹션 5 스타일 */
#section5 {
  background-color: transparent !important;
  position: relative;
  padding: 100px 0 150px;
  z-index: 5;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

#section5::before {
  content: none;
}

/* 오렌지 서클 요소 */
#orange-circle-background {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20vw;
  height: 20vw;
  background-color: rgba(255, 136, 0, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  filter: blur(20px);
  z-index: 2;
  pointer-events: none;
}

/* 포트폴리오 내부 컨테이너 */
.portfolio-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  color: #333;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

/* 포트폴리오 리스트 */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 50px;
}

/* 포트폴리오 아이템 */
.portfolio-item {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  background-color: transparent;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  cursor: pointer;
}

/* 포트폴리오 이미지 */
.portfolio-image {
  flex: 1;
  max-width: 48%;
  border-radius: 16px;
  height: 320px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

/* 포트폴리오 콘텐츠 */
.portfolio-content {
  flex: 1;
  max-width: 48%;
  position: relative;
  padding: 20px;
}

.portfolio-content h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #444;
}

.portfolio-desc-en {
  font-family: "Lora";
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #444;
  line-height: 1.4;
}

.portfolio-desc-kr {
  font-family: "Noto Sans KR";
  font-weight: 300;
  font-size: 0.8rem;
  margin-top: 5px;
  color: #888;
  line-height: 1.5;
}

/* 섹션 5 반응형 */
@media (max-width: 767px) {
  .portfolio-item {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .portfolio-image {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
    max-width: 500px;
    margin: 0 auto;
  }

  .portfolio-content {
    max-width: 100%;
    padding: 10px 20px;
    margin: 0 auto;
    text-align: center;
  }

  .portfolio-content h3 {
    text-align: center;
  }

  .portfolio-desc-en,
  .portfolio-desc-kr {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-list {
    gap: 80px;
  }

  .portfolio-inner {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .portfolio-image {
    flex: 0 0 360px;
    width: 360px;
    height: 280px;
  }

  .portfolio-content h3 {
    font-size: 1.8rem;
  }

  .portfolio-list {
    gap: 100px;
  }
}

@media (max-width: 900px) {
  .portfolio-item {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .portfolio-image {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
  }

  .portfolio-content {
    max-width: 100%;
    padding: 10px 0;
  }

  .portfolio-list {
    gap: 80px;
  }

  .portfolio-inner {
    padding: 0 30px;
  }
}

@media (max-width: 480px) {
  .portfolio-image {
    height: 220px;
  }

  .portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .portfolio-desc-en {
    font-size: 0.9rem;
  }

  .portfolio-desc-kr {
    font-size: 0.8rem;
  }

  .portfolio-list {
    gap: 60px;
  }

  #section5 {
    padding: 60px 0 120px;
  }
}

/* 섹션 6 스냅 센서 영역 */
.section-snap-sensor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: transparent;
  z-index: -1;
}

/* Section 6 - 컨택트 섹션 스타일 */
.contact-section {
  position: relative;
  height: auto;
  min-height: 100vh;
  background-color: #D8471D;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

/* 컨택트 타이틀 */
.contact-title,
.member-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 500;
  font-family: "Lora", serif;
}

/* 컨택트 정보 영역 */
.contact-info {
  max-width: 800px;
  padding-top: 20px;
  margin: 0 auto 80px;
}

.info-row {
  display: flex;
  margin-bottom: 20px;
  align-items: baseline;
}

.info-label {
  width: 150px;
  text-align: right;
  padding-right: 40px;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}

.info-value {
  font-size: 1.2rem;
  font-weight: 300;
  flex-grow: 1;
}

/* 팀 멤버 영역 */
.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-group {
  flex: 0 1 auto;
  min-width: 160px;
  text-align: center;
}

.team-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400;
}

.team-members {
  text-align: center;
}

.member {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 12px;
}

/* 저작권 정보 */
.copyright {
  margin-top: 100px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.9;
}

/* 섹션 6 반응형 */
@media (max-width: 1119px) {
  .contact-inner {
    padding: 120px 20px;
    text-align: center;
  }

  .contact-title,
  .member-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
  }

  .contact-info {
    max-width: 500px;
  }

  .info-row {
    flex-direction: column;
    padding-top: 20px;
    margin-bottom: 30px;
    text-align: center;
  }

  .info-label {
    width: 100%;
    text-align: center;
    font-weight: 600;
    padding-right: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .info-value {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #fffffffa;
  }

  .team-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .team-group {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .team-title {
    text-align: center;
    font-weight: 600;
  }

  .team-members {
    text-align: center;
    color: #fffffffa;
  }

  .copyright {
    margin-top: 70px;
    text-align: center;
    font-size: 0.7rem;
  }
}

@media (max-width: 767px) {
  .contact-inner {
    padding: 120px 15px;
  }

  .contact-title,
  .member-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .info-value,
  .info-label {
    font-size: 1rem;
  }

  .team-title {
    font-size: 1.1rem;
  }

  .member {
    font-size: 1rem;
  }

  .copyright {
    margin-top: 70px;
    font-size: 0.7rem;
  }
}

/* 푸터 레이아웃 */
.footer {
  width: 100%;
  background-color: #fffffa;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px;
  box-sizing: border-box;
}

.footer-left,
.footer-right {
  max-width: 50%;
  line-height: 1.4;
}

.footer-left h2 {
  font-family: "Lora";
  margin: 0 0 10px 0;
  font-size: 3rem;
  font-weight: 700;
  color: #333;
}

.footer-left p,
.footer-right p {
  font-family: sans-serif;
  font-weight: 300;
  margin: 4px 0;
  font-size: 0.8rem;
}

/* 푸터 반응형 */
@media (max-width: 767px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  .footer-left h2 {
    font-size: 2.4rem;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 0.7rem;
  }
}

/* 팝업창 오버레이 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 팝업창 컨테이너 */
.popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1920px; /* 최대 너비 제한 */
  height: 90vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2001;
}

/* 팝업창 콘텐츠 - 세련된 스크롤바 */
.popup-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0; /* 패딩 제거 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0; /* 이미지 간 간격 제거 */
  
  /* Firefox를 위한 스크롤바 스타일링 */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* 웹킷 기반 브라우저(Chrome, Safari, Edge 등)의 스크롤바 커스터마이징 */
.popup-content::-webkit-scrollbar {
  width: 6px; /* 얇은 스크롤바 */
}

.popup-content::-webkit-scrollbar-track {
  background: transparent; /* 트랙 배경을 투명하게 */
}

.popup-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3); /* 스크롤바 썸(thumb)을 반투명 블랙으로 */
  border-radius: 3px; /* 둥근 모서리 */
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5); /* 호버 시 더 진한 색상 */
}

/* 화살표 버튼 제거 */
.popup-content::-webkit-scrollbar-button {
  display: none;
}

/* 팝업창 닫기 버튼 */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2002;
  transition: background 0.3s ease;
}

.popup-close:hover {
  background: #ff8800;
}

/* 팝업창 이미지 스타일 */
.popup-content img {
  width: 100%; /* 이미지 너비를 100%로 설정 */
  height: auto;
  object-fit: cover; /* contain에서 cover로 변경하여 꽉 채우도록 */
  max-height: none; /* 최대 높이 제한 제거 */
  display: block; /* 인라인 요소 간격 제거 */
}