: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;
}

/* 문서 전체에 기본 폰트 설정 */
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;
}

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;
}
/* 패드와 핸드폰 모두 같이 처리 */
@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;
}


section#skills {
  width: 100%;
  overflow: hidden;
}