/* 전체 페이지 기본 스타일 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 다크 모드 스타일 */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* 상단 타이틀 바 스타일 */
.title {
  background-color: #424242;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  transition: background-color 0.3s ease;
  position: relative;
}

/* 다크 모드일 때 타이틀 바 배경색 */
body.dark-mode .title {
  background-color: #2c2c2c;
}

/* 타이틀 텍스트 스타일 */
.title h1 {
  font-size: 35px;
  font-weight: bold;
  margin: 0;
  margin-left: 20px;
  color: white;
}

/* 다크 모드 토글 버튼 스타일 */
.mode-toggle {
  font-size: 30px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: white;
  padding: 0 10px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
}

/* 메뉴 버튼 스타일 */
.menu-btn {
  font-size: 50px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: white;
  padding: 0 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
/* 사이드바 스타일 */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  background-color: white;
  width: 300px;
  height: 100%;
  transition: right 0.3s ease;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  font-size: 20px;
}

/* 다크 모드일 때 사이드바 스타일 */
body.dark-mode .sidebar {
  background-color: #2c2c2c;
}

/* 사이드바 열림 상태 */
.sidebar.open {
  right: 0;
}

/* 사이드바 메뉴 목록 */
.sidebar ul {
  list-style-type: none;
  padding: 20px;
}

/* 사이드바 메뉴 항목 */
.sidebar ul li {
  padding: 15px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

/* 다크 모드일 때 사이드바 메뉴 항목 */
body.dark-mode .sidebar ul li {
  border-bottom: 1px solid #555;
}

/* 마지막 메뉴 항목의 테두리 제거 */
.sidebar ul li:last-child {
  border-bottom: none;
}

/* 사이드바 링크 스타일 */
.sidebar ul li a {
  text-decoration: none;
  color: black;
}

/* 다크 모드일 때 사이드바 링크 스타일 */
body.dark-mode .sidebar ul li a {
  color: #e0e0e0;
}

/* 사이드바 링크 호버 효과 */
.sidebar ul li a:hover {
  color: #00bcd4;
}

/* 배경 이미지 섹션 스타일 */
.background-image {
  background-image: url('/image/security.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 40px;
  padding: 0;
}

/* 연락처 정보 섹션 스타일 */
.contact-info {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
  align-items: center;
  margin-top: 10px;
}

/* 연락처 정보 텍스트 스타일 */
.contact-info .email,
.contact-info .tel {
  font-size: 16px;
  color: black;
}

/* 다크 모드일 때 연락처 정보 텍스트 스타일 */
body.dark-mode .contact-info .email,
body.dark-mode .contact-info .tel {
  color: #e0e0e0;
}

/* 푸터 스타일 */
.footer {
  padding-top: 8px;
  text-align: center;
  position: relative;
}

/* 푸터 이미지 스타일 */
.footer img {
  width: 50px;
  height: auto;
  margin: 0 10px;
}

/* 내 소개 섹션 컨테이너 */
.container-aboutme {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 20px 15px;
  flex-wrap: wrap;
}

/* 내 소개 왼쪽 섹션 */
.left {
  flex: 1;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid gray;
}

/* 다크 모드일 때 왼쪽 섹션 테두리 */
body.dark-mode .left {
  border-right: 1px solid #555;
}

/* 프로필 이미지 기본 스타일 */
.profile-img {
  width: 350px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease; /* 호버 및 드래그 전환 효과 */
}

/* 마우스 호버 시 애니메이션 */
.profile-img:hover {
  transform: scale(1.05); /* 5% 확대 */
  filter: brightness(1.1); /* 밝기 증가 */
}

/* 드래그 중 애니메이션 */
.profile-img.dragging {
  transform: scale(1.1) rotate(5deg); /* 10% 확대 및 5도 회전 */
  opacity: 0.8; /* 반투명 */
  cursor: grabbing;
}


/* 내 소개 오른쪽 섹션 */
.right {
  flex: 1;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 프로필 이미지 스타일 */
.profile-img {
  width: 350px;
  height: auto;
}

/* 마우스 오버 효과 적용 이미지 */
.about-image img {
  transition: filter 0.3s;
}

.about-image img:hover {
  filter: brightness(1.05);
}

/* 통합 정보 카드 스타일 */
.info-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 다크 모드일 때 카드 배경색 */
body.dark-mode .info-card {
  background-color: #2c2c2c;
}

/* 정보 섹션 스타일 */
.info-section h3,
.skill-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #00bcd4;
}

/* 정보 섹션 텍스트 스타일 */
.info-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 5px 0;
}

/* 기술 스택 섹션 */
.skill-section {
  margin-top: 20px;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.skill-item span {
  width: 100px;
  font-weight: 500;
}

.skill-bar {
  flex: 1;
  background-color: #e0e0e0;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-left: 12px;
}

.skill-progress {
  background-color: #00bcd4;
  height: 100%;
  border-radius: 5px 0 0 5px;
  transition: width 1s ease;
}

/* 다크 모드일 때 기술 스택 스타일 */
body.dark-mode .skill-bar {
  background-color: #444;
}

/* 팀 소개 페이지 섹션 */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

/* 팀 소개 컨테이너 */
.about-container {
  display: flex;
  width: 100%;
  max-width: 600px;
  justify-content: center;
  align-items: center;
  gap: 130px;
  flex-wrap: nowrap;
}

/* 팀원 소개 박스 */
.about-box {
  background-color: transparent;
  padding: 20px;
  border-radius: 24px;
  box-shadow: none;
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 팀원 이름 스타일 */
.about-box h3 {
  font-size: 22px;
  margin: 12px 0 4px;
  color: black;
}

/* 다크 모드일 때 팀원 이름 스타일 */
body.dark-mode .about-box h3 {
  color: #e0e0e0;
}

/* 팀원 역할 텍스트 스타일 */
.about-box p {
  font-size: 16px;
  color: black;
}

/* 다크 모드일 때 팀원 역할 텍스트 */
body.dark-mode .about-box p {
  color: #e0e0e0;
}

/* 팀원 이미지 스타일 */
.about-box img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

/* 팀원 이미지 호버 효과 */
.about-box img:hover {
  transform: scale(1.05);
}

/* 팀원 왼쪽 박스 스타일 */
.left-box {
  align-items: center;
  text-align: center;
}

/* 왼쪽 박스 이미지 스타일 */
.left-box img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 팀원 오른쪽 박스 스타일 */
.right-box {
  align-items: center;
  text-align: center;
}

/* 오른쪽 박스 이미지 스타일 */
.right-box img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* SECON 헤더 스타일 */
.secon-head {
  text-align: center;
  font-weight: bold;
}

/* 다크 모드일 때 SECON 헤더 스타일 */
body.dark-mode .secon-head {
  color: #e0e0e0;
}

/* SECON 콘텐츠 섹션 */
.secon-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

/* SECON 이미지 섹션 */
.secon-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.secon-image {
  width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.secon-image.enlarged {
  transform: scale(1.2);
  z-index: 10;
}

/* SECON 텍스트 섹션 */
.secon-text-section {
  text-align: center;
}

.toggle-button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-button:hover {
  background-color: #0288d1;
}

body.dark-mode .toggle-button {
  background-color: #0288d1;
}

body.dark-mode .toggle-button:hover {
  background-color: #00bcd4;
}

.secon-text {
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #555;
  text-align: justify;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}

body.dark-mode .secon-text {
  color: #e0e0e0;
  background-color: #2c2c2c;
}

.secon-text.active {
  opacity: 1;
  height: auto;
}

/* 프로젝트 컨테이너 스타일 */
.project-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 프로젝트 아이템 스타일 */
.project-item {
  background: #fff;
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.dark-mode .project-item {
  background: #2c2c2c;
}
.project-item h3 {
  margin: 0 0 10px;
  color: #00bcd4;
}
.project-item p {
  color: #555;
}
body.dark-mode .project-item p {
  color: #e0e0e0;
}
.project-item a {
  color: #00bcd4;
  text-decoration: none;
}
.project-item a:hover {
  text-decoration: underline;
}

/* 스크롤 위로 버튼 */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  background: #00bcd4;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}
body.dark-mode .scroll-top {
  background: #0288d1;
}

/* 애니메이션 스타일 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide-in {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 미디어 쿼리 */
@media screen and (max-width: 1200px) {
  .title h1 { font-size: 30px; }
  .mode-toggle { font-size: 25px; }
  .menu-btn { font-size: 40px; }
  .sidebar { width: 250px; }
  .background-image { font-size: 30px; }
  .contact-info { flex-direction: column; }
  .container-aboutme { flex-direction: column; }
  .left, .right { width: 100%; }
  .profile-img { width: 70%; }
  .secon-images { flex-direction: column; }
  .secon-image { width: 100%; }
  .footer img { width: 28px; height: auto; }
}

@media screen and (max-width: 768px) {
  .title { flex-direction: column; text-align: center; }
  .mode-toggle { font-size: 20px; }
  .menu-btn { font-size: 35px; }
  .sidebar { width: 100%; right: 0; }
  .sidebar ul { padding: 0; }
  .secon-head { font-size: 24px; }
  .contact-info { gap: 15px; }
  .footer img { width: 25px; height: auto; }
}

@media screen and (max-width: 480px) {
  .mode-toggle { font-size: 18px; }
  .menu-btn { font-size: 30px; padding-right: 0; }
  .title h1 { font-size: 25px; }
  .background-image { font-size: 24px; }
  .contact-info { font-size: 14px; }
  .secon-head { font-size: 20px; }
  .secon-image { width: 90%; }
  .footer img { width: 20px; height: auto; }
}