@charset "UTF-8";
@import url("font.css");

* {
    margin: 0;
    padding: 0;
    font-size: 10px;
}

ul li {
    list-style: none;
}

a {
    color: #333;
    text-decoration: none;
}

.main,
.introduce,
.web_design {
    height: 100vh;
    scroll-snap-align: start;
}


::-webkit-scrollbar {
    display: none;
}

.box::-webkit-scrollbar {
    display: none;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    overflow-y: auto;
}

:root {
    --vh: 100vh;
}

.main,
.introduce,
.web_design {
    min-height: var(--vh);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
}

.dot-nav {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #1E7B64;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.dot.active {
    transform: scale(1.15);
    height: 30px;
    border-radius: 999px;
    background: #283470;
}




.main {
    width: 100%;
    height: 100vh;
    background: #4555A5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.portfolio-box {
    position: relative;
    display: inline-block;
}

.title {
    font-family: "moniqa";
    font-feature-settings: "salt";
    font-weight: normal;
    font-size: 300px;
    color: #000;
    text-align: center;
    display: flex;
}

.title span {
    font-family: "moniqa";
    font-feature-settings: "salt";
    font-weight: normal;
    font-size: 300px;
    color: #1E7B64;
    text-align: center;
}

.line {
    position: absolute;
    border-color: #283470;
}

.line_1 {
    border-left: solid 1px #283470;
    height: 500px;
    left: -20px;
    top: 23%;
    transform: translateY(-50%);
}

.line_2 {
    border-left: solid 1px #283470;
    height: 500px;
    right: -20px;
    top: 55%;
    transform: translateY(-50%);
}

.line_3 {
    border-top: dashed 1px #283470;
    width: 1240px;
    top: -10px;
    right: -5%;
}












.box_line {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.box_line::before,
.box_line::after {
    content: "";
    width: 100%;
    height: 1px;
    background: #283470;
    display: block;
}

.box_line::before {
    position: absolute;
    top: 20px;
}

.box_line::after {
    position: absolute;
    bottom: 60px;
}














.main_bottom {
    display: flex;
    position: absolute;
    bottom: 5%;
}

.main_bottom h2 {
    font-family: "moniqa italic";
    font-feature-settings: "salt";
    font-weight: normal;
    font-size: 40px;
    color: #fff;
    margin-right: 40px;
}













.portfolio-circle {
    left: 85px;
    bottom: 10px;
    transform: translateX(-50%);
    position: absolute;
}

.portfolio-circle ul {
    display: flex;
    margin-right: 24px;
    gap: 20px;
}

.portfolio-circle ul li {
    background: #283470;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.portfolio-circle ul li:nth-child(3) {
    border: #283470 1px solid;
    background: #4555A5;
}

.main h2 {
    font-family: "moniqa_italic";
    font-feature-settings: "salt";
    font-weight: normal;
    letter-spacing: 3px;
    font-size: 50px;
    color: #fff;
    text-align: center;
    display: flex;
}





.introduce {
    width: 100%;
    height: 100vh;
    background: #DDDBCE;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro_warp {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.intro_top {
    display: flex;
    flex-direction: column;
}

.intro_top h3 {
    font-family: "moniqa";
    font-feature-settings: "salt";
    font-weight: normal;
    font-size: 150px;
    color: #283470;
    display: flex;
    align-items: center;
    width: 90%;
    gap: 5rem;
    white-space: nowrap;
    padding-top: 23px;
}

.intro_top h3::before {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: #283470;
    min-width: 10px;
    margin-left: -10%;
}

.intro_line {
    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro_circle ul {
    display: flex;
    gap: 20px;
}

.intro_circle ul li {
    background: #1E7B64;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: -80px;
}

.intro_circle ul li:nth-child(3) {
    border: #1E7B64 1px solid;
    background: #DDDBCE;
}

.line_8 {
    width: 480px;
    border-top: solid 1px #283470;
    margin-top: -60px;
}

.line_9 {
    position: absolute;
    height: 710px;
    border-left: solid 1px #283470;
    margin-left: 400px;
    margin-top: 102px;
}














.intro_bottom {
    display: flex;
    position: absolute;
    width: 90%;
    bottom: 0;
    gap: 180px;
}

.intro_bottom img {
    width: auto;
    height: 650px;
}






.intro_text_warp {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10%;
}



.intro_text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro_text:nth-child(4) {
    gap: 8px !important;
}

.intro_text:nth-child(4) p {
    margin-bottom: 25px;
}

.intro_text:nth-child(4) li {
    font-size: 16px;
}

.intro_text p,
.intro_text_software p {
    font-family: "roman_italic";
    font-size: 35px;
    color: #333;
}

.intro_text ul {
    width: 440px;
    justify-content: space-between;
    display: flex;
    margin-left: 20px;
}

.intro_text ul li {
    font-family: "pretendard";
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
}

.intro_text ul li:last-child {
    color: #a2a2a2;
}

.intro_text_software {
    display: flex;
    width: 440px;
    gap: 20px;
    justify-content: space-between;
}

.intro_text_software div {
    display: flex;
    gap: 20px;
}

.intro_text_software p {
    margin-right: 30px;
}

.intro_text_software img {
    width: 40px;
    height: 40px;
}

.star {
    position: absolute;
    width: 350px;
    right: 0;
    bottom: 0;
}




















/* 배경 페이드 오버레이 */
.web_design {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* 오버플로우 깔끔하게 */
}

/* 기본 배경은 기존 linear-gradient 그대로 두고,
   위에 ::before 오버레이를 깔아서 opacity만 부드럽게 조정 */
.web_design::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hover-bg, transparent);
    /* JS가 바꿔줄 값 */
    opacity: 0;
    /* 기본은 보이지 않게 */
    transition: opacity 500ms ease, background 300ms ease;
    /* 부드러운 페이드 */
    pointer-events: none;
}

/* 호버 중일 때만 오버레이 보이기 */
.web_design.is-hovering::before {
    opacity: 1;
}

/* 모션 최소화 환경 존중 */
@media (prefers-reduced-motion: reduce) {
    .web_design::before {
        transition: none;
    }
}

.web_design_warp {
    width: 90%;
    height: 79%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 100px;
}

.web_design_warp h3 {
    font-family: "moniqa";
    font-weight: normal;
    font-size: 150px;
    align-self: flex-end;
    z-index: 3;
}

.list_warp {
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
}

.list_warp ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    flex-direction: column;
    position: relative;
    transition: all 0.5s ease;
}

.list {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0%;
    transition: flex 0.8s ease-in-out, opacity 0.5s ease-in-out;
    overflow: hidden;
    position: relative;
    will-change: flex, transform, opacity;
}

.list::before,
.list:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
}

.list::before {
    top: 0;
}

.list::after {
    bottom: 1px;
}

.list span {
    position: relative;
    font-family: "roman";
    font-size: 110px;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 50%;
    padding-top: 10px;
    box-sizing: border-box;
}

.list p {
    font-family: "roman";
    font-size: 25px;
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity .4s ease, transform .4s ease;
    z-index: 2;
}

.hover_text {
    font-family: "roman";
    font-size: 20px;
    margin-left: 100px;
    display: none;
}





.list:hover {
    flex: 3 1 0%;
}

.list:hover span {
    display: none;
    transition: flex 0.8s ease, opacity 0.5s ease;
}

.list:hover p {
    top: 20%;
    transform: translateY(-50%);
    font-size: 28px;
}

.list:hover .hover_list {
    display: block;
    display: flex;
    flex-direction: column;
    width: 28%;
    justify-content: center;
    margin-top: 10%;
}

.list:hover .tool {
    display: block;
}

.hover_list b {
    font-family: "roman";
    font-size: 25px;
    font-weight: 400;
}

.hover_list .list_main {
    font-family: "pretendard";
    font-size: 23px;
    font-weight: 400;
}

.tool b:first-child {
    margin-top: 40px;
}

.tool b {
    font-family: "roman";
    font-size: 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 27px;
}

.tool small {
    justify-content: end;
    margin-left: 30px;
    font-family: "roman";
    font-size: 18px;
}

.tool img {
    width: 40px !important;
    height: auto;
    margin-left: 8px;
}

.list_warp ul:hover .list:not(:hover) {
    flex: 0.5 1 0%;
    opacity: 0.6;
}


.list_warp ul:hover .list span {
    transform: scale(0.6);
    opacity: 0.5;
    border: transparent;
}


.list:hover span {
    transform: scale(1);
    opacity: 1;
    transition: flex 0.8s ease, opacity 0.5s ease;
}


.list:hover span::before {
    opacity: 0;
    transform: scale(1.2);
}


.list_warp ul:hover .list span::before {
    opacity: 0;
    transform: scale(1.2);
    border-color: transparent;
}


.hover_content {
    transform: translateY(-50%) scale(0.95);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    will-change: opacity, transform;
    opacity: 0;
    pointer-events: none;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    right: 5%;
}

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

.content_button a {
    font-family: "roman";
    font-size: 20px;
    color: #283470;
    border: 1px solid #283470;
    border-radius: 50%;
    padding: 14px 22px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;

}

.content_button a:hover {
    background: #283470;
    color: #fff;
}

.hover_content img {
    width: auto;
    max-height: 350px;
}


.hover_content p {
    font-family: "roman";
    font-size: 18px;
    color: #333;
}


.list:hover .hover_content {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) scale(1);
    transition: opacity 0.8s ease-in, transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: 0.2s;
}














/* 1번 */
.list:nth-child(1):hover {
    color: #0F656D;
}

.list:nth-child(1):hover span,
.list:nth-child(1):hover .content_button a:hover {
    border-color: #0F656D;
    background: #0F656D;
    color: #fff;
}

.list:nth-child(1):hover .content_button a {
    border-color: #0F656D;
    color: #0F656D;
}

/* 2번 */
.list:nth-child(2):hover {
    color: #000000;
}

.list:nth-child(2):hover span,
.list:nth-child(2):hover .content_button a:hover {
    border-color: #000000;
    background: #000000;
    color: #fff;
}

.list:nth-child(2):hover .content_button a {
    border-color: #000000;
    color: #000000;
}

/* 3번 */
.list:nth-child(3):hover {
    color: #650A30;
}

.list:nth-child(3):hover span,
.list:nth-child(3):hover .content_button a:hover {
    border-color: #650A30;
    background: #650A30;
    color: #fff;
}

.list:nth-child(3):hover .content_button a {
    border-color: #650A30;
    color: #650A30;
}

/* 4번 */
.list:nth-child(4):hover {
    color: #372F27;
}

.list:nth-child(4):hover span,
.list:nth-child(4):hover .content_button a:hover {
    border-color: #372F27;
    background: #372F27;
    color: #fff;
}

.list:nth-child(4):hover .content_button a {
    border-color: #372F27;
    color: #372F27;
}





.modal_list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.modal_list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.modal_list::-webkit-scrollbar-track {
    background: transparent;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.is-open {
    display: block;
}

.modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal_dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1500px;
    height: 900px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal_close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.modal_content {
    margin-top: 45px;
    height: calc(100% - 45px);
    overflow: hidden;
    padding: 20px;
    overflow: hidden;
}

.modal_list {
    max-height: calc(100% - 45px);
    overflow-y: auto;
    padding: 0 0 40px 0;
    border-radius: 10px;
    height: 100%;
    scrollbar-color: rgba(0,0,0,.35) transparent;
}

.modal_list img {
    display: block;
    width: 100%;
    height: auto;
}