html, body {
  overflow-x: hidden;
}

body {
  position: relative;
}

#animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(-45deg, #0F2027, #203A43, #221754, #2a1a79);
  background-size: 600% 600%;
  animation: bgAnimation 5s ease infinite;

}



body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(-45deg, #0F2027, #203A43, #221754, #2a1a79);
  z-index: -2;
}

/* === Global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* === Warna teks dalam slide putih === */
.slide,
.slide * {
  color: #ffffff;
}

/* === Background & Partikel === */
#animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(-45deg, #0F2027, #203A43, #221754, #2a1a79);
  background-size: 600% 600%;
  animation: bgAnimation 5s ease infinite;
  z-index: -1;
}

@keyframes bgAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Spasi antar bagian === */
.top-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1.2rem;
}

/* === Wrapper Tombol Menu === */
.menu-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


.menu-btn:hover {
  transform: scale(1.5);
  box-shadow: 0 6px 16px rgba(59, 205, 238, 0.5);
}

.menu-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 210, 255, 0.7);
}

/* === Judul About Me dalam Persegi Panjang === */
/* === Persegi Panjang Judul About Me === */
/* === Persegi Panjang Horizontal About Me === */
.about-me-header-bar {
  width: 80%;
  max-width: 720px;
  height: 16px;
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  border-radius: 50px;
  margin: 20px auto 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-me-header-bar span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00d2ff;
  padding: 10px 40px;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}



/* === Jarak ke slide === */
.about-me-slider {
  margin-top: 2rem;
}


@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* === Top Navigation === */
.top-menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  position: relative;
}

.menu-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.8s;
}

.menu-btn:hover {
  transform: scale(1.1);
}

@keyframes slideDown {
  0% { transform: translate(-50%, -50px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* === Slider Container === */
.about-me-slider {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
  position: relative;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Slide 2: Data Diri === */
.slide-data p {
  background: white;
  color: black;
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
}

/* === Slide 3: Logo Floating === */
.tech-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4rem;
}


@keyframes floatUpDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes flipLogo {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

/* === Navigasi Panah === */
.nav-arrow {
  background: transparent;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* === Footer Watermark === */
.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* === Wrapper Menu Atas === */
.menu-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  animation: menuSlideUp 1s ease forwards;
}

@keyframes menuSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


@keyframes titlePop {
  from { opacity: 0; transform: scaleX(0.6); }
  to { opacity: 1; transform: scaleX(1); }
}

.animate-expand {
  transform-origin: center;
}

/* === Tombol Home Khusus dengan Ikon === */
.home-btn {
  background-color: white;
  color: #e3e3f4;
  font-size: 1rem;
}

.home-btn i {
  font-size: 1.1rem;
}

/* === Sekilas + Logo Tengah === */
.slide-header-center {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
}

.about-me-header {
  animation: fadeSlideUp 0.6s ease;
}

@keyframes fadeSlideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}



/* === Background & Partikel === */
#animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(-45deg, #0F2027, #203A43, #221754, #2a1a79);
  background-size: 600% 600%;
  animation: bgAnimation 5s ease infinite;
  z-index: -1;
}

@keyframes bgAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Partikel */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #0d1b2a;
}

/* Aktif Link */
.nav-btn.active {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
  padding: 8px 16px;
}

/* Kotak untuk judul Skills */
.skills-title-box {
  width: 100%;
  background-color: #0d1b2a;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
}

/* Skill Titles (Hard Skill & Soft Skill) */
.hard-skill-title {
  background: linear-gradient(to right, #12014f, #03376f);  /* Gradien hitam */
  color: white;
  font-size: 1.25rem;
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-align: center;
  position: absolute;
  top: 180px;     /* Jarak dari atas */
  left: 440px;    /* Jarak dari kiri */
  width: 210px;
  bottom: 550px;
  z-index: 1;
  font-family:'Montserrat', sans-serif;
  font-weight: bold;
}

.soft-skill-title {
  background: linear-gradient(to right, #12014f, #03376f);  /* Gradien hitam */
  color: white;
  font-size: 1.25rem;
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-align: center;
  position: absolute;
  top: 180px;     /* Jarak dari atas */
  right: 440px;    /* Jarak dari kiri */
  width: 210px;
  bottom: 550px;
  z-index: 1;
  font-family:'Montserrat', sans-serif;
  font-weight: bold;
}

/* Container Skill */
.skills-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  gap: 1rem;
  padding: 0 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* Jalur Skill */
.skill-track {
  width: 250px;
  height: 500px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-track h3 {
  margin-bottom: 10px;
  text-align: center;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: scroll-loop 35s linear infinite;
}


/* Animasi scroll vertikal untuk Hard Skill */
@keyframes scroll-vertical {
  0% {transform: translateY(0%);}
  100% {transform: translateY(100%);}
}



@keyframes scroll-loop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


/* Animasi scroll vertikal untuk Soft Skill (scroll dari atas ke bawah) */
.skill-track.soft-skill-track .skill-list {
  animation: scroll-loop 30s linear infinite;
}


.skill-item {
  background: linear-gradient(to bottom, #850175, #1135b6);
  border-radius: 20px;
  padding: 1rem;
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.skill-item .skill-name {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.skill-item .progress-container {
  width: 100%;
  background: #555;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-item .progress-bar {
  height: 100%;
  background: linear-gradient(to right, #06090c, #260641);
}

.skill-item .percent {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #ddd;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* ======================= RESPONSIVE MOBILE ======================= */
@media (max-width: 768px) {
  .menu-btn {
    padding: 10px 22px;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    color: #fff;

    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 210, 205, 0.3);
  }
  .menu-wrapper button {
    width: 100%;
    max-width: 90px;
    font-size: 0.8rem;
    padding: 10px 10px;
  }

  .menu-btn:nth-child(1) { order: 1; } /* About me */
  .menu-btn:nth-child(2) { order: 3; } /* Project */
  .menu-btn:nth-child(3) { order: 2; } /* Home */
  .menu-btn:nth-child(4) { order: 4; } /* Contact */
  .menu-btn:nth-child(5) { order: 5; } /* Produk */


  .menu-btn{
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
  }

  .menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.5);
  }

  .menu-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 210, 255, 0.7);
  }
  
  .skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    gap: 1rem;
    padding: 0 1rem;
    flex-wrap: wrap;
  }

  .skill-track {
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .skill-list {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    animation: scroll-horizontal 35s linear infinite;
  }

  .skill-track.soft-skill-track .skill-list {
    transform: translateX(50);
    animation: scroll-horizontal 30s linear infinite;
  }

  .skill-item {
    width: 140px;
    padding: 0.75rem;
  }

  @keyframes scroll-horizontal {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}
