@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
  font-family: '양진체';
  src: url('https://fastly.jsdelivr.net/gh/supernovice-lab/font@0.9/yangjin.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SBAggroB';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'S-CoreDream-3Light';
  font-family: 'S-CoreDream-3Light';src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root{
  --first-color: #05202bf1;
  --second-color: #aac9cbde;
  --third-color: #ffffffbd;

  --text-shadow: 0 5px 25px rgba(14, 13, 13, 0.1);
  --bpx-shadow: 0 5px 25px rgb(0, 0, 0 / 20%)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'S-CoreDream-3Light';
}

html, body {
  position: relative;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
}

/* header */
header {
  z-index: 999;
  position: fixed;
  width: 100%;
  height: calc(5rem + 1rem);
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
}

header .nav-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  transition: 0.3s ease;
}

.nav-close-btn, .nav-menu-btn {
  display: none;
}

.logo {
  display: inline-block;
  padding: 5px 0;
  height: 85px;
  line-height: 85px;
  cursor: pointer;
}

.header-logo {
  height: 60px;
  vertical-align: middle;
  margin-bottom: 4px;
}

.navigation .nav-items a {
  font-weight: bold;
  color: var(--first-color);
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  text-shadow: var(--text-shadow);
  padding: 2px 15px;
  border-radius: 10px;
  transition: .3s ease;
  transition-property: background;
  background: var(--third-color);
}

.navigation .nav-items a i {
  display: none;
}

.navigation .nav-items a:not(:last-child) {
  margin-right: 45px;
}

.navigation .nav-items a:hover {
  font-size: 1.15em;
}

/* main section */
.item {
  z-index: 77;
  position: absolute;
  padding: 0.5em 0.5em 4em 0.5em;
  width: 200px;
  height: 225px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #000;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.about{
  position: absolute;
  width: 100%;
  height: 100vh;
  padding: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.info{
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.info .title-sub{
  font-family: 'GmarketSansMedium';
  font-size: 1.5em;
  color: #0b2732;
  text-transform: uppercase;
  font-weight: 900;
}

.info .title{
  font-family: "PT Serif", serif;
  font-size: 10em;
  background: linear-gradient(45deg, #7760b2, #d297ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 900;
}

.info .paragraph {
  font-family: 'GmarketSansMedium';
  font-size: 1em;
  width: 65%;
  color: #000000;
  margin-bottom: 40px;
  text-align: justify;
}

.info .watch-about-btns{
  display: flex;
}

.info .read-more-btn{
  font-weight: 600;
  background: var(--second-color);
  border: none;
  color: #fff;
  width: 150px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s ease;
}

.info .read-more-btn:hover{
  background: #aac9cb;
  transform: scale(1.1);
}

/* 모달 기본 상태는 숨김 */
.slide-about-modal {
  display: none; /* 처음에 숨김 */
  z-index: 999;
  position: fixed; /* absolute에서 fixed로 변경 */
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

/* 모달 활성화 상태 */
.slide-about-modal.active {
  display: flex; /* 모달을 flex로 보이게 함 */
}


.about-modal-content{
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-about-modal .modal-close-btn{
  display: block;
  color: var(--third-color);
  position: absolute;
  top: 10px;
  right: 20px;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.slide-about-modal .modal-close-btn:hover{
  color: var(--second-color);
}

.modal-close-btn i{
  font-size: 1.3em;
  font-weight: 400;
}

.modal-close-btn span{
  font-size: 1.1em;
  font-weight: 400;
}

.modal-image-area{
  position: relative;
  background: #fff;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-image-area .modal-img{ 
  position: relative;
  background: #fff;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: 0.3s ease;
}

.modal-image-area .modal-img:hover{
  transform: scale(1.02);
}

.image-paragraph{
  font-family: 'GmarketSansMedium';
  color: var(--first-color);
  font-size: 1em;
  font-weight: 400;
  max-width: 800px;
  margin: 20px 25px;
  text-align: justify;
  text-decoration: none;
}


/*media queries*/
@media screen and (max-width: 1080px){
  header .nav-bar{
    padding: 0 20px;
  }

  /*navigation menu*/
  .nav-menu-btn{
    display: block;
    color: var(--first-color);
    font-size: 1.5em;
    cursor: pointer;
  }

  .nav-close-btn{
    display: block;
    color: var(--first-color);
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.3em;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .navigation{
    z-index: 99999;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
  }

  .navigation.active{
    visibility: visible;
    opacity: 1;
  }

  .navigation .nav-items{
    position: relative;
    background: #ffffffee;
    width: 400px;
    max-width: 400px;
    display: grid;
    place-content: center;
    margin: 20px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--bpx-shadow);
    transform: translateY(-200px);
    transition: 0.3s ease;
  }

  .navigation.active .nav-items{
    transform: translateY(0);
  }

  .navigation .nav-items a{
    color: var(--first-color);
    font-size: 1em;
    margin: 15px 50px;
    transition: 0.3s ease;
    background: none;
  }

  .navigation .nav-items a i{
    display: inline-block;
    font-size: 1.3em;
    margin-right: 10px;
  }

  .item {
    display: none;
  }

  /*main*/
  .about{
    padding: 0;
  }

  .modal-image-area{
    max-width: 90%;
    justify-content: space-evenly;
  }

  .modal-image-area .modal-img{
    max-width: 90%;
    margin: 30px auto;
  }

}

@media screen and (max-width: 700px){
  header .nav-bar{
    padding: 0 20px;
  }

  /*navigation menu*/
  .nav-menu-btn{
    display: block;
    color: var(--first-color);
    font-size: 1.5em;
    cursor: pointer;
  }

  .nav-close-btn{
    display: block;
    color: var(--first-color);
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.3em;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .navigation{
    z-index: 99999;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
  }

  .navigation.active{
    visibility: visible;
    opacity: 1;
  }

  .navigation .nav-items{
    position: relative;
    background: #ffffffee;
    width: 400px;
    max-width: 400px;
    display: grid;
    place-content: center;
    margin: 20px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--bpx-shadow);
    transform: translateY(-200px);
    transition: 0.3s ease;
  }

  .navigation.active .nav-items{
    transform: translateY(0);
  }

  .navigation .nav-items a{
    color: var(--first-color);
    font-size: 1em;
    margin: 15px;
    transition: 0.3s ease;
    background: none;
  }

  .navigation .nav-items a i{
    display: inline-block;
    font-size: 1.3em;
    margin-right: 10px;
  }

  .item {
    display: none;
  }

  .info .title-sub{
    font-size: 1.2em;
    font-weight: 700;
  }
  
  .info .title{
    font-size: 8em;
    font-weight: 700;
  }
  
  .info .paragraph {
    font-size: .8em;
    width: 80%;
  }
  
  .info .watch-about-btns{
    display: flex;
  }
  
  .info .read-more-btn{
    font-size: .6em;
    font-weight: 400;
    width: 80px;
    height: 25px;
    margin: 0 10px;
  }

  .modal-image-area .image-paragraph{
    font-size: .8em;
    font-weight: 200;
  }

  /*main*/
  .about{
    padding: 0;
  }

  .modal-image-area{
    max-width: 80%;
    height: 50%;
    justify-content: space-evenly;
  }

  .modal-image-area .modal-img{
    max-width: 90%;
    width: 100%;
    margin: auto;
  }
}