@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nanum Gothic', sans-serif;
}

body {
  width: 100%;
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
}

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 20px;
}

.logo_pic img {
  width: 75px;
  height: 75px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px; /* 네비바 간격 넓게 */
  align-items: center;
  margin: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  padding: 10px; /* 클릭 영역과 간격 확보 */
}

nav ul li a:hover {
  color: #1469d9; /* 호버 효과 */
}

/* 메인 */
main {
  min-height: 750px;
  background-color: #ebebeb;
}

/* 배너 */
.banner {
  background-color: #1469d9;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.banner p {
  font-size: 30px;
  margin-bottom: 10px;
}

.banner h1 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}

.profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: auto;
}

.banner_image {
  width: 300px;
  height: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.profile_text p {
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0;
}

/* 스킬 카드 */
.skill_card {
  padding: 50px 20px;
  text-align: center;
}

.skill_card h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: left;
}

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

.card p {
  font-size: 14px;
  color: #666;
}

/* 포트폴리오 */
.portfolio {
  padding: 30px;
}

.portfolio h1 {
  font-size: 50px;
  text-align: center;
  color: #0080ff;
  font-weight: bold;
  margin-bottom: 30px;
}

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

.project_card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project_img {
  width: 100%;
  height: 500px;
  object-fit: fill;
}

.project_info {
  padding: 20px;
}

.project_info h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.project_info p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.project_link {
  text-decoration: none;
  color: #3498db;
  font-weight: 500;
  padding: 8px 15px;
  border: 2px solid #3498db;
  border-radius: 5px;
}

.project_link:hover {
  background-color: #3498db;
  color: #fff;
}

/* 팀 */
.team {
  padding: 60px 20px;
  text-align: center;
}

.team h1 {
  font-size: 60px;
  color: #1469d9;
  margin-bottom: 40px;
  font-weight: bold;
}

.team-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 0 auto;
}

.team-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
}

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

.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 16px;
  color: #666;
}

/* SECON 배너 */
.secon_banner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #e9ecef;
  padding: 20px;
}

.secon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1500px;
}

.secon_image img {
  width: 1000px;
  border-radius: 10px;
  margin: 20px 0;
}

.secon_text p {
  font-size: 24px;
  font-weight: bold;
}

/* 푸터 */
footer {
  background-color: #313131;
  color: #fff;
  text-align: center;
  padding: 20px;
  width: 100%;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  color: #999;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .logo_pic img {
    width: 50px;
    height: 50px;
  }

  nav ul {
    gap: 30px; /* 태블릿 간격 */
  }

  nav ul li a {
    font-size: 18px;
  }

  .banner {
    padding: 40px 15px;
  }

  .banner p {
    font-size: 20px;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner_image {
    width: 250px;
    height: 350px;
  }

  .profile_text p {
    font-size: 20px;
  }

  .skill_card h2 {
    font-size: 28px;
  }

  .team h1 {
    font-size: 32px;
  }

  .team-image {
    width: 130px;
    height: 130px;
  }

  .secon_image img {
    width: 70%;
  }

  .secon_text p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 15px; /* 세로 정렬 간격 */
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 16px;
  }

  .banner {
    padding: 30px 10px;
  }

  .banner p {
    font-size: 18px;
  }

  .banner h1 {
    font-size: 28px;
  }

  .profile {
    flex-direction: column;
    gap: 15px;
  }

  .banner_image {
    width: 200px;
    height: 300px;
  }

  .profile_text {
    text-align: center;
  }

  .profile_text p {
    font-size: 18px;
  }

  .skill_card {
    padding: 30px 10px;
  }

  .skill_card h2 {
    font-size: 24px;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .portfolio h1 {
    font-size: 28px;
  }

  .team {
    padding: 30px 10px;
  }

  .team h1 {
    font-size: 28px;
  }

  .team-card {
    width: 100%;
    max-width: 300px;
  }

  .team-image {
    width: 120px;
    height: 120px;
  }

  .secon_banner {
    min-height: 400px;
    padding: 16px;
  }

  .secon_image img {
    width: 70%;
  }

  .secon_text p {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .logo_pic img {
    width: 40px;
    height: 40px;
  }

  nav ul {
    gap: 10px; /* 소형 모바일 간격 */
  }

  nav ul li a {
    font-size: 14px;
  }

  .banner p {
    font-size: 16px;
  }

  .banner h1 {
    font-size: 24px;
  }

  .banner_image {
    width: 150px;
    height: 200px;
  }

  .profile_text p {
    font-size: 16px;
  }

  .skill_card h2 {
    font-size: 20px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 12px;
  }

  .portfolio h1 {
    font-size: 24px;
  }

  .project_info h2 {
    font-size: 20px;
  }

  .project_info p {
    font-size: 14px;
  }

  .project_link {
    font-size: 14px;
    padding: 6px 12px;
  }

  .team h1 {
    font-size: 24px;
  }

  .team-image {
    width: 100px;
    height: 100px;
  }

  .team-card h2 {
    font-size: 20px;
  }

  .team-card p {
    font-size: 14px;
  }

  .secon_banner {
    min-height: 300px;
    padding: 8px;
  }

  .secon_image img {
    width: 50%;
  }

  .secon_text p {
    font-size: 16px;
  }

  .footer p {
    font-size: 14px;
  }
}
