/* ===============================================================
   PROFILE H2 — Card + Pop-out Double Bounce (배경색 수정)
   =============================================================== */

#profile .about-text h2.h2-card{
  display:block;
  width:100%;
  box-sizing:border-box;

  /* Card look */
  background:#414244;            /* 배경색 변경 */
  color:#3478ff;                 /* 제목 색상 */
  border:2px solid var(--profile-accent, #e0c551);
  border-radius:28px;
  padding:22px 28px;
  text-align:center;
  line-height:1.25;
  font-weight:800;

  /* Depth */
  box-shadow:
    0 10px 24px rgba(0,0,0,.12),
    0 4px 8px rgba(0,0,0,.06);

  /* Animation */
  transform-origin:center;
  will-change: transform, box-shadow, opacity;
  animation: h2CardPop 1100ms cubic-bezier(.2,.9,.2,1) 120ms 1,
             h2CardBounce 1100ms ease-out 120ms 1;
}

/* Pop from background & fade-in */
@keyframes h2CardPop{
  0%   { opacity:0; transform: translateY(14px) scale(.92); box-shadow: 0 0 0 rgba(0,0,0,0); }
  40%  { opacity:1; transform: translateY(-10px) scale(1.03); box-shadow: 0 16px 36px rgba(0,0,0,.16); }
  60%  { opacity:1; transform: translateY(0) scale(1.0); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
  80%  { opacity:1; transform: translateY(-6px) scale(1.015); box-shadow: 0 14px 28px rgba(0,0,0,.14); }
  100% { opacity:1; transform: translateY(0) scale(1.0); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
}

/* Secondary subtle bounce */
@keyframes h2CardBounce{
  0%   { transform: translateY(0) }
  30%  { transform: translateY(-6px) }
  55%  { transform: translateY(0) }
  75%  { transform: translateY(-3px) }
  100% { transform: translateY(0) }
}

@media (prefers-reduced-motion: reduce){
  #profile .about-text h2.h2-card{ animation: none; }
}

@media (max-width: 767.9px){
  #profile .about-text h2.h2-card{
    font-size: clamp(20px, 4.8vw, 34px);
    padding:18px 22px;
    border-radius:22px;
  }
}
@media (min-width: 768px){
  #profile .about-text h2.h2-card{ font-size: clamp(26px, 2.2vw, 42px); }
}
