/* @import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css'); */


:root{
    --color1:#00ff37;
    --color2:#ffffff;
    --color3:#ffffff;
    --color4:#ffffff;           
    --text-color:#111111;    
    --background-color:#ffffff;
    --background-color1:#f0f0f0;
    --background-color3:rgba(255,255,255,0.3);
    --gap1:0.75rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color:#ffffff;
        --background-color:#333333;
        --background-color1:#101010;        
        --background-color3:rgba(0,0,0,0.3);
    }
  }

html, body{
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Pretendard Variable', Apple SD Gothic Neo,arial,sans-serif;    
    font-size: 16px;
    color:var(--text-color);
    background-color: var(--background-color);
    word-wrap: break-word;    
    word-break: keep-all;
}

*{
    box-sizing: border-box;
}

h1, h2, h3{
    margin: 0;
}

ul, li{
    padding: 0;
    margin: 0;
    list-style: none;
}
.name{    
    display: flex;
    align-items: center;
    max-width: 95%;
    width: 1200px;
    margin: 0 auto;
    padding: 3rem var(--gap1);
    font-size: 1rem;
}
.name h1{    
    font-size: 1.3rem;
    letter-spacing: -1px;
}
.name .contact{
    display: flex;
    margin-left: 3rem;
    font-weight: 500;
}
.name .contact li{
    margin-right: 1.15rem;
}

.hero{
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    /* color:#ffffff; */
    pointer-events: none;
}
.hero h1.greeting{
    /* position: absolute; */
    /* /* z-index: 2; */
    font-size: 3.2vw;
    /* left: 15vw; */
    /* top: calc(100vh - 65%); */
    letter-spacing: 0.3rem;
    line-height: 130%;
    font-weight: 800;
    width: 95%;
    max-width: 1200px;
    margin: 5% auto;
    padding: 0 var(--gap1);
}
.hero h1.greeting span{
    display: block;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 2rem;
    line-height: 160%;
}
.hero .down-arrow{
    position: absolute;
    z-index: 2;
    bottom: 5%;
    left: calc(50% - 30px);
    width: 60px;
    height: 80px;
    border-radius: 50px;
    background-color: var(--background-color3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .down-arrow svg{
    animation: bounce 2s ease infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(-6px);}
	60% {transform: translateY(-5px);}
}

#gradient-canvas {
    width:100%;
    height:100vh;
    --gradient-color-1: var(--color1); 
    --gradient-color-2: var(--color2); 
    --gradient-color-3: var(--color3);  
    --gradient-color-4: var(--color4);    
 }

.portfolio{
    max-width: 1200px;
    width: 95%;
    margin: auto;
}
.portfolio > h1{    
    font-size: 3rem;
    margin: 8% var(--gap1) 4%;    
}
.portfolio ul{
    display: flex;    
    flex-wrap: wrap;
}
.portfolio nav{
    margin:0 var(--gap1) 2rem var(--gap1);
    color:#999999;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.portfolio nav label{    
    margin-right: calc(var(--gap1)*3);
    padding:1rem 0;
    cursor: pointer;    
}
input[type="radio"],
input[type="radio"]:checked ~ #item_list li.item{
    display: none;
}
input[type="radio"]#all_type:checked ~ #item_list [class *= 'item'],
input[type="radio"]#web:checked ~ #item_list [category *= 'web'],
input[type="radio"]#mobile:checked ~ #item_list [category *= 'mobile'],
input[type="radio"]#branding:checked ~ #item_list [category *= 'branding']{
    display: block;
}
input[type="radio"]#all_type:checked ~ nav label[for="all_type"],
input[type="radio"]#web:checked ~ nav label[for="web"],
input[type="radio"]#mobile:checked ~ nav label[for="mobile"],
input[type="radio"]#branding:checked ~ nav label[for="branding"]{
    color:#2F80ED;        
}


.item{
    position: relative;
    width: calc(25% - var(--gap1) * 2);
    height: 0;    
    overflow: hidden;    
    font-size: 0;
    margin:var(--gap1);
    cursor: pointer;
    padding-bottom: 35%;    
}
.item:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.item .txt-box{
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    padding: 2rem 1.5rem 5rem 1.5rem;
    font-size: 1rem;
    color:#ffffff;
    border-radius: 0.9rem 0.9rem 0 0;
    background: linear-gradient(0, rgba(0, 0, 0, 0) 0%, #000000 100%);   
}
.item .txt-box h1{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.item .txt-box span{
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
}
.item .img-box{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}
.item .img-box img{
    width: 100%;
    height: 100%;;
    object-fit: cover;
    transition: transform ease-out 0.5s;    
}

.item:hover .img-box img{
    transform: scale(1.05);
    z-index: 0;
}

.modal{
    position: fixed;
    z-index: 3;
    display: none;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    padding:2% 0;
    /* background: rgba(255, 255, 255, 0.7); */
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    /* backdrop-filter:blur(100px); */
}
.modal.on{
    display: flex;    
}
.modal button.modal-close{
    position: fixed;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border:0;
    border-radius: 50%;
    background-color: #333333;
    cursor: pointer;
}
.modal .container{
    margin: auto;
    /* max-width: 740px; */
    width: 85%;
    min-height: 500px;    
    /* background-color: #f0f0f0; */
    background-color: var(--background-color);
    border-radius: 1rem;
    /* overflow: hidden; */
    padding-bottom: 80px;
    animation: fadein 0.5s;
}
@keyframes fadein {
    0%{
        opacity: 0;
        translate:0 50px;
    }
    to{
        opacity: 1;
        translate:0 0;
    }
}
.modal .container img{
    max-width: 100%;
    /* height: 100%; */
}
.scrollbar-hidden{
    overflow: hidden;
}
li.item{
    display: flex;
    font-size: 2rem;
}

#viewport{
    position: relative;
    width: 100%;    
    height: 100vh;
    overflow: hidden;
    background-color: var(--background-color1);
}

.gradient-blur {
    position: fixed;
    z-index: 5;
    inset: auto 0 0 0;
    height: 20%;
    top: 0;
    pointer-events: none;
  }
  
  .gradient-blur > div,
  .gradient-blur::before,
  .gradient-blur::after {
    position: absolute;
    inset: 0;
  }
  
  .gradient-blur::before {
    content: "";
    z-index: 1;
    -webkit-backdrop-filter: blur(0.5px);
            backdrop-filter: blur(0.5px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, black 12.5%, black 25%, rgba(0, 0, 0, 0) 37.5%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, black 12.5%, black 25%, rgba(0, 0, 0, 0) 37.5%);
  }
  
  .gradient-blur > div:nth-of-type(1) {
    z-index: 2;
    -webkit-backdrop-filter: blur(1px);
            backdrop-filter: blur(1px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 12.5%, black 25%, black 37.5%, rgba(0, 0, 0, 0) 50%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 12.5%, black 25%, black 37.5%, rgba(0, 0, 0, 0) 50%);
  }
  
  .gradient-blur > div:nth-of-type(2) {
    z-index: 3;
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, black 37.5%, black 50%, rgba(0, 0, 0, 0) 62.5%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, black 37.5%, black 50%, rgba(0, 0, 0, 0) 62.5%);
  }
  
  .gradient-blur > div:nth-of-type(3) {
    z-index: 4;
    -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 37.5%, black 50%, black 62.5%, rgba(0, 0, 0, 0) 75%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 37.5%, black 50%, black 62.5%, rgba(0, 0, 0, 0) 75%);
  }
  
  .gradient-blur > div:nth-of-type(4) {
    z-index: 5;
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, black 62.5%, black 75%, rgba(0, 0, 0, 0) 87.5%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, black 62.5%, black 75%, rgba(0, 0, 0, 0) 87.5%);
  }
  
  .gradient-blur > div:nth-of-type(5) {
    z-index: 6;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 62.5%, black 75%, black 87.5%, rgba(0, 0, 0, 0) 100%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 62.5%, black 75%, black 87.5%, rgba(0, 0, 0, 0) 100%);
  }
  
  .gradient-blur > div:nth-of-type(6) {
    z-index: 7;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 75%, black 87.5%, black 100%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 75%, black 87.5%, black 100%);
  }
  
  .gradient-blur::after {
    content: "";
    z-index: 8;
    -webkit-backdrop-filter: blur(7px);
            backdrop-filter: blur(7px);
    -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 87.5%, black 100%);
            mask: linear-gradient(to top, rgba(0, 0, 0, 0) 87.5%, black 100%);
  }

  .portfolio-box{
    width: 100%;
    color:#ffffff;
  }
  .portfolio-box .hero-area{
    height: auto;    
    border-radius: 0.8rem 0.8rem 0 0;
    background-color: #333333;    
    background-size: cover;
    background-position-y: -1px;
    padding-bottom: 20vh;
    
  }  
  .portfolio-box .hero-area .catgory-box{
    padding: 3rem;
    text-transform: uppercase;
    font-weight: 500;    
    font-size: 0.6rem;
  }
  .portfolio-box .hero-area .title-box{
    margin-top: 10vh;
  }
  .portfolio-box .hero-area .catgory-box span{
    margin-right: var(--gap1);
    border:1px solid rgba(255,255,255,0.3);
    border-radius: 3rem;
    padding: 0.5rem 1rem;
  }
  .portfolio-box .hero-area .portfolio-title,
  .portfolio-box .hero-area .role-box{
    max-width: 740px;
    width: 90%;   
    margin: auto;
    z-index: 2;
  }
  .portfolio-box .hero-area .portfolio-title{
    font-size: 3rem;
    margin-bottom: 1.5rem;
    z-index: 2;
  } 
  .portfolio-box .hero-area .role-box span{
    font-size: 0.8rem;    
    margin-right: var(--gap1);
  }
 
  .portfolio-box .content-area{    
    margin: -10vh auto 0;
  }
  .portfolio-box .content-area img{
    display: block;
    margin: 0 auto 40px;
    border-radius: 5px;    
    max-width: 740px;
    width: 90%;
    height: 100%;
    box-shadow:0 1rem 2rem rgba(0,0,0,0.1)
  }
  .portfolio-box .content-area img:last-child{
    margin-bottom: 0;
  }

  .portfolio-box .content-area .mobile-image{
    display: flex;
    max-width: 90%;
    width: 1080px;
    height: 100%;
    margin: 0 auto 5% auto;
    justify-content: space-around;    
  }
  .portfolio-box .content-area .mobile-image img{
    max-width: 280px;
    max-height: 610px;
    margin: 0;
    width: auto;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);    
  }
  .portfolio-box .content-area .mobile-image img:nth-child(odd){
    margin-top:50px;
  }

  footer{
    font-size: 0.8rem;
    font-weight: 300;
    text-align: center;
    color: #999999;
    padding-bottom: 2rem;
    margin-top: 5%;
  }


 @media screen and (max-width: 1024px){
    .hero h1.greeting{
        font-size: 3.5rem;
        letter-spacing: 0;
    }
    .item{
        width: calc(33.3% - var(--gap1)*2);
        padding-bottom: 45%;
    }
    .modal{
        padding: 0;
    }
    .modal .container{
        width: 100%;
        border-radius: 0;
    }
    .modal button.modal-close{
        right: 20px;
    }    
    .portfolio-box .hero-area{
        height: 50vh;
        border-radius: 0;
    }
    .portfolio-box .hero-area .title-box {
        margin: 5% 0;
    }
    .portfolio-box .hero-area .portfolio-title{
        font-size: 2.5rem;
    }
    .portfolio-box .content-area{
        margin-top: -10vh;
    }    
    .portfolio-box .content-area .mobile-image img{
        max-width: 30%;
    }
}

@media screen and (max-width: 767px){
    .hero{
        height: 70vh;
    }
    .name{        
        padding: 2rem var(--gap1);
        font-size: 0.8rem;
    }
    .name h1{
        font-size: 1rem;
    }
    .name .contact{
        margin-left: auto;
    }
    .name .contact li:last-child{
        margin: 0 0 0 0.2vw;
    }
    .hero h1.greeting{
        font-size: 7vw;
        left: 5%;
        top: 10%;
        letter-spacing: 0;
    }
    #viewport{
        height: 70vh;
    }
    #viewport canvas{
        width: 100%;
        height: 100%;
        position: relative !important;
    }
    .hero .down-arrow{
        display: none;
    }
    .portfolio{
        padding: 4rem 2% 2% 2%;        
    }
    .portfolio > h1{
        font-size: 2rem;
        margin: 0 var(--gap1) 8%;
    }
    .portfolio nav label{
        margin-right: calc(var(--gap1)*2);
    }
    .item{
        width: 100%;
        padding-bottom: 100%;
    }
    .modal{
        padding:0;
    }
    .modal .container{
        width: 100%;
        border-radius: 0;
    }
    .portfolio-box .hero-area{
        /* border-radius: 0;
        height: 50%; */
        height: 40vh;
    }
    .portfolio-box .hero-area .catgory-box{
        padding: 3rem 5% 0 5%;
    }
    .portfolio-box .hero-area .title-box{        
        margin: 10% auto;
        /* padding-bottom: 12%;         */
    }
    .portfolio-box .content-area{
        /* margin-top: 0; */
    }
    .portfolio-box .hero-area .portfolio-title{
        font-size: 1.6rem;
    }
    .portfolio-box .content-area img{
        width: 100%;
        max-width: 90%;
    }
    .portfolio-box .content-area .mobile-image{
        flex-wrap: wrap;
        
    }
    .portfolio-box .content-area .mobile-image img:nth-child(odd){
        margin:10% auto;
    }
    .portfolio-box .content-area .mobile-image img{
        max-width: 100%;
        margin: 10% auto;
    }
   
    .modal button.modal-close{
        right: 20px;
    }
}