@font-face {
    font-family: 'NanumSquareRound';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

/*컬러테이블: Viridian+세피아*/
:root {
    --main-color: #40826d;
    --sub-color: #704214;
    --main-dark: #10503B;
    --sub-dark: #281400;
    --main-light: #97BFB2;
    --sub-light: #BB8856;
    --accent: #C9A84C;
    --white: #F6f6f6;
    --light: #f1f1f1;
    --black: #2D2D2D;
    --gray: #c7c7c7;
    --gray2: #8a8a8a;
    --red: #cc0000;
}


::selection {
    background-color: var(--main-color);
    color: var(--white);
}

html,
body {
    font-family: 'NanumSquareRound';
    font-size: 12.5pt;
    letter-spacing: -0.01em;
    scrollbar-width: none;
    /* 착한 사람만 보이는 스크롤바 아닙니다. */
}

body {
    background-color: var(--light);
    color: var(--black);
    line-height: 1.2em;
    margin: 0;
    padding: 0;
}

/* 본론 */

p {
    margin: 6px;
}

/*p태그인데 부연설명에 들어갑니다*/
.explain {
    font-size: 0.8em;
    color: var(--gray2);
}

.notice {
    font-size: 0.9em;
    color: var(--red);
}
/* 그 그 이름 밑에*/
.info {
    color: var(--main-dark);
    font-size: 1.1em;
}

h2,
h3,
h4 {
    color: var(--main-dark);
}

blockquote {
    color: var(--sub-color);
    margin: 0 5px;
    padding: 5px;
}

ul {
    margin: 0;
    list-style-position: inside;
    list-style-type: none;
}

li::before {
    content: "\f00c";

    /* 7 버전 폰트 패밀리 확인 (보통 'Font Awesome 7 Free' 또는 'Font Awesome 7 Brands') */
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: var(--main-color);
    margin: 0 10px;
}

img {
    width: 50%;
    margin: 10px;
}

.wrapper {
    width: 75%;
    height: auto;
    margin: 0 auto;
}

.header {
    width: 100%;
    height: 150px;
    padding: 5px;
    font-family: inherit;
    margin: 15px 0;
}

.tab {
    width: 100%;
    height: auto;
    font-family: inherit;
    display: flex;
    justify-content: flex-start;
    margin-top: 22px;
}

.tabbtn {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 38px;
}

.btn {
    width: 110px;
    height: 38px;
    font-family: inherit;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.btn.focus {
    background-color: var(--main-dark);
    color: var(--white);
}

.btn>a {
    line-height: 2.2em;
}

.btn.focus>a {
    font-weight: bold;
    font-size: 1.05em;
}

.link {
    width: 100%;
    height: auto;
    font-family: inherit;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.link i {
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--sub-color);
}

.main {
    width: 100%;
    height: auto;
    padding: 5px;
    font-family: inherit;
    margin-bottom: 10px;
}

i {
    color: var(--main-dark);
    font-size: 1.7em;
    margin: 0 7px;
}

a {
    text-decoration: none;
    color: inherit;
}

.line {
    height: 1px;
    background-color: var(--main-dark);
}

.main .content .cont {
    display: none;
    position: static;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* 개별 오브젝트를 감싸는 카드*/
.card {
    max-width: 100%;
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 12px;
    background-color: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.card i {
    font-size: 1.1em;
}

.card p {
    margin: 15px 0;
}

.card h2,
h3 {
    margin: 15px 0;
}

.card h4 {
    margin: 5px 15px;
    color: var(--sub-dark);
}

.card h4 i {
    font-size: 0.8em;
    color: var(--sub-dark);
}

.card_sub {
    margin: 12px 0;
}

#tab1 {
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
}

.about>p {
    margin: 10px 5px;
    font-size: 0.95em;
}

#about1,
#about2 {
    display: grid;
    gap: 25px;
    align-content: start;
}

#about1>p>i {
    font-size: 0.9em;
}

#about2>i {
    font-size: 0.95em;
}

.pub-item {
    font-size: 0.95em;
}

.pub-title {
    color: var(--sub-color);
}

#tab2 {
    grid-template-columns: 1fr;
}

#skill_card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/*아코디언 패널*/
.accordion {
    height: 45px;
    background-color: var(--main-color);
    color: var(--light);
    padding: 6px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12);
}

.accordion i {
    color: var(--light);
}

.accordion.active {
    background-color: var(--accent);
}

.panel {
    background-color: var(--white);
    color: var(--black);
    padding: 0;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.panel>h3, .panel>h4 {
    color: var(--sub-color);
}

.icon-toggle {
    transition: transform 0.3s ease;
    /* 0.3초 동안 부드럽게 회전 */
    color: var(--main-light);
}

.proj_link {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.proj_link i {
    color: var(--sub-dark);
    margin: 0;
}

.proj_link a {
    margin: 0 10px;
}

/* 미디어쿼뤼이이이이이아 */
/* 이게 왜 필요하냐고요? 모바일도 고려해야됩니다 우리는... */
@media (max-width: 768px) {

    /* 모바일에서는 여백을 줄여서 시원하게! */
    .wrapper {
        width: 95%;
    }

    .main {
        padding: 0;
    }

    /* 1. 2단 배치를 세로로 전환 */
    #tab1 {
        grid-template-columns: 1fr;
        /* 1024px 이하부터는 한 줄로 쌓기 */
        gap: 40px;
        /* 자기소개와 약력 사이 간격 */
    }

    /* 2. 오른쪽 약력(Education, Paper 등)의 너비를 100%로 */
    #tab1>div {
        width: 100% !important;
    }

    /* 3. 상단 탭 버튼 영역 처리 (아이콘이 밀릴 수 있음) */
    .header .tab {
        flex-direction: column;
        align-items: flex-start;
    }

    .header {
        height: auto;
    }

    /* 4. 아이콘 링크들을 아래로 빼거나 정렬 */
    .link {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
        /* 모바일에선 왼쪽 정렬 */
    }

    .link i {
        font-size: 1.5em;
    }

    #tab2 {
        grid-template-columns: 1fr;
    }

    .accordion {
        height: 60px;
        font-size: 0.85em;
        line-height: 1.1em;
        padding: 3px;
    }

    .panel {
        font-size: 0.85em;
    }

    img {
        width: 92%;
    }

    .proj_link a {
        font-size: 0.9em;
    }

    i {
        font-size: 1.3em;
    }

    #tab1,
    #about1,
    #about2 {
        gap: 15px;
    }

    #skill_card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/*여러분 그 호버도 모바일에서는 끄셔야 하는 거 아십니까 */
@media (hover: hover) {
    .card:hover {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        border: 1px solid var(--accent);
        transform: translateY(-2px);
    }

    .link i:hover {
        color: var(--accent);
        transform: translateY(-1px) scale(1.05);
    }

    .accordion:hover {
        color: var(--white);
    }

    .btn:hover {
        color: var(--accent);
    }

    .proj_link a:hover {
        color: var(--accent);
    }
}