/* 기본 레이아웃 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #5C4033; /* 갈색 배경 */
  color: #FAFAFA; /* 기본 글씨 크림색 */
}

header {
  background-color: #87ceeb; /* 하늘색 */
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #FAFAFA;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #FAFAFA;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
}

/* 활성 메뉴 */
nav a.active {
  background-color: #5C4033; /* 갈색 박스 */
  color: #FAFAFA; /* 크림색 글씨 */
}

/* 콘텐츠 박스 */
.content-box {
  background-color: #FAFAFA; /* 크림색 박스 */
  color: #5C4033; /* 갈색 글씨 */
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* 드롭다운 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #87ceeb;
  color: #FAFAFA;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #87ceeb;
  min-width: 120px;
  border-radius: 5px;
  z-index: 1;
}

.dropdown-content a {
  color: #FAFAFA;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #5C4033; /* 갈색 */
  color: #FAFAFA; /* 크림색 */
}

.show {
  display: block;
}

.site-footer { text-align:center; padding:18px; 
  color:#FAFAFA; border-top:1px solid rgba(0,0,0,0.04); margin-top:30px; 
}


/*About page */
.about-container {
  background-color: #f5f0e8; /* 크림색 */
  color: #3b2f2f; /* 고동색 */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px;
}

.about-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fffefc;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 40px;
  gap: 50px;
}

.about-photo {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.about-photo img {
width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5; /* ✅ 비율 4:5 유지 */
  object-fit: cover; /* 사진 비율 맞게 채우기 */
  border-radius: 50%;
  border: 3px solid #b69b7d; /* 고동빛 테두리 */
}

.about-info h2 {
  margin-bottom: 20px;
  color: #2a2a2a;
  font-size: 1.8rem;
}

.about-inner {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 60px;
  width: 80%;
  max-width: 1000px;
}

.about-inner h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

/* ===== 이미지 + 텍스트 ===== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 50px;
}

.profile-img {
  width: 270px;
  height: 310px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 40px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 18px;
  text-align: justify;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

.about-extra h2 {
  font-size: 1.6rem;
  color: #333;
  margin-top: 40px;
  margin-bottom: 15px;
}

.about-extra ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 30px;
}

.about-extra li {
  margin-bottom: 8px;
  color: #444;
  font-size: 1rem;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .profile-img {
    width: 180px;
    height: 180px;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .about-text {
    text-align: left;
  }
}

.info-table {
  border-collapse: collapse;
  width: 100%;
}

.info-table th {
  text-align: left;
  padding: 6px 12px;
  color: #654321;
  font-weight: 600;
  width: 120px;
}

.info-table td {
  padding: 6px 12px;
  color: #333;
}

.education-section h3 {
  color: #2a2a2a;
  border-left: 5px solid #a8d0e6; /* 하늘색 포인트 */
  padding-left: 10px;
  margin: 30px 0 10px 0;
}

.plain-table {
  border-collapse: collapse;
  width: 100%;
}

.plain-table td {
  padding: 8px 12px;
  color: #333;
}

.plain-table tr td:first-child {
  width: 160px;
  font-weight: 600;
  color: #654321;
}


/* ✅ Project Page Layout */
.project-container {
  background-color: #f9f7f2;
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.project-inner {
  background-color: #fff;
  border-radius: 25px;
  padding: 50px 60px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-inner h1 {
  font-size: 2em;
  color: #3a2f28;
  text-align: center;
  margin-bottom: 50px;
}

/* ✅ Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px;
}

/* ✅ Project Card */
.project-card {
  background-color: #fafafa;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  color: #5c4033;
  margin-top: 10px;
  font-size: 1.2em;
}

.project-card p {
  color: #333;
  font-size: 0.95em;
  margin-bottom: 15px;
  line-height: 1.5;
}

.project-card a {
  text-decoration: none;
  background-color: #8fd3fe;
  color: #3a2f28;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.project-card a:hover {
  background-color: #6ec2fa;
}

.btn {
  text-decoration: none;
  background-color: #8fd3fe;
  color: #3a2f28;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

/* Contact Page */
.contact-container {
  background-color: #f9f7f2;
  color: #3b2f2f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  min-height: 100vh;
}

.contact-inner {
  background-color: #fffefc;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 50px;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.contact-inner h1 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #2a2a2a;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #3a2f28;
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3a2f28;
  box-shadow: 0 0 3px rgba(182,155,125,0.5);
}

.contact-form button {
  background-color: #3a2f28;
  color: white;
  font-size: 1.1rem;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-form button:hover {
  background-color: #3a2f28;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* ==============================
   EXPERIENCE PAGE
============================== */
.experience-container {
  background-color: #f5f0e8; /* 바깥 container */
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.experience-inner {
  background-color: #FAFAFA; /* 안쪽 container */
  border-radius: 20px;
  padding: 50px 70px;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  position: relative;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.experience-header h1 {
  font-size: 2.3rem;
  color: #5C4033;
}

.cv-btn {
  background-color: #87ceeb;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cv-btn:hover {
  background-color: #6cbbe0;
}

/* 타임라인 본체 */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 5px;
  height: 100%;
  background-color: #5C4033; /* 갈색 선 */
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 30px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  /*text-align: right;*/
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background-color: #fffefc;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.timeline-content h3 {
  color: #5C4033;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-content .date {
  color: #87ceeb;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #3b2f2f;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 하늘색 점 */
.dot {
  position: absolute;
  top: 40px;
  left: 100%;
  transform: translate(-50%, 0);
  width: 18px;
  height: 18px;
  background-color: #87ceeb;
  border-radius: 50%;
  border: 3px solid #FAFAFA;
  z-index: 3;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.timeline-item.right .dot {
  left: 0%;
  transform: translate(-50%, 0);
}

/* 반응형 */
@media (max-width: 900px) {
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 40px;
    text-align: left;
  }
  .timeline-item.right {
    left: 0;
  }
  .dot {
    left: 0;
    transform: translate(-50%, 0);
  }
}

/* ==============================
   SKILLS SECTION
============================== */
.skills-section {
  margin-top: 80px;
  background-color: #FAFAFA;
  padding: 40px 60px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skills-section h2 {
  font-size: 1.8rem;
  color: #5C4033;
  border-left: 5px solid #87ceeb;
  padding-left: 12px;
  margin-bottom: 25px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px 25px;
}

.skills-list li {
  color: #5C4033;
  font-size: 1rem;
  background-color: #fffefc;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.skills-list li:hover {
  transform: translateY(-4px);
}

/* Skill 전체 바깥 container */
.skills-container {
  background-color: #f5f0e8; /* Experience와 같은 바탕색 */
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

/* Skill 개별 설명 추가 스타일 */
.skills-list li p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* Experience & Skills container 너비 통일 */
.experience-container,
.skills-container {
  display: flex;
  justify-content: center;
  background-color: #f5f0e8;
}

.experience-inner,
.skills-section {
  background-color: #FAFAFA;
  max-width: 1200px;       /* ✅ 둘 다 동일한 너비 */
  width: 100%;
  padding: 60px 50px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 40px auto;
}

/* Skills 섹션 제목 스타일 (li 안의 h3) */
.skills-list h3 {
  font-size: 1.2rem;        /* 글자 크기 */
  font-weight: 700;         /* 굵게 */
  color: #5C4033;           /* 타임라인 제목 색상과 통일 */
  margin-bottom: 6px;       /* 설명(p)과 간격 */
}

