* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* === Background === */
#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%; }
}

/* === Navigation === */
.top-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1.2rem;
}

.menu-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-btn {
  padding: 10px 22px;
  background: linear-gradient(to right, #00d2ff, #3a7bd5);
  color: #fff;
  border: none;
  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-btn:hover {
  transform: scale(1.2);
  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);
}

/* === Header Bar === */
.article-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;
}

.article-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;
}

@media screen and (max-width: 768px) {
  .menu-wrapper button {
    width: 100%;
    max-width: 100px;
    font-size: 0.9rem;
    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; } /* article */
}

/* === article Search Section === */
.article-search-section {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.search-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Search Input (Kiri) === */
.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff11;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #00d2ff55;
  box-shadow: 0 0 10px rgba(0,210,255,0.15);
}

.search-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
}

.search-input-wrapper button {
  background: none;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.search-input-wrapper button:hover {
  color: #00d2ff;
}

/* === Filter (Kanan) === */
.search-filter-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-filter-wrapper select {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(to right, #5100ff, #2da8d8);
  color: rgb(143, 143, 145);
  font-weight: bold;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-filter-wrapper select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0,210,255,0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
  .article-search-section {
    flex-direction: column;
    align-items: center;
  }

  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .search-filter-wrapper {
    justify-content: center;
  }
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.article-preview {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid #00d2ff;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
}

.article-preview:hover {
  background: rgba(0, 210, 255, 0.05);
}

.article-preview h2 {
  margin-bottom: 0.5rem;
  color: #00d2ff;
}

.article-preview .meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.7rem;
}
