@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Dosis:wght@100&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@10&display=swap');
 html, body {
  overflow-x: hidden;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(img/bukit.jpg) no-repeat center center;
  background-size: cover;
  z-index: -2; /* Push it further back */
  animation: pan-image 20s linear infinite alternate;
  transform: scale(1.4);
}

@keyframes pan-image {
  0% {
    transform: scale(1.4) translateX(-10%);
  }
  100% {
    transform: scale(1.4) translateX(10%);
  }
}

body.scrolling body::before {
  animation-play-state: paused;
  transform: scale(1.4) translateY(calc(var(--scrollY, 0) * 0.5));
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adjust the last value (0.7) to change the darkness of the overlay. 
     0.0 is fully transparent, 1.0 is fully black. */
  background-color: rgba(0, 0, 0, 0.500);
  z-index: -1; /* Place it on top of the ::before pseudo-element */
}

@media (max-width: 768px) {
  body::before {
    animation-duration: 8s;
  }
}

@keyframes rgbAura {
  0% {
    box-shadow: 0 0 15px #ff0000;
  }
  16.66% {
    box-shadow: 0 0 15px #ff00ff;
  }
  33.33% {
    box-shadow: 0 0 15px #0000ff;
  }
  50% {
    box-shadow: 0 0 15px #00ffff;
  }
  66.66% {
    box-shadow: 0 0 15px #00ff00;
  }
  83.33% {
    box-shadow: 0 0 15px #ffff00;
  }
  100% {
    box-shadow: 0 0 15px #ff0000;
  }
}
@keyframes rgbSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}
 .bg {
  background: #19191B;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
  backdrop-filter: blur(12.1px);
}
 .profile-picture-container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .profile-picture-container {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.1);
  }
}

 .profile-picture {
  height: auto;
  max-width: 200px;
  border-radius: 50%
}
 .profile-name {
  text-align: center;
  padding: 10px;
  font-family: sans-serif;
  font-weight: 700;
  color: #FEFFFE;
  font-size: 20px
}
 .profile-about {
  text-align: center;
  padding: 2px;
  font-family: Dosis, sans-serif;
  color: #FEFFFE;
  font-size: 15px;
  letter-spacing: 2px
}


 .centered-text {
  text-align: center;
  width: 100%;
  margin: 10px 0;
  color: #FEFFFE;
  font-size: 16px;
  font-weight: normal;
  font-family: sans-serif;
}
 .description {
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  display: flex;
  justify-content: flex-start;
  position: relative;
  width: 600px;
  max-width: 100%;
  transition: all .3s ease-in-out;
  background-color: rgba(255, 255, 255, 0.0);
  color: #fff;
  opacity: 0.5;
  font-size: 8pt;
  font-style: italic;
}
 .links {
  text-align: center;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  border: .5px solid #fff;
  border-width: 1px;
  display: block;
  border-radius: 15px;
  font-family: sans-serif;
  position: relative;
  font-size: 17px;
  width: 680px;
  max-width: 95%;
  transition: all .3s ease-in-out;
  background-color: rgba(255, 255, 255, 0.0);
  color: #fff
}
 .links-circle {
  text-align: center;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  border: .5px solid #fff;
  border-width: 1px;
  display: block;
  border-radius: 15px;
  font-family: sans-serif;
  position: relative;
  font-size: 17px;
  max-width: 95%;
  transition: all .3s ease-in-out;
  background-color: rgba(255, 255, 255, 0.0);
  color: #fff
}
 .links-in {
  padding: 5px;
  border: .5px solid #ffffff00;
  border-width: 1px;
  width: 30px;
  display: block;
  border-radius: 40px;
  left: 20px;
  position: absolute;
  font-size: 20px
}
 .hover {
  text-decoration: none;
  color: #FEFFFE;
  transition: all .3s;
  background: #27262B;
  background-color: rgba(255, 255, 255, 0.0)
}
 .hover:hover {
  text-decoration: none;
  background-color: #fff;
  color: #2d3748;
  border: solid #fff 0.5px;
  transition: all .2s;
  transform: scale(1.03);
  box-shadow: 0 0 15px #fff;
  animation: rgbAura 3s linear infinite;
}
 .hover:hover .links-in, .hover:hover b {
  background: linear-gradient(45deg, #cc0000, #cc00cc, #0000cc, #00cccc, #00cc00, #cccc00, #cc0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rgbSlide 8s linear infinite;
}

.gear:hover {
  text-decoration: none;
  background-color: #fff;
  color: #000;
  border: solid #fff 0.5px;
  transition: all .2s;
  transform: scale(1.03);
  animation: rgbAura 3s linear infinite;
}

.gear:hover i {
  background: linear-gradient(45deg, #cc0000, #cc00cc, #0000cc, #00cccc, #00cc00, #cccc00, #cc0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rgbSlide 8s linear infinite;
}

footer a:hover b {
  color: #fff;
  text-shadow: 0 0 10px #cc0000, 0 0 20px #cc0000, 0 0 30px #cc0000;
  animation: rgbGlow 3s linear infinite;
}

footer {
  text-align: left !important;
  margin: 0 auto;
  width: fit-content;
}

footer p {
  text-align: left !important;
}

#play-icon:hover {
  color: #fff;
  text-shadow: 0 0 10px #cc0000, 0 0 20px #cc0000, 0 0 30px #cc0000;
  animation: rgbGlow 3s linear infinite, rgbAura 3s linear infinite;
}

@keyframes rgbGlow {
  0% { text-shadow: 0 0 10px #cc0000, 0 0 20px #cc0000, 0 0 30px #cc0000; }
  25% { text-shadow: 0 0 10px #cc00cc, 0 0 20px #cc00cc, 0 0 30px #cc00cc; }
  50% { text-shadow: 0 0 10px #0000cc, 0 0 20px #0000cc, 0 0 30px #0000cc; }
  75% { text-shadow: 0 0 10px #00cccc, 0 0 20px #00cccc, 0 0 30px #00cccc; }
  100% { text-shadow: 0 0 10px #cc0000, 0 0 20px #cc0000, 0 0 30px #cc0000; }
}
 .bottom-info {
  margin-top: -90px;
  opacity: 0.3;
  font-size: 7.5pt;
  font-style: italic;
  text-align: center;
  width: 600;
  color: #fff;
  font-family: 'Prodcut Sans', 'Product Sans', sans-serif
}
 .bottom-info p {
  margin-bottom: -20px;
  padding: 10px;
}
 .bottom-text {
  opacity: 0.3;
  font-size: 7.5pt;
  font-style: italic;
  text-align: center;
  width: 600;
  color: #fff;
  font-family: 'Prodcut Sans', 'Product Sans', sans-serif
}
 .bottom-text-version {
  margin-bottom: 15px;
  font-size: 12px;
  color: #fff;
  font-family: 'Prodcut Sans', 'Product Sans', sans-serif;
}
 .link-hide {
  text-decoration: none
}
 .link-hide:hover {
  text-decoration: none
}
 @media (max-width:548px) {
  .profile-about {
    text-align: center;
    padding: 2px;
    font-family: Dosis, sans-serif;
    color: #FEFFFE;
    font-size: 15px;
    letter-spacing: 1px
  }
}
 .links-footer {
  padding: 4px;
  border: .5px solid #FEFFFE;
  border-width: 1px;
  width: 40px;
  display: inline-block;
  border-radius: 30px;
  font-size: 20px;
  text-align: center;
  margin: 10px;
  margin-top: 50px;
  color: #000;
  transition: color 1s;
  transition: all .3s;
  background: #FEFFFE
}
 .links-footer:hover {
  color: #000;
  background: #FEFFFE;
  transition: all .3s
}
 .space,
 .space2 {
  padding-top: 0px
}
 .drag {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -user-drag: none
}
 #linksbutton {
  max-width: 580px;
  width: auto;
  display: block;
  margin: 27px auto;
}
 #title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  display: block;
  font-family: 'Prodcut Sans', 'Product Sans', sans-serif;
  width: 100%;
  margin-top: 50px;
  text-align: center;
  text-decoration: none;
}
 .gears {
  width: auto;
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  display: flex;
  width: 600px;
  max-width: 100%;
}
 .gear {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.0);
  color: #fff;
  font-family: 'Prodcut Sans', 'Product Sans', sans-serif;
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: all .25s cubic-bezier(.08, .59, .29, .99);
  border: solid #fff 1.5px;
  border-radius: 50%;
}
 .gear:hover {
  text-decoration: none;
  background-color: #fff;
  color: #000;
  border: solid #fff 0.5px;
  transition: all .2s;
  transform: scale(1.03)
}
 .label {
  background-color: #333;
  border-radius: 50px;
  justify-content: space-between;
  position: relative;
  height: 26px;
  width: 50px;
  float: right;
  padding: 5px;
  align-items: center;
  display: flex;
  transform: scale(1.2);
}
 .checkbox {
  opacity: 0;
  position: absolute;
}
 .label .ball {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 22px;
  width: 22px;
  transition: transform 0.2s linear;
}
 .checkbox:checked+.label .ball {
  transform: translateX(22px);
}
 .moveBall {
  transform: translateX(22px);
}
 .moveBallBack {
  transform: translateX(0px);
}
 .fa-moon {
  color: #f1c40f;
  font-size: 15px;
}
 .fa-sun {
  color: #f39c12;
  padding-left: 10px;
  font-size: 15px;
}
 .navbarmod {
  height: 70px;
  width: 100%;
  padding: .5rem 1rem;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-end;
}
 @media screen and (min-width:768px) {
  ::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 4px;
    height: 5px
  }
  ::-webkit-scrollbar-track {
    background: transparent
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 10px
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .35)
  }
  ::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, .35)
  }
}
 #canvas,
 #text {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}
 #music-button {
  position: fixed;
  top: 100px;
  right: 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 999;
}
 #play-icon {
  display: block;
  margin-right: 0px;
  margin-left: 0px;
  color: white;
  opacity: 0.5;
  font-size: 50px;
  cursor: pointer;
  animation: wave 2s infinite ease-in-out;
}
 @keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
 #pause-icon {
  display: none;
  margin-right: 0px;
  margin-left: 0px;
  color: white;
  font-size: 50px;
  cursor: pointer;
  animation: scaleUpDown 1s infinite alternate;
  text-shadow: 0 0 15px #ff0000;
  animation: scaleUpDown 1s infinite alternate, rgbGlow 3s linear infinite;
}
 @keyframes scaleUpDown {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}
 .typing-wrapper {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
 .typing-desc {
  font-family: monospace;
  font-size: 15pt;
}
 .typing-demo {
  animation: typing 2s steps(22), blink .5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid;
  font-family: monospace;
  font-size: 15pt;
  font-weight: bold;
  color: white;
}
 @media screen and (max-width:768px) {
  .typing-demo {
    font-size: 10pt;
    font-weight: bold;
    max-width: 80%;
    margin: 0 auto;
  }
  .typing-desc {
    font-family: monospace;
    font-size: 10pt;
    max-width: 80%;
    margin: 0 auto;
  }
}
 @keyframes typing {
  from {
    width: 0
  }
}
 @keyframes blink {
  50% {
    border-color: transparent
  }
}
.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.33);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  pointer-events: all;
}
.dialog-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: none;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: 680px;
  max-width: 95%;
}

@media screen and (max-width: 768px) {
  .dialog-box {
    width: 95%;
    max-width: 95%;
    padding: 15px;
    top: 48%;
  }
  
  .dialog-box p {
    font-size: 15px;
  }
  
  .dialog-box button {
    padding: 8px 15px;
    font-size: 15px;
  }
}
.dialog-box p {
  color: #FEFFFE;
  font-family: sans-serif;
  font-size: 17px;
}
.dialog-box button {
  background-color: #ffffff00;
  color: #ffffff;
  border: solid #fff 0.5px;
  border-radius: 15px;
  padding: 10px 20px;
  font-family: sans-serif;
  font-size: 17px;
  cursor: pointer;
  transition: all .2s;
  width: 90%;
  font-weight: bold;
  position: relative;
  margin: 5px 0;
}

.dialog-box .button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 10px;
}
.dialog-box button:hover {
  background-color: #ffffff;
  animation: rgbAura 3s linear infinite;
}

.dialog-box button:hover .close-text {
  background: linear-gradient(45deg, #cc0000, #cc00cc, #0000cc, #00cccc, #00cc00, #cccc00, #cc0000);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rgbSlide 8s linear infinite;
  font-weight: bold;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  padding: 20px 0;
}

.timeline {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  padding: 40px 0;
  width: 100%;
}

/* The actual timeline (the vertical ruler) */
.timeline-line {
  position: absolute;
  width: 6px;
  background-color: #fff;
  top: 0;
  height: 100%;
  left: 50%;
  margin-left: -3px;
  opacity: 0.3;
  z-index: 1;
}

/* Container around content */
.timeline-container {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
  margin-bottom: 30px;
}

/* Ensure timeline container extends to accommodate all items */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  padding: 40px 0;
  width: 100%;
  overflow: visible; /* Make sure nothing clips the timeline line */
}

/* Container around content */
.timeline-container {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
  margin-bottom: 30px;
}

/* The circles on the timeline */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #fff;
  border: 4px solid #555;
  top: 15px;
  border-radius: 50%;
  z-index: 3;  /* Higher than the line */
}

/* Position the left container - needs to reach up to the center line */
.timeline-left {
  left: 0;
  width: 50%;  /* Make it extend to the center line */
}

/* Position dot at the center line for left container */
.timeline-left::after {
  left: 100%;  /* Position at the right edge of the container (which is at center line) */
  transform: translateX(-45%);  /* A bit more to the right */
}

/* Position the right container - starts from the center line */
.timeline-right {
  left: 50%;
  width: 50%;  /* Make it extend from the center line to the right */
}

/* Position dot at the center line for right container */
.timeline-right::after {
  left: 0%;  /* Position at the left edge of the container (which is at center line) */
  transform: translateX(-48%);  /* A bit more to the right */
}

/* Add arrows to the left container (pointing right) */
.timeline-left::before {
  content: ' ';
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 3;
  right: 30px;
  border: medium solid #fff;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
  opacity: 0.3;
}

/* Add arrows to the right container (pointing left) */
.timeline-right::before {
  content: ' ';
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 3;
  left: 30px;
  border: medium solid #fff;
  border-width: 10px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
  opacity: 0.3;
}

/* The actual content */
.timeline-content {
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.timeline-content h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.2em;
}

.timeline-content p {
  margin-bottom: 0;
  color: #fff;
  font-size: 1em;
}

.timeline-date {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.2em;
}

/* Scroll lock when dialog is open */
body.dialog-open {
  overflow: hidden;
}

/* For timeline container in dialog */
.dialog-box .timeline {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
  position: relative; /* Ensure timeline line is positioned relative to this container */
}

/* Adjust timeline-line for scrollable container */
.dialog-box .timeline-line {
  position: absolute;
  width: 6px;
  background-color: #fff;
  top: 0;
  height: 100%;
  left: 50%;
  margin-left: -3px;
  opacity: 0.3;
  z-index: 0;
}

/* Mobile adjustments for dialog timeline line */
@media screen and (max-width: 768px) {
  .dialog-box .timeline-line {
    left: 31px;
  }
}

/* For timeline container scrollbar */
.dialog-box .timeline::-webkit-scrollbar {
  width: 6px;
}

.dialog-box .timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.dialog-box .timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* Mobile responsiveness for timeline */
@media screen and (max-width: 768px) {
  .timeline {
    padding: 40px 10px 20px;
  }
  
  .timeline-line {
    left: 31px;
  }
  
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0 !important;
    margin-bottom: 30px;
  }
  
  /* On mobile, position the dot directly on the vertical line */
  .timeline-container::after {
    left: 31px !important;
    margin-left: -12px !important;  /* Center the dot on the line */
  }
  
  /* For mobile, adjust the positioning of containers */
  .timeline-left,
  .timeline-right {
    left: 0 !important;
    padding-left: 70px !important;  /* Consistent spacing on mobile */
    padding-right: 25px !important;
  }
  
  .timeline-left::before,
  .timeline-right::before {
    display: none;
  }
  
  .timeline-right {
    left: 0;
  }
  
  .timeline-content {
    padding: 15px 20px;
  }
  
  .dialog-box .timeline {
    max-height: 50vh;
  }
}