/* 기본 리셋 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: #333; line-height:1.6; }

/* 컨테이너 공통 */
.container { width:90%; max-width:900px; margin:0 auto; }

/* 네비게이션 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: white;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-divider {
  color: #666;
}

.nav-title {
  font-size: 1.5rem;
  color: #666;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color:#fff; text-align:center; padding:10rem 0 6rem;
}
.hero h1 { font-size:3rem; margin-bottom:1rem; }
.hero p  { font-size:1.3rem; }

/* Contact Icons */
#contact-icons { padding:2rem 0; }
.contact-icons {
  display:flex; justify-content:center; gap:2rem;
}
.contact-icons a {
  font-size:2.5rem; color:#333; transition: color .2s;
}
.contact-icons a:hover { color:#4f46e5; }

/* Section 제목 */
.section { padding:6rem 0; scroll-margin-top:100px; }
.section h2 {
  font-size:2rem; margin-bottom:1.5rem;
  border-bottom:3px solid #3b82f6; display:inline-block; padding-bottom:.3rem;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #2d3436;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  flex: 0 0 300px;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: translateY(-5px);
}

.about-text {
  flex: 1;
}

.about-desc {
  margin-bottom: 30px;
}

.about-desc p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3436;
  margin-bottom: 20px;
}

.about-info {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.2rem;
  margin-right: 15px;
  min-width: 30px;
}

.info-text {
  font-size: 1.1rem;
  color: #2d3436;
}

.info-text a {
  color: #0984e3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: #74b9ff;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    flex: 0 0 250px;
    margin-bottom: 30px;
  }

  .info-item {
    justify-content: center;
  }
}

/* Projects Section */
.projects {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.project-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 2.5rem;
  min-height: 600px;
}

.projects-view {
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: none; /* JS에서 display: block으로 보이게 처리 */
}

.project-card:hover {
  transform: translateY(-5px);
}

.arrow.project-arrow {
  position: absolute;
  top: 500px;
  transform: none;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

.arrow.project-arrow.left {
  left: -32px;
}

.arrow.project-arrow.right {
  right: -32px;
}

/* Projects 섹션 내에서만 화살표 보이기 */
#projects .arrow {
  display: flex;
}

.arrow.project-arrow svg {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(60,80,200,0.13));
  transition: filter 0.2s;
}

.arrow.project-arrow:hover svg circle {
  fill: #3b82f6;
}

.arrow.project-arrow:active svg {
  filter: brightness(0.95);
}

.project-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.project-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-content {
  padding: 30px;
}

.project-image {
  margin-bottom: 25px;
  border-radius: 12px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image img:hover {
  transform: scale(1.02);
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.project-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.02);
}

.project-info {
  display: grid;
  gap: 25px;
}

.project-tech h4, .project-desc h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.project-tech p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

.project-desc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-desc li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

.project-desc li strong {
  color: #3b82f6;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.5rem;
}

.project-desc li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 20px;
  }

  .project-title {
    font-size: 1.5rem;
  }
}

/* Skills 그리드 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:2rem; margin-top:2rem; text-align:center;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .about-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .about-info {
    width: 100%;
  }
  .profile-img-large {
    width: 180px;
    height: 180px;
  }
  .about-title {
    font-size: 1.4rem;
  }
}

.skills-category {
  margin-bottom: 2rem;
}

.skills-category h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.skill {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.skill:hover {
  transform: translateY(-2px);
}

.skill img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.skill span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  min-height: 2.4em;
}

.skill-bar {
  background: #eee;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(to right, transparent, transparent 19%, #ccc 19%, #ccc 21%, transparent 21%, transparent 39%, #ccc 39%, #ccc 41%, transparent 41%, transparent 59%, #ccc 59%, #ccc 61%, transparent 61%, transparent 79%, #ccc 79%, #ccc 81%, transparent 81%, transparent);
  pointer-events: none;
  z-index: 2;
}

.skill-level {
  background: #4a90e2;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.project-detail {
  padding: 2rem 2rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: left;
}
.project-meta {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.1rem;
}
.project-period {
  font-size: 0.98rem;
  color: #aaa;
  margin-bottom: 1rem;
}
.project-desc {
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.project-section-title {
  font-weight: bold;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}
.project-list {
  margin-left: 1.2rem;
  margin-bottom: 0.7rem;
}
.project-list li {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.certificate-table-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.certificate-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  font-size: 1.05rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
}

.certificate-table th, 
.certificate-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.certificate-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.certificate-table td {
  color: #444;
}

.certificate-table td:first-child {
  font-weight: 500;
  text-align: left;
}

.certificate-table td:nth-child(2) {
  color: #3b82f6;
  font-weight: 500;
}

.certificate-table tr:last-child td {
  border-bottom: none;
}

.certificate-table tr:hover {
  background-color: #f8f9fa;
}

@media (max-width: 600px) {
  .certificate-table {
    font-size: 0.95rem;
  }
  
  .certificate-table th, 
  .certificate-table td {
    padding: 0.8rem 1rem;
  }
}

.work-table-wrap, .education-table-wrap {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.work-table, .education-table {
  border-collapse: collapse;
  min-width: 340px;
  font-size: 1.05rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
}
.work-table td, .education-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}
.work-table tr:last-child td, .education-table tr:last-child td {
  border-bottom: none;
}
.work-period, .edu-period {
  color: #888;
  font-size: 0.98rem;
  min-width: 120px;
  white-space: nowrap;
}
.work-place, .edu-school {
  font-weight: bold;
  margin-bottom: 0.2rem;
}
.work-desc, .edu-desc {
  color: #444;
  font-size: 1.01rem;
  margin-top: 0.2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
}

.tech-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.tech-item:hover img {
  filter: grayscale(0%);
}

.tech-item span {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

@media (max-width: 768px) {
  .tech-stack {
    justify-content: center;
  }
}

.collab-section {
  margin-top: 6rem;
  margin-bottom: 3rem;
}
.collab-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
}
.collab-section h2 {
  font-size: 2rem;
  color: #2d3436;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #3b82f6;
  display: inline-block;
  padding-bottom: .3rem;
  text-align: left;
}
.collab-icons {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}
.collab-icons img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.collab-icons img:hover {
  filter: grayscale(0%);
}

.project-summary {
  background: #f7faff;
  border-left: 4px solid #3b82f6;
  padding: 0.8rem 1.2rem;
  font-size: 1.08rem;
  color: #1976d2;
  margin-bottom: 1.1rem;
  font-weight: 500;
  font-family: 'Noto Sans Mono', 'Consolas', monospace;
}
.project-role {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1.1rem;
}

.github-link {
  margin-left: 0.5rem;
  color: #333;
  font-size: 1.6rem;
  vertical-align: middle;
  transition: color 0.2s;
}
.github-link:hover {
  color: #3b82f6;
}
.project-pill {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 0.5em 1.3em;
  border-radius: 2em;
  margin-left: auto;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  letter-spacing: 0.01em;
}
.project-meta {
  font-size: 0.95rem;
  color: #888;
  margin-left: 0.7rem;
  font-weight: 400;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .projects-view, .project-card {
    max-width: 100%;
    min-width: 0;
  }
  .project-slider {
    min-height: 0;
  }
  .arrow.project-arrow.left { left: -8px; }
  .arrow.project-arrow.right { right: -8px; }
  .arrow.project-arrow { width: 40px; height: 40px; }
  .arrow.project-arrow svg { width: 32px; height: 32px; }
}

.project-front-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  text-align: center;
}
.project-front-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60,80,200,0.10);
  object-fit: cover;
}

.project-img-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.slider-img {
  aspect-ratio: 16/9;
  width: 90%;
  max-width: 900px;
  max-height: 480px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60,80,200,0.10);
  object-fit: contain;
  background: #fff;
  transition: box-shadow 0.2s;
  display: none;
}
.slider-img.active { display: block; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  width: 100%;
}
.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active {
  background: #4f46e5;
}
.img-arrow {
  background: #fff;
  border: none;
  color: #4f46e5;
  font-size: 2.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(60,80,200,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
.img-arrow:hover {
  background: #4f46e5;
  color: #fff;
}
@media (max-width: 700px) {
  .slider-img { max-width: 98vw; }
  .img-arrow { width: 32px; height: 32px; font-size: 1.5rem; }
}
