* {
    box-sizing: border-box;
    text-decoration: none; /* 리스트 밑줄 삭제 */
    margin: 0;
    padding: 0;
    font-size: 10px; /* 디폴트 글자 크기 */
}

html {
    scroll-behavior: smooth; /* 스크롤 부드럽게 */
    /* background-color: #2b2a2a;  */
    overflow-x: auto;
}

body {
    font-family: "Source Sans 3"; /* 폰트 지정 */
    overflow-x: auto;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100vh;
    box-sizing: border-box;
}

.actual-usage {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    top: 60px;
}

/* ======================================== navigation bar ======================================== */
.navi {
    position: fixed; /* 위치 고정 */
    width: 100%;
    display: flex;
    padding: 0 2%; /* 안쪽 여백을 지정 (상하) (좌우) */
    align-items: center; /* 수직으로 가운데 정렬 */
    justify-content: space-between; /* 좌우 공간을 적절히 분배 */
    top: 0; /* 상단에 고정 */
    height: 60px;
    background-color: #822e2e;
    z-index: 1000; /* 다른 요소들 위에 위치 */
}

.navi-logo a {
    color: #fdf6ec;
    font-weight: bold; /* 글자 두껍게 (숫자로 표현 가능) */
    font-size: 2vh;
}

.navi-menu {
    display: flex;
    justify-content: flex-end;
}
.navi-menu li {
    margin-left: 20%; /* 왼쪽 공백 설정 */
    list-style: none; /* 리스트 스타일 없앰 */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.navi-menu li a {
    color: #fdf6ec;
    font-weight: bold; /* 글자 두껍게 (숫자로 표현 가능) */
    font-size: 2.3vh;
    justify-content: center;
}
/* ======================================== navigation bar ======================================== */

/* ======================================== section title ======================================== */
.section-title {
    position: relative;
    height: 80px;
    padding: 0 0.5vw;
    display: flex;
    align-items: center; /* 수직으로 중앙 정렬 */
    justify-content: center;
}

.section-title h {
    font-size: 5vh;
    font-weight: bold;
    margin: 0;
}
/* ======================================== section title ======================================== */

/* ======================================== main ======================================== */
#main {
    width: 100%;
    padding-top: 60px;
    background-color: #fdf6ec;
    overflow-x: hidden;
}

#main .container {
    width: 100%;
    max-width: 100%;
    padding: 0 5vw;
    box-sizing: border-box;
}

.main-text {
    width: 100%;
    max-width: 100%;
    padding: 20vh 5vw;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.main-text h1 {
    color: #1c283b;
    font-size: 10vh;
    display: inline-block; /* 타이핑 효과를 위해 인라인 블록으로 변경 */
    border-right: 4px solid orange; /* 커서 효과 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    font-family: "Courier New", Courier, monospace; /* 타이핑 느낌 폰트 */
    animation: blink-caret 0.75s step-end infinite; /* 커서 깜빡임 애니메이션 */
    min-height: 12vh;
}
.main-text h4 {
    font-size: 4vh;
    padding-bottom: 3vh;
}
.main-text p {
    font-size: 1.5vh;
}

.main-text span {
    font-size: 1.5vh;
}
/* 커서 깜빡임 애니메이션 */
@keyframes blink-caret {
    from {
        border-color: orange;
    }
    to {
        border-color: transparent;
    }
}
/* ======================================== main ======================================== */

/* ======================================== about ======================================== */
#about {
    width: 100%;
    background-color: #1c283b;
}

.about-section-contents {
    width: 100%;
    height: calc(100% - 80px);
    background-color: #1c283b;
}

.introduce {
    padding-top: 1.5%;
    width: 100%;
    height: 60%;
}
.introduce .introduce-title {
    margin-left: 1vw;
    color: #fdf6ec;
    font-size: 3vh;
    font-weight: bold;
}
.introduce .subtitle span {
    color: #fdf6ec;
    font-size: 2vh;
    font-weight: bold;
}
.introduce .introduce-contents {
    margin-left: 1.5vw;
    color: #fdf6ec;
    font-size: 1.5vh;
    margin-top: 1vh;
}

.information {
    width: 100%;
    height: 35%;
    display: flex;
    flex-direction: row;
}

.information-box {
    display: flex;
    flex-direction: column;
}

.about-item {
    width: 100%;
    height: 100%;
    display: flex; /* 해당 요소의 자식 요소들이 유연하게 정렬하게함 */
    flex-direction: column;
}
.about-item-title-section {
    height: 15%;
    display: flex;
    flex-direction: row;
}

.about-item-title > p {
    font-size: 1.8vh;
    font-weight: bold;
    color: #fdf6ec;
    margin-left: 0.5vw;
}

.about-item-contents {
    height: 85%;
    margin-top: 0.5vh;
}
.about-item-contents > p {
    font-size: 1.35vh;
    color: #fdf6ec;
    margin-left: 0.5vw;
}

.tech-stack-wrapper {
    display: flex;
    gap: 2vw;
    width: 100%;
}

.tech-stack-wrapper .information-box {
    flex: 1;
    width: auto !important;
}

.tech-stack-wrapper .about-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1vw;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======================================== about ======================================== */

/* ======================================== project ======================================== */
#project {
    width: 100%;
    background-color: #fdf6ec;
}
.project-section-contents {
    width: 100%;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.project-contents-row {
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-title {
    width: 100%;
    height: 5%;
    display: flex;
    margin-top: 1vh;
    align-items: center;
}

.project-title > p {
    font-size: 2.5vh;
    margin-left: 1vw;
    font-weight: bold;
    color: #1c283b;
}

.project-contents-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 95%;
}

.project-contents {
    height: 100%;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex-grow: 1;
}

.project-box {
    position: relative;
    width: 17.5vw;
    aspect-ratio: 1; /* 이거 추가 */
    margin-left: 1vw;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-box-image {
    width: 100%;
    height: 60%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

.project-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-box-info {
    padding: 1.5vh 1vw;
}

.project-box-title {
    font-size: 1.5vh;
    font-weight: bold;
    color: #1c283b;
    margin-bottom: 1vh;
    line-height: 1.4;
    white-space: normal;
}

.project-box-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vh 0.3vw;
}

.project-tag {
    font-size: 1.1vh;
    padding: 0.3vh 0.6vw;
    border-radius: 4px;
    font-weight: 500;
}

.tag-python {
    background-color: #e3f2fd;
    color: #1565c0;
}
.tag-fastapi {
    background-color: #e0f2f1;
    color: #00695c;
}
.tag-langchain {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-redis {
    background-color: #ffebee;
    color: #c62828;
}
.tag-ml {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.tag-data {
    background-color: #e0f7fa;
    color: #00838f;
}
.tag-cloud {
    background-color: #fff8e1;
    color: #f57f17;
}
.tag-backend {
    background-color: #fce4ec;
    color: #c2185b;
}
.tag-openai {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.tag-sse {
    background-color: #fbe9e7;
    color: #d84315;
}
.tag-rag {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.tag-chromadb {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-embedding {
    background-color: #e0f7fa;
    color: #00838f;
}
.tag-pandas {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.tag-numpy {
    background-color: #e3f2fd;
    color: #1565c0;
}
.tag-timeseries {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-stt {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.tag-transfer {
    background-color: #e0f7fa;
    color: #00838f;
}
.tag-augmentation {
    background-color: #fff8e1;
    color: #ff8f00;
}
.tag-arima {
    background-color: #e8eaf6;
    color: #3949ab;
}
.tag-seihr {
    background-color: #fce4ec;
    color: #c2185b;
}
.tag-visualization {
    background-color: #e0f2f1;
    color: #00695c;
}
.tag-nlp {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.tag-morpheme {
    background-color: #e8eaf6;
    color: #3949ab;
}
.tag-selenium {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.tag-xpath {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-markdown {
    background-color: #e3f2fd;
    color: #1565c0;
}
.tag-nestjs {
    background-color: #ffebee;
    color: #c62828;
}
.tag-typescript {
    background-color: #e3f2fd;
    color: #1565c0;
}
.tag-typeorm {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-randomforest {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.tag-xgboost {
    background-color: #fff3e0;
    color: #e65100;
}
.tag-deeplearning {
    background-color: #e3f2fd;
    color: #1565c0;
}

.project-box-period {
    font-size: 1.1vh;
    color: #888;
    margin-top: 0.8vh;
}

.scroll-left-btn,
.scroll-right-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1c283b;
    color: #fdf6ec;
    border: none;
    cursor: pointer;
    font-size: 1vh;
    padding: 12px;
    border-radius: 50%;
    width: 2vw;
    height: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.9;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-left-btn:hover,
.scroll-right-btn:hover {
    background-color: #444;
    transform: translateY(-50%) scale(1.1);
}

.scroll-left-btn {
    left: 0.1vw;
}

.scroll-right-btn {
    right: 0.1vw;
}

.modal-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 90vh;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    overflow: hidden;
}

.modal-contents {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
    padding-right: 2vw;
}

.modal-contents p {
    padding-top: 0.5%;
    padding-bottom: 0.5%;
}

.modal-contents img {
    opacity: 1 !important;
}

.modal-contents img:hover {
    opacity: 1 !important;
}

.modal-section {
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 1vh;
    height: auto;
    min-height: 200px;
}

.modal-section h1,
.modal-section h3,
.modal-section p,
.modal-section li {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    color: black;
}

.modal-section h1 {
    font-size: 4vh;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
}

.modal-section h3 {
    font-size: 2vh;
    padding-bottom: 10px;
    text-decoration: underline;
    margin-left: 0.5vw;
}

.modal-section li {
    font-size: 1.7vh;
    padding-bottom: 10px;
    margin-left: 3vw;
}

.modal-section p {
    font-size: 1.7vh;
    margin-left: 1vw;
}

.modal-section img {
    height: 4vh;
    width: 2vw;
    margin-right: 10px;
}

.close {
    position: fixed;
    top: 10px;
    right: 70px;
    font-size: 40px;
    cursor: pointer;
    color: black;
}
/* ======================================== project ======================================== */
/* ======================================== project ======================================== */

/* ======================================== conatact ======================================== */
#contact {
    width: 100%;
    background-color: #1c283b;
}

.contact-section-contents {
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.contact-method {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.material-symbols-outlined {
    font-size: 15vh;
    color: #fdf6ec;
}
.contact-method > h1 {
    color: orange;
    font-size: 4vh;
    font-weight: bold;
}
.contact-method > p {
    color: #fdf6ec;
    font-size: 3vh;
    font-weight: bold;
}
/* ======================================== conatact ======================================== */

/* ======================================== TopButton ======================================== */
#topButton {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background-color: #fdf6ec;
    color: #822e2e;
    border: none;
    cursor: pointer;
    font-size: 2vh;
    border-radius: 15px; /* 모서리 둥근 정도 */
    border: 3px solid #822e2e; /* 주황색 테두리 추가 */
    padding: 5px 20px; /* 버튼의 크기를 조금 더 넓게 */
    font-weight: bold; /* 글자 두껍게 */
}

#topButton:hover {
    background-color: #4e4f50;
}
/* ======================================== TopButton ======================================== */
