/* ======== GLOBAL ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
}

/* ======== HEADER ======== */
header {
  background: #1e40af;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

header img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ======== MAIN ======== */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  border-left: 5px solid #1e40af;
  padding-left: 0.75rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
/* ======== SKILLS SECTION (CATEGORIZED & COMPACT) ======== */
#skills {
  margin-top: 2.5rem;
}

#skills h3.skill-category {
  color: #1e3a8a;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
  justify-items: center;
}

.skill-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 0.6rem 0.5rem;
  width: 85px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.skill-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 0.3rem;
  object-fit: contain;
}

.skill-card p {
  font-size: 0.7rem;
  font-weight: 500;
  color: #1e3a8a;
  margin: 0;
}

/* ======== CARD (Education & Experience) ======== */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 0.3rem;
  color: #1e3a8a;
}

.card ul {
  margin-left: 1rem;
  list-style-type: disc;
}

.card li {
  margin-bottom: 0.4rem;
}

/* ======== PROJECT SECTION ======== */
.projects {
  margin-top: 3rem;
}

.project-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.project-container::-webkit-scrollbar {
  height: 8px;
}

.project-container::-webkit-scrollbar-thumb {
  background: #1e40af;
  border-radius: 8px;
}

.project-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #1e3a8a;
}

.project-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  text-decoration: none;
  background: #1e40af;
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #1e3a8a;
}

.btn.secondary {
  background: #2563eb;
}

.btn.secondary:hover {
  background: #1d4ed8;
}

#contact {
  margin-top: 40px;
}

#contact h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* ======== CONTACT SECTION (MIRRORING SKILL STYLE) ======== */
#contact {
  margin-top: 3rem;
}

#contact h2 {
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Gunakan ulang gaya grid dari skill section */
#contact .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 0.8rem;
  justify-items: center;
}

/* Tautan klik namun tetap tampak seperti kartu skill */
#contact .skill-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 0.6rem 0.5rem;
  width: 85px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contact .skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contact .skill-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 0.3rem;
  object-fit: contain;
}

#contact .skill-card p {
  font-size: 0.7rem;
  font-weight: 500;
  color: #1e3a8a;
  margin: 0;
}

.certificates-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.cert-card {
  min-width: 120px;
  background: white;
  border-radius: 10px;
  text-align: center;
  padding: 0.6rem;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.cert-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cert-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.3rem;
}

.cert-card p {
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.2rem 0 0;
  color: #1e3a8a;
}

.cert-card small {
  font-size: 0.6rem;
  color: #555;
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #1e3a8a;
  color: white;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card img {
    margin-bottom: 0.5rem;
  }

  .project-container {
    gap: 0.75rem;
  }

  .project-card {
    flex: 0 0 240px;
  }
}








