/* 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111;
  color: white;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 공통 레이아웃 */
.inner, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* 헤더 */
.section-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(42, 42, 42, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 40px;
}

.contact-btn {
  background-color: #494949;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-btn:hover {
  background-color: #333;
}

/* section1 고정 텍스트 */
.section1 {
  position: relative;
  width: 100%;
  height: 200vh;
  overflow: hidden;
}

.scroll-text-wrapper {
  position: fixed;
  top: 65%;
  left: 5vw;
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-text .text {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  font-size: 5rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 6rem;
}

.scroll-text .text.active {
  opacity: 1;
  transform: translateY(0);
}

.highlight {
  color: #246afd;
}

/* 라인 효과 */
.lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  pointer-events: none;
  z-index: -1;
}

.line {
  position: fixed;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #1a77c1 75%, #ffffff 100%);
  animation: drop 3s linear infinite;
}

@keyframes drop {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* section2 */
.section2 {
  background-color: #ffffff;
  padding: 30vh 10vw;
  text-align: center;
  overflow-x: hidden;
}

.roles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roles .text {
  font-size: 2rem;
  color: rgba(46, 46, 46, 0.3);
  transition: all 0.6s ease;
}

.roles .text.active {
  color: #101010;
  font-weight: bold;
}

.roles .text.active span {
  color: #246afd;
}

/* section3 */
:root {
  --vh: 1vh;
}


.section3 {
  height: 100vh;
}

.scroll-box {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  
  /* 스크롤바 숨기기 */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.scroll-box::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.section-1 {
  height: 250vh;
  position: relative;
  background-color: #101010;
}

#mainText {
  font-size: 6vw;
  position: sticky;
  top: 40%;
  text-align: center;
  transform: scale(1.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

.changing-line {
  position: fixed;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -35%);
  text-align: center;
  font-size: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.changing-line.show {
  opacity: 1;
  visibility: visible;
}

#changingWord {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-2 {
  height: 130vh;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  background: white;
  text-align: center;
  flex-direction: column;
}
.section-2 .mob-br01 { color: #e6e6e6; margin-left:10rem;}
.section-2 .mob-br02 { color: #e6e6e6; margin-left: 4.2rem;}
.section-2 .mob-br03 { color: #e6e6e6;  margin-left: 9.1rem;}

.scrolling-words-container {
  /* display: flex; */
  align-items: center;
  font-size: 5rem;
  font-weight: 600;
  text-align: left;
  margin-left: 18%;
}

.scrolling-words-box {
  height: 7rem;
  width: 24rem;
  /* margin: auto; */
  overflow: hidden;
  display: block;
  float: left;
  background-color : #246afd;
  border-radius: 10px;
  padding: 5px;
}
.scrolling-words-box ul {
  padding: 0;
  animation: scrollUp 4s infinite;
}
.scrolling-words-box li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.8rem;
  list-style: none;
  padding-bottom: 1.2rem;
  color: #ffffff;

}

@keyframes scrollUp {
  0%, 10% {
    transform: translateY(0%);
  }
  25%, 35% {
    transform: translateY(-20%);
  }
  50%, 60% {
    transform: translateY(-40%);
  }
  75%, 85% {
    transform: translateY(-60%);
  }
  100% {
    transform: translateY(-80%);
  }
}
.sb-t {
  margin-top: 3rem;
  font-size: 1.4rem;
  line-height: 2rem;
  color: #4c4c4c;
  font-weight: 400;
}
.section-2 .inner {margin: 0 auto; width: 1200px;}
.container {
  display: flex;
  align-items: flex-start;
  gap: 30%;
  padding-top: 17%;
}
.title {text-align: left; white-space: nowrap;}
.title p {
  font-weight: bold;
  color: #000;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.title span {font-size: 1rem; color: #6b6b6b; padding-top: 15px;}

.cards {
  display: flex;
  gap: 16px;
  text-align: left;
}

.card {
  background-color: #246afd;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  height: 300px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.7rem;
  margin: 0 0 150px 0;
  color: #ffffff;
}

.card a {
  text-decoration: none;
  font-size: 1rem;
  color: #ffffffa6;
  display: inline-block;
}

.card a::before {
  content: ">";
  margin-right: 8px;
}
.contact-left {
  flex: 1;
  min-width: 280px;
}

.contact-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-left h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-left p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.contact-left button {
  padding: 0.8rem 1.5rem;
  border: none;
  background: #222;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #ffffff;
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

.contact-form label {
  font-size: 0.9rem;
  color: #ffffff;
}

.contact-form button[type=\"submit\"] {
  background: #007aff;
  color: #fff;
  padding: 0.8rem;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}


.section5{
  padding: 70px;
  background: #222222;
  color: #fff;
  text-align: left;
}
.section5 .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section5-1 {background:#ffffff; display: flex; flex-direction: column;}
.section5-1 h1 {margin: 80px 0; font-size: 1.7rem; font-weight: 600; text-align: center; color: #222222; }
.section5 h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #fff;
  text-align: left;
}
.section5 .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 90%;
  padding-left: 16%;
}
.section5 .step {
  background: #eee;
  color: #333;
  padding: 20px;
  height: 160px;
  border-radius: 8px;
  font-weight: bold;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.3rem;
}
.section5 .step span {
  display: block;
  font-weight: normal;
  margin-top: 30px;
  font-size: 0.9rem;
}
/* 왼쪽 폼 영역 */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  background: #f0f0f0;
}

/* 왼쪽 이미지 영역 */
.contact-section .left-panel {
  flex: 1;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.left-panel h2 {text-align: center; padding-bottom: 50px;}
.main {
  font-family:Arial;
  width:500px;
  display:block;
  margin:0 auto;
  text-align: center;
  flex-direction: column;
}
.slider img {margin: 0 auto;}
.slider a {list-style: none; text-decoration: none; color: #246afd;}

.slider-nav {
  display: flex;
  flex-direction:unset;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding-bottom: 40px;
}
.slider-for p {font-size: 1rem; font-weight: 100;}
.slider-for strong{font-size: 1.3rem;font-weight: 600;}
.thumb {
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 16px;
  color: #aaa;
}
.thumb.active {
  opacity: 1;
  font-weight: bold;
  color: #fff;
  transform: scale(1.05);
}


.main .link.active {background-color: aqua; color: aqua;}
/* 오른쪽 폼 영역 */
.contact-section .right-panel {
  flex: 1;
  background-color: #050505;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 600px;
  background-color: #111111;
  padding: 20px;
  border-radius: 1rem;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section .row {
  display: flex;
  gap: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100%;
}

label {
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}

button {
  padding: 14px;
  background-color: #246afd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #333;
}

#response-message {
  margin-top: 10px;
  color: green;
  font-weight: bold;
  text-align: center;
}

footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
}

/* 반응형 */
@media (max-width: 1300px) {
  .scrolling-words-container {margin-left: 9%;}
}
@media (max-width: 1024px) {
  .scrolling-words-container {
    margin-left: 7%;
    font-size: 3.2rem;
  }
  .scrolling-words-box {
    height: 5rem;
    width: 16rem;
  }
  .section-2 .mob-br02 {
    margin-left: 4.7rem;
  }
  .section-2 .inner {
    width: 950px;
  }
  .scroll-text .text {
    font-size: 3.5rem;
    line-height: 4rem;
  }
  .container {
    gap: 9%;
  }

  #mainText {
    top: 28%;
  }
  .section5 .steps {
    padding-left: 0%;
    width: 100%;
  }
  .contact-section .right-panel {
    padding: 10px;
  }
}
@media (max-width: 900px) {
  .section-2 .inner {width: 850px;}
  .card  {
    width: 225px;
    height: 280px;
  }
  .card h3 {
    margin: 0 0 120px 0;
  }
  .container {
    gap: 5%;
  }
  .main {
    width: 400px;
  }
  .slider-nav {
    gap: 50px;
  }
  .slider-nav {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {

  .section-header {
    flex-direction: row;
    padding: 10px 20px;
  }
  .section3 {
    height: 130vh;
  }
   .section-1 {
    height: 120vh; /* 원하는 높이로 줄이기 */
  }
  .scroll-box {
    /* height: calc(var(--vh, 1vh) * 85);  */
    height: 180vh;         /* 모바일은 70% */
    max-height: 500px;
  }
  #mainText {
    top: 35%;
    font-size: 8vw;
  }

  .changing-line {
    top: 65%;
    font-size: 1.7rem;
  }

  .scroll-text .text {
    font-size: 2.2rem;
    line-height: 3rem;
  }

  .roles .text {
    font-size: 1.2rem;
  }

  .changing-line {
    font-size: 1.5rem;
    top: 60%;
  }

  .section5 .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .section1 {height: 105vh;}
  .scroll-text-wrapper  {top: 22%;}
  .section2 {
    padding: 9vh 3vw;

  }
  .scrolling-words-container {
    font-size: 1.9rem;
  }
  .scrolling-words-box {
    height: 3rem;
    width: 9rem;
  }
  .scroll-box {
    height: 65vh;
  }
  .section3{height: 55vh;}

  .section-1 {
    height: 150vh;
  }

  #mainText {
    top: 37%;
  }

  .changing-line {
    top: 66%;
  }
  .scrolling-words-box li {
    height: 3.4rem;
  }
  .section-2  {height: 110vh;}
  .section-2 .inner {width: 480px;}
  .section-2 .mob-br01 {
    margin-left: 6rem;
  }
  .section-2 .mob-br02 {
    margin-left: 3.7rem;
  }
  .section-2 .mob-br03 {
    margin-left: 5.9rem;
  }
  .sb-t {
    font-size: 1.1rem;
    line-height: 1.5rem;
  }
  .container {
    flex-direction: column;
  }
  #mainText {top: 37%;}
  .changing-line {top: 33%;}
  .scrolling-words-box {height: 2.6rem; width: 7rem;}
  .scrolling-words-box li {padding-bottom: 1rem;}
  .cards{flex-direction: column; padding-top: 2rem; margin: 0 auto;}
  .card {padding: 10px; width: 360px; height: 185px;}
  .card h3 {font-size: 1.5rem; margin: 0 0 50px 0;}
  .section5 {padding: 18px;} 
  .section5-1 h1 {margin: 80px 38px;}
  .contact-section .left-panel {padding: 65px 20px 30px;}

}
@media (max-width: 480px) {
  .contact-btn {
    width: 100%;
    margin-top: 10px;
  }
  .scroll-box {
    height: 60vh;         /* 더 작게 60% */
    max-height: 400px;
  }
  .scroll-text-wrapper {left: 10px;}
  .section-2 .mob-br01 {margin-left: 0.8rem;}
  .section-2 .mob-br02 {margin-left: 0.9rem;}
  .section-2 .mob-br03 {margin-left: 0.9rem;}
  .roles {gap: 10px;}
  .roles .text {font-size: 1.1rem;}
}