
/* Description Centered */
.about {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}
.about h1 {
  margin-bottom: 20px;
  font-size: 70px;
}
.about p {
  margin-bottom: 15px;
  font-size: 30px;
}

.profile-container {
  margin-top: 60px;
  text-align: center;
  position: relative; /* penting biar absolute childnya ngikut */
}




.profile-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hidden {
  display: none;
}
.profile-container {
  margin-top: 60px;
  text-align: center;
  position: relative;
  perspective: 1000px; /* penting untuk efek 3D */
}
.profile-circle {
  display: inline-block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid cyan;
  box-shadow: 0 0 25px cyan, 0 0 45px rgb(34, 244, 255);
  transition: transform 0.8s ease-in-out, border-color 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}


/* sisi depan & belakang */
#profile-normal,
#profile-cyber {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  backface-visibility: hidden; /* sembunyikan sisi belakang */
}

/* Belakang (cyber) dirotasi */
#profile-cyber {
  transform: rotateY(180deg);
}

/* Saat flip */
/* Saat flip (ubah glow & border) */
.profile-circle.flip {
  transform: rotateY(180deg);
  border-color: rgb(105, 153, 255);
  box-shadow: 0 0 25px rgb(122, 155, 255), 0 0 45px rgb(0, 17, 255);
}


.profile-circle {
  display: inline-block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid cyan;
  box-shadow: 0 0 25px cyan, 0 0 45px magenta;
  transition: transform 0.8s ease-in-out, border-color 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

/* Saat flip (ubah glow & border) */
.profile-circle.flip {
  transform: rotateY(180deg);
  border-color: magenta;
  box-shadow: 0 0 25px magenta, 0 0 45px cyan;
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

/* Animasi pulse glow */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px magenta, 0 0 30px cyan;
  }
  100% {
    box-shadow: 0 0 40px magenta, 0 0 70px cyan;
  }
}

/* === Balon Pikiran === */
.thought-bubble {
  position: absolute;
  top: 0;       /* pas di atas lingkaran */
  right: 50%;   /* geser dikit ke kanan */
  width: 130px;
  padding: 10px;
  background: white;
  border: 2px solid black;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  color: black;
  z-index: 9999; /* paling depan */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-image: url("image/thinking-cloud.png");
  background-size: cover;
  background-position: center;
}

.thought-bubble.show {
  opacity: 1;
}


#click-text {
  font-size: 14px;
  font-style: italic;
  color: #000;
  text-shadow: 0 0 6px cyan, 0 0 12px magenta;
}



/* CV Button */
.cv-btn {
  padding: 12px 25px;
  background: red;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cv-btn:hover {
  background: darkred;
}
.exp-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
}

/* Timeline container */
.timeline {
  position: relative;
  margin: 40px auto; /* lebih kecil daripada 60px */
  max-width: 1000px; /* biar box bisa melebar */
}


/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #111; /* light mode */
  box-shadow: 0 0 8px #111;
  transform: translateX(-50%);
}
body.dark-mode .timeline::before {
  background: cyan;
  box-shadow: 0 0 8px cyan, 0 0 16px #0ff;
}

/* Kotak pengalaman */
.exp-item {
  position: relative;
  width: 45%;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #111;
  box-shadow: 0 0 12px #111;
  margin: 20px 0;
  text-align: justify;
}

body.dark-mode .exp-item {
  background: rgba(0,0,0,0.8);
  border: 2px solid #0ff;
  box-shadow: 0 0 12px #0ff;
}

/* Zig-zag fix */
.exp-item:nth-child(odd) {
  left: 0; /* tempel ke garis */
}
.exp-item:nth-child(even) {
  left: 50%;
}

/* Tahun pojok kiri atas */
.exp-item .year {
  font-weight: bold;
  font-size: 16px;
  color: red;
  text-shadow: 0 0 8px red, 0 0 16px red;
  display: block;
  margin-bottom: 8px;
}

/* Judul */
.exp-item h3 {
  text-align: center;
  font-size: 18px;
  margin: 5px 0 12px 0;
  color: #111;
  text-shadow: 0 0 6px #111;
}
body.dark-mode .exp-item h3 {
  color: cyan;
  text-shadow: 0 0 6px cyan, 0 0 12px #0ff;
}

/* Isi paragraf */
.exp-item p {
  margin: 0;
  line-height: 1.5;
  text-align: justify;
}



/* Titik merah zig-zag */
.exp-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 18px;
  height: 18px;
  background: red;
  border-radius: 50%;
  box-shadow: 0 0 8px red, 0 0 16px red;
  z-index: 10;
}
.exp-item:nth-child(odd)::before {
  right: -9px; /* titik di kanan kotak kiri */
}
.exp-item:nth-child(even)::before {
  left: -9px; /* titik di kiri kotak kanan */
}



/* === SKILL TREE === */
.skills-section {
  margin: 80px auto;
  text-align: center;
  max-width: 1000px;
}
.skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: #000;
}
body.dark-mode .skills-section h2 {
  color: #0ff;
  text-shadow: 0 0 8px #0ff, 0 0 16px #00f;
}

.skill-box {
  border: 2px solid #111;
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  background: #fff;
  box-shadow: 0 0 12px #111, inset 0 0 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
body.dark-mode .skill-box {
  border: 2px solid #0ff;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 12px #0ff, inset 0 0 6px rgba(0,255,255,0.5);
}

.skill-box h3 {
  margin-bottom: 30px;
  font-size: 30px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill-chip {
  padding: 10px 20px;
  border-radius: 25px;
  background: #fff;
  border: 1px solid #111;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.skill-chip.active {
  background: #aaa;
}
body.dark-mode .skill-chip {
  background: rgba(0,255,255,0.2);
  border: 1px solid #0ff;
  color: #fff;
}
body.dark-mode .skill-chip.active {
  background: #ff0033;
  color: #fff;
}
/* ===== FIX HORIZONTAL SCROLL ===== */
html, body {
  overflow-x: hidden; 
}

#ocean-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: -1;            /* selalu di belakang */
  pointer-events: none;   /* biar klik nggak ketahan canvas */
}




body {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Saat halaman BARU dimuat */
body.preload {
  opacity: 0;
  transform: scale(1.3); /* lebih besar dulu → nanti zoom out */
}

/* Saat halaman keluar */
body.fade-out {
  opacity: 0;
  transform: scale(1.2); /* zoom in + fade out */
}

.page3-animate {
  opacity: 0;
  transform: translateY(60px); /* lebih jauh biar kerasa dramatis */
  transition: opacity 1.4s cubic-bezier(.25,.8,.25,1),
              transform 1.4s cubic-bezier(.25,.8,.25,1);
}

.page3-animate.show {
  opacity: 1;
  transform: translateY(0);
}





/* === RESPONSIVE PAGE 3 === */
/* Tablet & HP (max 1024px) */
@media (max-width: 1024px) {
  /* About Section */
  .about h1 {
    font-size: 42px;
  }
  .about p {
    font-size: 18px;
    line-height: 1.6;
    padding: 0 15px;
  }

  /* Profile */
  .profile-circle {
    width: 160px;
    height: 160px;
  }

  /* Timeline jadi 1 kolom */
  .timeline::before {
    left: 20px; /* garis pindah kiri */
  }

  .exp-item {
    width: 85%;              
    margin: 30px auto;       
    padding: 30px 25px;      
    text-align: left;
  }

  .exp-item:nth-child(even),
  .exp-item:nth-child(odd) {
    left: 0 !important;
  }

  .exp-item::before {
    left: -10px; /* titik merah nempel garis */
    right: auto;
  }

  .exp-item h3 {
    font-size: 18px;
  }

  .exp-item p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Skills */
  .skills-section h2 {
    font-size: 28px;
  }

  .skill-box {
    padding: 22px;
    margin: 20px 12px; /* kiri kanan agak dikecilin */
  }

  .skill-box h3 {
    font-size: 22px;
  }

  .skill-chips {
    gap: 10px;
  }

  .skill-chip {
    font-size: 14px;
    padding: 8px 18px;
    min-width: 105px; 
    text-align: center;
  }
}
/* === MOBILE THEME TOGGLE === */
@media (max-width: 768px) {
  /* Sembunyikan label text */
  .toggle-slider .label-text {
    display: none !important;
  }

  /* Sembunyikan slider background */
  .toggle-slider {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0;
  }

  /* Knob jadi tombol bulat */
  .toggle-slider .knob {
    position: static !important;
    transform: none !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* === Dark Mode Knob === */
  body.dark-mode .toggle-slider .knob {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0ff;
    box-shadow: 0 0 10px #0ff;
  }
  body.dark-mode .toggle-slider .knob span.icon {
    color: #0ff;
  }

  /* === Light Mode Knob === */
  body:not(.dark-mode) .toggle-slider .knob {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 0 0 10px #000;
  }
  body:not(.dark-mode) .toggle-slider .knob span.icon {
    color: #000;
  }

  /* Hover effect */
  .toggle-slider .knob:hover {
    transform: scale(1.1);
  }
}

/* === FIX MOBILE TIMELINE PADDING === */
@media (max-width: 600px) {
  .exp-item {
    width: calc(100% - 50px);   /* biar ada jarak kiri kanan */
    margin: 25px auto;
    padding: 20px 18px;
  }

  /* titik merah tetap nempel ke garis */
  .exp-item::before {
    left: -12px;
  }

  /* teks di dalam lebih kecil biar rapi */
  .exp-item h3 {
    font-size: 16px;
  }
  .exp-item p {
    font-size: 14px;
    line-height: 1.5;
  }

  .about h1 {
    font-size: 32px;
  }
  .about p {
    font-size: 16px;
  }

  .cv-btn {
    font-size: 14px;
    padding: 10px 18px;
  }

  .profile-circle {
    width: 130px;
    height: 130px;
  }

  .exp-title {
    font-size: 28px;
  }

  .skills-section h2 {
    font-size: 22px;
  }

  .skill-box {
    margin: 18px 8px;
    padding: 20px;
  }

  .skill-chip {
    font-size: 12px;
    padding: 6px 14px;
    min-width: 90px;
  }
}



