@font-face {font-family: "YUniverse-B"; src: url(../font/YUniverse-B.ttf);}

/* 레이아웃 그리드: 전체 1080px · 12칼럼 × 90px(칼럼 80 + 거터 10, 양끝 거터 반 칸씩 5px) */
:root {--content-width: 1080px; --gutter: 10px;}
html, body {font-family: "YUniverse-B", sans-serif;}
* {margin: 0; padding: 0; box-sizing: border-box;}
/* * { outline: 1px solid red !important; } */
ul, li {list-style: none; margin: 0; padding: 0;}
h2, h3, h4, p {margin: 0;}
a {text-decoration: none; color: black; font-family: "YUniverse-B", sans-serif; }
p, span {color: #EFEFEF;}
.hidden {display: none;}

/*
main : 1A1A1A, point : F4E53B EFEFEF
fontsize= 16 24 36 50 80
*/

section {
    width: 100%; min-height: 100vh;
    background-color: #1A1A1A;
    position: relative;
    scroll-margin-top: 80px;
    box-sizing: border-box;
}

/********************** quick menu (header) **********************/
/* PC·태블릿: 오른쪽 가운데에 세로로 뜨는 퀵메뉴. 모바일은 아래쪽 바(모바일 영역에서 덮어씀) */
header {
    position: fixed;
    top: 50%;
    right: 16px;
    z-index: 9999;
    padding: 12px 6px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(244, 229, 59, 0.35);
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 인트로에서는 숨겼다가 소개부터 나타남 */
header.header-hidden {transform: translate(calc(100% + 24px), -50%); opacity: 0;}
header.header-visible {transform: translate(0, -50%); opacity: 1;}

/* 로고 = 맨 위로 */
.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.logo-img {display: block; width: 32px; height: auto;}

.gnb ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gnb a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
}

.gnb img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 메뉴 이름: 아이콘 왼쪽에 말풍선으로 */
.gnb span {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: #1A1A1A;
    border: 1px solid rgba(244, 229, 59, 0.35);
    border-radius: 999px;
    color: #EFEFEF;
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* 현재 섹션은 노란 달 아이콘으로 표시, 이름표는 본문을 가리지 않게 마우스·초점일 때만 */
.gnb a:hover span,
.gnb a:focus-visible span {opacity: 1;}

.gnb a:hover span,
.gnb a.is-active span {color: #F4E53B;}

.logo a:focus-visible,
.gnb a:focus-visible {
    outline: 3px solid #F4E53B;
    outline-offset: -3px;
    border-radius: 50%;
}

/********************** intro page **********************/
#page01 {width: 100%; height: 100vh;}
.intro {
    width: 100%; height: 100vh;
    background-color: #1A1A1A;
    display: flex; justify-content: center; align-items: center;
}
.main-tit {
    width: 450px; height: 450px;
    background-color: #1A1A1A; color: #EFEFEF;
    border: 2px solid #F4E53B;
    border-radius: 50%;
    font-size: 24px;
    position: relative;
    animation: fadeUp 1.8s ease-out forwards;
    opacity: 0;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    text-align: center;
    box-shadow: 0 0 60px rgba(244, 229, 59, 0.3);
    z-index: 2;
    word-break: keep-all;
}
@keyframes fadeUp {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
}

.main-tit h2 {
    font-size: 32px;
    margin: 0;
}

.main-tit p {
    position: relative;
    z-index: 2;
    font-size: 12px;
    padding-top: 20px;
}

.main-tit span {
    color: #F4E53B;
}

/* 블러 효과 배경 */
.blur-circle {
    width: 300px; height: 300px;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #F4E53B;
    filter: blur(40px);
    z-index: 1; opacity: 0.15;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.scroll-down {
    position: absolute; bottom: 20px;
    font-size: 14px; color: #EFEFEF;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/***************** About ME page ******************/

.about-section {
    width: 100%;
    min-height: 100vh;
    background-color: #1A1A1A;
    color: #EFEFEF;
    padding: 100px 6%;
}

.about-inner {
    max-width: 1400px;
    width: calc(100% - 160px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-left, .about-right {width: auto;}

.about-label {
    color: #F4E53B;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.about-right h2 {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 600;
}
.about-right span {color: #F4E53B;}
.about-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #EFEFEF;
    margin-bottom: 42px;
}

/* 키워드 카드 */
.keyword-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.keyword-item {
    border: 1px solid #F4E53B;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.keyword-item strong {
    display: block;
    font-size: 20px;
    color: #F4E53B;
}

.keyword-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #EFEFEF;
}

/* 오른쪽 */
.profile-intro {
    margin-bottom: 30px;
}

.profile-intro .name {
    font-size: 34px;
    font-weight: 600;
    color: #EFEFEF;
    margin-bottom: 8px;
}

.profile-intro .role {
    font-size: 22px;
    color: #EFEFEF;
    margin-bottom: 24px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tags li {
    padding: 8px 14px;
    border: 1px solid rgba(244, 229, 59, 0.5);
    border-radius: 999px;
    color: #F4E53B;
    font-size: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.history-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(239, 239, 239, 0.18);
}

.history-item h4 {
    font-size: 18px;
    color: #F4E53B;
    margin-bottom: 12px;
}

.history-item p {
    font-size: 18px;
    line-height: 1.5;
    color: #EFEFEF;
    margin-bottom: 8px;
}

.history-item span {
    font-size: 16px;
    color: rgba(239, 239, 239, 0.55);
}
/****************** skill page **********************/
.skills-section {
    width: 100%; height: 100vh;
    background-color: #1A1A1A;
    color: #EFEFEF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skills-title {
    color: #F4E53B; margin-bottom: 10px;
    font-size: 48px;
    text-align: center;
    font-weight: bold;    
}

.skills-subtitle {
    font-size: 18px;
    margin-bottom: 50px;
    text-align: center;
}

.skills-grid {display: flex; gap: 40px; margin: 0 auto;}

.skill-category h3 {
    color: #F4E53B; margin-bottom: 15px;
    font-size: 20px; text-align: left;
}

.skill-category ul li {
    margin-bottom: 14px;
    font-size: 16px; line-height: 1.5;
    word-break: keep-all;
}

/* 이 기술을 쓴 프로젝트 (아래 프로젝트 섹션에서 확인 가능) */
.skill-from {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #999;
}

/****************** project gallery page **********************/
#page04,
#page04-2 {padding-top: 80px; box-sizing: border-box;}
.project-title {
    text-align: center; color: #F4E53B;
    padding-bottom: 20px;
    font-size: 28px;
}

.card-title {
    font-size: 18px; text-align: center;
    padding-top: 5px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    text-align: center;
}

.project-skill {
    font-size: 14px;
    color: #9c7055;
    margin-bottom: 5px;
    text-align: center;
}

.features li {
    font-size: 14px;
    padding-left: 20px;
    color: #333;
}

.btn-group {
    display: flex; gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    background-color: #1A1A1A;
    color: #EFEFEF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.btn-group .btn {
    white-space: nowrap;
}

/* 버튼이 3개인 카드는 좌우 여백을 줄여 한 줄에 맞춤 */
.btn-group:has(.btn:nth-child(3)) .btn {
    padding: 10px 14px;
}

.btn:hover {background-color: #F4E53B; color: #1A1A1A;}

/* 버튼 아래 보조 링크 (소하 기획서) */
.plan-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    margin-top: 6px;
    font-size: 14px;
    color: #9c7055;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plan-link i {font-size: 11px;}

.plan-link:hover {color: #1A1A1A;}

.plan-link:focus-visible {
    outline: 3px solid #F4E53B;
    outline-offset: 2px;
}

/********************** Conetect ME page **********************/
#page05 {padding-top: 80px; box-sizing: border-box;}
.contact-box {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-inner {
    width: 70%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* 왼쪽 폼 */
input, textarea, button {font-family: "YUniverse-B";}
.contact-left {width: 48%;}

.contact-form {width: 100%;}

.form-top {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.form-top input {flex: 1;}

.contact-left button {
    width: 100%;
    height: 40px;
    float: right;
    border: none; border-radius: 5px;
    background-color: #F4E53B;
    color: #1A1A1A;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
    background-color: transparent;
    color: #EFEFEF;
    padding: 20px;
    font-size: 16px;
    margin-bottom: 8px;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form textarea {
  height: 200px;
  resize: none;
}

/* 오른쪽 감사 문구 */
.thank-you {
    width: 45%;
}

.thank-you .thank {
    margin-bottom: 50px;
    font-size: 24px;
    line-height: 1.6;
    color: #EFEFEF;
}

.thank-you .thank span {
    color: #F4E53B;
}

.info-box {
    width: 100%;
    max-width: 520px;
    border-radius: 30px;
    border: 1px solid #EFEFEF;
    padding: 20px;
    box-sizing: border-box;
}

.info-box .contact-link {
    font-size: 18px;
    line-height: 1.8;
    color: #EFEFEF;
}

.info-box i {
  margin-right: 8px;
  color: #F4E53B;
}

/*************************************************
    공통 반응형 설정
*************************************************/
html {
    scroll-behavior: auto;
}

html,
body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

section {
    height: auto;
    min-height: 100svh;
}

/* 고정 크기 제거 */
.skills-section {
    height: auto;
    min-height: 100svh;
}

.features br {
    display: none;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/*************************************************
    모바일 : 600px 이하
*************************************************/
@media screen and (max-width: 600px) {

    /**************** 공통 ****************/
    html,
    body,
    .wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background-color: #1A1A1A;
    }

    section {
        width: 100%;
        height: auto;
        min-height: 100svh;
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    /**************** 팝업 ****************/
    /* 모바일에서는 콘텐츠를 너무 많이 가리므로 숨김 */
    #pop:checked ~ .pop-box {
        display: none;
    }

    /**************** 퀵메뉴: 화면 아래쪽 바 ****************/
    header {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid rgba(244, 229, 59, 0.35);
        border-radius: 0;
        flex-direction: row;
        justify-content: space-around;
    }

    /* 아래쪽 바에 마지막 내용이 가리지 않게 */
    .wrap {padding-bottom: calc(52px + env(safe-area-inset-bottom));}

    header.header-hidden {transform: translateY(100%); opacity: 0;}
    header.header-visible {transform: translateY(0); opacity: 1;}

    .logo-img {width: 28px;}

    .gnb {flex: 1;}

    .gnb ul {
        flex-direction: row;
        justify-content: space-around;
    }

    /* 말풍선 대신 화면 낭독기용 이름으로만 남김 */
    .gnb span {
        width: 1px;
        height: 1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .gnb img {width: 24px; height: 24px;}

    /**************** Intro ****************/
    #page01,
    .intro {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

    .main-tit {
        width: min(82vw, 310px);
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 28px 20px;

        border: 2px solid #F4E53B;
        border-radius: 50%;
        box-shadow: none;
    }

    .main-tit h2 {
        font-size: clamp(20px, 6vw, 25px);
        line-height: 1.5;
    }

    .main-tit p {
        padding-top: 18px;
        font-size: 12px;
        white-space: nowrap;
    }

    .blur-circle {
        width: min(70vw, 260px);
        height: min(70vw, 260px);
        animation: none;
        filter: blur(30px);
    }

    .scroll-down {
        bottom: 24px;
        font-size: 13px;
    }

    /**************** About ****************/
    #page02 {
        display: block;
        min-height: auto;
        padding: 88px 20px 64px;
    }

    .about-inner {
        width: 100%;
        max-width: none;

        display: grid;
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-left,
    .about-right {
        width: 100%;
        min-width: 0;
    }

    .profile-intro .name {
        font-size: 30px;
    }

    .profile-intro .role {
        font-size: 19px;
    }

    .interest-tags {
        gap: 8px;
    }

    .interest-tags li {
        padding: 7px 11px;
        font-size: 14px;
    }

    .history-list {
        gap: 24px;
    }

    .history-item p {
        font-size: 16px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .history-item span {
        font-size: 14px;
    }

    .about-right h2 {
        font-size: 21px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .about-right h2 br {
        display: none;
    }

    .keyword-item {
        padding: 18px;
        border-radius: 12px;
    }

    .keyword-item strong {
        font-size: 18px;
    }

    .keyword-item p {
        font-size: 15px;
    }

    /**************** Skills ****************/
    #page03.skills-section {
        min-height: auto;
        height: auto;
        padding: 88px 20px 64px;

        display: block;
    }

    .skills-title {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .skills-subtitle {
        margin-bottom: 42px;
        font-size: 16px;
        line-height: 1.6;
    }

    .skills-grid {
        width: 100%;
        max-width: none;
        margin: 0;

        display: grid;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .skill-category {
        width: 100%;
        min-width: 0;
    }

    .skill-category h3 {
        margin-bottom: 14px;
        font-size: 19px;
        text-align: left;
    }

    .skill-category ul li {
        margin-bottom: 9px;
        font-size: 15px;
        line-height: 1.6;
        word-break: keep-all;
    }

    /**************** Project ****************/
    #page04,
    #page04-2 {
        min-height: auto;
        padding: 88px 16px 64px;
        display: block;
    }

    .project-title {
        padding-bottom: 28px;
        font-size: 30px;
    }

    .card-title {
        padding-top: 0;
        font-size: 20px;
    }

    .card-desc {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.6;
    }

    .project-skill {
        margin: 8px 0;
        font-size: 14px;
        line-height: 1.5;
    }

    .features li {
        padding-left: 0;
        font-size: 14px;
        line-height: 1.65;
        word-break: keep-all;
    }

    .features br {
        display: none;
    }

    .btn-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    /* 버튼이 3개일 때 마지막 버튼은 한 줄 전체 */
    .btn-group .btn:nth-child(3):last-child {
        grid-column: 1 / -1;
    }

    .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 14px;
        white-space: nowrap;
        border-radius: 7px;
    }

    /**************** Contact ****************/
    #page05 {
        min-height: auto;
        padding: 88px 20px 64px;
        display: block;
    }

    .contact-box {
        width: 100%;
        min-height: auto;
        display: block;
    }

    .contact-box .contact-inner {
        width: 100%;
        max-width: none;
        margin: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 42px;
    }

    /* 감사 문구를 먼저 표시 */
    .thank-you {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .contact-left {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .thank-you .thank {
        margin-bottom: 28px;
        font-size: 21px;
        line-height: 1.65;
        word-break: keep-all;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 8px;
    }

    .contact-form textarea {
        height: 160px;
    }

    .contact-left button {
        width: 100%;
        min-height: 48px;
        height: auto;
        font-size: 16px;
    }

    .info-box {
        width: 100%;
        max-width: none;
        padding: 18px;
        border-radius: 16px;
    }

    .info-box br {
        display: none;
    }

    .info-box .contact-link {
        width: 100%;
        margin-bottom: 12px;

        display: flex;
        align-items: flex-start;
        gap: 8px;

        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .info-box i {
        flex-shrink: 0;
        margin-top: 2px;
        margin-right: 0;
    }
}

/*************** 태블릿 : 601px ~ 1024px ***************/
@media screen and (min-width: 601px) and (max-width: 1024px) {

    .main-tit {
        width: 360px;
        height: 360px;
        box-shadow: none;
    }

    .about-section {padding: 96px 40px 72px;}

    .about-inner {
        width: min(100%, 760px);
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .skills-section {
        padding: 96px 40px 72px;
    }

    .skills-grid {
        width: min(100%, 840px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }


    #page04,
    #page04-2 {padding: 96px 40px 72px;}

    .contact-inner {
        width: min(100% - 80px, 760px);
        flex-direction: column;
        align-items: stretch;
        padding: 60px 0;
    }

    .contact-left,
    .thank-you {
        width: 100%;
    }
}


/*************** PC : 1025px 이상 ***************/
@media screen and (min-width: 1025px) {
    #page02 {
        min-height: 100svh;
        padding: 60px 6% 40px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* 12칼럼 그리드: 소개 왼쪽 5칸 · (1칸 비움) · 오른쪽 6칸 */
    .about-inner {
        width: min(calc(100% - 80px), var(--content-width));
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--gutter);
    }

    .about-left {grid-column: 1 / span 5;}
    .about-right {grid-column: 7 / span 6;}

    .skills-section {
        padding: 100px 40px;
    }

    .skills-grid {
        width: min(calc(100% - 80px), var(--content-width));
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));   /* 3칸씩 */
        gap: var(--gutter);
    }

    #page04,
    #page04-2 {
        min-height: 100svh;
        padding: 60px 32px 40px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 12칼럼 그리드: 폼 6칸 · (1칸 비움) · 감사 문구 5칸 */
    .contact-inner {
        width: min(calc(100% - 80px), var(--content-width));
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--gutter);
    }

    .contact-left {
        width: auto;
        grid-column: 1 / span 6;
    }

    .thank-you {
        width: auto;
        grid-column: 8 / span 5;
    }
}
/********************** design page **********************/
#design {
    padding: 80px 32px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.design-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 28px;
}

.design-grid {
    width: min(calc(100% - 64px), var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));   /* 3칸씩 */
    gap: var(--gutter);
}

.design-card {
    background-color: #EFEFEF;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.design-card:hover {transform: translateY(-10px);}

.design-thumb {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    cursor: pointer;
}

.design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.design-card:hover .design-thumb img {transform: scale(1.04);}

/* 프로젝트 카드와 같은 글자 크기·간격, 버튼은 카드 맨 아래에 맞춤 */
.design-body {
    flex: 1;
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.design-body h3 {
    font-size: 18px;
    padding-top: 5px;
    color: #1A1A1A;
}

.design-body .design-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    word-break: keep-all;
}

.design-body .design-tool {
    font-size: 14px;
    color: #9c7055;
    margin-bottom: 5px;
}

.design-body .design-open {
    margin: auto auto 0;
}

button.btn {
    border: 0;
    cursor: pointer;
    font-family: "YUniverse-B", sans-serif;
    font-size: 16px;
}

.btn:focus-visible,
.design-modal-close:focus-visible {
    outline: 3px solid #F4E53B;
    outline-offset: 2px;
}

/* 작업물 크게 보기 창 */
body.modal-open {overflow: hidden;}

.design-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.design-modal[hidden] {display: none;}

.design-modal-inner {
    width: min(100%, 1000px);
    max-height: 90vh;
    background-color: #1A1A1A;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.design-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 20px;
    border-bottom: 1px solid #333;
}

.design-modal-head h3 {
    color: #F4E53B;
    font-size: 18px;
}

.design-modal-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: #EFEFEF;
    font-size: 28px;
    cursor: pointer;
}

.design-modal-body {
    overflow-y: auto;
    padding: 20px;
}

.design-modal-body h4 {
    color: #EFEFEF;
    font-size: 15px;
    margin: 8px 0 12px;
}

.design-modal-list,
.design-modal-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.design-modal-grid {grid-template-columns: repeat(4, minmax(0, 1fr));}

.design-modal-body img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    background-color: #fff;
}

/* 태블릿 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    #design {padding: 96px 40px 72px;}

    .design-grid {
        width: min(100%, 840px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

/* 모바일 */
@media screen and (max-width: 600px) {
    #design {
        min-height: auto;
        padding: 88px 16px 64px;
        display: block;
    }

    .design-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .design-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .design-modal {padding: 12px;}

    .design-modal-body {padding: 14px;}

    .design-modal-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media screen and (min-width: 1025px) {
    /* 1080 그리드: 양끝에 거터 반 칸(5px)을 두어 칼럼 80 + 거터 10 = 90px 간격에 맞춤 */
    .about-inner,
    .skills-grid,
    .project-list,
    .design-grid,
    .contact-inner {padding-inline: calc(var(--gutter) / 2);}
}

/****************** 프로젝트: 내리면 하나씩 나타나는 큰 행 ******************/
/* PC: 12칼럼 중 이미지 6칸 · 글 6칸, 줄마다 좌우를 바꿈 */
.project-list {
    width: min(calc(100% - 64px), var(--content-width));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
}

.project-thumb {
    grid-column: 1 / span 6;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 10px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project:hover .project-thumb img {transform: scale(1.04);}

.project-body {
    grid-column: 8 / span 5;
    text-align: left;
}

.project:nth-child(even) .project-thumb {grid-column: 7 / span 6; grid-row: 1;}
.project:nth-child(even) .project-body {grid-column: 1 / span 5; grid-row: 1;}

.project-num {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #F4E53B;
    letter-spacing: 2px;
}

.project .card-title {
    padding: 0;
    font-size: 28px;
    text-align: left;
    color: #EFEFEF;
}

.project .card-desc {
    margin-top: 8px;
    font-size: 16px;
    text-align: left;
    color: #aaa;
}

.project .project-skill {
    margin: 16px 0;
    font-size: 15px;
    text-align: left;
    color: #C9A27E;
}

.project .features li {
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #EFEFEF;
    word-break: keep-all;
}

.project .btn-group {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 24px;
}

.project .btn {
    background: none;
    border: 1px solid #F4E53B;
    color: #F4E53B;
}

.project .btn:hover {background-color: #F4E53B; color: #1A1A1A;}

.project .plan-link {justify-content: flex-start; color: #C9A27E;}
.project .plan-link:hover {color: #F4E53B;}

/* 내리면 나타나는 효과: JS가 켜졌을 때만 숨겨 두고, 화면에 들어오면 .is-in */
.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .project .project-thumb.reveal {transform: translateX(-60px);}
.js .project:nth-child(even) .project-thumb.reveal {transform: translateX(60px);}
.js .project .project-body.reveal {transition-delay: 0.15s;}

.js .reveal.is-in {opacity: 1; transform: none;}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .project .project-thumb.reveal,
    .js .project:nth-child(even) .project-thumb.reveal {opacity: 1; transform: none; transition: none;}
}

/* 태블릿: 이미지 7칸 · 글 5칸은 좁으니 6 · 6 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .project-list {width: min(100%, 840px); gap: 96px;}

    .project-body,
    .project:nth-child(even) .project-body {grid-column: span 6;}

    .project:nth-child(even) .project-body {grid-column: 1 / span 6;}

    .project .card-title {font-size: 24px;}
}

/* 모바일: 이미지 위 · 글 아래 */
@media screen and (max-width: 600px) {
    .project-list {width: 100%; gap: 64px;}

    .project {display: block;}

    .project-body {margin-top: 20px;}

    .project .card-title {font-size: 22px;}

    .project .btn-group {display: grid;}

    .js .project .project-thumb.reveal,
    .js .project:nth-child(even) .project-thumb.reveal {transform: translateY(40px);}
}

/* 기술 역량 3칸은 차례로 나타남 */
.js .skill-category.reveal:nth-child(2) {transition-delay: 0.15s;}
.js .skill-category.reveal:nth-child(3) {transition-delay: 0.3s;}
.js .skill-category.reveal:nth-child(4) {transition-delay: 0.45s;}
