@import url('https://fonts.googleapis.com/css2?family=Pretendard&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

body {
  background: linear-gradient(120deg, #dbeafe, #f0f9ff);
  color: #333;
}

/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px 40px;
  }

  .typing {
    font-size: 2rem !important;
    /* 모바일에서 폰트 사이즈 줄임 */
    width: 10ch;
    /* 너비 재설정 */
  }

  .profile {
    width: 120px;
    height: 120px;
  }

  .card {
    width: 95%;
    padding: 20px;
  }

  /* 텍스트가 두 줄로 꺾이지 않도록 폰트 크기와 자간 조절 */
  .card p {
    font-size: 14.5px;
    letter-spacing: -0.5px;
    word-break: keep-all;
  }
}

.hero span {
  color: #2563eb;
  font-weight: 700;
}

.special {
  animation: fadeUp 4.4s ease;
  font-size: 1.3rem;
}

.profile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* 타이핑 효과 */
.typing {
  font-size: 3rem;
  width: 10ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #333;
  margin: 0 auto 10px;
  animation: typing 2s steps(10), blink 0.7s infinite;
}

/* 카드 */
.card {
  background: #fff;
  width: 85%;
  max-width: 720px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  animation: fadeUp 5.2s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h2 {
  margin-bottom: 15px;
}

/* 리스트 */
.list {
  list-style: none;
}

.list li {
  padding: 8px 0;
}

/* 푸터 */
footer {
  text-align: center;
  padding: 30px;
  color: #666;
  font-size: 14px;
}

/* 애니메이션 */
@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 10ch
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Awards 강조 스타일 */
.silver {
  color: #9ca3af;
  /* 은색 */
  font-weight: 700;
}

.gold {
  color: #f59e0b;
  /* 금색 */
  font-weight: 700;
}

/* Contact 복사 버튼 */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-item span {
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .contact-item span:hover {
    color: #2563eb;
    font-weight: 700;
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
}

/* 모바일 터치 시 효과 */
.card:active {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
  /* 터치 시 빠르게 반응 */
}