@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body {
  margin: 0;
  background-color: #0E0E0E;
  color: #EEE;
  font-family: 'Pretendard', sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.logo { font-weight: 700; font-size: 20px; color: #FF7F50; }
.nav-links a { margin-left: 24px; color: #BBB; transition: color .3s; }
.nav-links a:hover { color: #FF7F50; }

.hero {
  text-align: center;
  padding: 140px 20px 100px;
  background: linear-gradient(180deg, #121212, #0E0E0E);
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero p {
  color: #AAA;
  line-height: 1.6;
  font-size: 18px;
}
.buttons { margin-top: 32px; }
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  margin: 8px;
  transition: all .3s;
  font-weight: 500;
}
.btn-primary {
  background: #FF7F50;
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 16px rgba(255,127,80,0.4);
}
.btn-outline {
  border: 1px solid #FF7F50;
  color: #FF7F50;
}
.btn-outline:hover {
  background: #FF7F50;
  color: #fff;
}

.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}
.projects h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.project-card {
  background: #1A1A1A;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255,127,80,0.1);
}
.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.project-images img {
  width: 48%;               /* ✅ 기본: 2장 나란히 */
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  transition: transform .3s ease;
}
.project-images img:hover {
  transform: scale(1.03);
}
/* ✅ 모바일에서만 한 줄 한 장으로 변경 */
@media (max-width: 768px) {
  .project-images img {
    width: 100%;
  }
}
.project-card h3 { color: #FF7F50; margin-bottom: 8px; }

.about {
  text-align: center;
  padding: 100px 20px;
  background: #111;
}
.about h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #FF7F50;
}
.about p {
  font-size: 18px;
  color: #CCC;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 60px 20px;
  background: #0D0D0D;
  border-top: 1px solid #222;
}
footer a {
  color: #FF7F50;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer .copyright {
  color: #666;
  font-size: 14px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .project-card { padding: 20px; }
}

/* ✅ 모바일 이미지 표시 문제 해결용 패치 */
.project-card {
  overflow: visible !important; /* 이미지 잘림 방지 */
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.project-images img {
  width: 48%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}

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

/* ✅ 모바일: 한 줄 한 장씩 보이게 강제 */
@media (max-width: 768px) {
  .project-images img {
    width: 90% !important;
    max-width: none;
    margin: 0 auto;
    object-fit: contain;
  }
}
