/* Global */
.global {
  background-image: linear-gradient(to bottom, #0f0c29, #302b63, #24243e) !important;
}
body {
  /* background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); */
  color: #ffffff;
  scroll-padding-top: 80px;
  font-family: 'Poppins', sans-serif;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #6a11cb;
}

.navbar {
  background-color: #0d0b1f;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
  color: #ffffff;
  margin: 0 15px; /* kasih jarak antar menu */
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #8b9eff; /* warna hover ungu-biru */
}

/* underline aktif */
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #8b9eff, #c084fc);
  bottom: -8px;
  left: 20%;
  border-radius: 3px;
  transition: all 0.3s;
}

header {
  margin-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background: linear-gradient(to bottom, #0d0b1f 0%, #18142e 40%, #241f4b 70%, #302b63 90%); */
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

header .btn-primary {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
}

/* Untuk judul section */
section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
  font-size: 2.5rem;
  position: relative;
}

/* Optional: underline di bawah judul */
section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #9b59b6, #3498db);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Cards Project */
.card {
  background: rgba(255, 255, 255, 0.05); /* transparan dengan sedikit opacity */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3); /* border putih transparan */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
  backdrop-filter: blur(8px); /* efek kaca (optional biar makin modern) */
}

.card:hover {
  transform: translateY(-10px);
}

.card .btn-primary {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
}
/* Experience Timeline */
.timeline {
  position: relative;
  margin: 50px auto;
  /* padding: 0 20px;  */
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  /* padding: 0 20px; */
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  right : 0;
  padding-right: 20px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  right:0;
  padding: 20px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 25px 40px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
  font-size: 16px;
  margin: 0 0; /* agar ada sedikit jarak dari sisi layar */
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content ul {
  padding-left: 20px;
}

/* Responsive di mobile */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    left: 0 !important;
    margin-bottom: 50px;
  }

}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  width: 45%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-item span {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  height: 25px;
  position: relative;
}

.skill-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #7e22ce, #2563eb);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
  transition: width 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
  font-size: 24px;
  color: #fff;
}

.contact-item a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #7e22ce;
}


/* Footer */
footer {
  background-color: #0f0c29;
  color: #ffffff;
}
