/* 헤더 Contact me 모달 — 프로젝트 페이지 공용 (index.html은 같은 스타일을 인라인으로 갖고 있다) */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-panel {
    width: 100%;
    max-width: 400px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 22px 20px 26px;
    transform: translateY(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal.is-open .contact-modal-panel {
    transform: translateY(0);
}

/* PC에선 패널을 조금 더 밝게 (모바일은 그대로) */
@media (min-width: 641px) {
    .contact-modal-panel {
        background-color: #1e1e1e;
        border-color: #333333;
    }
}

.contact-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.contact-modal-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.contact-modal-close {
    background: none;
    border: none;
    color: #666666;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-modal-close:hover {
    color: #ffffff;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 항목은 박스로 감싸지 않고 디바이더로만 나눈다 */
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #2a2a2a;
    padding: 20px 0;
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.contact-row-text {
    flex: 1;
    min-width: 0;
}

.contact-row-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact-row-value {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

/* iOS가 전화번호를 자동으로 tel: 링크로 감싼다 — 파란 밑줄만 지우고 탭해서 걸기는 남긴다 */
.contact-row-value a {
    color: inherit;
    text-decoration: none;
}

.contact-copy {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999999;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 0 8px 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-copy:hover {
    color: #ffffff;
}

.contact-copy.is-copied {
    color: #0a84ff;
}

@media (max-width: 640px) {
    .contact-modal {
        padding: 16px;
    }
}
