* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f4f7fb;
  color: #111827;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(226, 233, 236, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.nav-menu { list-style: none; display: flex; gap: 24px; }
.nav-menu a { font-weight: 500; color: #374151; transition: color 0.2s; }
.nav-menu a:hover { color: #2563eb; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 40px auto;
  background: white;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.hero h1 { font-size: 2.6rem; margin-bottom: 12px; }
.hero h2 { font-size: 1.2rem; font-weight: 600; color: #2563eb; margin-bottom: 16px; }
.hero p { color: #4b5563; margin-bottom: 28px; line-height: 1.7; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn.primary { background: #0ea5e9; color: white; }
.btn.secondary { background: #f59e0b; color: white; }

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  object-fit: cover;
}

/* ===== SECTION ===== */
section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}
section h3 {
  font-size: 1.9rem;
  margin-bottom: 24px;
}

/* ===== ABOUT ===== */
.about {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0,0,0,.06);
}
.about p { color: #374151; margin-bottom: 32px; line-height: 1.7; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.box {
  border-radius: 16px;
  padding: 24px;
}
.box.blue { background: #ecfeff; }
.box.yellow { background: #fffbeb; }
.box h4 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.spec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.spec-icon.gis { background: #0ea5e9; color: white; }
.spec-icon.k3 { background: #f59e0b; color: white; }
.box ul { list-style: none; }
.box li { margin-bottom: 0; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.skill {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

/* ===== EXPERIENCE ===== */
.experience {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0,0,0,.06);
}

.exp-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.exp-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.exp-btn:hover {
  background: #e5e7eb;
}
.exp-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.exp-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exp-card ul {
  margin-top: 12px;
  padding-left: 18px;
  flex-grow: 1;
}

/* AKSEN KHUSUS K3 */
.exp-k3 .exp-card {
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
}

.exp-card li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.exp-card h4 {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exp-card h5 {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 4px;
}
.exp-meta {
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: 10px;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,.08);
}
.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.portfolio-body {
  padding: 24px;
}
.portfolio-body h4 { margin-bottom: 8px; }
.portfolio-body p { color: #4b5563; margin-bottom: 16px; }
.portfolio-body .btn { padding: 10px 18px; font-size: .9rem; }

footer {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  margin-bottom: 16px;
}
.modal-header h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  padding-right: 32px;
}
.modal-meta {
  font-size: .85rem;
  color: #6b7280;
}
.modal-body-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.modal-left img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
}
.modal-right ul {
  padding-left: 18px;
  list-style-type: disc;
}
.modal-right li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #374151;
}
.close {
  cursor: pointer;
  font-size: 1.8rem;
  position: absolute;
  top: 16px;
  right: 20px;
  color: #6b7280;
  transition: color 0.2s ease;
  line-height: 1;
  z-index: 10;
}
.close:hover {
  color: #111827;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* ===== TABLET (max-width: 900px) ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px;
    margin: 24px 16px;
    gap: 28px;
  }
  .hero-image {
    order: -1;
  }
  .hero img {
    max-width: 280px;
    width: 60%;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }
  .hero h2 {
    text-align: center;
  }
  .hero p {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .tools {
    justify-content: center;
  }
  .hero-text {
    text-align: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Mobile nav menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    transition: right 0.3s ease;
    z-index: 1050;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-menu li {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-menu a {
    font-size: 1.05rem;
  }

  /* Nav overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1040;
    display: none;
  }
  .nav-overlay.show {
    display: block;
  }

  .nav-container {
    padding: 14px 16px;
  }
  .logo {
    font-size: 1rem;
  }

  /* Hero mobile */
  .hero {
    margin: 16px 12px;
    padding: 28px 20px;
    border-radius: 20px;
    gap: 20px;
  }
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  .hero h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .hero img {
    max-width: 180px;
    width: 50%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .tools {
    gap: 8px;
  }
  .tool {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Section mobile - judul di tengah */
  section {
    margin: 24px auto;
    padding: 0 12px;
  }
  section h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-align: center;
  }
  .experience h3 {
    text-align: center;
  }
  .about h3 {
    text-align: center;
  }

  /* Portfolio button centered */
  .portfolio-body {
    text-align: center !important;
  }
  .portfolio-body .btn {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto;
  }

  /* About mobile */
  .about {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .about p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .box {
    padding: 18px;
  }
  .box h4 {
    font-size: 1rem;
  }
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .skill {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Experience mobile */
  .experience {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .experience h3 {
    font-size: 1.5rem;
  }
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .exp-filter {
    gap: 8px;
    margin-bottom: 20px;
  }
  .exp-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .exp-card {
    padding: 18px;
    border-radius: 14px;
  }
  .exp-card h4 {
    font-size: 1rem;
  }
  .exp-card strong {
    font-size: 0.9rem;
  }
  .exp-card li {
    font-size: 0.88rem;
  }

  /* Portfolio mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portfolio-card {
    border-radius: 16px;
  }
  .portfolio-card img {
    height: 180px;
  }
  .portfolio-body {
    padding: 18px;
  }
  .portfolio-body h4 {
    font-size: 1rem;
  }
  .portfolio-body p {
    font-size: 0.88rem;
  }

  /* Modal mobile */
  .modal {
    padding: 12px;
    align-items: flex-end;
  }
  .modal-content {
    padding: 24px 18px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    margin-bottom: 0;
  }
  .modal-header h4 {
    font-size: 1.15rem;
    padding-right: 28px;
  }
  .modal-body-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal-left img {
    max-height: 220px;
    border-radius: 12px;
  }
  .modal-right li {
    font-size: 0.9rem;
  }
  .modal-right .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    margin-top: 12px;
  }
  .close {
    font-size: 1.5rem;
    top: 14px;
    right: 16px;
  }

  /* Footer mobile */
  footer {
    padding: 28px 16px;
    font-size: 0.85rem;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .hero {
    padding: 24px 16px;
    margin: 12px 8px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero h2 {
    font-size: 0.9rem;
  }
  .hero img {
    max-width: 150px;
  }

  .about {
    padding: 20px 14px;
  }
  .box {
    padding: 14px;
  }
  .box h4 {
    font-size: 0.95rem;
    gap: 8px;
  }
  .spec-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .experience {
    padding: 20px 14px;
  }
  .exp-card {
    padding: 14px;
  }

  .modal-content {
    padding: 20px 14px;
  }

  .exp-filter {
    gap: 6px;
  }
  .exp-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}