* { box-sizing: border-box; margin: 0; padding: 0; }

      :root {
        --bg: #f5f0e8;
        --white: #fffdf7;
        --text: #2d2a26;
        --muted: #7a7570;
        --accent: #ff6b35;
        --accent2: #4ecdc4;
        --accent3: #ffe66d;
        --card: #fffdf7;
        --border: #e5e0d5;
        --toggle-bg: #e5e0d5;
        --toggle-knob: #fffdf7;
        --toggle-icon: '☀️';
      }

      /* DARK MODE VARIABLES */
      [data-theme="dark"] {
        --bg: #1a1814;
        --white: #252218;
        --text: #f0ebe0;
        --muted: #a09890;
        --accent: #ff6b35;
        --accent2: #4ecdc4;
        --accent3: #ffe66d;
        --card: #252218;
        --border: #3a3530;
        --toggle-bg: #3a3530;
        --toggle-knob: #252218;
      }

      html { scroll-behavior: smooth; }

      body {
        background: var(--bg);
        color: var(--text);
        font-family: 'Nunito', sans-serif;
        font-size: 15px;
        line-height: 1.6;
        transition: background 0.3s ease, color 0.3s ease;
      }

      /* NAV */
      nav {
        background: var(--white);
        border-bottom: 2px solid var(--border);
        padding: 16px 32px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky; top: 0; z-index: 99;
        transition: background 0.3s ease, border-color 0.3s ease;
      }
      .nav-logo {
        font-weight: 800;
        font-size: 20px;
        flex-shrink: 0;
      }
      .nav-logo span { color: var(--accent); }

      /* NAV LINKS — desktop, benar-benar di tengah navbar */
      .nav-links {
        display: flex;
        gap: 24px;
        list-style: none;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
      .nav-links a {
        color: var(--muted);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: color .2s;
      }
      .nav-links a:hover { color: var(--accent); }

      /* NAV RIGHT — toggle + hamburger */
      .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
      }

      /* HAMBURGER — hidden on desktop */
      .nav-toggle-input { display: none; }

      .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        cursor: pointer;
        border-radius: 8px;
        border: 2px solid var(--border);
        padding: 7px;
        background: var(--white);
        transition: border-color .2s, background .2s;
        flex-shrink: 0;
      }
      .hamburger:hover { border-color: var(--accent); }
      .hamburger span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--text);
        transition: transform .3s ease, opacity .3s ease, width .3s ease;
        transform-origin: center;
      }
      .hamburger span:nth-child(1) { width: 100%; }
      .hamburger span:nth-child(2) { width: 70%; }
      .hamburger span:nth-child(3) { width: 100%; }

      /* Hamburger → X saat terbuka */
      .nav-right:has(#nav-toggle:checked) .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 100%;
      }
      .nav-right:has(#nav-toggle:checked) .hamburger span:nth-child(2) {
        opacity: 0; width: 0;
      }
      .nav-right:has(#nav-toggle:checked) .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 100%;
      }

      /* OVERLAY & mobile menu via :has() */
      nav:has(#nav-toggle:checked) .nav-overlay {
        display: block;
      }
      .theme-toggle {
        background: var(--toggle-bg);
        border: 2px solid var(--border);
        border-radius: 50px;
        width: 56px;
        height: 28px;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        transition: background 0.3s ease, border-color 0.3s ease;
        display: flex;
        align-items: center;
        padding: 2px;
      }
      .theme-toggle:hover {
        border-color: var(--accent);
      }
      .theme-toggle .knob {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--white);
        border: 2px solid var(--text);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        position: absolute;
        left: 3px;
        transition: transform 0.3s ease, background 0.3s ease;
        box-shadow: 1px 1px 0 var(--text);
      }
      [data-theme="dark"] .theme-toggle .knob {
        transform: translateX(27px);
      }
      .theme-toggle .knob::after {
        content: '✦';
        font-size: 10px;
        color: var(--accent);
      }
      [data-theme="dark"] .theme-toggle .knob::after {
        content: '◗';
        font-size: 10px;
        color: var(--muted);
      }

      /* HERO */
      .hero {
        padding: 60px 32px 50px;
        max-width: 900px;
        margin: 0 auto;
        display: flex;
        gap: 48px;
        align-items: center;
      }
      .hero-avatar {
        width: 140px; height: 140px;
        border-radius: 50%;
        background: var(--accent3);
        border: 4px solid var(--text);
        display: flex; align-items: center; justify-content: center;
        font-size: 56px;
        flex-shrink: 0;
        box-shadow: 4px 4px 0 var(--text);
        transition: transform .15s, box-shadow .15s;
        overflow: hidden;
      }
      .hero-avatar:hover {
        transform: translate(-2px, -2px);
      }
      .hero-text h1 {
        font-size: 36px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 8px;
      }
      .hero-text h1 span { color: var(--accent); }
      .hero-text .subtitle {
        color: var(--muted);
        font-size: 15px;
        margin-bottom: 16px;
      }
      .hero-text p {
        font-size: 14px;
        color: var(--muted);
        max-width: 440px;
        margin-bottom: 24px;
      }
      .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
      .badge {
        padding: 4px 12px;
        border-radius: 20px;
        border: 2px solid var(--text);
        font-size: 12px;
        font-weight: 700;
        background: var(--white);
        transition: transform .15s, box-shadow .15s;
      }
      .badge.orange { background: var(--accent); color: white; }
      .badge.teal { background: var(--accent2); color: white; }
      .badge.yellow { background: var(--accent3); }

      .badge:hover {
        transform: translateY(-2px);
        box-shadow: 3px 3px 0 var(--text);
      }

      /* DIVIDER */
      .divider {
        max-width: 900px;
        margin: 0 auto;
        border: none;
        border-top: 2px dashed var(--border);
        transition: border-color 0.3s ease;
      }

      /* SECTION */
      section {
        max-width: 900px;
        margin: 0 auto;
        padding: 48px 32px;
      }
      .section-header {
        display: flex; align-items: center; gap: 12px;
        margin-bottom: 28px;
      }
      .section-icon { font-size: 22px; }
      .section-header h2 { font-size: 22px; font-weight: 800; }

      /* SKILL */
      .skills-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
      .skill-pill {
        padding: 8px 18px;
        border-radius: 8px;
        border: 2px solid var(--text);
        font-size: 13px;
        font-weight: 700;
        background: var(--white);
        transition: transform .15s, box-shadow .15s, background 0.3s ease, border-color 0.3s ease;
        cursor: default;
      }
      .skill-pill:hover {
        transform: translateY(-2px);
        box-shadow: 3px 3px 0 var(--text);
      }
      .skill-pill.s1 { background: #ffd6c8; }
      .skill-pill.s2 { background: #c8f0ee; }
      .skill-pill.s3 { background: #fff3cc; }
      .skill-pill.s4 { background: #d4ecd4; }
      .skill-pill.s5 { background: #ddd4f0; }

      [data-theme="dark"] .skill-pill { background: #2e2b24; }
      [data-theme="dark"] .skill-pill.s1 { background: #3d2a22; }
      [data-theme="dark"] .skill-pill.s2 { background: #1e3533; }
      [data-theme="dark"] .skill-pill.s3 { background: #3a3318; }
      [data-theme="dark"] .skill-pill.s4 { background: #1e3320; }
      [data-theme="dark"] .skill-pill.s5 { background: #2a2440; }

      /* PROYEK */
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
      }
      .project-card {
        background: var(--card);
        border: 2px solid var(--text);
        border-radius: 12px;
        padding: 24px;
        box-shadow: 4px 4px 0 var(--text);
        transition: transform .15s, box-shadow .15s, background 0.3s ease, border-color 0.3s ease;
      }
      .project-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 var(--text);
      }
      .project-emoji { font-size: 32px; margin-bottom: 10px; }
      .project-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
      .project-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
      .project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
      .project-tag {
        font-size: 11px;
        font-weight: 700;
        padding: 2px 10px;
        border-radius: 20px;
        background: var(--bg);
        border: 1px solid var(--border);
        transition: background 0.3s ease, border-color 0.3s ease;
      }
      .project-link {
        font-size: 13px;
        font-weight: 700;
        color: var(--accent);
        text-decoration: none;
      }
      .project-link:hover { text-decoration: underline; }
      .project-card {
      display: flex;
      flex-direction: column;
      }
      
      /* bikin deskripsi jadi pendorong ke bawah */
      .project-card p {
      flex: 1;
      }
      
      /* tags selalu di posisi bawah konsisten */
      .project-tags {
      margin-top: auto;
      }
      
      /* link selalu sejajar paling bawah */
      .project-link {
      margin-top: 10px;
      display: inline-block;
      }

      /* PENGALAMAN */
      .exp-list { display: flex; flex-direction: column; gap: 16px; }
      .exp-item {
        background: var(--card);
        border: 2px solid var(--border);
        border-radius: 10px;
        padding: 18px 22px;
        display: flex; gap: 16px; align-items: flex-start;
        margin-bottom: 16px;
        transition: background 0.3s ease, border-color 0.3s ease;
      }
      .exp-dot {
        width: 40px; height: 40px;
        border-radius: 10px;
        border: 2px solid var(--text);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
        transition: border-color 0.3s ease;
      }
      .exp-body h4 { font-weight: 800; font-size: 15px; }
      .exp-body .exp-place { font-size: 13px; color: var(--accent); font-weight: 700; }
      .exp-body .exp-year { font-size: 12px; color: var(--muted); }
      .exp-body p { font-size: 13px; color: var(--muted); margin-top: 4px; }

      /* KONTAK */
      .contact-card {
        background: var(--accent);
        border: 2px solid var(--text);
        border-radius: 14px;
        padding: 36px;
        box-shadow: 5px 5px 0 var(--text);
        color: white;
        text-align: center;
        transition: border-color 0.3s ease;
      }
      .contact-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
      .contact-card p { font-size: 14px; opacity: 0.9; margin-bottom: 24px; }
      .contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
      .contact-btn {
        padding: 10px 22px;
        border-radius: 8px;
        border: 2px solid white;
        background: white;
        color: var(--accent);
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        font-size: 14px;
        text-decoration: none;
        transition: background .2s, color .2s, border-color .2s;
      }
      .contact-btn:hover { background: var(--accent); color: white; border-color: white; }
      .contact-btn.outline { background: transparent; color: white; border-color: white; }
      .contact-btn.outline:hover { background: white; color: var(--accent); }

      /* FOOTER */
      footer {
        text-align: center;
        padding: 28px;
        font-size: 13px;
        color: var(--muted);
        border-top: 2px dashed var(--border);
        transition: border-color 0.3s ease;
      }
      footer span { color: var(--accent); font-weight: 700; }

      @media (max-width: 640px) {
        .hero { flex-direction: column; gap: 24px; padding: 40px 20px 36px; text-align: center; }
        .badge-row { justify-content: center; }
        section { padding: 40px 20px; }
        nav { padding: 14px 20px; }
        .contact-card { padding: 24px; }
        .nav-right { gap: 10px; margin-left: auto; }

        /* Hamburger tampil di mobile */
        .hamburger { display: flex; }

  
        .nav-links {
          display: flex;
          flex-direction: column;
          gap: 0;
          position: fixed;
          top: 0;
          left: auto;
          right: -280px;
          transform: none;
          width: 260px;
          height: 100dvh;
          background: var(--white);
          border-left: 2px solid var(--border);
          padding: 80px 24px 32px;
          z-index: 99;
          transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                      background 0.3s ease,
                      border-color 0.3s ease;
          box-shadow: -4px 0 24px rgba(0,0,0,0.08);
          list-style: none;
          align-items: flex-start;
          overflow-y: auto;
        }

        nav:has(#nav-toggle:checked) .nav-links {
          right: 0;
        }

        .nav-links li {
          width: 100%;
          border-bottom: 1px solid var(--border);
        }
        .nav-links li:last-child { border-bottom: none; }

        .nav-links a {
          display: block;
          padding: 16px 4px;
          font-size: 16px;
          font-weight: 700;
          color: var(--text);
          width: 100%;
          transition: color .2s, padding-left .2s;
        }
        .nav-links a:hover {
          color: var(--accent);
          padding-left: 8px;
        }

        .nav-overlay {
          display: none;
          position: fixed;
          inset: 0;
          z-index: 98;
          background: rgba(0,0,0,0.25);
          cursor: default;
        }
      }


@keyframes fade-up-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left-in {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Base: semua elemen .fade-up pakai scroll-driven animation */
.fade-up {
  animation: fade-up-in both;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}

/* Hero avatar — scale masuk lebih dramatis */
.hero-avatar.fade-up {
  animation-name: scale-in;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

/* Section header — slide dari kiri */
.section-header.fade-up {
  animation-name: fade-left-in;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

/* Project cards — stagger lewat nth-child */
.project-card.fade-up {
  animation-name: fade-up-in;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}
.project-card.fade-up:nth-child(2) { animation-delay: 150ms; }
.project-card.fade-up:nth-child(3) { animation-delay: 300ms; }
.project-card.fade-up:nth-child(4) { animation-delay: 450ms; }

/* Skill pills — stagger ringan */
.skill-pill.fade-up {
  animation-name: fade-up-in;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}
.skill-pill.fade-up:nth-child(2) { animation-delay: 80ms; }
.skill-pill.fade-up:nth-child(3) { animation-delay: 160ms; }
.skill-pill.fade-up:nth-child(4) { animation-delay: 240ms; }
.skill-pill.fade-up:nth-child(5) { animation-delay: 320ms; }
.skill-pill.fade-up:nth-child(6) { animation-delay: 400ms; }
.skill-pill.fade-up:nth-child(7) { animation-delay: 480ms; }
.skill-pill.fade-up:nth-child(8) { animation-delay: 560ms; }

/* Badge — stagger kecil */
.badge.fade-up:nth-child(2) { animation-delay: 120ms; }
.badge.fade-up:nth-child(3) { animation-delay: 240ms; }

/* Exp items — slide dari kiri berurutan */
.exp-item.fade-up {
  animation-name: fade-left-in;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}
.exp-item.fade-up:nth-child(2) { animation-delay: 150ms; }
.exp-item.fade-up:nth-child(3) { animation-delay: 300ms; }

/* Contact card — scale in */
.contact-card.fade-up {
  animation-name: scale-in;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}

/* Hover tetap berjalan normal setelah animasi selesai */
.project-card:hover {
  transform: translate(-2px, -2px);
}
.skill-pill:hover {
  transform: translateY(-2px);
}
.hero-avatar:hover {
  transform: translate(-2px, -2px);
}
.badge:hover {
  transform: translateY(-2px);
}

/* Fallback untuk browser lama yang belum support scroll-driven animations */
@supports not (animation-timeline: view()) {
  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Navbar saat scroll */
nav.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

[data-theme="dark"] nav.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-pill i {
  font-size: 18px;
}

.skill-pill:hover i {
  transform: scale(1.2);
  transition: 0.2s;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-btn i {
  font-size: 16px;
}
.contact-btn:hover i {
  transform: scale(1.2);
  transition: 0.2s;} 
