/* Global resets */
* {
    padding: 0px 0px;
    margin: 0px 0px;
    box-sizing: border-box;
    border:none;
}

a {
    text-decoration: none;
    color: black;
}

.blocktextselection{
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

@keyframes whatsapp-bg-circle {
    0% {
        transform: scale(0); 
        border-radius: 50%;
        opacity: 0;
    }
    100% {
        transform: scale(1); 
        border-radius: 0%;
        opacity: 1;
    }
}

@keyframes whatsapp-callout-rotate {
    0% {
        transform: rotate(0deg); 
        opacity: 0;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

@keyframes start-consult-modal-scaleopen {
    0% {
        transform: translate(-50%, -50%) scale(0.9); 
    }
    100% {
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes start-consult-modal-fadeopen {
    0% {
        opacity: 0; /* Start invisible */
    }
    100% {
        opacity: 1; /* End visible */
    }
}

@keyframes start-consult-modal-scaleclose {
    0% {
        transform: translate(-50%, -50%) scale(1); 
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9); 
    }
}

@keyframes start-consult-modal-fadeclose {
    0% {
        opacity: 1; 
    }
    100% {
        opacity: 0; 
    }
}

@keyframes whatsapp-click-indicator {
    0% { transform: scale(1); opacity: 0; } 
    20% { transform: scale(1.2); opacity: 1; } 
    50% { transform: scale(1); opacity: 1; } 
    80% { transform: scale(1); opacity: 0; }  
    100% { transform: scale(1); opacity: 0; } 
}


/* Background image */
.mainpagebackground {
    width: 100dvw;
    height: 100dvh;
    object-fit: cover;
    position: absolute; /* Layer it at the back */
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -1; /* Background stays behind */
}

/* Body */
body {
    font-family: Arial, sans-serif;
    position: relative; /* Create stacking context for body */
    margin: 0;
    padding: 0;
    height: 10000px;
    scroll-behavior: smooth;
    display: flex;
    background-color: white;
}

/* Header to create a clear stacking context */
header {
    position: relative; /* Ensures stacking context for navbar */
}

/* Navbar */
.nav-container {
    display: flex;
    justify-content: space-around;
    align-items : center;
    padding: 0 20px;
    height: 8vh;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: transparent;
    /* border: 1px solid pink; */
    transition: top 0.3s, background-color 0.3s;
    z-index: 500; /* Ensure navbar is always on top */
}

/* Navbar on scroll */
.nav-container.scrolled {
    background-color: white;
    color: black;
    transition: 0.4s;
}

.nav-container.scrolled a {
    color: black;
    transition: 0.5s;
}

.navlinks {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    transition: 0.1s;
    /* border: 1px solid green; */
}

.navlinks a {
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0px 15px;
    align-items: center;
    text-decoration: none;
    border-radius: 0px;
    transition: 0.5s;
    /* border: 1px solid orange; */
    font-family: 'Gontserrat', sans-serif;
    
}

.navlinks a:hover {
    padding : 10px 15px;
    font-size: 1m;
    cursor: pointer;
    background-color: #333;
    color: white;
    transition: 0.1s;
    /* box-shadow: 0px -5px 0px #7e7e7e; */
}

.navlogo {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height : 50px;
    width: 250px;
    /* border: 1px solid red; */
    background-image: url('Images/LogoPTMJM/LOGO_PT_MJM_PANJANG_putih.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}

/* Welcome text */
.welcome-text {
    font-family: 'Gontserrat', sans-serif;
    font-size: 5em;
    font-weight: 800;
    color: white;
    /* border-style: inset; */
    text-align: left;
    position: relative;
    padding-top: 30dvh;
    padding-left: 5dvw;
    z-index: 1; /* Ensure welcome text stays below navbar, above background */
}

main {
    position: static;
    /* border: 1px solid white; */
    margin-top: 10dvh ;
    margin-left: 1dvw;
    margin-right: 1dvw;
    margin-bottom: 1dvh;
    padding: 0;
    z-index: 1; /* Ensure main content stays below navbar, above background */
}

.main-start-consultation-button{
    padding: 1em 2em;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 1000px;
    font-family: 'Gontserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    position: relative;
    top: 40px;
    left: 4.5dvw; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.1s;
}

.main-start-consultation-button::after{
    content: '';
    position: absolute;
    width: 102%;
    height: 107%;
    display: flex;
    border-radius: 1000px;
    background-image: linear-gradient(to bottom right, purple, red);
    z-index: -1;
}


.main-start-consultation-button:hover{
    cursor: pointer;
    z-index: 0;
    scale: 1.1;
    transition: 150ms;
    box-shadow: 40px 0 100px rgba(255, 0, 0, 0.495), -40px 0 100px rgba(23, 0, 128, 0.489);
}

.main-start-consultation-button:active{
    transform: scale(0.9);
    transition: 150ms;
}

.start-consult-modal-containergrid{
    background-image: url('Images/Background/whiteabstract1.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-position: left;
    font-family: Gontserrat, sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40dvw;
    height: 60dvh;
    background-color: white;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.2); /* Symmetrical outer shadow */
    border-radius: 25px;
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-rows: 60% 1fr 1fr 1fr;
    grid-template-columns: 1fr;
    gap: 0px;
    opacity: 0;
    z-index: -999;
}

.start-consult-modal-containergrid.open{
    opacity: 1;
    z-index: 999;
    animation-name: start-consult-modal-scaleopen, start-consult-modal-fadeopen;
    animation-duration: 0.2s, 0.3s;
    animation-timing-function: cubic-bezier(.62,1.61,.52,.85), linear;
    animation-delay: 0s, 0s;
}

.start-consult-modal-containergrid.close{
    opacity: 0;
    animation-name: start-consult-modal-scaleclose, start-consult-modal-fadeclose;
    animation-duration: 0.2s, 0.1s;
    animation-timing-function: cubic-bezier(.62,1.61,.52,.85), linear;
    animation-delay: 0, 0ms;
}

.start-consult-modal-closebtn{
    cursor: pointer;
    display: flex; /* Align content inside because containing X for the logo -*/
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    right: -1%;
    top: -2%;
    width: 1px;
    height: 1px;
    padding: 0.45em 0.5em 0.55em 0.5em;
    font-size: 1.5em;
    font-weight: 800;
    color: gray;
    border-radius:50%;
    background-color: rgb(207, 207, 207);
    scale: 1.6;
    transition: 25ms;
    z-index: 10;
}

.start-consult-modal-closebtn:hover{
    scale: 1.7;
    background-color: red;
    color: white;
    transition: 25ms;
}

.start-consult-modal-closebtn:active{
    scale: 1.3;
    transition: 1ms;
}

.start-consultation-modal-title{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0% 10%;
    font-family: DM Sans, sans-serif;
    font-size: 3dvh;
    font-weight: 900;
    text-align: center;
    /* background-color: rgba(255, 0, 0, 0.2);  */
    /* border: 1px solid red; */
    overflow-wrap: break-word;
}

.start-consultation-modal-information{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    /* border: 1px solid red; */
    /* border-style:dashed; */
}

.start-consult-modal-whatsappiconcontainer{
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    /* border: 1px solid rgb(0, 255, 162); */
}

.start-consult-modal-whatsappicon-content{
    position: absolute;      
    height: 70%;
    /* border: 1px solid rgb(135, 202, 34); */
}

.start-consult-modal-whatsappicon-content.bg{
    filter: drop-shadow(10px 10px 30px rgba(0, 0, 0, 0.5));
    animation-name: whatsapp-bg-circle;
    animation-duration: 500ms;
    animation-timing-function: cubic-bezier(.62,1.61,.52,.85);
    /* opacity has been set with js */
}

.start-consult-modal-whatsappicon-content.callout{
    
    animation-name: whatsapp-callout-rotate;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(.07,1.07,.99,1.01);
    /* opacity has been set with js */
}
.start-consult-modal-whatsappicon-content.callout::after {
    content: "";
    animation: none; /* Stop animation */
    animation-delay: 1s; /* Delay setelah satu iterasi selesai */
}
.start-consult-modal-whatsappicon-content.phone{
}

.start-consultation-click-indicator {
    /* border: 5px solid red; */
    position: absolute;
    top: 58%; 
    left: 36%;
    width: 30px;
    height: 30px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: whatsapp-click-indicator 1.5s infinite;

}

.start-consultation-modal-buttoncontainer{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding-bottom: 2em;
    /* border: 1px solid red; */
}

.start-consultation-modal-button{
    /* display: flex;
    justify-content: space-around;
    justify-items: center;
    align-items: center; */
    height: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    border-radius: 7px;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
    /* border: 1px solid red;  */

}

.start-consultation-modal-button.yes{
    background-color: #30a41c;
    color: white;
    padding: 0 2em;
}

.start-consultation-modal-button.yes:hover{
    cursor: pointer;
    scale: 1.05;
    transition:0.1s;
    background-color: rgb(67, 138, 67);
}

.start-consultation-modal-button.cancel{
    background: white;
    padding: 0 1em;
}

.start-consultation-modal-button.cancel:hover{
    cursor: pointer;
    transition:0.1s;
    scale: 1.05;
    background-color: rgb(193, 193, 193);
}
.start-consultation-modal-button.cancel:active{
    color: red;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: static;
    width: 100%;
    bottom: 0;

}
