.hobbies {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  position: relative;
  z-index: 0;
  gap: 20vh;
}

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

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


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

.hobbies .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(16%)
  translateX(-1%);
}


.hobbies .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%);
}

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

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

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

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

.hobbies .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;
}

.hobbies .logo-link{
  display: inline-block; /* penting agar bisa punya ukuran */
  width: 15%; /* sama seperti .logo */
  height: auto;
  z-index: 3;
}
.hobbies .logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/*conten 2 */
.hobbies .component {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
  gap: 10%;
}

/* ================ Box-left =========== */
.component .box-left{
  display: flex;
  flex-direction: column;
  width: 40%;
  height: auto;
  gap: 10%;
  align-items: flex-end;       /* ini buat semua konten flex rata kanan */
  text-align: right;           /* buat teks di dalamnya rata kanan */
}

.hobbies .my-hobbies {
  width: 100%;
  height: auto;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: transparent;
  font-size: 4vw;
  margin: 1%;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.hobbies .text-wrapper {
  color: #000000;
}

.hobbies .span {
  color: #ddadad;
}

.hobbies .div {
  width: 100%;
  height: auto;
  justify-content: right;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  text-align: right;
  color: #000000;
  font-size: 3vw;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.hobby-item {
  text-align: right;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  font-size: 3vw;
  color: #000000;
  margin-bottom: 1%;
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.hobby-item:hover {
  color: #DDADAD;
  border-bottom: 2px solid #DDADAD;
}


/*========konten kanan======*/
.hobbies .box-right {
  display: grid;
  width: 60%;
  height: 100%;
}

.hobbies .rectangle,
.hobbies .rectangle-2{
  grid-area: 1/1;
}


.hobbies .rectangle {
  width: 100%;
  height: 800px;
  border-radius: 100px 0 0 0;
  box-shadow: -5px -10px 4px #00000040;
  background: linear-gradient(
    180deg,
    rgba(236, 210, 209, 1) 35%,
    rgba(221, 173, 173, 1) 100%
  );
}

.hobbies .rectangle-2 {
  width: 100%;
  height: 100%;
  border-radius: 100px 0 0 0;
  overflow: hidden;   /* biar gambar tetap di dalam frame pink */
}

.hobbies .rectangle-2 #hobbyPreview {
  width: 100%;
  height: 800px;
  object-fit: cover;   /* gambar isi penuh area pink */
  transition: opacity 0.4s ease-in-out; /* animasi halus */
}


.hobbies .img {
  width: 57.02%;
  height: 90.22%;
  top: -29.11%;
  left: -79.53%;
  object-fit: cover;
}

/*background*/
.hobbies .ellipse {
  position: absolute;
  top: 184px;
  left: 74px;
  width: 148px;
  height: 148px;
  background-color: #b6c5ca4c;
  border-radius: 74px;
}

.hobbies .ellipse-3 {
  position: absolute;
  top: 293px;
  left: 225px;
  width: 78px;
  height: 78px;
  background-color: #c7c0b64c;
  border-radius: 39px;
}

.hobbies .ellipse-5 {
  position: absolute;
  top: 224px;
  left: 264px;
  width: 57px;
  height: 57px;
  background-color: #b6c5ca4c;
  border-radius: 28.5px;
}

 /* 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;
  }
}

/* ================= RESPONSIVE FIX ================= */
/* ================= MOBILE ================= */
@media (max-width: 767px) {

  .hobbies{
    height: 100%;
    gap: 10vw;
  }
  .hobbies .component{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 0;
  }

  .hobbies .my-hobbies {
    gap: 10%;
  }

  .component .box-left{
    height: 30%;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 5%;
  }

  .component .div,
  .component .hobby-item {
    align-items: center;
    text-align: center;
  }

  .component .hobby-item{
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
  }
  .component .hobby-item:hover{
    color: #ddadad;
    border-bottom: 2px solid #DDADAD;

  }

  .component .box-right{
    width: 100%;
    height: 70%;
    min-height: 30%;
  }

  .component .rectangle,
  .component .rectangle-2 {
    border-radius: 100px 100px 0px 0px;
    height: 100%;
    min-height: 30%;
  }

  .component .hobby-preview{
    min-height: 30%;
  }
  .ellipse, .ellipse-3, .ellipse-5 {
    display: none !important;
  }
}

@media (max-width: 466px) {
  .component .rectangle,
  .component .rectangle-2 {
    border-radius: 20px 20px 0px 0px;
    height: 100%;
    min-height: 30%;
  }
  .component{
    width: 100%;
    height: 100%;
  }
    .component .box-left{
    height: 30%;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 5%;
  }
    .component .hobby-preview{
    height: 100%;
    width: 100%;
  }
}