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

*,
*::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;
}


/* 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: 0px 0px 5px 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{
        gap: 5px;
        max-width: 600px;
}

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.dropAktifs .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;
}

.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%; 
}

/* footer */
footer{
    padding: 80px 0;
    background-color: #0F2C4C;
}

.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;
    }
    
}

@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 */

    .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);
    }

}
/* update untuk container */

@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;
    }

    footer {
        background: #085984;
        background: linear-gradient(90deg,rgba(8, 89, 132, 1) 0%, rgba(1, 46, 69, 1) 100%);
        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;
    }

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

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

}