/* ==========================================
[포트폴리오 스타일시트]
========================================== */
:root { --primary-color: #2B72F1; --primary-light: #4A89F4; --primary-dark: #1E5CD4; --accent-cyan: #4AF8FF; --text-white: #FFFFFF; --text-dark: #1E293B; --text-gray: #64748B; --bg-gray-light: #F8FAFC; --bg-blue-tint: #EEF2FA; --border-color: #E2E8F0; --radius-sm: 0.8rem; --radius-md: 1.6rem; --radius-lg: 2.4rem; --radius-device: 3.2rem; --shadow-sm: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.05); --shadow-md: 0 1rem 3rem rgba(0, 0, 0, 0.08); --shadow-lg: 0 2rem 5rem rgba(0, 0, 0, 0.12); --font-family: 'Pretendard', sans-serif; }
html { scroll-behavior: smooth; font-size: 62.5%; }
body { margin: 0; padding: 0; background: var(--bg-gray-light); font-family: var(--font-family); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 1.6rem; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
#skip-nav a { position: absolute; top: -13rem; left: 0; width: 100%; height: 4rem; line-height: 4rem; background: #000000; color: #FFFFFF; text-align: center; z-index: 2000; transition: top 0.3s; font-size: 1.6rem; }
#skip-nav a:focus { top: 0; outline: none; }
.btn-back-hero { position: absolute; top: 3rem; left: 3rem; z-index: 110; display: inline-flex; align-items: center; gap: 0.8rem; padding: 1.2rem 2.4rem; background: rgba(255, 255, 255, 0.1); border: 0.1rem solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(1rem); border-radius: 4rem; color: var(--text-white); text-decoration: none; font-size: 1.5rem; font-weight: 700; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.btn-back-hero i { font-size: 1.8rem; transition: transform 0.3s ease; }
.btn-back-hero:hover { background: var(--text-white); color: var(--primary-color); box-shadow: var(--shadow-lg); transform: translateY(-0.3rem); }
.btn-back-hero:hover i { transform: translateX(-0.4rem); }
.mini-header-bar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(1rem); -webkit-backdrop-filter: blur(1rem); border-bottom: 0.1rem solid var(--border-color); padding: 1.6rem 3rem; box-shadow: var(--shadow-sm); z-index: 999; display: flex; align-items: center; justify-content: space-between; gap: 2rem; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-sizing: border-box; }
.mini-header-bar.visible { transform: translateY(0); }
.header-left { display: flex; align-items: center; gap: 2rem; flex-shrink: 0; max-width: 45%; }
.mini-back-btn { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 800; color: var(--text-dark); text-decoration: none; padding-right: 2rem; border-right: 0.2rem solid var(--border-color); transition: color 0.3s ease; flex-shrink: 0; }
.mini-back-btn i { font-size: 1.8rem; }
.mini-back-btn:hover { color: var(--primary-color); }
.mini-header-title { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-header-info { display: flex; align-items: center; gap: 2.4rem; list-style: none; margin: 0; padding: 0 0 0.4rem 0; overflow-x: auto; white-space: nowrap; flex-shrink: 1; }
.mini-header-info::-webkit-scrollbar { height: 0.3rem; }
.mini-header-info::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 0.3rem; }
.mini-header-info li { font-size: 1.4rem; color: var(--text-gray); font-weight: 600; display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.mini-header-info .info-label { color: var(--primary-color); font-weight: 800; }
.portfolio-header { position: relative; width: 100%; min-height: 95vh; padding: 14rem 0 10rem 0; background: var(--primary-color); display: flex; align-items: center; overflow: visible; box-sizing: border-box; }
.portfolio-header-inner { max-width: 150rem; margin: 0 auto; padding: 0 4rem; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; position: relative; z-index: 10; box-sizing: border-box; }
.hero-info-area { display: flex; flex-direction: column; color: var(--text-white); animation: fadeUp 1s ease 0.2s forwards; opacity: 0; transform: translateY(3rem); }
.hero-category { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.8); margin-bottom: 1.2rem; }
.project-title { font-size: 5rem; font-weight: 800; color: var(--text-white); margin: 0 0 2rem 0; line-height: 1.3; letter-spacing: -0.02em; word-break: keep-all; }
.hero-meta-grid { display: flex; flex-direction: column; gap: 2rem; padding-top: 3rem; border-top: 0.1rem solid rgba(255, 255, 255, 0.2); }
.meta-item { display: flex; align-items: flex-start; font-size: 1.6rem; }
.meta-label { width: 11rem; color: rgba(255, 255, 255, 0.8); font-weight: 700; flex-shrink: 0; line-height: 1.5; }
.meta-value { color: var(--text-white); font-weight: 500; display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; line-height: 1.5; }
.role-item { align-items: center; }
.role-bars { flex-direction: column; gap: 1.4rem; width: 100%; max-width: 32rem; }
.skill-row { display: flex; align-items: center; gap: 1.5rem; font-size: 1.4rem; font-weight: 700; width: 100%; }
.skill-name { width: 6rem; flex-shrink: 0; }
.progress-track { flex: 1; height: 0.8rem; background: rgba(255, 255, 255, 0.2); border-radius: 1rem; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: var(--accent-cyan); border-radius: 1rem; width: 0; box-shadow: 0 0 1rem rgba(74, 248, 255, 0.6); transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.skill-num { width: 4.5rem; text-align: right; flex-shrink: 0; color: var(--accent-cyan); }
.hero-visual-area { position: relative; height: 65rem; display: flex; justify-content: center; align-items: center; animation: fadeLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; transform: translateX(5rem); }
.bg-circle-1 { position: absolute; width: 65rem; height: 65rem; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mockup-device { position: absolute; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2; }
.primary-device { width: 65rem; transform: perspective(100rem) rotateY(-12deg) rotateX(6deg) translate(-2rem, -2rem); }
.pc-screen { background: #000000; border-radius: 1.6rem 1.6rem 0 0; padding: 1.2rem 1.2rem 0 1.2rem; border: 0.3rem solid rgba(255, 255, 255, 0.1); border-bottom: none; box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.3); overflow: hidden; aspect-ratio: 16 / 10; }
.pc-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0.8rem 0.8rem 0 0; display: block; }
.pc-stand { height: 2.4rem; background: #E2E8F0; border-radius: 0 0 1.6rem 1.6rem; position: relative; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2); }
.pc-stand::after { content: ''; position: absolute; bottom: -1.2rem; left: 50%; transform: translateX(-50%); width: 16rem; height: 1.2rem; background: #CBD5E1; border-radius: 0 0 0.8rem 0.8rem; }
.portfolio-header:hover .primary-device { transform: perspective(100rem) rotateY(-8deg) rotateX(4deg) translate(-2rem, -2rem); }
.portfolio-container { max-width: 140rem; margin: 0 auto; padding: 12rem 4rem 16rem 4rem; position: relative; z-index: 20; }
.improvement-list { display: flex; flex-direction: column; gap: 20rem; }
.improvement-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6rem; scroll-margin-top: 12rem; }
.item-text { display: flex; flex-direction: column; align-items: center; max-width: 80rem; }
.item-category { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: 0.1em; margin-bottom: 1.6rem; }
.item-title { font-size: 4rem; font-weight: 800; line-height: 1.4; color: var(--text-dark); margin: 0 0 2rem 0; word-break: keep-all; letter-spacing: -0.02em; }
.item-title strong { color: var(--primary-color); }
.item-desc { font-size: 1.7rem; color: var(--text-gray); line-height: 1.8; word-break: keep-all; margin: 0; }
.item-image { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 120rem; padding: 0; }
.device-frame { position: relative; width: 100%; max-width: 100%; background: var(--text-white); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow-md); transition: transform 0.4s ease, box-shadow 0.4s ease; box-sizing: border-box; }
.device-frame img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 1.2rem); border: 0.1rem solid var(--border-color); }
.multi-frame-container { display: flex; gap: 4rem; width: 100%; max-width: 120rem; justify-content: center; align-items: flex-start; }
.multi-frame-container .device-frame { flex: 1; }
.contact-floating-group { position: fixed; bottom: 3rem; right: 3rem; z-index: 105; display: flex; flex-direction: column; gap: 1.2rem; }
.btn-floating { display: flex; align-items: center; justify-content: center; width: 5.6rem; height: 5.6rem; border-radius: 50%; text-decoration: none; box-shadow: var(--shadow-md); border: 0.1rem solid var(--border-color); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-floating i { font-size: 2.4rem; color: var(--text-dark); transition: transform 0.3s ease; }
.btn-kakao { background: #FEE500; border-color: #FEE500; }
.btn-kakao i { color: #3C1E1E; }
.btn-top { background: var(--text-white); }
.btn-top:hover { background: var(--primary-color); border-color: var(--primary-color); }
.btn-top:hover i { color: var(--text-white); }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(3rem); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { 0% { opacity: 0; transform: translateX(5rem); } 100% { opacity: 1; transform: translateX(0); } }


@media (max-width: 1024px) {
    .btn-back-hero { position: absolute; top: 2rem; left: 2rem; padding: 0.8rem 1.6rem; font-size: 1.3rem; z-index: 150; }
    .mini-header-bar { padding: 1.6rem 2rem; }
    .header-left { gap: 1.6rem; max-width: 40%; }
    .mini-back-btn { padding-right: 1.6rem; }
    .mini-header-info { gap: 1.6rem; }
    .portfolio-header { min-height: auto; padding: 14rem 0 6rem 0; height: auto; overflow: visible; }
    .portfolio-header-inner { grid-template-columns: 1fr; gap: 4rem; text-align: center; padding: 0 2rem; }
    .hero-info-area { align-items: center; margin-top: 1rem; }
    .hero-meta-grid { align-items: center; border-top: 0.1rem solid rgba(255, 255, 255, 0.2); width: 100%; max-width: 45rem; }
    .meta-item { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; border-bottom: 0.1rem solid rgba(255, 255, 255, 0.2); padding: 0rem 0rem 3rem 0rem; }
    .meta-label { width: auto; margin-bottom: 0.2rem; }
    .role-bars { max-width: 100%; align-items: center; width: 100%; }
    .hero-visual-area { height: 40rem; width: 100%; margin-top: 2rem; }
    .primary-device { width: 42rem; transform: none; position: relative; margin: 0 auto; }
    .portfolio-container { padding: 8rem 3rem 16rem 3rem; }
    .improvement-list { gap: 12rem; }
    .item-title { font-size: 3.2rem; }
    .multi-frame-container { flex-direction: column; gap: 4rem; }
    .contact-floating-group { bottom: 3rem; right: 2rem; }
    .btn-floating { width: 5.2rem; height: 5.2rem; }
}

@media (max-width: 768px) {
    .btn-back-hero { position: absolute; top: 1.5rem; left: 1.5rem; padding: 0.6rem 1.2rem; font-size: 1.2rem; }
    .mini-header-bar { padding: 1.2rem 1.6rem; justify-content: center; }
    .mini-header-info { display: none; }
    .mini-back-btn { padding-right: 1.2rem; border-right: none; }
    .mini-header-title { display: none; }
    .portfolio-header { padding: 10rem 0 4rem 0; }
    .project-title { font-size: 3.2rem; }
    .hero-visual-area { height: 30rem; }
    .primary-device { width: 26rem; }
    .portfolio-container { padding: 6rem 2rem 14rem 2rem; }
    .improvement-list { gap: 10rem; }
    .item-title { font-size: 2.8rem; }
    .item-desc { font-size: 1.5rem; }
    .multi-frame-container { gap: 3rem; }
    .contact-floating-group { bottom: 2rem; right: 1.6rem; }
    .btn-floating { width: 4.8rem; height: 4.8rem; }
    .btn-floating i { font-size: 2.2rem; }
}