/* =========================================================
   [folioStyle.css] - Project 카드 높이 축소 버전
   ========================================================= */

/* 1. 공통 폰트 및 기본 설정 */
.list-date, .project-sub-title, .project-desc-text, 
.css-name-date, .css-name-date2, 
.skill-title, .skill-desc, .tag, 
.resume-btn-simple, .pro-company, .pro-period, .pro-role, .pro-desc li,
.modal-content, .modal-title, .modal-body,
.summary-card, .summary-list,
.modal-body h4, .modal-body p, .modal-body li, .modal-body strong, .modal-body span,
.css-name, .css-name2, .css-name-bottom, .css-name-bottom2,
.do-hyeon-regular, .gowun-dodum-regular, .poor-story-regular {
    font-family: 'Noto Sans KR', sans-serif !important;
}

.do-hyeon-regular { font-weight: 700; }
.gowun-dodum-regular { font-weight: 400; }
.poor-story-regular { font-weight: 400; }
.dic-font { font-size: clamp(14px, 2vw, 18px); }

/* =========================================
   [2. Project 섹션 (높이 축소 적용)]
   ========================================= */
.css-box-container, .css-box-container2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    align-items: center; 
}

.css-box, .css-box2 {
    border-radius: 10px;
    /* ★ 수정: 위아래 패딩을 줄여서 높이 축소 (기존 30px -> 20px) */
    padding: 22px 20px 15px 20px; 
    background-color: #2a2a2a;
    position: relative;
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
}

.css-box { border: 2px solid #00d8b4; }
.css-box2 { border: 2px solid #00b4d8; }

.css-name, .css-name2, 
.css-name-bottom, .css-name-bottom2, .css-name-bottom3 {
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    color: #000000;
    font-size: 0.9rem; /* 폰트 살짝 축소 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.css-name { position: absolute; top: -18px; left: 20px; } 
.css-name2 { position: absolute; top: -18px; right: 20px; } 
.css-name-bottom { position: absolute; bottom: -18px; right: 20px; } 
.css-name-bottom2 { position: absolute; bottom: -18px; left: 20px; } 

.css-name-date, .css-name-date2 {
    position: absolute; top: -35px; font-weight: 700; color: #ffffff; font-size: 1rem; padding: 5px 10px;
}
.css-name-date { right: 0; }
.css-name-date2 { left: 0; }

.color-left { background-color: #00b4d8; } 
.color-right { background-color: #00d8b4; } 

/* ★ 수정: 내용물 상단 마진 제거 */
.css-contents, .css-contents2 { margin-top: 0px; }

/* ★ 수정: 제목 아래 간격 축소 */
.project-sub-title {
    font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 5px; letter-spacing: -0.03em; line-height: 1.2;
}
.project-desc-text {
    font-weight: 400; font-size: 0.95rem; line-height: 1.5; color: #e0e0e0; word-break: keep-all; margin-bottom: 0;
}
.blink-stack { width: 22%; display: block; }

/* =========================================
   [3. 모달 (Modal) 및 요약 카드]
   ========================================= */
.modal-title { font-weight: 700; color: #222; font-size: 1.3rem; letter-spacing: -0.02em; }
.modal-body { padding-top: 10px !important; }
.modal-body h4 {
    font-weight: 700; font-size: 1.15rem !important; color: #333 !important; margin-top: 30px; margin-bottom: 12px;
}
.modal-body p {
    font-weight: 400; font-size: 0.95rem !important; color: #555 !important; line-height: 1.6; margin-bottom: 20px;
}
.btn-close { font-family: sans-serif !important; }

.summary-card {
    background: #ffffff; border-radius: 14px; padding: 22px 26px;
    margin-bottom: 20px !important; margin-top: 0 !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06); border: 1px solid #eaeaea;
}
.summary-title { font-weight: 700; margin-bottom: 16px; font-size: 1.15rem; margin-top: 0 !important; }
.summary-list { margin: 0; padding-left: 18px; list-style: disc; line-height: 1.55rem; }
.summary-list li { margin-bottom: 8px; font-size: 0.95rem !important; color: #555 !important; }
.summary-list strong { font-weight: 700; color: #333; margin-right: 6px; }

.smImg { max-width: 100%; height: auto; object-fit: cover; display: block; margin: 0 auto; border-radius: 8px; }
.smImg2 { width: 100%; height: auto; max-width: 700px; max-height: 400px; object-fit: contain; display: block; margin: 0 auto; }

/* =========================================
   [4. Activities (심플 리스트)]
   ========================================= */
.simple-list { max-width: 900px; margin: 0 auto; text-align: left; }
.list-row { display: flex; align-items: baseline; padding: 25px 0; border-bottom: 1px solid #eee; }
.list-row:last-child { border-bottom: none; }
.list-date { width: 110px; font-size: 1.1rem; color: #66b3ff; font-weight: 700; flex-shrink: 0; padding-top: 4px; }
.list-info { padding-left: 20px; }
.list-info h5 { margin: 0 0 8px 0; font-size: 1.25rem; color: #333; line-height: 1.2; }
.list-info p { margin: 0; color: #666; font-size: 1.05rem; }

/* =========================================
   [5. 기타 유틸리티]
   ========================================= */
.typing-text {
    display: inline-block; white-space: nowrap; overflow: hidden; border-right: 3px solid #fff; width: 0; 
    animation: typing 2.5s steps(18, end) forwards, blink-caret .20s step-end 7 forwards;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #fff; } }

.image.fit img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.image.fit:hover img { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }

/* =========================================
   [6. Skills (태그 디자인 수정 완료)]
   ========================================= */
.skill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; width: 100%; }
.skill-item {
    display: flex; align-items: flex-start; background-color: #fff; border: 1px solid #eaeaea;
    border-radius: 15px; padding: 25px; width: 48%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s ease;
}
.skill-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #66b3ff; }
.skill-icon-box {
    width: 50px; height: 50px; background-color: #f4f9ff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; margin-top: 5px;
}
.skill-icon { font-size: 1.8rem; color: #555; line-height: 1; }
.skill-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; }
.skill-title { font-weight: 700; font-size: 1.15rem; color: #333; margin-bottom: 5px; }
.skill-desc { font-weight: 400; font-size: 0.95rem; color: #666; margin-bottom: 12px; line-height: 1.4; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; width: 100%; }
.tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600; color: #5094fa; background-color: #f0f7ff;
    padding: 5px 12px; border-radius: 50px; border: 1px solid #dbeeff; line-height: 1; white-space: nowrap;
}

/* =========================================
   [7. About (미니멀 카드)]
   ========================================= */
.about-intro { text-align: center; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
.intro-tagline { font-weight: 700; font-size: 1.4rem; color: #333; margin-bottom: 15px; }
.intro-desc { font-weight: 400; font-size: 0.95rem; color: #555; line-height: 1.7; word-break: keep-all; }

.about-grid { display: flex !important; flex-wrap: nowrap !important; justify-content: center; gap: 10px; width: 100%; }
.about-item {
    flex: 0 0 auto; width: 140px; display: flex; flex-direction: column !important; align-items: center; justify-content: center;
    background-color: #fff; border: 1px solid #eaeaea; border-radius: 10px; padding: 15px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.3s ease; height: 100%;
}
.about-item:hover { transform: translateY(-3px); border-color: #66b3ff; }
.about-icon-circle {
    width: 35px; height: 35px; background-color: #f4f9ff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; margin-bottom: 8px;
}
.about-icon-circle i { font-size: 1.1rem; color: #66b3ff; }
.about-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-text .label { font-size: 0.75rem; color: #888; margin-bottom: 3px; font-weight: 500; }
.about-text .value { font-size: 0.9rem; color: #333; font-weight: 700; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.about-text .value a { color: #333; text-decoration: none; border-bottom: 1px dotted #ccc; }

/* =========================================
   [8. Profile (Grid로 완벽 정렬)]
   ========================================= */
.resume-area { margin-top: 30px !important; margin-bottom: 50px !important; text-align: center; }
.resume-btn-simple {
    display: inline-block; padding: 10px 25px; background-color: #333; color: #fff !important;
    border-radius: 50px; text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.resume-btn-simple:hover { background-color: #66b3ff; transform: translateY(-2px); }

#profile .profile-grid {
    display: grid !important; grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
}

#profile .profile-grid > div {
    padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; flex: none !important;
}

.pro-card {
    background: #fff; border-radius: 12px; border: 1px solid #eaeaea; padding: 25px; height: 100%;
    text-align: left; transition: transform 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.pro-card:hover { transform: translateY(-5px); border-color: #66b3ff; }
.pro-header { display: flex; align-items: flex-start; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f5f5f5; }
.pro-logo-area { margin-right: 15px; flex-shrink: 0; }
.pro-info-area { flex-grow: 1; display: flex; flex-direction: column; }
.pro-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-wrap: wrap; gap: 10px; }
.pro-company { font-weight: 700; font-size: 1.15rem !important; color: #333 !important; margin: 0; line-height: 1.2; }
.pro-period { font-size: 0.8rem; color: #66b3ff; font-weight: 700; background: #f0f9ff; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.pro-role { font-weight: 400; font-size: 0.95rem !important; color: #666 !important; margin-top: 3px; }
.pro-body { padding-left: 5px; }
.pro-desc { list-style: disc !important; padding-left: 20px !important; margin: 10px 0 0 0 !important; }
.pro-desc li { display: list-item !important; font-weight: 400; font-size: 0.95rem !important; color: #666 !important; margin-bottom: 10px !important; line-height: 1.6; }
.pro-desc li::before { content: none !important; display: none !important; }

/* =========================================
   [9. 반응형 (Media Queries)]
   ========================================= */
@media screen and (max-width: 900px) {
    .skill-item { width: 100%; }
    .css-box-container, .css-box-container2 { flex-direction: column; } 
    .blink-stack { display: none; } 
    .css-box, .css-box2 { width: 100%; margin-bottom: 30px; } 
}

@media screen and (max-width: 768px) {
    .list-row { flex-direction: column; padding: 20px 0; }
    .list-date { margin-bottom: 8px; font-size: 1rem; }
    .list-info { padding-left: 0; }
    .pc-br { display: none; }
    
    #profile .profile-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

    .hidImg, .hidImg2 { display: none; } 
    .css-box, .css-box2 { padding: 40px 20px 40px 20px; }
}

@media screen and (max-width: 500px) {
    .about-grid { gap: 5px; }
    .about-item { width: 23%; padding: 10px 2px; border-radius: 8px; }
    .about-icon-circle { width: 30px; height: 30px; margin-bottom: 5px; }
    .about-icon-circle i { font-size: 1rem; }
    .about-text .label { font-size: 0.7rem; margin-bottom: 1px; }
    .about-text .value { font-size: 0.8rem; }
    
    .css-name-date, .css-name-date2 { display: none; }
}