:root {
  --primary: #1d3557;
  --secondary: #457b9d;
  --bg-light: #f8f9fa;
  --bg-alt: #f1faee;
  --text-dark: #2b2d42;
  --text-muted: #6c757d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--secondary); }

.btn-nav {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* HERO SECTION */
.hero {
  padding: 5rem 8%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text { flex: 1; }

.greeting {
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 600;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0.5rem 0;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.3s;
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-secondary { background-color: transparent; color: var(--primary); border: 2rem solid var(--primary); border: 1px solid var(--primary); }
.btn:hover { transform: translateY(-3px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; margin-top: 1rem; }

.hero-img img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* SECTIONS COMMON */
.section { padding: 4rem 8%; }
.bg-alt { background-color: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0.5rem auto 0;
}

/* ABOUT */
.about-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-card p { margin-bottom: 1rem; }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.skill-card h3 { color: var(--primary); margin-bottom: 1rem; }
.skill-card ul { list-style: none; }
.skill-card li { margin-bottom: 0.8rem; }

/* TIMELINE (EXPERIENCE) */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline-item {
  background: var(--white);
  padding: 2rem;
  border-left: 4px solid var(--secondary);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.badge {
  background: var(--bg-alt);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

.timeline-item h3 { margin-top: 0.5rem; color: var(--primary); }
.role { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.timeline-item ul { padding-left: 1.2rem; }

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.edu-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.edu-degree { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.edu-school { color: var(--text-dark); }
.edu-date { color: var(--text-muted); font-size: 0.9rem; }

.cert-list { list-style: none; }
.cert-list li { margin-bottom: 1rem; }
.cert-list span { display: block; font-size: 0.9rem; color: var(--text-muted); }

/* GALLERY */
.project-showcase {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-img img {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cert-showcase h3 { text-align: center; margin-bottom: 1.5rem; }

/* GRID DAN WADAH SERTIFIKAT */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch; /* Memastikan kolom memiliki tinggi yang sejajar */
}

.cert-item {
  text-align: center;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* GAMBAR SERTIFIKAT (KUNCI AGAR UKURAN SAMA) */
.cert-item img {
  width: 100%;
  height: 220px;         /* Menentukan tinggi yang seragam */
  object-fit: contain;   /* Menjaga proporsi sertifikat agar tidak terdistorsi/gepeng */
  background-color: #f8f9fa; /* Latar belakang opsional jika ada sisa ruang */
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

/* SEKSI ALBUM WISUDA */
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.album-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.album-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.album-card p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* FOOTER / CONTACT */
.footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 4rem 8% 2rem;
}

.footer h2 { margin-bottom: 1rem; }
.footer p { color: #a8dadc; max-width: 600px; margin: 0 auto 2rem; }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.3s;
}

.contact-card:hover { background: rgba(255,255,255,0.2); }

.copyright { font-size: 0.85rem; color: #a8dadc; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }

/* RESPONSIVE DESAIN (Tampilan Mobile) */
@media (max-width: 768px) {
  .hero-container { flex-direction: column-reverse; text-align: center; }
  .hero-buttons { justify-content: center; }
  .nav-links { display: none; } /* Bisa dikembangkan dengan hamburger menu */
}