/* Google Fonts */
    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

    body {
      font-family: 'Montserrat', Arial, sans-serif;
      margin: 0;
      background: #fff;
      color: #222;
      text-align: center;
      scroll-behavior: smooth;
    }
    /* Navigation */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: center;
      gap: 2rem;
      padding: 1rem 0;
      z-index: 1000;
    }
    nav a {
      text-decoration: none;
      color: #111;
      font-weight: 600;
      transition: 0.3s;
    }
    nav a:hover, nav a.active {
      color: #555;
    }

    header {
      padding: 10rem 2rem 6rem;
      text-align: center;
      background: url('https://via.placeholder.com/1600x600?text=Header+Background') center/cover fixed no-repeat;
      color: #fff;
      position: relative;
    }
    header::after {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
    }
    header h1, header p {
      position: relative;
      z-index: 2;
    }
    header h1 {
      margin: 0;
      font-size: 3.5rem;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }
    header p {
      margin: 1rem 0 0;
      font-size: 1.4rem;
      font-weight: 300;
    }

    section {
      margin: 40px auto;
      max-width: 700px;
      padding: 0 20px;
      border-bottom: 1px solid #eee;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.8s ease;
    }
    section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    h1, h2, h3 {
      font-weight: 800;
      margin-bottom: 20px;
    }
    h2 {
      font-size: 2.4rem;
      margin-bottom: 2rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    p {
      margin: 10px 0;
      text-align: center;
      font-size: 1.1rem;
      font-weight: 300;
      line-height: 1.8;
    }

    .experience, .skills, .portfolio, .projects, .contact {
      margin-top: 2rem;
      text-align: center;
    }
    .experience {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
    }
    #experience {
      text-align: center;
    }

    .job {
      margin-bottom: 2rem;
      max-width: 600px;
      margin: 0 auto;
    }
    .job strong {
      display: block;
      font-weight: 600;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
    .job p {
      margin: 0;
      font-size: 1.05rem;
      line-height: 1.7;
    }

    .skills ul, .portfolio ul, .projects ul {
      list-style: none;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }
    .skills li, .portfolio li, .projects li {
      background: #f3f3f3;
      padding: 2rem;
      border-radius: 10px;
      transition: 0.3s;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .skills li:hover, .portfolio li:hover, .projects li:hover {
      background: #111;
      color: #fff;
      transform: translateY(-6px);
    }
    .skills img, .portfolio img, .projects img {    /* Tambahkan ke styles.css */
      max-width: 100%;
      border-radius: 8px;
      margin-bottom: 1rem;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }
    li.visible img {
      opacity: 1;
      transform: translateY(0);
    }

    /* Grid untuk My Art */
.portfolio ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Selalu 3 kolom */
  gap: 32px;
  padding: 0;
  margin: 32px 0 0 0;
  list-style: none;
}

.portfolio li {
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 14px 14px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px; /* dari 320px jadi 340px atau sesuai kebutuhan */
  width: 100%;
}

.portfolio li img {
  width: 100%;
  max-width: 300px; /* atau samakan dengan .portfolio li max-width */
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.portfolio li strong {
  display: block;
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 4px;
}

    .contact {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }
    .contact .button {
      display: inline-block;
      min-width: 220px;
      padding: 12px 18px;
      margin: 0 4px;
      border: 2px solid #222;
      border-radius: 4px;
      font-weight: 600;
      background: #fff;
      color: #222;
      text-decoration: none;
      text-align: center;
      transition: background 0.2s, color 0.2s;
    }
    .contact .button:hover {
      background: #222;
      color: #fff;
    }
    .contact p {
      display: flex;
      justify-content: center;
      gap: 0;
      margin: 0;
    }
    .contact-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .contact-row .button {
      flex: 1 1 0;
    }

    footer {
      background: #111;
      color: #fff;
      padding: 32px 0 24px 0;
      text-align: center;
      font-size: 1.1em;
      margin-top: 40px;
    }
    footer a {
      color: #fff;
      margin: 0 10px;
      font-size: 1.7em;
      transition: color 0.2s;
      vertical-align: middle;
    }
    footer a:hover {
      color: #919191;
    }

    /* Word transition effect */
    .reveal span {
      opacity: 0;
      display: inline-block;
      transform: translateY(20px);
      transition: all 0.5s ease;
    }
    .reveal span.visible {
      opacity: 1;
      transform: translateY(0);
    }

    body, section, p, li, .job p, .contact .button, .contact-row .button, .portfolio li, .portfolio li p, .skills li, .projects li {
  font-size: 0.78rem;
}

    @media (max-width: 900px) {
      .portfolio ul {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 600px) {
      .portfolio ul {
        grid-template-columns: 1fr;
      }
    }

    .contact iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 20px;
}

