.experience {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  width: 100%;
  height: auto;
}

/* navbar */
/*========navbar==========*/
.experience .group {
  display: grid;
  width: 100%; /* lebar sesuai Union.svg */
  height: auto; /* tinggi sesuai Union.svg */
  place-items: center;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.experience .union,
.experience .nav{
  grid-area: 1/1;
}


.experience .union {
  
  width: 60%;
  height: auto;
  max-width: 90%;
  justify-content: center;
  align-items: center;
  z-index: 0;
  margin-top: 3%;
}

.experience .nav {
  display: flex;
  justify-content: center;  /* tengah secara horizontal */
  align-items: center;      /* tengah vertikal */
  gap: 6%;                /* jarak antar menu */
  flex-wrap: wrap;          /* agar menu turun otomatis di layar sempit */
  margin: 0 auto;
  width: 60%;               /* fleksibel sesuai container */
  max-width: 1200px;        /* optional agar tidak terlalu lebar di desktop */
  transform: translateY(20%)
  translateX(-1%);
}


.experience .text-wrapper-4 { /*project*/
  width: 9.19%;
  height: 25.44%;
  font-size: 1.5vw;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #000000;
  line-height: normal;
  z-index: 3;
  transform: translateX(13%);
}

.experience .text-wrapper-5 { /*hobi*/

  width: 10.74%;
  height: 25.44%;
  font-size: 1.5vw;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #000000;
  line-height: normal;
  z-index: 3;
  transform: translateX(-13%);
}

.experience .text-wrapper-6 { /*experience*/

  width: 14.51%;
  height: 25.44%;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  font-size: 1.5vw;
  color: #ffffff;
  line-height: normal;
  z-index: 3;
}

.experience .text-wrapper-7 { /* about me */

  width: 12.51%;
  height: 25.44%;
  font-size: 1.5vw;
  min-width: fit-content;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #000000;
  line-height: normal;
  z-index: 3;
}

.experience .logo-link{
  display: inline-block; /* penting agar bisa punya ukuran */
  width: 15%; /* sama seperti .logo */
  height: auto;
  z-index: 3;
}
.experience .logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/*======*/


.main-content{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/*==============Main Title==============*/
.main-content .container-1 {
  width: 100%;
  height: 30%;
  padding-top: 10%;

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

.container-1 .my-experience {
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: transparent;
  font-size: 10vw;
  letter-spacing: 0;
  line-height: normal;
}


.container-1 .span {
  color: #ecd2d1;
}
.container-1 .text-wrapper-3{
  font-size: 3vw;
  color: #000000;
}
/*========================*/




/*================================container 2================ */
/* General Layout */
.main-content .container-2 {
  position: relative;    /* ini penting */
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40%;

}



/*=========================container background slider ========================*/

.container-2 .slider-background {
  position: absolute;
  top: 0;                /* tambahkan ini */
  left: 0;               /* tambahkan ini */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: translateY();
  aspect-ratio: 1/3;
}

.slider-background .vector-6 {
  width: 100%;
  height: 20%;
  object-fit: cover;
  z-index: 0;
  transform: translateX(0%) translateY(-72%);
}

.slider-background .vector-7 {
  transform: translateX(0%) translateY(-172%);
  width: 100%;
  height: 20%;
  object-fit: cover;
  z-index: 1;
}

.slider-background .union-2 {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-position: top;    /* ✅ mulai crop dari atas */
  display: block;
  object-fit: cover;    /* ✅ jaga bentuk, tidak terpotong */
  position: relative; /* pastikan tidak absolute agar ikut alur layout */
  z-index: 3;
  transform: translateY(-5%);
}

.slider-background img,
.slider-background div {

  width: 100%;
  height: auto;
}

/* ================================================ SLIDER img ================================== */
/* Container utama supaya gampang atur layout */
.container-2 .experience-main-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;   /* konten rata tengah */
  justify-content: flex-start;
  width: 100%;
  height: auto;
  z-index: 3;
  transform: none;
}

/* Semua section di dalamnya */
.container-2 .experience-main-container section {
  width: 100%;
  height: auto;
}
/* Kontainer slider */
.experience-main-container .experience-slider-container {
  z-index: 5; /* di atas background */
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 5%;
transform: translateX(0%);
text-align: center;
}

/* Judul Highlights */
.experience-slider-container h2{
  font-size: 5vw;
  font-weight: 700;
  margin-bottom: 10%;
  color: #333;
  justify-content: center;
}

.experience-slider-container .experience-slider-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  
}

.experience-slider {
  display: flex;
  width: 100%;
  height: auto; /* biarkan menyesuaikan isi */
  transition: transform 0.5s ease;
  justify-content: start; /* biar konten rata tengah */
  align-items: stretch; /* biar semua slide punya tinggi seragam */
}

.experience-slider .slide {
  position: relative;
  flex: 0 0 calc(25% - 20px); /* 4 gambar per tampilan, dengan jarak 20px total */
  margin: 10px;
  border-radius: 12px;
  width: 100%;
  overflow: visible;
  aspect-ratio: 2 / 3;
   
  
}

.experience-slider img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: inherit;
}

.experience-slider-wrapper .button{
  width: 100%;
  height: auto;
  display: flex;
  padding-top: 5%;
  justify-content: center;
  padding-bottom: 5%;
  gap: 10%;
}
.slider-btn {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2vw;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 5;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Slide container */
/* Slide wrapper */




/* Overlay link */
.slide .overlay {
  position: absolute; /* wajib agar bisa menumpuk di atas gambar */
  transform: translateY(-0%);
  left: 0px;
  width: 100%;
  height: auto;
  color: #fff;
  padding: 20px 15px;
  font-size: 2vw;
  font-weight: bold;
  text-decoration: none;
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 0 0 12px 12px;
  text-align: left;
}
.slide:hover img {
  filter: brightness(70%);
}

.slide:hover .overlay {
  transform: translateY(-20%);     /* naik ke atas */
  opacity: 1;    /* fade in */
}




/*======================== container 3 ====================*/
/* ===== CARD LIST (Past & Latest) ===== */
.experience .container-3{
  width: 100%;
  height: 30%;
  display: flex;
  flex-direction: column;
  transform: translateY(-0%);
}
/* Background elemen (biar di belakang slider) */
.slider-background {
  top: 0;
  left: 50%;
  width: 100%;
  height: 25%; /* sesuaikan tinggi background */
  z-index: 1;
}

.slider-background div {

  width: 100%;
  height: auto;
}

.container-3 .past-experience,
.container-3 .latest-experience {
  display: flex;
  transition: transform 0.5s ease;
  flex: 1;
  gap: 30px;   /* jarak antar card */
  width: 100%;
  margin-top: 30px;
  margin: 5% 0; /* beri jarak atas & bawah dari tombol */
  transform: translateX(-0%);
}

/* Section Titles */
.container-3 .experience-section h2 {
  font-size: 5vw;
  font-weight: 700;
  margin-bottom: 0%;
  padding-top: 5%;
  color: #333;
  justify-content: center;
  text-align: center;
}

.experience-cards-wrapper {
  display: flex;
  flex-direction: column; 
  align-items: center;
  position: relative;
  overflow: hidden;
  left: 0px;
}

.experience-card {
  flex: 0 0 calc(95% / 3 - 20px); /* 3 card per row */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 2vw;
  margin: 0.7%;
  background: #fafafa;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
  height: 30%;
  width: 20%;
  aspect-ratio: 1/1.3;
}

.experience-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 12px;
}

.experience-card h3 {
  font-size: 2vw;
  font-weight: bold;
  margin: 10px 0;
}

.experience-card p {
  font-size: 1vw;
  color: #777;
  padding-bottom: 10%;
}

.experience-card button {
  transform: translateY(00%);
  background: #ddadad;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  justify-content: center;
  text-align: center;
  text-justify: center;
  font-size: 1vw;
  width: 100%;
  height: 8%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.experience-card button:hover {
  background: #c48a8a;
}

/* Letakkan tombol dalam 1 baris */
.card-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Card navigation button */
.card-btn {
  background: transparent;
  color: #ddadad;
  border: none;
  font-size: 3vw;
  cursor: pointer;
  padding: 2%;
  border-radius: 50%;
  z-index: 5;  
}



/* Hover effect */

.card-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.card-dots span.active {
  background: #ddadad;
}

.dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
/* Animasi untuk efek keluar */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Animasi untuk efek masuk */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
