/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fdfdfd;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}
.section {
  padding: 60px 0;
}
h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.hero .profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #fff;
  margin-bottom: 20px;
}
.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: white;
  color: #4e73df;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.hero .btn:hover {
  background: #ddd;
  transform: scale(1.05);
}

/* Background Alternatif */
.bg-alt {
  background: #f4f7fc;
}

/* Tabel Education */
.edu-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.edu-table th,
.edu-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}
.edu-table th {
  background: #4e73df;
  color: white;
}

/* Skills with Progress Bar */
.skill-item {
  margin: 15px 0;
}
.skill-item span {
  font-weight: 600;
}
.progress {
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 8px;
  height: 12px;
}
.progress div {
  height: 12px;
  background: linear-gradient(90deg, #1cc88a, #4e73df);
  border-radius: 20px;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card h3 {
  margin: 15px 0;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}
.card a {
  display: inline-block;
  margin: 10px 0 20px;
  color: #4e73df;
  text-decoration: none;
  font-weight: bold;
}
.card a:hover {
  text-decoration: underline;
}

/* Contact */
#contact {
  text-align: center;
}
#contact p {
  margin: 10px 0;
  font-size: 1.1rem;
}
#contact a {
  color: #1cc88a;
  text-decoration: none;
}
#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 20px;
}

/* Animasi Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 50px 20px;
  }
  .hero .profile-img {
    width: 120px;
    height: 120px;
  }
}
