/* Design system
Color 1 : #2c3e50 */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular.woff2") format("woff2");
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", sans-serif;
  background: linear-gradient(to bottom, #b6c4d8, #e5edf3);
}

.container {
  display: flex;
  max-width: 1400px;
  margin: 40px auto; /* 위아래 여백 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeIn 1s ease-in;
  flex-wrap: wrap;
}

.left-column {
  flex: 2;
  border-right: 1px solid #eee;
  background: #fff;
  padding: 50px 60px;
  animation: slideInLeft 1s ease;
}

.right-column {
  flex: 1;
  background: #f7fafc;
  padding: 40px;
  /* 오른쪽 섹션은 slideInRight 애니메이션 적용 */
  animation: slideInRight 1s ease;
}
.job {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.job:last-child {
  border-bottom: none;
}

.job h3 {
  font-size: 17px;
  color: #2c3e50;
  margin-bottom: 6px;
}

.job a {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.job p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.job b {
  font-size: 15px;
  cursor: pointer;
  display: inline-block;
}
/* 아이콘 hover시 1.2배로 scale-up, 색상 변화 */
.job b:hover {
  transition: transform 0.3s, color 0.3s;
  transform: scale(1.02);
  color: #00bfa6;
}
.photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
}

h1 {
  margin-bottom: 5px;
  b {
    font-size: 36px;
    color: #b1c5e0;
  }
}

h2 {
  color: #555;
  font-size: 20px;
  margin-bottom: 30px;
}

.title {
  font-size: 20px;
  font-weight: bold;
  color: #00bfa6;
  margin-top: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
}

.section-block {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.section-block:last-child {
  border-bottom: none;
}
.section-block h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #222;
}

h3,
h4 {
  margin-top: 20px;
  color: #222;
  font-weight: bold;
}

a {
  font-size: 12px;
  color: #222;
}
p {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.contact {
  margin-bottom: 30px;
  font-size: 14px;
}

.icon {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}
.icon img {
  height: 1.8rem;
  color: #555;
}
.icon i {
  font-size: 1.8rem;
  color: #555;
}

.icon-link {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.icon-link i {
  font-size: 2rem;
  color: #555;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
}

/* 아이콘 hover시 1.2배로 scale-up, 색상 변화 */
.icon-link i:hover {
  color: #00bfa6;
}
/* keyframes을 이용한 애니메이션 적용 */
/* 애니메이션 이름 : fadeIn, 페이드인은 opacity를 0부터 1까지 주면 된다. */
/* fadeOut은 반대로 opacity를 1부터 0까지 주면 된다. */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 애니메이션 이름 : slideInLeft, 왼쪽 -50%부터 중앙까지 슬라이드하는 애니메이션 */
@keyframes slideInLeft {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}
/* 애니메이션 이름 : slideInRight, 오른쪽 50%부터 중앙까지 슬라이드하는 애니메이션 */
@keyframes slideInRight {
  from {
    transform: translateX(50%);
  }
  to {
    transform: translateX(0%);
  }
}

/* 미디어 쿼리를 이용해서 768px 이하일때, 컨테이너의 direction을 column으로 해서 세로로 배치 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 20px;
  }
  .left-column h1 {
    font-size: 20px;

    b {
      font-size: 25px;
    }
  }
  .left-column,
  .right-column {
    padding: 30px 20px;
  }
  .projects-section .skills-tab-section {
    padding: 40px 20px;
    margin: 40px 20px;
  }
}

.projects-section {
  max-width: 1400px;
  margin: 60px auto;
  padding: 80px 40px 120px;
  background-color: #f9fbfc;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.projects-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #222;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background-color: #e1ecf4;
  color: #0366d6;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.date {
  font-size: 13px;
  color: #777;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 40px;
  justify-content: center;
}

.section-title img {
  height: 1.4em;
  vertical-align: middle;
  display: inline-block;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* modal CSS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}
.modal {
  width: 1000px;
  max-width: 1000px;
  background: white;
  border-radius: 12px;
  padding: 0;
  margin: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* border-radius 유지용 */
}

.modal-header {
  text-align: right;
  font-size: 24px;
  font-weight: bold;
  padding: 20px 30px 0 30px;
}

.modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-sizing: border-box;
}

.modal-close {
  cursor: pointer;
  color: #333;
}

.modal-content {
  font-size: 16px;
  color: #444;
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
.skills-tab-section {
  max-width: 1400px;
  margin: 60px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  padding: 60px 40px 120px;
}

.tab-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-button {
  background-color: transparent;
  border: none;
  font-size: 16px;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  border-bottom: 2px solid #00bfa6;
  color: #00bfa6;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.stack-icons {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  transition: transform 0.3s ease;
}

.stack-item:hover {
  transform: scale(1.1);
}

.stack-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.stack-item span {
  font-size: 14px;
  color: #333;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.floating-button {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 1000;
}

.fab-main {
  width: 60px;
  height: 60px;
  background-color: #00bfa6;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: bounce 2s ease infinite;
  transition: transform 0.3s;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 80px;
  right: 6px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.fab-sub {
  width: 48px;
  height: 48px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.fab-main.open + .fab-menu {
  opacity: 1;
}

.fab-main.open + .fab-menu .fab-sub {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
