:root {
  --color-background: #121212; /* 전체 배경 (매트한 블랙) */
  --color-sub-background: #1e1e1e; /* 서브 영역 배경 */
  --color-input-background: #2a2a2a; /* 인풋, 버튼 배경 */
  --color-text: #e0e0e0; /* 기본 텍스트 */
  --color-text-subtle: #aaaaaa; /* 약한 강조 텍스트 */
  --color-accent: #635beb; /* 포인트 컬러 (인디고/퍼플) */
}

/* 모든 요소 기본 여백 제거 + 박스사이징 설정 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* 문서 전체에 기본 폰트 설정 */
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--color-background); /* 다크모드 기본 배경  */
  color: var(--color-text); /* 기본 글자색  */
  touch-action: manipulation; /* 터치 스크롤/줌 오작동 방지 */
  -webkit-tap-highlight-color: transparent; /* 터치 시 반짝임 제거 */
}
body::-webkit-scrollbar {
  display: none;
}

/* 리스트 스타일 제거 */
ul,
ol {
  list-style: none;
}

/* a 태그 밑줄 제거 + 색상 상속 */
a {
  text-decoration: none;
  color: inherit;
}

/* 버튼 기본 스타일 제거 */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 이미지가 부모 영역에 맞게 */
img {
  max-width: 100%;
  display: block;
}

/* 기본 테이블 초기화 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 기본 스타일 정의 */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  position: relative;
  background-color: var(--color-background);
}

/* header 부분 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #121212c4;
  backdrop-filter: blur(10px); /* 뒤에 있는 배경을 블러 처리 */
  -webkit-backdrop-filter: blur(10px); /* 사파리 브라우저 대응 */
  z-index: 999;
}

header .container {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
}

header .container nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

header .container nav a {
  position: relative;
  font-weight: 200;
}

header .container nav a::after {
  content: "";
  width: 0%;
  height: 1px;
  position: absolute;
  bottom: -3px;
  left: 0;
  transition: 0.4s ease;
  background-color: var(--color-text);
}

header .container nav a:hover::after {
  width: 100%;
}

header .container .icons {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 20px;
}

header .container .icons .icon {
  position: relative;
  cursor: pointer;
}

header .container .icons .icon .lang_modal {
  cursor: default;
  position: absolute;
  bottom: -80px;
  right: -10px;
  border-radius: 10px;
  background-color: var(--color-sub-background);
  width: 135px;
  height: 75px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .langBtn {
    width: 100%;
    flex: 1;
    color: white;
    text-align: left;
    padding: 8px 10px;
    z-index: 1;

    span {
      margin-right: 10px;
      font-weight: bold;
      transition: 0.4s ease;
    }
  }
  .langBtn.act {
    background-color: #3a3a3a !important;
  }

  .langBtn:hover {
    background-color: var(--color-input-background);
  }
}

header .container .icons .icon:hover .lang_modal {
  visibility: visible;
  opacity: 1;
  transform: translateY(0px);
}

header .container .icons .icon .lang_modal svg {
  position: absolute;
  top: -10px;
  right: 15px;
  fill: var(--color-sub-background);
}
/* 패드와 핸드폰 모두 같이 처리 */
@media (max-width: 1024px) {
  header .container {
    justify-content: center;
  }
  header .container .icons {
    display: none;
  }
}

/* 스크롤 이벤트 부분 */
/* 공통 애니메이션 초기값 */
.scroll_top,
.scroll_left,
.scroll_right,
.scroll_bottom {
  opacity: 0;
  transform: translateY(-50px); /* _top에 해당하는 Y축 초기 위치 */
  transition: opacity 0.5s, transform 0.5s; /* 기본 애니메이션 설정 */
  will-change: opacity, transform; /* 성능 최적화 */
}

/* 각 방향별 애니메이션 */
.scroll_left {
  transform: translateX(-50px); /* _left에 해당하는 X축 초기 위치 */
}

.scroll_right {
  transform: translateX(50px); /* _right에 해당하는 X축 초기 위치 */
}

.scroll_bottom {
  transform: translateY(50px); /* _bottom에 해당하는 Y축 초기 위치 */
}

/* 90% 영역 안에 들어왔을 때의 상태 */
.visible {
  opacity: 1;
  transform: translateY(0); /* _top은 0 위치로 */
  transition: opacity 0.5s, transform 0.5s;
}



/* 링크 카드 */


.link-card {
  width: 100%;
  max-width: 700px;
  background: #1b1b1f;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
  color: white;
  position: relative;
  overflow: hidden;
}

.link-left {
  display: flex;
  flex-direction: column;
}

.link-left h2 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  width: max-content;
}

.link-left h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0px;
  transition: 0.4s ease;
  background-color: white;
}

.link-card:hover h2::after {
  width: 100%;
}

.link-left p {
  color: #7b8cff !important;
  text-decoration: none;
  font-size: 15px !important;
  font-weight: lighter;
  margin: 0;
}

.link-type {
  margin-top: 20px;
  color: #bbb;
  font-size: 16px;
}

.link-right {
  flex: 0.9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-right img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.25;
  transition: 0.3s ease;
}

.link-card:hover .link-right img {
  transform: scale(1.05);
}

.diagonal-line {
  position: absolute;
  width: 200%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}


@media (max-width: 768px) {

  .link-left h2 {
    font-size: 16px !important;
  }

  .link-left p {
    font-size: 10px !important;
  }
}





footer {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: #1A1A1A;
  z-index: 1;

  .container {
    height: 100% !important;
    display: flex;
    align-items: center;
  }

  p {
    color: #AAAAAA;
    font-size: 12px;
  }
}



