/* Body dengan gradasi sunset */
body {
  display: flex;
  flex-direction: column; /* card di atas, nav di bawah */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad390);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
}

/* Kartu biodata */
.card {
  background: white;
  width: 85%;
  max-width: 320px;
  padding: 20px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Foto profil bulat */
.card img {
  border-radius: 50%;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

/* Judul & deskripsi responsif */
.card h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 10px 0 6px;
}

.card p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #444;
}

/* Navigasi sejajar */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  background-color: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

nav ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  background: linear-gradient(45deg, #ff6a00, #ee0979);
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: color 0.3s ease;
}

nav ul li:hover a {
  color: white;
}

/* Responsive tablet */
@media (max-width: 768px) {
  .card {
    max-width: 280px;
    padding: 16px;
  }

  .card img {
    width: 110px;
    height: 110px;
  }

  nav ul {
    gap: 10px;
  }
}

/* Responsive HP */
@media (max-width: 480px) {
  .card {
    width: 92%;
    max-width: 250px;
    padding: 14px;
  }

  .card img {
    width: 100px;
    height: 100px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }
}
