:root {
    --dark-blue-color : #0F2C4C;
    --light-blue-color : #085984;
    --orange-color : #CF862A;
    --brown-color : #844208;
    --white-color : #fff;
}

html {
  scroll-behavior: smooth;
}

*,
*::after,
*::before{
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    font-family: "Sen",sans-serif;
}

.wrapper{
    max-width: 1200px;
    margin: 0 auto;
}

.wrapper ul{
    margin: 0;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

.wrapper{
    max-width: 1100px;
    margin: 0 auto;
}

.scroll-anim {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s ease-out;
    filter: blur(5px);
}

.scroll-anim.aktif {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes munculPelan {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* header */
.header-links{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #085984;
    background: linear-gradient(90deg,rgba(8, 89, 132, 1) 0%, rgba(1, 46, 69, 1) 100%);
    margin: 0;
    padding-right: 50px;
    height: 45px;;
}

/* header links */
.header-links ul{
    display: flex;
    justify-content:flex-end;
    margin: 0;
    gap: 20px;
}

.header-links li{
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-links li a{
    color: white;
    font-size: 11px;
}

/* navigation bar (menu bar) */
.mobile-nav{
    display: none;
} 

nav.sticky{
    z-index: 1000;
    position: fixed;
    background-color: #fff;
    top: 0;
    height: 70px;
    box-shadow: 0 0 5px 0 black ;
}

.mobile-menu-container{
        display: none;
    }

nav.sticky .logo{
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

nav{
    width: 100%;
    height: fit-content;
    z-index: 1000;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 210px;
    transition:all 0.3s ease;
}

nav .logo{
    width: 175px;
    height: 76px;
    transition: all 0.5s ease;
}

nav ul{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    max-width: 750px;
    padding: 0;
}

nav li{
    padding: 5px;  
}

.active-nav{
    color: var(--dark-blue-color);
    text-decoration: underline solid var(--dark-blue-color) 2px;
    text-underline-offset: 5px;
}

nav a{
    color: black;
}

nav .judul-nav{
    color: black;
    font-weight:bolder ;
    transition: all 0.3s ease;
    font-size: 16px;
}

nav .judul-nav:hover, a:hover{
    color: var(--dark-blue-color);
    text-decoration: underline solid var(--dark-blue-color) 2px;
    text-underline-offset: 5px;
}

nav .drop-down-head .judul-nav{
    color: black;
    text-decoration: 0
}


nav .drop-down-head.dropAktif .judul-nav{
    color: var(--dark-blue-color);
    text-decoration: underline solid var(--dark-blue-color) 2px;
    text-underline-offset: 5px;
}

/* drop down menu */
.drop-down-head{
    display: flex;
    gap: 5px;
    align-items: center;
    background-color: var(--white-color);
    border-width: 0;
    padding: 2.5px;
    margin-bottom: 5px;
}

.drop-down .drop-down-head img{
    transition: all 0.3s ease-in-out;
}

.drop-down{
    position: relative;
    width: 100%;
    max-width: max-content;
    padding: 0;
    height: 26px;
}

.drop-down .sub-menu{
    z-index: 100;
    width: max-content;
    top: 250%;
    left: -10%;
    position: absolute;
    max-height: fit-content;
}

.sub-menu .sub-menu-container{
    padding: 0 15px;
    margin: 0;
    border-radius: 5px;
    width: fit-content;
    background-color: #085984;
    height: 220px;
    display: grid;
    justify-content: space-between;
    overflow: hidden;
    max-height: 0;
    transition: .5s all ease-in-out;
}

.drop-down .sub-menu li{
    margin:0;
    display: flex;
    align-items: center;
}

.drop-down .sub-menu span{
    font-size: 13px;
    margin: 10px 0;
    color: #fff;
}

.drop-down .sub-menu span:hover{
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.drop-down .sub-menu.dropAktif .sub-menu-container{
    max-height: 500px;
    transition: 0.6s ease-in-out;
}

.sticky .drop-down .sub-menu{
    top: 200%;
}

.sticky .drop-down .sub-menu.dropAktif{
    top: 200%;
}

.layanan-button{
    display: flex;
    gap: 10px;
    background-color: transparent;
    justify-content: space-between;
    width: 100%;
    max-width: 250px;
    border-style: none;
    align-items: center;
}

.layanan-button svg{
    rotate: -90deg;
    transition: transform 0.3s ease-in-out, rotate 0.3s ease-in-out
}

.layanan-button svg.panah-aktif{
    rotate: 90deg;
    transition: transform 0.3s ease-in-out, rotate 0.3s ease-in-out
}

.layanan-button svg.panah-aktif path{
    fill: #CF862A;
}

.layanan-button.slideAktif span{
    color: #CF862A;
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

/* isi dari sub menu */
.drop-down .sub-menu .isi-sub-menu li a{
    color: var(--white-color);
    font-size: 13px;
    margin: 10px 0;
    width: 100%;
}

.drop-down .sub-menu .isi-sub-menu.slideAktif li a:hover{
    z-index: 999;
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.isi-sub-menu .Soil, .isi-sub-menu .Geotechnical, .isi-sub-menu .Lifting{
    z-index: 100;
    height: fit-content;
    position: absolute;
    background-color: var(--dark-blue-color);
    border-radius: 5px;
    top: 0;
    left: 100%; 
    width: fit-content;
    padding: 0 30px;
    opacity: 0;
    visibility: hidden; 
    transition: 0.5s all ease;
}


.isi-sub-menu li{
    width: 260px;
}

.isi-sub-menu ul{
    display: grid;
}

.isi-sub-menu.slideAktif .Soil,
.isi-sub-menu.slideAktif .Geotechnical,
.isi-sub-menu.slideAktif .Lifting{
    opacity: 1;
    visibility: visible;
    left: 103%; 
}

/* main atau body */
.kepala-menu{
    width: 100%;
    max-width: 100vw;
    height: 347px;
    margin: 0;
    padding: 0;
    animation: munculPelan 2s ease-out;
}

.container-kepala-menu{
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container-kepala-menu img{
    position: absolute;
    top: 0;
    object-fit: cover;
    width: 100%;
    filter: brightness(75%);
}

.container-kepala-menu h1{
    position: absolute;
    color: white;
    font-size: 45px;
    font-weight: 700;
    top: 65%;
    left: 13.5%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* akhir dari gambar pembuka */

.visi-misi{
    margin: 20px 0;
    padding: 20px 0;
    text-align: center;
    height: max-content;
    border-bottom: 3px solid #0F2C4C;
}

.visi-misi .wrapper{
    display: grid;
    justify-content: center;
    align-items: center;
    animation: dropPelan 1s ease-out;
}

.visi-misi h3{
    color: #0F2C4C;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-thickness: 2px;
}

.visi-misi p{
    color: #0F2C4C;
    margin-top: 10px;
}

.visi-misi .visi{
    margin: 20px;
}

.visi-misi .misi{
    margin: 20px;
}
/* akhir dari visi misi */

.core-value{
    width: 100%;
    max-width: 100vw;
    height: 350px;
    justify-items: center;
}

.core-value .wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 0px;
}

.core-value .core-value-text{
    color: #0F2C4C;
    width: 500px;
    height: auto;
}

.core-value h2{
    font-size: 55PX;
    font-weight: 800;
    margin: 0;
}

.core-value p{
    margin-top: 30px;
}

.core-value .core-value-gambar{
    position: relative;
    height: 300px;
    width: 500px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.core-value-gambar img{
    position: absolute;
    object-fit: cover;
}

.core-value ,.core-value-gambar img{
    filter: brightness(85%);
}


/* akhir dari deskripsi core value */

.core-pocket{
    height: max-content;
    padding-bottom: 50px;
    border-bottom: 2px solid #0F2C4C;
}

.core-pocket .kotak{
    height: 119px;
    display: flex;
    width: 100%;
    max-width: 100vw;
    gap: 10px;
    align-items: center;
    
    margin-bottom: 20px;
    padding: 10px;
}

.kotak h1{
    margin: 10px 10px 10px 20px;
    font-size: 75px;
    font-weight: 900;
}

.kotak .kotak-desc h3, p{
    margin: 2px;
}

.kotak .kotak-desc h3{
    font-weight: 750;
}

.kotak.k1{
    border-radius: 5px;
    background-color: #0F2C4C;
    border: 2px solid #0F2C4C;
    color: #fff;
}

.kotak.k2{
    border-radius: 5px;
    background-color: #085984;
    border: 2px solid #085984;
    color: #fff;
}

.kotak.k3{
    border-radius: 5px;
    background-color: #0F7EB9;
    border: 2px solid #0F7EB9;
    color: #fff;
}

.kotak.k4{
    border-radius: 5px;
    background-color: #844208;
    border: 2px solid #844208;
    color: #fff;
}

.kotak.k5{
    border-radius: 5px;
    background-color: #CF862A;
    border: 2px solid #CF862A;
    color: #fff;
}

.kotak.k6{
    border-radius: 5px;
    background-color: #844208;
    border: 2px solid #844208;
    color: #fff;
}

.kotak.core-value-aktif{
    scale: 110%;
    transition: all 0.8s ease-in-out;
}
/* akhir dari core value pocket */

.core-services{
    margin: 50px 0;
    width: 100%;
    max-width: 100vw;
    height: max-content;
    display: grid;
    justify-content: center;
    align-items: center;
}

.core-services h2{
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 35px;
    font-weight: 780;
    color: #0F2C4C;
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-line: 2px;
    text-underline-offset: 6px;
}

.core-services .core-service-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 87px;
}

.servicebox{
    display: grid;
    justify-items: center;
    border:2px solid #0F2C4C;
    background-color: #0F2C4C;
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.servicebox.core-aktif{
    background-color: #fff;
    scale: 110%;
    transition: all 500ms ease-in-out;
}

.servicebox.core-aktif a{
    color: #0F2C4C;
}

.core-image{
    position: relative;
    margin: 10px;
    width: 100%;
    max-width: 450px;
    height: 310px;
}

.core-image h3{
    position: absolute;
    font-size: 30px;
    width: 150px;
    bottom: 5%;
    left: 5%;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.core-image img{
    width: 100%;
    height: 100%;
    filter: brightness(55%);
    border-radius: 5px;
    object-fit: cover;
}

.servicebox a{
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-decoration: underline;
    text-decoration-color: #CF862A;
    text-decoration-line: 2px;
    text-underline-offset: 6px;
}


/* footer */
footer{
    padding: 80px 0;
    background: #085984;
    background: linear-gradient(90deg,rgba(8, 89, 132, 1) 0%, rgba(1, 46, 69, 1) 100%);
}

.footer .footer-links{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid white;
    padding: 20px;
}

.links ul{
    padding: 0;
    display: grid;
    gap: 20px;
}

.links li{
    display: flex;
    align-items: center;
    gap: 10px;
}

.links li a{
    text-decoration: none;
    color: white;
    font-size: 11;
}

.copyright p{
    font-size: 15px;
    margin: 20;
    text-align: center;
    color: white;
}

/* Pad Configuration */
@media(max-width: 1100px) {
    /* header*/
    .mobile-nav{
        display: none;
    }

    .wrapper{
        width: 915px;
    }

    .header-links .link-logo{
        scale: 65%;
    }
    .header-links li a{
        font-size: 10px;
    }

    /* navigation */
    nav{
    padding: 10px 50px;
    }

    nav .logo{
        scale: 85%;
    }

    nav .judul-nav a, .drop-down .drop-down-head span {
        font-size: 12px;
    }

    nav ul{
        gap: 5px;
        max-width: 600px;
    }

    .mobile-menu-container{
        display: none;
    }

    .core-services .core-service-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 20px;
    }

    .servicebox{
        width: 450px;
        height: auto;
        transition: all 2s ease-in-out;
    }

    .core-image{
        width: 100%;
        max-width: 430px;
        height: 245px;
    }

   
}

@media(max-width: 800px){
    header{
        position: relative;
        z-index: 100;
    }

    .header-links li a{
        font-size: 8px;
    }
    
    /* navigation menu */
    nav{
        display: none;
    }

    main .mobile-menu-container{
        display: grid;
        align-items: center;
        padding: 0;

    }

    .mobile-nav.stickyMobile{
        z-index: 100;
        position: fixed;
        background-color: #fff;
        top: 0;
        height: 70px;
        box-shadow: 0px 0px 5px black ;
        transition:all 0.3s ease;
    }

    .mobile-nav{
       width: 100%;
       max-width:768px ;
        height: 100px;
        z-index: 200;
        background-color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 60px 10px 30px; 
        transition:all 0.3s ease;
    }

    .mobile-nav.stickyMobile .menu-icon{
        scale: 60%;
        transition:all 0.3s ease;
    }

    .mobile-nav .menu-icon.erase{
        opacity: 0;
        pointer-events: none;
    }

    .mobile-menu-container .active-nav{
        color: var(--orange-color);
        text-decoration: underline solid var(--orange-color) 2px;
        text-underline-offset: 5px;
    }

    .mobile-nav .logo{
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        transition:all 0.3s ease;
    }

    .logo img{
        height: 100%;
        transition:all 0.3s ease;
    }

    /* mulai icon burger */
    .switcher{
        display: none;
    }

    .menu-icon{
        position: relative;
        width: 40px;
        height: 25px;
        cursor: pointer;
        left: 0;
    }

    .hamburger-line{
        position: absolute;
        width: 30px;
        height: 5px;
        background-color: var(--dark-blue-color);
        top: 0;
        transition: 0.25 all ease-in-out;
    }

    .hamburger-line:nth-child(2){
        top: 0;
        transition: 0.5s all ease-in-out;
    }

    .hamburger-line:nth-child(3){
        top: 50%;
        transform: translateY(-50%);
        transition: 0.3s all ease-in-out;
    }

    .hamburger-line:nth-child(4){
        top: auto;
        bottom: 0;
        transition: 0.3s all ease-in-out;
    }

    .switcher:checked ~ .hamburger-line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        transition: 0.5s all ease-in-out;
    }

    .switcher:checked ~ .hamburger-line:nth-child(3) {
        opacity: 0;
        transition: 0.3s all ease-in-out;
    }

    .switcher:checked ~ .hamburger-line:nth-child(4) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
        transition: 0.3s all ease-in-out;
    }
    /* akhir */

    /* Gambar awal */
    .container-kepala-menu img{
        top: 0;
        left: 0;
    }

    /* Core Value */
    .core-value{
        padding: 50px;
        height: max-content;
    }

    .core-value .wrapper{
        gap: 20px;
    }

    .core-value-text h2{
        font-size: 40px;
    }

    .core-value-text p{
        font-size: 14;
        max-width: 300px;
    }

    .core-value-gambar img{
        top: 0;
        left: -25%;
    }

    /* service box */
    .servicebox{
        width: 100%;
        max-width: 325px;
    }

    .core-image{
        width: 100%;
        max-width: 300px;
        height: 245px;
    }


    .wrapper{
        width: 100%;
        max-width: 768px;
        padding: 50px;
    }

    footer{
        padding: 10px;
        width: 100%;
        max-width: 768px;
    }

    footer .wrapper{
        padding: 0;
    }

    .links li img{
        scale: 75%;
    }

    .footer .footer-links{
        padding: 10px 30px;
    }

    .links li a{
        width: 270px;
        font-size:13px;
    }

    .logo-footer{
        scale: 70%;
    }

    /* tambahan drop down event */

    .mobile-menu-container{
        width: 100%;
        max-width: 768px;
        z-index: 10;
        position: fixed;
        height: max-content;
        transition:all 0.3s ease;
        max-height: 0px;
        overflow: hidden;
    }

    .mobile-menu-container.active{
        z-index: 100;
        transition: all 400ms ease;
        max-height: 1000px;
    }

    .mobile-menu-container.stickyMobileContainer{
        top: 70px;
        position: fixed;
        background-color: #fff;
        max-height: 0;
        box-shadow: 10px 0px 5px black ;
        overflow: hidden;
        transition: max-height .4s all ease-in-out;
    }

    .mobile-menu-container.stickyMobileContainer.active{
        transition:all 0.3s ease;
        max-height: 1000px;
        transition: max-height .4s all ease-in-out;
    }

        /* CONTAINER UTAMA (Pintu Luar) */
    .mobile-menu-container {
        width: 100%;
        max-width: 768px; /* Mengikuti batas yang Anda tentukan sebelumnya */
        position: fixed; /* Agar menempel saat scroll */
        top: 140px; /* Sesuaikan dengan tinggi header Anda */
        left: 0;
        height: 100vh;
        background: #ffffff;
        z-index: 100;
        overflow: hidden;

        /* Efek Buka Tutup Menu Utama */
        transition: max-height 0.4s ease-in-out, opacity 0.5s ease;
        max-height: 0; /* Tertutup secara default */
        opacity: 0;
    }

    /* Saat Hamburger di-klik (tambahkan class 'active' via JS) */
    .mobile-menu-container.active {

        max-height: 100vh;
        opacity: 1;
        transition: max-height 0.4s ease-in-out, opacity 0.5s ease;
    }

    /* PANEL DI DALAM (Sistem Slide Adobe) */
    .panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--light-blue-color);
        padding: 20px;
        transition: transform 0.4s ease-in-out;
        color: white;
    }

    /* Hierarki Layer */
    #main-panel { z-index: 10; transform: translateX(0); }
    #sub-panel { z-index: 20; transform: translateX(100%); }
    #second-sub-panel { z-index: 30; transform: translateX(100%); }

    /* Class untuk mengaktifkan panel */
    .panel.active { transform: translateX(0) !important; }

    /* Class untuk mendorong panel keluar ke kiri */
    .panel.exit { transform: translateX(-100%); }

    /* Visual Menu-Item agar Tag <a> tidak mengganggu */
    .menu-item {
        padding: 15px 0;
        border-bottom: 1px solid var(--orange-color);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-item a {
        text-decoration: none;
        color: inherit;
        display: block;
        width: 100%;
    }

    /* tombol kembali */
    .back-btn{
        margin-bottom: 50px;
        color: var(--orange-color);
        height: 30px;
        border-bottom: 2px solid var(--orange-color);
    }
}



@media(max-width: 450px){
    .wrapper{
        width: 100%;
        max-width: 450px;
    }

        .header-links li a{
        font-size: 5px;
        width: 100%;
        max-width: 120px;
    }

    .header-links .link-logo{
        height: auto;
        width: 20px;
    }

    .header-links{
        width: 100%;
        max-width: 100vw;
        padding: 0;
        margin: 0;
        justify-content: space-around;
    }

    .header-links ul{
        padding: 15px;
    }

    .header .mobile-nav{
       width: 100%;
       max-width:450px ;
       height: 100px;
       z-index: 200;
       background-color: white;
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 10px 30px; 
       transition:all 0.3s ease;
    }

    .mobile-nav .logo{
        height: 40px;
        width: auto;
        align-items: center;
    }

    .mobile-nav .menu-icon{
        scale: 65%;
        display: flex;
        justify-content: flex-end;
    }

    .mobile-menu-container .cross-icon{
        scale: 3%;
        position: fixed;
        top: -307px;
        left: -88px;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-menu-container.stickyMobileContainer .cross-icon{
        scale: 3%;
        position: fixed;
        z-index: 100;
        top: -367px;
        left: -88px;
        opacity: 1;
        pointer-events: none;
    }

    /* body */
    .container-kepala-menu h1{
        font-size: 30px;
        left: 10;
    }
    
    .container-kepala-menu img{
    position: absolute;
    top: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(75%);
}

    .core-value{
        padding-bottom: 5px;
        justify-items: center;
    }

    .core-value .wrapper{
        display: grid;
        justify-items: center;
        width: 100%;
        max-width: max-content;
        margin: 0;
    }

    .core-value .core-value-text{
        width: 100%;
        max-width: 314px;
    }

    .core-value-text h2{
        font-size: 25px;
        text-align: center;
    } 

    .core-value-text p{
        font-size: 12px;
        text-align: center;
        max-width: 250px;
    }

    .core-value-gambar{
        max-width: 250px;
    }
    /* Akhir dari core value */

    .kotak h1{
        font-size: 55px;
    }

    .kotak h3{
        font-size: 15px;
    }

    .kotak p{
        font-size: 10px;
    }
    /* akhir dari karu kore value */

    .core-services .core-service-box{
        grid-template-columns: 1fr;
    }
    footer {
        padding: 20px 0;
        width: 100%;
        max-width: 100%;
    }

    footer .wrapper {
        padding: 0;
    }

    .footer .footer-links {
        display: grid;
        justify-content: start; 
        justify-items: start;
        align-items: center;
        gap: 15px;
        padding: 10px 20px; 
    }

    .footer .footer-links .links li img {
        width: 20px; 
        height: auto;
        object-fit: contain;
    }

    .footer .footer-links .links li a {
        font-size: 12px; 
        text-align: left;
        width: auto;
    }

    .footer .logo-footer {
        display: block;
        width: 350px;
        height: auto;
        margin-left: -45px;   
        
        margin-right: auto;
        margin-top: 20px;  
    }
    
    .footer .logo-footer img {
        width: 100%;
        display: block;
    }

}

@media(max-width: 330px){
    .header-links .map {
        max-width: 80px;
    }

    .core-value {
        padding: 30px;
        height: max-content;
    }


     .links ul{
        max-width: 260px;
    }

    .footer .footer-links .links li a {
        font-size: 10px;
        text-align: left;
        width: auto;
    }

}