@import url(common.css);
@import url(animation.css);

body {
    background:#000;
}

/* ---------------------------
    Visual Section
--------------------------- */
#visual {
    position:relative;
    width:100%;
    height:100vh;
    background:#E1E1E1;
    color:#fff;
}

#visual .black-filter {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:1;
    background:rgba(0,0,0,.4);
}

#visual .visual-video {
    position:absolute;
    top:0;
    left:0%;
    width:100%;
    height:100%;
    overflow:hidden;
}

#visual .visual-video video {
    width:100%;
    height:100%;
    object-fit:cover;
}

#visual .visual-content {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:100%;
    z-index:2;
    text-align:center;
}

#visual .visual-content .title {
    animation:fadeUp 2s ease 1 normal both;
}

#visual .visual-content .sub-title {
    animation:fadeUp 2s ease 1 normal both;
    animation-delay:.1s;
}

#visual .changing-word,
#visual .changing-subtitle {
    display:inline-block;
    position:relative;
}

#visual .visual-scroll-wrap {
    position:absolute;
    left:50%;
    bottom:0%;
    transform:translateX(-50%);
    z-index:2;
}

#visual .visual-scroll {
    display:flex;
    flex-direction:column;
    align-items:center;
}

#visual .visual-scroll .scroll {
    font-size:16px;
    font-weight:100;
}

#visual .visual-scroll .scroll-track {
    position:relative;
    width:3px;
    height:80px;
    background:rgba(255, 255, 255, .3);
}

#visual .visual-scroll .scroll-bar {
    position:absolute;
    top:0;
    width:100%;
    height:20%;
    border-radius:200px;
    animation:scrollDown 2s ease-in-out infinite;
}

/* ---------------------------
    We are Section
--------------------------- */
#about {
    width:100%;
    text-align:center;
    background:#fff;
}

#about h4 {
    font-family:"Pretendard-Regular", sans-serif;
    font-weight:normal;
}

#about .about-description {
    /* color:rgba(0, 0, 0, .4); */
    background:linear-gradient(to right, #000, #000) no-repeat;
    -webkit-background-clip:text;
    background-clip:text;
    background-size:0%;
    transition:background-size cubic-bezier(.1, .5, .5, 1) .5s;
}

#about .section-line {
    display:flex;
    justify-content:center;
    width:100%;
    margin:40px 0px;
}

#about .section-line > div{
    width:5%;
    height:4px;
    background-color:var(--blue);
}

#about .about-image {
    width:100%;
    height:360px;
    background:url(/assets/image/main-visual.jpg) no-repeat;
    background-size:cover;
    border-radius:12px;
    margin-top:90px;
    overflow:hidden;
    object-fit:cover;
}

#about .about-image img {
    width:100%;
}

/* ---------------------------
    Work Section
--------------------------- */
#work {
    padding:140px 0;
    background:#fff;
}

#work .work-description {
    margin-top:30px;
}

#work .work-title-items {
    position:relative;
}

#work .work-title-item {
    position:absolute;
    top:0;
    left:0;
    opacity:0;
}

#work .work-title-item.active {
    animation:FadeRight 1s ease 1 normal both;
    opacity:1;
}

#work .section-card-wrap {
    display:flex;
    gap:20px;
}

#work .section-card {
    width:100%;
    height:400px;
    overflow:hidden;
    background:#e1e1e1;
    border-radius:12px;
    flex:100%;
    transition:all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#work .section-card img {
    width:100%;
    height:100%;
    object-fit:cover;
}

#work .section-card-wrap .section-card.active {
    flex:1 1 800%;
    transition:all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ---------------------------
    Solution Section
--------------------------- */
#solution {
    width:100%;
    height:100vh;
    padding:140px 0;
    color:#fff;
    background:#1E1E1E;
    overflow:hidden;
}

#solution .solution-title p {
    color:#fff;
}

#solution .solution-slides {
    /* margin-left:12.6%; */
    margin-top:100px;
}

#solution .solution-slide {
    display:flex;
    align-items:center;
    gap:20px;
    padding-bottom:40px;
    width:max-content;
    height:100%;
    overflow:hidden;
    overflow-x:scroll;
    padding-right:18%;
    perspective:1000px;
}

#solution .solution-slide::-webkit-scrollbar {
    display:none;
    height:6px;
    border-radius:100px;
    background:rgba(255, 255, 255, .5);
    /* margin-right:12.6%; */
}

#solution .solution-slide::-webkit-scrollbar-thumb {
    height:6px;
    border-radius:100px;
    background:var(--purple);
}

#solution .solution-slide-item {
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:300px;
    max-width:300px;;
    aspect-ratio:1 / 1;
    padding:16px 24px;
    background:#e1e1e1;
    border-radius:6px;
    transition:transform .3s ease;
    transform-style:preserve-3d;
}

#solution .slide-filter {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0, 0, 0, .4);
}

#solution .project-content {
    position:absolute;
    z-index:1;
}

#solution-scroll-progress-bar {
    width:100%;
    height:4px;
    background:rgba(255, 255, 255, .2);
    border-radius:100rem;
}

#solution-scroll-progress-bar .bar-fill {
    width:0%;
    height:100%;
    background:#fff;
    border-radius:100rem;
    transition:width .1s linear;
}

/* ---------------------------
    Partners Section
--------------------------- */
#partners {
    padding:140px 0;
    color:#fff;
    background:#000;
}

#partners .partners-title p {
    color:#fff;
}

#partners .partners-wrap {  
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:50px;
    margin-top:100px;
}

#partners .partners-item {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    filter:brightness(0) invert(1);
    opacity:.3;
    transition:opacity 1s ease;
}

#partners .partners-item:hover {
    opacity:1;
}

#partners .partners-item img {
    height:100%;
}

/* ---------------------------
    Contact Section
--------------------------- */
#contact {
    padding:140px 0;
    background:#fff;
    border-radius:80px 80px 0 0;
}

#contact .contact-email {
    margin-top:40px;
}

#contact .contact-email h4 {
    display:flex;
    align-items:center;
}

#contact .contact-email h4 i {
    margin-right:12px;
}

#footer {  
    margin-top:0px;
}

/*
#contact .contact-content {
    display:flex;
    width:100%;
}

#contact .contact-content .contact-left,
#contact .contact-content .contact-right {
    width:50%;
}

#contact .contact-inputs {
    display:grid;
    grid-template-areas:
        "name company-name"
        "email phone"
        "budget budget"
        "details details"
        "file ."
        "submit submit";
    gap:20px;
}

#contact .name { grid-area:name;}
#contact .company-name { grid-area:company-name;}
#contact .email { grid-area:email;}
#contact .phone { grid-area:phone;}
#contact .budget { grid-area:budget;}
#contact .details { grid-area:details;}
#contact .file { grid-area:file;}
#contact .submit { grid-area:submit;}

#contact .contact-inputs .input-name {
    position:relative;
    display:inline;
    font-size:24px;
    font-weight:900;
}

#contact .contact-inputs .red-circle {
    position:absolute;
    top:0%;
    right:-15%;
    width:5px;
    height:5px;
    border-radius:200px;
    background:#ff0000;  
}

#contact .contact-inputs input,
#contact .contact-inputs select {
    width:100%;
    border:none;
    border-bottom:1px solid #000;
    padding-bottom:16px;
    margin-top:20px;
}

#contact .contact-input::placeholder {
    color:#989898;
}

#contact .contact-inputs input:focus,
#contact .contact-inputs select:focus {
    outline:none;
}

#contact .contact-inputs .details textarea {
    width:100%;
    height:150px;
    max-height:150px;
    border:none;
    outline:none;
    border-bottom:1px solid #000;
    margin-top:20px;
}

#contact .contact-inputs .details textarea::-webkit-scrollbar-track {
    width:2px;
    background:#fff;
}

#contact .contact-inputs .details textarea::-webkit-scrollbar-thumb {
    width:2px;
    background:#e1e1e1;
}

#contact .contact-inputs .submit {
    display:block;
    width:100%;
    height:40px;
    background:var(--blue);
    border-radius:6px;
    color:white;
}
*/

/* 반응형 */
@media (max-width:960px) {
    h1 { font-size:2.5rem; }
    h2 { font-size:2rem; }
    h3 { font-size:1.5rem; }
    h4 { font-size:1rem; }
    h5 { font-size:1rem; }
    p { font-size:.875rem; }

    /* -----------------------------------
        Visual
    ----------------------------------- */

    #visual .visual-content .title > span {
        display:block;
    }

    #visual .visual-content .title-wrap {
        padding:0px 15px;
    }

    /* -----------------------------------
        About
    ----------------------------------- */
    #about .section-line {
        margin:20px 0;
    }

    #about .about-image {
        height:300px;
        margin-top:40px;
    }

    #work,
    #solution,
    #partners,
    #contact {
        text-align:center;
        padding:80px 0;
    }

    /* -----------------------------------
        Work
    ----------------------------------- */
    #work .work-title-item {
        left:50%;
        width:100%;
        transform:translateX(-50%);
    }
    
    #work .work-description {
        margin-top:16px;
    }

    #work .work-slide .row > div:first-child {
        margin-bottom:60%;
    }

    #work .section-card-wrap {
        gap:12px;
    }

    #work .section-card {
        height:200px;
        border-radius:6px;
    }

    /* -----------------------------------
        Solution
    ----------------------------------- */
    #solution {
        height:100%;
    }

    #solution .solution-slides {
        margin-top:40px;
    }

    #solution .solution-slide {
        padding-bottom:20px;
        gap:12px;
    }

    #solution .solution-slide-item {
        min-width:250px;
        width:250px;
    }

    /* -----------------------------------
        Partners
    ----------------------------------- */
    #partners .partners-wrap {
        width:100%;
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
        margin-top:30px;
    }

    #partners .partners-item img {
        width:100%;
    }

    /* -----------------------------------
        Contact
    ----------------------------------- */
    #contact {
        border-radius:60px 60px 0 0;
    }

    #contact .contact-email h4 {
        font-size:1.4rem;
        justify-content:center;
    }
}