body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* background-color: rgb(9, 3, 25); */
  background: linear-gradient(150deg, #08080e, #081f4e);
  margin: 0;
  overflow-x: hidden;
}


* {
  box-sizing: border-box;
}

#about {
  scroll-margin-top: 110px;
}

html {
  scroll-behavior: smooth;
}


/* loading */
.topnav {
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/* ================== PROFILE SECTION ================== */
.profile-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}


/* WRAPPER */
.profile {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* LEFT CONTENT */
.left {
  flex: 1;
}

.left h1 {
  font-size: 56px;
  margin: 0;
  line-height: 1.2;
}

.left h3 {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 400;
  color: #d0d0d0;
}

/* TYPING TEXT */
.typing-text {
  color: #fff;
  font-weight: 800;
}

/* CTA BUTTONS */
.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CV BUTTON */
.btn-cv {
  background: #ffd000;
  color: #000;
}

.btn-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 208, 0, 0.4);
}

/* CONNECT BUTTON */
.btn-connect {
  border: 2px solid #fff;
  color: #fff;
}

.btn-connect:hover {
  background: #fff;
  color: #000;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 30px;
  display: flex;
  gap: 14px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #ffd000;
}

/* RIGHT IMAGE */
.right {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.right img {
  max-width: 380px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ================== MOBILE ================== */
@media (max-width: 768px) {
  .profile {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .left h1 {
    font-size: 38px;
  }

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

  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-icons {
    justify-content: center;
  }

  .right img {
    max-width: 260px;
  }
}



/* ========================= PEMBATAS ============================= */

/* pembatas */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 25px;
}

.section-title {
  color: white;
  margin: 0;
}

.section-divider {
  width: 90%;
  margin-top: 40px;
  margin-bottom: -10px;
}

/* STATE AWAL (sembunyi) */
.section-header,
.section-divider {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

/* STATE SAAT MUNCUL */
.section-header.show,
.section-divider.show {
  opacity: 1;
  transform: translateY(0);
}



/* ================= NAVIGASI ================= */

.topnav {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translate(-50%, -150%);
  width: calc(100% - 50px);
  padding: 10px 19px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease, opacity 0.6s ease;

  opacity: 0;
  z-index: 9999;
}


.topnav.scrolled {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(255, 255, 0, 0.15);
}

/* --- glass navbar --- */
.topnav {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 5px); 
  max-width: 1300px;      

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 25px;
  border-radius: 1px;

  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}



/* sembunyi / geser ke atas */
.topnav.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.topnav.hide {
  transform: translate(-50%, -150%);
  opacity: 0;
}



/* --- NAV LINK BASE --- */
.topnav a,
.dropbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;

  font-family: inherit;
  font-size: 17px;
  font-weight: normal;
  color: white;

  padding: 14px 16px;
  margin: 0 10px;

  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}



/* ----------------------------------------------------------------------- */

/* --- UNDERLINE ONLY --- */
.nav-menu a::after,
.dropbtn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 70%;
  height: 3px;
  background: yellow;
  border-radius: 2px;

  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.dropdown:hover .dropbtn::after,
.dropdown.active .dropbtn::after {
  transform: translateX(-50%) scaleX(1);
}

/* aniamasi menu */
.nav-menu a,
.dropbtn {
  opacity: 0;
  transform: translateY(-20px);
  transition:
    transform 0.45s cubic-bezier(.4,0,.2,1),
    opacity 0.35s ease;
}

.topnav.show .nav-menu a,
.topnav.show .dropbtn {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu a:nth-child(1) { transition-delay: 0.05s; }
.nav-menu a:nth-child(2) { transition-delay: 0.12s; }
.nav-menu a:nth-child(3) { transition-delay: 0.19s; }
.nav-menu a:nth-child(4) { transition-delay: 0.26s; }

.dropdown .dropbtn {
  transition-delay: 0.33s;
}


/* ----------------------------------------------------------------------- */

/* --- NAV MENU --- */
.nav-menu {
  display: flex;
  align-items: center;
}

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: yellow;

  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger:active {
  transform: rotate(90deg) scale(1.1);
}


/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

/* tombol */
.dropbtn {
  position: relative;
  background: none;
  border: none;
  color: white;
  font-size: 17px;
  cursor: pointer;
  padding: 14px 16px;
}

/* underline */
.dropbtn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  background: yellow;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

/* garis tetap hidup selama dropdown aktif */
.dropdown:hover .dropbtn::after,
.dropdown.active .dropbtn::after {
  width: 60%;
  
}

/* dropdown menu */
.dropdown-content {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
  z-index: 999;
  
}

/* tampil */
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* item menu */
.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: white;
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}



/* --- ARROW --- */
.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid white;
}

/* --- MOBILE --- */


/* mobile */
/* desktop */
@media (min-width: 769px) {
  .hamburger {
    transition: transform 0.3s ease;
  }

  .hamburger:active {
    transform: rotate(90deg);
  }
}

/* mobile */
@media (max-width: 768px) {
  .hamburger {
    transition: none;
  }
}


@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-menu.show {
    max-height: 500px;
  }

  /* dropdown mobile */
  .dropdown-content {
    position: relative;
    box-shadow: none;
    padding-left: 20px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .dropdown-content.show {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}


/* ====================== PARALLAX SECTION ======================== */

/* PARALLAX SECTION */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  min-height: 60svh;
}

/* BACKGROUND */
.parallax-bg {
  position: absolute;
  inset: 0;
  background-image: url("../image/bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;

  will-change: transform;
  transform: translateZ(0);
}

/* profil section */
/* PROFILE ANIMATION */
.profile {
  margin-top: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.profile.show {
  opacity: 1;
  transform: translateY(0);
}

/* LEFT CONTENT */
.profile .left h1,
.profile .left h3 {
  margin: 0;
}

/* PROFILE IMAGE DESKTOP */
.profile .right img {
  width: 290px;
  height: 290px;
  object-fit: cover;
  border-radius: 50%;
}


/* responive */

@media (max-width: 768px) {

  .parallax-bg {
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}


  .parallax-section {
    min-height: auto;
  }

  /* PROFILE LAYOUT MOBILE */
  .profile {
    flex-direction: row;
    align-items: center;
    padding: 80px 6% 200px;
    gap: 14px;
    position: relative;
    left: -10px; 
  }

  .profile .left h1 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .profile .left h3 {
    font-size: 0.9rem;
    opacity: 0.85;
  }

  .profile .right img {
    width: 89px;
    height: 89px;
    position: relative;
    left: -10px; 
  }
}



/* Matikan hover img (mobile) */
@media (max-width: 768px) {
  .profile .right img:hover {
    transform: none;
  }
}


/* ============================= HEADLINE & IMG ============================================ */

/* typing text */
.typing-text {
  display: inline;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

.typing-cursor {
  display: inline-block;
  margin-left: 3px;
  font-weight: 400;
  color: yellow;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


/* Content 1 */
.profile {
  display: flex;
  height: 100vh;
  
}

.box {
  padding: 25px;          
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  max-height: 1000px;
}


/* KIRI - NAMA */
.left {
  flex: 1;
  display: flex;
  align-items: center;      
  justify-content: center;  
}

/* posisi huruf */
.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 50px; 
  margin-top: 5px;
}


/* Control huruf */
.left h1 {
  font-size: 52px;
  color: white;
  margin: 0;
}

.left h3 {
  margin-top: 6px;
  font-size: 16px;
  color: #facc15;
  font-weight: 500;
}


/* KANAN - FOTO */
.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
}


.profile .right img {

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}



/* mobile version-----------------------/ */
@media (max-width: 768px) {

  .profile {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
  }

/* img mobile normal */
  .right {
    order: -1; 
    margin-bottom: 10px; 
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3200px;   
    height: auto;
  }

  .right img {
    width: 150px !important;
    max-width: none !important;
    height: 150px !important;
  }


  /* TEKS */
  .left {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .left h1 {
    font-size: 36px;
  }

  .left h3 {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* CTA + Sosmed di bawah teks */
  .cta-buttons {
    order: 1; /* pastikan setelah teks */
    display: flex;
    flex-direction: column; /* vertikal */
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    align-items: center;
  }

  .social-icons {
    order: 2; /* di bawah CTA */
    display: flex;
    gap: 15px;
    justify-content: center;
  }

  /* tombol full-width versi mobile */
  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  /* optional: icon sosmed sedikit lebih besar */
  .social img {
    width: 40px;
    height: 40px;
  }
}


/* ============================== About =================================== */

/* ANIMASI AWAL (sebelum kena observer) */
.box {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: 
    transform 0.6s ease,
    opacity 0.6s ease,
    box-shadow 0.6s ease,
    background-color 0.6s ease;
}

.about-skill {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1230px; 
  margin: 30px auto;
  padding: 0 20px;
  margin-top: -40px;
}


/* BOX UMUM */
.box {
  flex: 1;
  /* background: #111; */
  color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  max-height: 1000px;
  
}


.box h2 {
  margin-bottom: 15px;
  color: #4da3ff;
}

/* PROFIL */
.profile p {
  line-height: 1.7;
  color: #ddd;
}


/* horizon about 3 boxes */
.about-box-list {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch; 
  margin-bottom: -40px;
}

.small-box {
  flex: 1;               
  min-height: 120px;    
  padding: 20px;
  margin-bottom: 25px;

  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* background: rgba(253, 251, 251, 0.05); */
  border-radius: 15px;
  color: white;
  text-align: center;
  backdrop-filter: blur(6px);
}

.small-box i {
  font-size: 22px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.small-box .highlight {
  font-size: 20px;
  font-weight: 600;
}

.small-box .label {
  font-size: 13px;
  opacity: 0.75;
}


/* fade */
.small-box,
.certificate-card,
.certificate-year,
.project-timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.small-box.active,
.certificate-card.active,
.certificate-year.active,
.project-timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}


/* SKILLS */
.skill {
  margin-bottom: 18px;
}

.skill span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

/* BAR */
.bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  will-change: width;
  transform: translateZ(0);
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  border-radius: 15px;
  /* transition: width 1s ease;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); */

}


.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.percent {
  font-size: 13px;
  color: #4da3ff;
  font-weight: 600;
}

/* other skills */
.other-skills {
  margin-top: 30px;
}

.other-skills h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #4da3ff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(77, 163, 255, 0.15);
  color: #4da3ff;
  border: 1px solid rgba(77, 163, 255, 0.4);
  cursor: default;
  transition: all 0.3s ease;
}



.box.skills {
  padding-bottom: 45px; 
   margin-top: -25px;
}

/* border/shadow color box */
.box.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  box-shadow: 0 5px 10px rgba(77, 163, 255, 0.6);
  border: 2px solid rgba(58, 167, 240, 0.8);

  background-color: #081f4e;
  color: #fffbfb;
}



/* Hoover */
.box {
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    background-color 0.45s ease;
}


.small-box {
  transition:
    transform 0.4s cubic-bezier(.4,0,.2,1),
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}

.tag {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}


/* Mobile */
@media screen and (orientation: landscape) and (max-width: 768px) {
  .parallax-section,
  .profile-section,
  .profile {
    min-height: auto !important;
    height: auto !important;
  }
}



@media (max-width: 768px) {

  .box.profile {
    width: 100%;            
    padding: 15px 15px;    
    margin: 10px auto;     
    margin-top: 40px;
    margin-bottom: 0px;
    margin-left: 10px;
  }

  .box.profile p {
    font-size: 14px;       
    line-height: 1.5;      
    text-align: justify;   
  }


  .about-skill{
    margin-top: -30px;
    margin-bottom: 50px;
  }
  

  .about-box-list {
   flex-direction: column;
   gap: 5px; /* lebih mepet */
  }

  .small-box {
    aspect-ratio: unset;   
    min-height: 120px;     
  }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  .section-title {
    color: white;
    margin: 0;
    font-size: 25px;
  }

  .section-divider {
    width: 90%;
    margin-top: 40px;
    margin-bottom: -10px;
  }

}


/* ================= ICON SECTION ================= */

.icon-section {
  padding: 90px 8%;
  text-align: center;
  /* background: linear-gradient(135deg, #090319, #081f4e); */
  margin-top: -60px;
  margin-bottom: -60px;
}

.icon-title {
  font-size: 2rem;
  margin-bottom: 40px;
  margin-top: -20px;
  color: #fff;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: auto;
}

.icon-item {
  height: 80px;
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 5px 10px rgba(77, 163, 255, 0.6);
  border: 2px solid rgba(58, 167, 240, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.icon-item img {
  width: 50px;
  height: 50px;
}

.icon-item[title="SQL"] img {
  width: 260px !important;
  height: 26px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="mysql"] img {
  width: 260px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="figma"] img {
  width: 260px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="chatgbt"] img {
  width: 260px !important;
  height: 50px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="ps"] img {
  width: 260px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="webtoon"] img {
  width: 260px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="Skilvul"] img {
  width: 80px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="DQLab"] img {
  width: 70px !important;
  height: 60px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="W3Schools"] img {
  width: 100px !important;
  height: 90px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item[title="UTY"] img {
  width: 55px !important;
  height: 70px !important;
  max-width: none;
  object-fit: contain;
}

.icon-item {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
}

.icon-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.icon-item:hover {
  /* transform: translateY(-6px); */
  box-shadow: 0 10px 25px rgba(77, 163, 255, 0.8);
}


/* ------------------------------------------ */



/* ================= EDUCATION ================= */

/* ===== TIMELINE WRAPPER ===== */
.timeline {
  position: relative;
  width: 100%;
  padding: 80px 0;
}

/* GARIS TENGAH */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 40px; /* makin besar = makin pendek ke bawah */
  left: 50%;
  width: 4px;
  background: #facc15;
  transform: translateX(-50%);
  margin-top: 60px;
}


/* POSISI KIRI */
.timeline-item.left {
  left: 0;
  text-align: right;
  margin-top: -5px;
  
}


/* POSISI KANAN */
.timeline-item.right {
  left: 50%;
  text-align: left;
  margin-top: -5px;
}

/* BOX ISI */
.timeline-box {
  background: #081f4e;
  padding: 35px;
  width: 100%;       
  max-width: 520px;   
  border-radius: 15px;
  box-shadow: 0 5px 10px rgba(77, 163, 255, 0.6);
  border: 2px solid rgba(58, 167, 240, 0.8) !important;
  
}

.timeline-box h1,
.timeline-box h2 {
  color: #ffffff;
}

.timeline-box p {
  color: #9a9898;
}


/* TITIK KUNING */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #facc15;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* TITIK POSISI */
.timeline-item.left::after {
  right: -7px;
}

.timeline-item.right::after {
  left: -7px;
}

/* JUDUL & TEKS */
.timeline-box h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.timeline-box p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}


/* Animated */
/* animasi scroll */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 30px 50px;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-box {
  border: 2px solid transparent; 
  transition: 
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}



.timeline-box {
  transition:
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}



/* Moblie layout */
.timeline-box {
  position: relative; 
  overflow: hidden;   

  transition:
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}


/* Mobile Resposive Timelinde */

@media (max-width: 768px) {

  /* timeline wrapper */
  .timeline {
    padding: 40px 0;
    margin-top: -50px;
  }

  /* garis tengah pindah ke kiri */
  .timeline::before {
    left: 20px;
    transform: none;
    width: 3px;
  }

  /* item full width */
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 20px 20px 20px 60px;
    text-align: left !important;
  }

  /* box isi full */
  .timeline-box {
    max-width: 100%;
    padding: 25px;
  }

  /* titik kuning ikut ke kiri */
  .timeline-item::after {
     left: 14px !important;
     right: auto !important;
  }


.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

  .timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

  .timeline-box h1 {
    font-size: 22px;
  }

  .timeline-box p {
    font-size: 14px;
  }
}



/* ================= WORK EXPERIENCE ================= */

.experience-section {
padding: 40px 5%;
}


.experience-list {
display: flex;
flex-direction: column;
gap: 40px;
}


.experience-card {
  --hoverY: 0px;
  --hoverScale: 1;

  display: flex;
  gap: 30px;
  padding: 25px;
  border-radius: 15px;
  background: #081f4e;
  border: 2px solid transparent;

  transform:
    translateY(20px)
    scale(0.98)
    translateY(var(--hoverY))
    scale(var(--hoverScale));

  opacity: 0;

  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    box-shadow 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease;
}


/* Saat masuk viewport */
.experience-card.show {
  transform:
    translateY(0)
    scale(1)
    translateY(var(--hoverY))
    scale(var(--hoverScale));

  opacity: 1;
  box-shadow: 0 5px 10px rgba(77, 163, 255, 0.6);
  border: 2px solid rgba(58, 167, 240, 0.8) !important;
  background-color: #081f4e;
}



.experience-card {
  position: relative;
  overflow: hidden;


  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.experience-card a {
  pointer-events: none;
}


.exp-logo img {
width: 100px;
height: 100px;
object-fit: contain;
margin-bottom: -50px;
}

.exp-content h3 {
margin: 0;
font-size: 1.2rem;
color: white;
}

.exp-company {
display: block;
font-weight: 600;
margin-top: 4px;
color: white;
}


.exp-date {
display: block;
font-size: 0.85rem;
opacity: 0.7;
margin-bottom: 10px;
color:  #9a9898;
}


.exp-content p {
margin: 0;
line-height: 1.6;
color: white;
}



/* RESPONSIVE */
@media (max-width: 768px) {
.experience-card {
flex-direction: column;
align-items: flex-start;
}

.experience-section{
  margin-top: -25px;
  margin-bottom: -30px;
}
}



/* ======================= MY PROJECT/CERITICATE ======================== */


.projects {
  padding: 80px 10%;
  text-align: center;
  margin-top: -50px;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 365px);
  justify-content: center;
  gap: 30px;
}


.project-card {
  background-color: #081f4e;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;

  box-shadow: 0 5px 10px rgba(77, 163, 255, 0.6);
  border: 2px solid rgba(58, 167, 240, 0.8) !important;

  /* animation state */
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.4s ease;
}

/* --- CARD APPEAR --- */
.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* fade */


/* --- IMAGE --- */
.project-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  transition: transform 0.35s ease;
}



/* --- TEXT --- */
.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

.project-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 15px;
}

/* --- LINK --- */
.project-link {
  margin-top: auto;
  padding: 12px 0;
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}


/* --- PROJECTS --- */
.projects {
  padding: 80px 10%;
  text-align: center;
  margin-top: -50px;
}

/* --- GRID --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 365px);
  justify-content: center;
  gap: 30px;
}



/* --- IMAGE --- */
.project-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  transition: transform 0.35s ease;
}


/* --- TEXT --- */
.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

.project-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 15px;
}

/* --- LINK --- */
.project-link {
  margin-top: auto;
  padding: 12px 0;
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* --- PROJECTS MOBILE --- */
@media (max-width: 768px) {
  .projects {
    padding: 50px 5%;
    margin-top: -50px;
  }

  /* GRID: 1 kolom, fleksibel */
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* CARD: full width */
  .project-card {
    padding: 18px;
    border-radius: 16px;

  }

  /* IMAGE: lebih tinggi supaya proporsional */
  .project-card img {
    height: 150px;
  }

  /* TEXT */
  .project-card h3 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* LINK */
  .project-link {
    font-size: 14px;
  }
}


/* ----------------------------------------------- */

/*BTN */
.single-btn-section {
  padding: 10px 8%;
  margin-top: -50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-btn {
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #3aa7f0;
  box-shadow: 0 10px 25px rgba(58, 167, 240, 0.45);
  transition: all 0.3s ease;
}

/* Hover effect */
.single-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(58, 167, 240, 0.65);
}

/* Fade Scroll Animation */
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {

  .single-btn-section {
    padding: 20px 5%;
    margin-top: -20px; 
    flex-direction: column; 
  }

  }



/* ============= contatc ====================== */

.contact-split-section {
  padding: 100px 8%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: -70px;
}

/* CONTACT BOX */
.contact-box,
.social-box {
  padding: 40px 35px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* TITLES */
.contact-box h2,
.social-box h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 6px;
}

.contact-box p,
.social-box p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 26px;
  color: #ddd;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-form textarea {
  resize: none;
}

/* BUTTON */
.contact-form button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3aa7f0, #4facfe);
  box-shadow: 0 12px 30px rgba(58, 167, 240, 0.55);
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(58, 167, 240, 0.75);
}

/* SOCIAL */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-item {
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.social-item:hover {
  transform: translateX(6px);
  background: rgba(58, 167, 240, 0.35);
}

@media (max-width: 768px) {
  .contact-split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* pop up */
.popup-success {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.popup-success.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  padding: 30px 35px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: all 0.4s ease;
}

.popup-success.show .popup-box {
  transform: scale(1);
}

.popup-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.popup-box button {
  padding: 10px 26px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #3aa7f0;
  color: #fff;
  box-shadow: 0 10px 25px rgba(58, 167, 240, 0.5);
  transition: all 0.3s ease;
}

.popup-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(58, 167, 240, 0.7);
}

/* contactt tittle */

.contact-title-section {
  padding: 60px 8%;
  text-align: center;
  color: #fff;
  margin-bottom: -100px;
  
}

/* TITLE */
.contact-title-section h2 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* SUBTITLE / DESCRIPTION */
.contact-title-section p {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.5;
}

/* FADE SCROLL */
.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

.fade-scroll.show {
  opacity: 1;
  transform: translateY(0);
}



/* ================= FOOTER ================= */

.footer {
  margin-top: 50px;
  padding: 20px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #081f4e, #040b1f);

}

.footer-copy {
  font-size: 0.9rem;
  color: #b5c7ff;
  opacity: 0.8;
}


@media (max-width: 480px) {
  .footer-title {
    font-size: 1.6rem;
  }

  .footer-social a {
    font-size: 1.5rem;
  }
}




/* clean landscape */
@media screen and (orientation: landscape) and (max-width: 768px) {
  .profile {
    min-height: 100vh;
    padding: 40px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .left h1 {
    font-size: 28px;
  }

  .left h3 {
    font-size: 13px;
    text-align: center;
  }

  .right img {
  width: 260px;
  max-width: none;
  
  }

}

@media screen and (orientation: landscape) and (max-width: 768px) {
  .right img {
    width: 160px !important;
    height: 160px !important;
    transform: translateY(-30px);
    pointer-events: none; 
  }
}


@media screen and (orientation: landscape) and (max-width: 768px) {
  .typing-text,
  .parallax-bg {
    animation: none !important;
  }

  .profile {
    text-align: left;
    margin-top: 100px;
  }

  .cta-buttons {
    justify-content: flex-start;
    margin-top: 10px; 
  }
}










