/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    /* 다크 모드 스타일 */
    color: white;
    font-family: 'Pretendard', sans-serif;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

/* 그리드 레이아웃: 화면 너비에 따라 카드가 자동으로 배치됨 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 카드 스타일 */
.card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    border: 1px solid #444;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #ff2558;
}

/* 이미지 비율 고정 (핵심!) */
.card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 4:3 비율 고정 */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지가 찌그러지지 않게 채움 */
}

.card-info {
    padding: 15px;
}

.card-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.role-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    background: #444;
    margin-bottom: 10px;
}

/* 모달 스타일 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-window {
    background: #222;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    border: 0px solid #000000;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* 상세 정보 레이아웃 */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

@media (max-width: 600px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h3 {
    color: #bbbee0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.small-info {
    font-size: 0.75rem;
    /* 기본보다 작게 (1rem이 보통 기본) */
    color: #bbb;
}

.skill-list p {
    margin-bottom: 5px;
    /* font-size: 0.95rem; */
}
