* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
html {
    scroll-behavior: smooth;
    margin: 0;
}
body {
    font-family: "inter Sans", sans-serif;
    background: #ffffff;
    color: #1d1d1d;
    margin: 0;
    cursor: url('cursor2.png'), auto;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    font-family: "Questrial", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    background-color: #CBF43B;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  header h1 {
    color: #120030;
  }
  
  .header_pages {
    display: inline-flex;
    width: fit-content;
    justify-self: end;
    gap: 2rem;
    background-color: #120030;
    padding: 1rem 2rem;
    border-radius: 200rem;
  }
  
  .header_pages li {
    list-style-type: none;
  }
  
  .header_pages a {
    font-size: 20px;
    text-decoration: none;
    color: #CBF43B;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.5s;
  }
  
  .header_pages a:hover {
    font-weight: 400;
    letter-spacing: 2px;
  }

.cover_hero {
    width: 100%;
    height: auto;
    background-repeat: no-repeat;
}

.cover_1 {
    width: 100%;
    height: auto;
    background-repeat: no-repeat;
}

.container_1, .container_2 {
    margin: 0 20%;
}

.container_3 {
    padding: 40px 25%;
}

.header,
.sub_header,
.sub_header2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.header h3 {
    font-family: "inter", sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #091E42;
    transition: 0.5s;
    margin: 0;
}



.sub_header h4,
.layer-text h2 {
    font-family: "inter", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #091E42;
    transition: 0.5s;
    margin: 0;
}

.sub_header2 h4 {
    font-family: "inter", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #091E42;
    transition: 0.5s;
    margin: 0;
}

.sub_description p {
    font-size: 18px;
    line-height: 130%;
    font-weight: bold;
    color: #091E42;
    transition: 0.5s;
}

.sub_description h5 {
    font-size: 18px;
    line-height: 130%;
    font-weight: bold;
    color: #091E42;
    transition: 0.5s;
}

.description p,
.layer-text p {
    font-size: 18px;
    line-height: 130%;
    font-weight: 400;
    color: #5D6B82;
    transition: 0.5s;
    margin: 0;
}

.list_description li {
    font-size: 18px;
    line-height: 130%;
    font-weight: 400;
    color: #5D6B82;
    transition: 0.5s;
    margin: 0;
}

.header h3,
.sub_header h4,
.sub_header2 h4,
.header_closing h3,
.description_closing p,
.subdescription_closing p,
.list_description_closing p,
.list_description_closing a,
.sub_description h5,
.sub_description p,
.list_description li,
.description p,
.layer-text h2,
.layer-text p {
    animation: CSSscrollReveal ease-in-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
}


.cover_1 {
    animation:  reveal ease-in-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.bg_layer {
    animation: bgLayer-in linear forwards,
    bgLayer-out linear forwards;
animation-timeline: view();
animation-range: entry, exit;
}

.interface {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0 5%;
}

.cover_ui {
    width: 100%;
    height: auto;
    background-repeat: no-repeat;
}

.cover_ui {
    animation: imageUi ease-in-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.bg_layer {
    background-image: url(../img/bg_layer_black.png);
    position: sticky;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    z-index: 1;
    opacity: 1;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  } 

  .layer {
    display: flex; 
    min-height: 100vh;
    position: relative;
    z-index: 2;
  }
  .layer > * {
    width: 50%; 
  }
  .layer-img {
    position: relative;
    display: flex;
  }
  .layer-img-inner {
    height: 100vh;
    position: fixed;
    left: 5%;
    width: 40%;
    top: 0;
    mix-blend-mode: multiply;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    filter: blur(30px);
    opacity: 0;
    background-position: 50% 40%;
    transition: .6s ease, opacity .6s ease, background-position .8s ease;
  }
  .layer-body {
    display: flex;
    align-items: center;
  }
  .layer-text {
    padding: 5vw;
  }

  .layer.active .layer-img-inner {
    opacity: 1;
    background-position: 50% 50%;
    filter: blur(0);
  }

  .prototype {
    display: flex;
    padding-top: 20px;
    justify-content: center;
  }

  .figma {
    width: 100%;
    height: 50vh;
    padding: 20px 0;
    align-items: center;
  }

  .figma iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .header_closing h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: #091E42;
    transition: 0.5s;
    margin: 0;
  }

  .description_closing p {
    font-size: 18px;
    line-height: 130%;
    font-weight: 400;
    text-indent: 36px;
    color: #5D6B82;
    transition: 0.5s;
    margin: 0;
  }

  .subdescription_closing p {
    font-size: 18px;
    line-height: 130%;
    font-weight: 600;
    color: #5D6B82;
    transition: 0.5s;
    margin: 0;
    padding: 20px 0;
  }

  .list_description_closing p {
    font-size: 18px;
    line-height: 130%;
    font-weight: 400;
    color: #5D6B82;
    transition: 0.5s;
    margin: 0;
    padding: 8px 10px;
    padding-left: 0;
  }

  .list_description_closing p,
.list_description_closing a {
    display: inline-block;
    vertical-align: middle; /* Optional: untuk mengatur vertikalnya ke tengah */
}

.footer {
    background-color: #CBF43B;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 100px;
  }
  
  .footer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 10px;
    border: 4px solid #ddd;
  }
  
  .username {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .more-title {
    font-family: "Questrial", sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
  }
  
  .cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .card {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card img:hover {
    transform: scale(1.1);
  }
  
  .card a {
    cursor: zoom-in;
  }
  
  .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .view-profile {
    font-family: "Questrial", sans-serif;
    display: inline-block;
    padding: 10px 20px;
    color: #120030;
    text-decoration: none;
    border: 1px solid #120030;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .view-profile:hover {
    background-color: #120030;
    color: #fff;
  }
  
  .more-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .card {
    width: 190px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .card-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .view-profile {
    display: inline-block;
    padding: 10px 20px;
    color: #120030;
    text-decoration: none;
    border: 1px solid #120030;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .view-profile:hover {
    background-color: #120030;
    color: #fff;
  }


@keyframes CSSscrollReveal {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal {
	from {
        scale: 0.4;
		opacity: -1;
		clip-path: inset(45% 20% 45% 20%);
	}
	to {
        scale: 1;
		opacity: 1;
		clip-path: inset(0% 0% 0% 0%);
	}
}


@keyframes bgLayer-in {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }}
    
@keyframes bgLayer-out {
        0% { opacity: 1; transform: translateY(0); }
        100% { opacity: 0; transform: translateY(-300px); }
    }



@keyframes imageUi {
    from {
        scale: -0.4;
        opacity: -1;
        transform: rotate3d(0, 1, 0, 60deg);
    }
    to {
        scale: 1;
        opacity: 1;
        transform: rotate3d(0, 1, 0, 0deg);
    }
}

/* tammpilan Tablet */
@media (max-width: 768px) {

    header {
        justify-content: center; /* Memusatkan konten dalam header */
        padding: 10px 20px;
      }
    
      header h1 {
        display: none; /* Menyembunyikan elemen h1 */
      }
    
      nav {
        display: flex;
        justify-content: center; /* Memusatkan navigasi */
        align-items: center;
      }
    
      .header_pages {
        gap: 1rem; /* Kurangi jarak antar menu jika perlu */
        padding: 0.5rem 1rem; /* Sesuaikan padding */
      }
    
      .header_pages a {
        font-size: 16px; /* Kurangi ukuran font untuk tampilan kecil */
      }

    .container_1,
    .container_2 {
        margin: 0 15%;
    }
    .custom-cursor {
        display: none;
    }
    
    .header h3,
    .layer-text h2 {
    font-size: 20px;
    }

    .sub_header h4,
    .sub_header2 h4 {
    font-size: 18px;
    }

    .sub_description p,
    .description p,
    .layer-text p,
    .list_description li,
    .sub_description h5 {
    font-size: 14px;
    }

    .card {
        width: 80px;
        height: 102px;
        border-radius: 6px;
      }

  }

/*tampilan handphone*/
  @media (max-width: 425px) {
    .container_1,
    .container_2 {
        margin: 0 10%;
    }

    .container_3 {
        padding: 40px 5%;
    }

    .header h3,
    .layer-text h2,
    .header_closing h3 {
    font-size: 16px;
    }

    .header,
    .sub_header,
    .sub_header2 {
    margin-top: 20px;
    margin-bottom: 8px;
    }

    .sub_header h4,
    .sub_header2 h4 {
    font-size: 14px;
    }

    .sub_description p,
    .description p,
    .layer-text p,
    .list_description li,
    .sub_description h5, 
    .description_closing p,
    .list_description_closing p,
    .list_description_closing a{
    font-size: 12px;
    }

    .figma {
        height: 100vh;
        padding: 0;
    }

    .figma iframe {
        height: 100%;
    }

    .layer > * {
        width: 100%;
        height: 100vh;
      }
      .layer-img {
        position: relative;
        display: flex;
        opacity: 1;
      }
      .layer-img-inner {
        height: 50%;
        position: fixed;
        left: 0;
        width: 100vw;
        top: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0;
        transition: .6s ease, opacity .6s ease, background-position .8s ease;
      }

    .bg_layer {
        background-image: url(../img/bglayerHand.png);
        position: sticky;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 50vh;
        z-index: -1;
        opacity: 0.2;
        background-repeat: no-repeat;
    } 

    .layer-body {
        width: 100%;
        height: 50%;
        z-index: -2;
    }

    .layer {
    display: block; 
    min-height: 100vh;
    position: relative;
    z-index: 0;
  }
  .layer.active .layer-img-inner {
    opacity: 1;
    background-position: 50% 50%;
  }

  .layer {
        flex-direction: column; /* Tata letak kolom untuk layar kecil */
    }

    .layer-img {
        order: -1; /* Urutan ke-1 (diatas) untuk layer-img di layar kecil */
    }

    .layer-body {
        order: 2; /* Urutan ke-2 (dibawah) untuk layer-body di layar kecil */
    }

    .layer-text h2,
    .layer-text p {
        animation: fly-out linear both;
  animation-timeline: view(block);
  animation-range: cover 40% cover 50%;
    }

    .interface {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 3%;
    }

    .end {
        width: 100%;
        height:60vh;
        margin-top: 2rem;
        background-image: url(/port/Portfolio-1/img/footer.png);
        background-position: bottom;
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #CBF43B;
    }

    @keyframes fly-out {
        from {
            opacity: 1;
            scale: 1;
            transform: translateY();
        }
        to {
            opacity: 0;
            scale: 0.1;
            transform: translateY(100px);
        }
    }
}