@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');


*{
    font-family: 'Inter';
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
header{
    padding: 2rem;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

nav{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.left{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0rem;
}


.left img{
    width: 3rem;
}


.right, .right ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style-type: none;
    color: white;
}

.right  a{
    text-decoration: none;
    color: white;
    transition: 3s;
}

.right ul a:hover{
    border-bottom: 1px white solid;
}

#navButton{
    padding: 1rem 2rem;
    background-color: white;
    color: black;
    border: 1px solid black;
    text-decoration: none;
    border-radius: 1rem;
    transition: 0.5s;
}

#navButton:hover{
    background-color: black;
    color: white;
    border-color: white;
}



.title{
    text-align: center;
}

.title h1{
    font-weight: 700;
    text-align: center;
    line-height: 140px;
}

.title p{
    margin-top: 2rem;
    color: #707070;
}

.arrowLink{
    background-color: #302f2f;
    border: 0.5px solid white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    margin: 3rem;
    transition: 0.5s;
}

.arrowLink div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.arrowLink img{
    width: 25%;
}

.arrowLink:hover{
    transform: scale(1.2,1.2);
}

.hero{
    margin-top: 2.5rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}



.heroMiddle{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    justify-content: flex-start;
}

.heroLeft, .heroRight{
    flex: 1;
}

.heroLeft img, .heroRight img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counter {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.counter.animate{
    opacity: 1;
    animation: dissolve 1s forwards;
}

.counterContainer{
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#counterContainer1{
    border-radius: 95%;
    background-color: #419CEC;
}


#counter1{
    color: #FFE544;
    font-size: 70px;
    font-weight: 500;
}

#counterContainer2{
    border-radius: 95%;
    background-color: #25D366;
}

#counter2{
    color: #D727B0;
    font-size: 70px;
    font-weight: 500;
}

/* Animasi dissolve */
@keyframes dissolve {
    from {
        opacity: 0;
        transform: translateY(20px); /* Sedikit geser ke bawah untuk efek lebih menarik */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero img {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease; /* Tambahkan transisi untuk smoothness */
}

.hero img.animate {
    opacity: 1;
    animation: dissolve 1s forwards;
}

.middleUp{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.middleUp img{
    width: 50%;
    height: auto;
}

.middleBottom{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.middleBottomRight{
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
}

.home {
    margin: 5rem 0rem;
    background-color: #F9F9F9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.home.show {
    opacity: 1;
    transform: translateX(0);
}

.homeLeft, .homeRight {
    padding: 2rem;
    width: 50%;
}




.learnMore{
    text-decoration: none;
    color: white;
    background-color: #121212;
    padding: 1rem 5rem;
    border-radius: 1rem;
}

.services{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.serviceHeader{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.serviceHeader h1{
    font-size: 64px;
    font-weight: 500;
    line-height: 70px;
    width: 60%;
}

.serviceHeader p{
    width: 30%;
    font-size: 16px;
}

.serviceBody{
    margin: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.serviceUpper, .serviceBottom{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
}

.service1 {
    background-color: #BB9AE7;
    gap: 1rem;
    padding: 0rem 2rem;
    width: 70%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    overflow: hidden;
}

.service1Text {
    width: 40%;
}

.service1 p, .service1 h1{
    transition: 1s;
}

.service1:hover h1{
    transform: scale(1.1,1.2);
    margin-bottom: 2rem;
}

.service1:hover p{
    transform: scale(1.1,1.3);
}

.service1Images {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 grid untuk gambar */
    gap: 10px;
    width: 60%;
}

.imageGrid {
    width: 13rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden; /* Supaya grid tidak membesar, hanya menampilkan gambar yang muat */
    position: relative;
    height: 400px; /* Sesuaikan tinggi kontainer */
}

.imageGrid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    animation: scrollVertical1 4s linear infinite;
}


/* Animasi vertikal untuk grid 1 */
@keyframes scrollVertical1 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Animasi vertikal untuk grid 2 */
@keyframes scrollVertical2 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Animasi vertikal untuk grid 3 */
@keyframes scrollVertical3 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.service2{
    background-color:#FFE544;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    overflow: hidden; 
}

.service2 img{
    width: 70%;
    z-index: 1;
    transition: 1s;
}

.service2 p, .service2 h1{
    transition: 1s;
}

.service2:hover h1{
    transform: scale(1.1,1.1);
    margin-bottom: 2rem;
}

.service2:hover p{
    transform: scale(1.1,1.3);
}


.service2:hover img{
    transform: scale(1.1,1.1);
}

.service3{
    background-color: #5FC681;
    border-radius: 2rem;
    padding: 0rem;
    display: flex;
    gap: 0rem;
    flex-direction: column;
    height: 20rem;
    position: relative;
    overflow: hidden; 
}

.service3Text{
    padding: 2rem;
    width: 80%;
}

.service3 img{
    width: 100%;
    height: 20rem;
    transition: 1s;
}

.service3 p, .service3 h1{
    transition: 1s;
}

.service3:hover img{
    transform: translate(0px, -100px);
}

.service3:hover h1{
    transform: scale(1.1,1.3);
    margin-bottom: 1rem;
}

.service3:hover p{
    transform: scale(1.1,1.3);
}
.service4 {
    background-color: #419CEC;
    padding: 0rem 2rem 0rem 0rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden; 
    height: 20rem; 
    border-radius: 1rem;
}

.service4 img {
    position: relative;
    left: -20%; /* Memulai posisi gambar dengan overflow ke kiri (sekitar 20%) */
    width: 60%; /* Memastikan gambar lebih lebar dari div */
    height: 100%; /* Supaya gambar memenuhi tinggi div */
    transition: left 0.5s ease; /* Animasi perpindahan */
    object-fit: cover; /* Memastikan gambar proporsional */
}

.service4Text {
    width: 40%;
    text-align: left;
    color: black;
}

.service4 h1, .service4 p{
    transition: 1s;
}

.service4:hover img {
    left: 0; 
}

.service4:hover h1{
    transform: scale(1.1, 1.1);
}

.service4:hover p{
    transform: scale(1.1, 1.1);
}


.works, .worksHeader{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.works{
    margin: auto;
}

.worksHeader{
    width: 70%;
    gap: 2rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.worksBody {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 200%; /* Sesuaikan dengan jumlah item */
    margin: 2rem;
}

.worksContainer {
    min-width: 100%;
    max-width: 150%; /* Menjamin satu slide penuh dalam satu layar */
    padding: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    color: white;
    background-color: #121212;
}

.worksContainer img{
    width: 20%;
    border-radius: 1rem;
}

.worksContent{
    width: 35rem;
    padding: 2rem;
    margin: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-start;
}

.worksContent span{
    background: linear-gradient(to right, #1B665B, 
    #49975E, #97C35C); 
    -webkit-text-fill-color: transparent; 
    -webkit-background-clip: text; 
    padding-right: 0.2rem;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0px;
    background-color: transparent;
}

.prev img, .next img{
    background-color: transparent;
    width: 4rem;
}

.prev img{
    transform: scaleX(-1);
}

.prev {
    left: -10px;
}

.next {
    right: -10px;
}

.about {
    text-align: center;
    padding: 2rem;
  }
  
  .aboutHeader {
    margin-bottom: 2rem;
  }
  
  .aboutContent {
    width: 100%;
    height: 500px; /* Sesuaikan dengan tinggi satu gambar */
    overflow: hidden; /* Menyembunyikan scroll bar */
    position: relative;
  }
  
  .imageContainer {
    display: flex;
    flex-direction: column; /* Menyusun gambar secara vertikal */
    transition: transform 1s ease-in-out;
  }
  
  .imageContainer img {
    width: 100%;
    height: 500px; /* Sama dengan tinggi kontainer */
    object-fit: cover; /* Agar gambar tetap proporsional */
  }

  .closing{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: white;
    background-color: #121212;
  }

  .closing h1{
    margin: 3rem;
    font-size: 128px;
    font-weight: 700;
    line-height: 95px;
    text-align: center;
    width: 80%;
  }

  .closing span{
    color: #DFD839;
    font-family: "Yellowtail", cursive;
  }
  
  footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footerLeft{
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
    text-align: left;
    align-items: flex-start;
    width: 40%;
  }

  .footerLeft ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    gap: 1rem;
    margin-top: 2rem;
  }
  

  .footerLeft ul img{
    width: 2rem;
  }

  .footerRight{
    margin: 2rem;
    display: flex;
    gap: 3rem;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.footerRight ul{
    list-style-type: none;
    width: 30%;
}

.footerRight li{
    margin: 1rem;
}

form{
    margin-top: 3rem;
}
input[type=text]{
    background-color:#F9F9F9;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
}

button{
    background-color: #121212;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
}

/* Default styles (untuk layar besar) sudah diatur sebelumnya */

/* Mulai dari layar kecil (mobile-first) */
@media (max-width: 768px) {

    .home{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .homeRight{
        width: 100%;
    }

    .homeRight img{
        width: 100rem;
    }
    .serviceUpper, .serviceBottom{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .serviceUpper div{
        width: 100%;
    }

    .service4{
        flex-direction: column;
        height: 30rem;
    }

    .service4 img{
        height: 15rem;
        margin-top: 2rem;
        left: -50%;
    }

    .service4 h1{
        font-size: 20px;
        margin-bottom: 2rem;
    }

    .service4Text{
        width: 80%;
        line-height: 20px;
    }

    .service4:hover img {
        left: -20%; 
    }
    .carousel{
        width: 100%;
    }
    .works, .worksBody,.worksContainer{
        width: 100%;
    }

    .worksContainer{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .worksContainer img{
        width: 90%;
    }

    .worksContent{
        width: 80%;
    }

    .worksContent h1{
        font-size: 20px;
    }

    .about, .aboutContent{
        width: 100%;
    }

    .aboutContent{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .imageContainer{
        width:100%;
        align-items: center;
        height: 100%;
    }

    .imageContainer img{
        width: 100%;
        object-fit: contain;
    }

    .closing{
        width: 100%;
    }
    .closing h1{
        text-align: center;
        font-size: 90px;
        width: 70%;
        margin: auto;
        line-height: 65px;
    }

    footer{
        flex-direction: column;
        align-items: flex-start;
    }

    footer div{
        padding: 0rem 1rem;
    }
}

/* Ukuran layar medium (tablet) */
@media (min-width: 768px) and (max-width: 1024px) {
   
}

