:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --text: #222222;
  --muted: #666666;
  --accent: #2d6cdf;
  --border: #e5e5e5;
  --max-width: 900px;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.biodata {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.biodata-text h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.role {
  font-weight: 600;
  color: var(--accent);
}

.tagline {
  color: var(--muted);
  margin-top: 8px;
}

.timeline {
  margin-top: 32px;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-content h3 {
  margin-bottom: 6px;
}

.section-contact {
  padding: 64px 0;
}

.contact-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-email {
  background: rgba(183, 235, 199, 0.6);
}

.card-instagram {
  background: rgba(200, 200, 210, 0.55);
}

.card-linkedin {
  background: rgba(163, 200, 235, 0.55);
}

.card-github {
  background: rgba(150, 195, 190, 0.55);
}

.card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-email {
  background: rgba(100, 170, 120, 0.25);
  color: #3a7a50;
}

.icon-instagram {
  background: rgba(220, 130, 160, 0.25);
  color: #c94070;
}

.icon-linkedin {
  background: rgba(100, 140, 200, 0.3);
  color: #4a6fa5;
}

.icon-github {
  background: rgba(80, 100, 100, 0.2);
  color: #3a4a4a;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 640px) {
  .nav ul {
    flex-wrap: wrap;
    gap: 8px;
  }

  .biodata {
    flex-direction: column;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* New Sections Styles */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.skill-item {
  background: var(--bg-alt);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-item:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.portfolio-grid, .certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.portfolio-card, .certificate-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover, .certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-img, .certificate-img {
  width: 100%;
  height: 180px;
  background: #eee;
  overflow: hidden;
}

.portfolio-img img, .certificate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}

.portfolio-content, .certificate-content {
  padding: 20px;
}

.portfolio-content h3, .certificate-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.portfolio-content p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-badge {
  background: rgba(45, 108, 223, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.portfolio-links {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

.btn-link {
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .portfolio-grid, .certificates-grid {
    grid-template-columns: 1fr;
  }
}