:root {
    --primary: #0077ff;
    --secondary: #f4f4f4;
    --dark: #222;
    --light: #fff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center; /* Tambahkan baris ini */
  }
  
  
  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
  }
  
  header {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  nav ul {
    display: flex;
    list-style: none;
  }
  
  nav ul li {
    margin-left: 2rem;
  }
  
  nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
  }
  
  nav ul li a:hover {
    color: #ffea00;
  }
  
  .menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
  }
  
  .hero {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    background: var(--light);
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--primary);
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero h1 span {
    color: var(--primary);
  }
  
  .hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
  }
  
  .cta-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 0.7rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
  }
  
  .cta-btn:hover {
    background: #005bb5;
  }
  
  section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .about p {
    font-size: 1.1rem;
  }
  
  .projects .project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .project-card {
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.5rem;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.2s;
  }
  
  .project-card:hover {
    transform: translateY(-5px) scale(1.03);
  }
  
  .project-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
  }
  
  .project-card a {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.95rem;
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .contact input, .contact textarea {
    padding: 0.7rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  .contact textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  .contact button {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.7rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .contact button:hover {
    background: #005bb5;
  }
  
  #form-message {
    color: green;
    font-weight: bold;
    min-height: 24px;
  }
  
  footer {
    text-align: center;
    padding: 1.2rem 0;
    background: var(--primary);
    color: var(--light);
    margin-top: 2rem;
    border-radius: 0 0 10px 10px;
  }
  
  /* Responsive */
  @media (max-width: 800px) {
    .projects .project-list {
      flex-direction: column;
      align-items: center;
    }
    nav {
      padding: 0 1rem;
    }
  }
  
  @media (max-width: 600px) {
    section {
      padding: 1.2rem 0.5rem;
    }
    .hero h1 {
      font-size: 1.5rem;
    }
    nav ul {
      display: none;
      flex-direction: column;
      background: var(--primary);
      position: absolute;
      top: 60px;
      right: 10px;
      width: 150px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    nav ul.active {
      display: flex;
    }
    .menu-toggle {
      display: block;
    }
  }
/* ...CSS sebelumnya tetap... */

/* SKILL SECTION */
.skills .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .skill-card {
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    max-width: 120px;
    margin-bottom: 1rem;
    transition: transform 0.2s;
  }
  .skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
  }
  .skill-card span {
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
  }
  .skill-card:hover {
    transform: scale(1.07);
  }
  
  /* PROJECT SECTION */
  .projects .project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .project-card {
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.5rem;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .project-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
  }
  .project-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
  }
  .project-card a {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.95rem;
  }
  .project-card:hover {
    transform: translateY(-5px) scale(1.03);
  }
  
  /* CERTIFICATE SECTION */
  .certificates .certificate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .certificate-card {
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1rem;
    display: flex;
    align-items: center;
    min-width: 250px;
    max-width: 400px;
    gap: 1rem;
  }
  .certificate-card img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #eee;
  }
  .certificate-card h3 {
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
  }
  
  /* Responsive update */
  @media (max-width: 800px) {
    .projects .project-list,
    .skills .skill-list,
    .certificates .certificate-list {
      flex-direction: column;
      align-items: center;
    }
  }
    