* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Inter, Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.7;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10;
  }
  
  .logo {
    font-weight: 700;
    color: #ffffff;
  }
  
  nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
  }
  
  nav a:hover {
    color: #38bdf8;
  }
  
  .hero {
    min-height: 100vh;
    padding: 160px 8% 80px;
    display: flex;
    align-items: center;
    background:
      radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 35%),
      #0f172a;
  }
  
  .badge {
    display: inline-block;
    margin-bottom: 20px;
    color: #38bdf8;
    font-weight: 600;
  }
  
  .hero-text {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 32px;
  }
  
  .actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    min-height: 48px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
  }
  
  .primary {
    background: #38bdf8;
    color: #020617;
  }
  
  .secondary {
    border: 1px solid #334155;
    color: #e5e7eb;
  }
  
  .section {
    padding: 90px 8%;
  }
  
  .section h2 {
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 24px;
  }
  
  .section p {
    max-width: 800px;
    color: #cbd5e1;
  }
  
  .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .skills span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 999px;
    color: #e2e8f0;
    line-height: 1;
    text-align: center;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
  
  .project-grid .card {
    grid-column: span 2;
    width: 100%;
  }
  
  /* kalau sisa 1 card, taruh tengah */
  .project-grid .card:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
  
  /* kalau sisa 2 card, mulai dari tengah */
  .project-grid .card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
  
  @media (max-width: 1000px) {
    .project-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  
    .project-grid .card {
      grid-column: span 2;
    }
  
    .project-grid .card:last-child:nth-child(odd) {
      grid-column: 2 / span 2;
    }
  }
  
  @media (max-width: 650px) {
    .project-grid {
      grid-template-columns: 1fr;
    }
  
    .project-grid .card,
    .project-grid .card:last-child:nth-child(odd),
    .project-grid .card:last-child:nth-child(3n + 1),
    .project-grid .card:nth-last-child(2):nth-child(3n + 1) {
      grid-column: auto;
    }
  }
  .project-grid .card {
    width: 100%;
  }

  @media (max-width: 1000px) {
    .project-grid .card:last-child:nth-child(3n + 1) {
      grid-column: auto;
    }
  }
  
  .card {
    padding: 28px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 24px;
    transition: 0.3s;
  }
  
  .card-skills {
    margin-top: 16px;
    margin-bottom: 20px;
  }
  
  .card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
  }
  
  .card h3 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 22px;
  }
  
  .tech {
    margin-top: 18px;
    color: #38bdf8 !important;
    font-size: 14px;
  }
  
  .contact {
    text-align: center;
  }
  
  .contact p {
    margin: 0 auto 28px;
  }
  
  footer {
    padding: 32px 8%;
    text-align: center;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
  }
  
  @media (max-width: 700px) {
    .navbar {
      flex-direction: column;
      gap: 12px;
    }
  
    nav a {
      margin: 0 8px;
    }
  
    .hero {
      padding-top: 190px;
    }


    .project-detail {
  min-height: 100vh;
  padding: 140px 8% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.project-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid #334155;
  background: #1e293b;
}

.project-content h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
}

.project-content p {
  color: #cbd5e1;
  margin-bottom: 18px;
}

.project-content .skills {
  margin: 28px 0;
}

@media (max-width: 800px) {
  .project-detail {
    grid-template-columns: 1fr;
    padding-top: 180px;
  }

  .project-image {
    height: 260px;
  }
}
  }

  .project-detail {
    min-height: 100vh;
    padding: 140px 8% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  
  .project-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid #334155;
    background: #1e293b;
  }
  
  .project-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    margin-bottom: 24px;
  }
  
  .project-content p {
    color: #cbd5e1;
    margin-bottom: 18px;
  }
  
  .project-content .skills {
    margin: 28px 0;
  }
  
  @media (max-width: 800px) {
    .project-detail {
      grid-template-columns: 1fr;
      padding-top: 180px;
    }
  
    .project-image {
      height: 260px;
    }
  }

  .project-detail-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
  }
  
  .project-detail-btn:hover {
    background: #38bdf8;
    color: #020617;
  }

  .hero {
    min-height: 100vh;
    padding: 160px 8% 80px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  
    background:
      radial-gradient(circle at top right,
        rgba(56, 189, 248, 0.15),
        transparent 35%),
      #0f172a;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-image-container {
    flex-shrink: 0;
  }
  
  .hero-image {
    width: 320px;
    height: 320px;
  
    object-fit: cover;
  
    border-radius: 50%;
  
    border: 4px solid #38bdf8;
  
    box-shadow:
      0 0 40px rgba(56, 189, 248, 0.3);
  
    transition: 0.3s;
  }
  
  .hero-image:hover {
    transform: scale(1.03);
  }
  
  @media (max-width: 900px) {
    .hero {
      flex-direction: column-reverse;
      text-align: center;
    }
  
    .actions {
      justify-content: center;
    }
  
    .hero-image {
      width: 220px;
      height: 220px;
    }
  }

  .hero h1 {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 620px;
  }