/* =========================================================
   1. VARIABEL & RESET
========================================================= */
:root{
  --navy-900: #0B1220;
  --navy-800: #101B2D;
  --bg-light: #F5F7FA;
  --bg-alt: #EAEEF4;
  --text-dark: #17212E;
  --text-muted: #5B6B7F;
  --accent: #14B8A6;
  --accent-dark: #0E9488;
  --border: #DCE3EB;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1120px;
  --radius: 10px;
  --transition: 0.25s ease;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }
a{ text-decoration: none; color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }

h1, h2, h3{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

/* =========================================================
   2. NAVBAR
========================================================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
}

.navbar__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.navbar__brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.navbar__brand span{ color: var(--accent); }

.navbar__menu{
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link{
  color: #C9D3E0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover{ color: #fff; }
.nav-link.is-active{ color: var(--accent); }

.nav-link--cta{
  background: var(--accent);
  color: #06231F;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
}
.nav-link--cta:hover{ background: var(--accent-dark); color: #fff; }

.navbar__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.navbar__toggle span{
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2){ opacity: 0; }
.navbar__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   3. HERO
========================================================= */
.hero{
  background: var(--navy-900);
  color: #fff;
  padding: 90px 24px 100px;
}

.hero__grid{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero__tag{
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.hero__title{
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__desc{
  color: #B7C2D0;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary{ background: var(--accent); color: #06231F; }
.btn--primary:hover{ background: var(--accent-dark); color: #fff; }
.btn--ghost{ border: 1.5px solid #37455A; color: #fff; }
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); }

.hero__photo-wrap{ display: flex; justify-content: center; }

.hero__photo-frame{
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #223045;
  box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.08);
}

.hero__photo{ width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   4. SECTION UMUM
========================================================= */
.section{ padding: 90px 24px; }
.section--alt{ background: var(--bg-alt); }

.section__inner{ max-width: var(--max-width); margin: 0 auto; }

.section__index{
  display: block;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section__index--light{ color: var(--accent); }

.section__title{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 42px;
}

/* =========================================================
   5. TENTANG SAYA
========================================================= */
.about__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about__desc{ color: var(--text-muted); max-width: 60ch; }

.about__facts{ display: flex; flex-direction: column; gap: 14px; }

.about__facts li{
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.about__fact-label{
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.about__fact-value{ font-weight: 600; }

/* =========================================================
   6. TIMELINE (PENDIDIKAN)
========================================================= */
.timeline{
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
  padding-left: 32px;
}

.timeline__item{
  position: relative;
  padding-bottom: 40px;
}
.timeline__item:last-child{ padding-bottom: 0; }

.timeline__item::before{
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
}

.timeline__year{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.timeline__content h3{ font-size: 1.15rem; margin-bottom: 8px; }
.timeline__content p{ color: var(--text-muted); margin: 0; max-width: 60ch; }

/* =========================================================
   7. KEAHLIAN
========================================================= */
.skills{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.skill-card__title{ font-size: 1.05rem; margin-bottom: 18px; }

.skill-card__tags{ display: flex; flex-wrap: wrap; gap: 8px; }

.tag{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-dark);
  padding: 6px 12px;
  border-radius: 6px;
}

.tag--ghost{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =========================================================
   8. PROYEK
========================================================= */
.projects{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(11, 18, 32, 0.08);
}

.project-card__title{ font-size: 1.1rem; margin-bottom: 10px; }
.project-card__desc{ color: var(--text-muted); margin: 0 0 18px; }
.project-card__tags{ display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================
   9. KONTAK
========================================================= */
.contact{
  background: var(--navy-900);
  color: #fff;
  padding: 100px 24px;
  text-align: center;
}

.contact__inner{ max-width: 640px; margin: 0 auto; }

.contact__title{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.contact__desc{ color: #B7C2D0; margin-bottom: 32px; }

.contact__email{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 40px;
  transition: color var(--transition), border-color var(--transition);
}
.contact__email:hover{ color: #fff; border-color: #fff; }

.contact__social{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.contact__social a{
  color: #C9D3E0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact__social a:hover{ color: var(--accent); }

/* =========================================================
   10. FOOTER & BACK TO TOP
========================================================= */
.footer{
  background: var(--navy-800);
  color: #7C89A0;
  text-align: center;
  padding: 22px;
  font-size: 0.85rem;
}

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #06231F;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--accent-dark); }

/* =========================================================
   11. RESPONSIVE
========================================================= */
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; text-align: center; }
  .hero__desc{ margin-left: auto; margin-right: auto; }
  .hero__actions{ justify-content: center; }
  .hero__photo-wrap{ order: -1; }

  .about__grid{ grid-template-columns: 1fr; }
  .skills{ grid-template-columns: 1fr 1fr; }
  .projects{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .navbar__toggle{ display: flex; }

  .navbar__menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .navbar__menu.is-open{ max-height: 400px; }

  .nav-link--cta{ margin-top: 6px; }

  .skills{ grid-template-columns: 1fr; }
  .projects{ grid-template-columns: 1fr; }

  .section{ padding: 64px 20px; }
  .hero{ padding: 64px 20px 80px; }
  .contact{ padding: 72px 20px; }
}
