/* ==
   WARNA (ubah warna website di sini saja)
   == */
:root {
  --hitam: #0a0a0a;
  --putih: #ffffff;
  --abu: #f5f5f6;
  --garis: #e6e6e8;
  --teks-abu: #6b6b73;
  --biru: #2f6bff;
  --biru-muda: #8fb0ff;
}


/*==
   PENGATURAN DASAR
  == */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--hitam);
  background: var(--putih);
  line-height: 1.7;
}

section {
  padding: 100px 8%;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Warna latar section */
.gray { background: var(--abu); }
.dark { background: var(--hitam); color: var(--putih); }


/* 
   JUDUL SECTION
   = */
.head {
  margin-bottom: 48px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--biru);
  margin-bottom: 4px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
}


/*==
   TOMBOL
   == */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-light {
  background: var(--putih);
  color: var(--hitam);
}

.btn-dark {
  background: var(--hitam);
  color: var(--putih);
}

.btn:hover {
  background: var(--biru);
  color: var(--putih);
}


/*==
   NAVBAR
  == */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  background: var(--putih);
  border-bottom: 1px solid var(--garis);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--hitam);
  text-decoration: none;
}

.logo span { color: var(--biru); }

nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

nav ul a {
  display: block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teks-abu);
  text-decoration: none;
}

nav ul a:hover {
  background: var(--hitam);
  color: var(--putih);
}



/*==
   HOME
  == */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 85% 15%, rgba(47, 107, 255, 0.35), transparent 45%), var(--hitam);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 20px;
  border: 1px solid #3a3a40;
  border-radius: 50px;
  font-size: 13px;
  color: #cfcfd6;
}

.hero h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
}

.hero h3 {
  margin: 8px 0 20px;
  font-size: 22px;
  font-weight: 500;
  color: var(--biru-muda);
}

.hero p {
  max-width: 460px;
  margin-bottom: 32px;
  color: #b8b8c0;
}

/* kotak kode di kanan Home */
.code {
  background: #141416;
  border: 1px solid #2a2a2e;
  border-radius: 14px;
  overflow: hidden;
  font-family: monospace;
  font-size: 14px;
}

.dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a2e;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a40;
}

.code pre {
  padding: 20px;
  color: #c9c9d1;
  line-height: 1.9;
  white-space: pre-wrap;
}

.code .t { color: var(--biru-muda); }
.code .k { color: var(--putih); }
.code .s { color: #7be0a8; }


/*==
   ABOUT
  == */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about p {
  margin-bottom: 16px;
  color: var(--teks-abu);
}

.facts {
  padding: 28px;
  background: var(--abu);
  border: 1px solid var(--garis);
  border-radius: 16px;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--garis);
}

.facts div:first-child { padding-top: 0; }
.facts div:last-child { padding-bottom: 0; border-bottom: none; }

.facts span {
  display: block;
  font-size: 13px;
  color: var(--teks-abu);
}

.facts b { font-weight: 500; }


/*==
   EDUCATION
  == */
.timeline {
  max-width: 680px;
  padding-left: 36px;
  border-left: 2px solid var(--garis);
}

.tl {
  position: relative;
  padding: 22px 26px;
  margin-bottom: 18px;
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: 12px;
}

/* titik biru di garis timeline */
.tl::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--putih);
  border: 4px solid var(--biru);
  border-radius: 50%;
}

.yr {
  font-size: 13px;
  font-weight: 600;
  color: var(--biru);
}

.tl h3 {
  font-size: 17px;
  font-weight: 600;
}

.tl p {
  font-size: 15px;
  color: var(--teks-abu);
}


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

.card {
  display: flex;
  flex-direction: column;
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: 16px;
  overflow: hidden;
}

.card:hover {
  border-color: var(--hitam);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* area gambar project (gradasi hitam ke biru) */
.thumb {
  display: flex;
  align-items: flex-end;
  height: 140px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0a0a0a, #1d3a8a);
}

.thumb span {
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--putih);
  background: rgba(255, 255, 255, 0.18);
}

.card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  flex: 1;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--teks-abu);
}

.card .btn {
  align-self: flex-start;
  padding: 9px 22px;
  font-size: 14px;
}


/*==
   SKILL
  == */
.skills {
  max-width: 620px;
}

.skill {
  margin-bottom: 28px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

.row span:last-child { color: #a0a0a8; }

.bar {
  height: 8px;
  background: #26262a;
  border-radius: 20px;
  overflow: hidden;
}

/* isi progress bar, lebarnya diatur di HTML (contoh: width:70%) */
.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--putih), var(--biru));
  border-radius: 20px;
}


/*==
   CONTACT
  == */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.info p {
  margin-bottom: 28px;
  color: var(--teks-abu);
}

.item {
  margin-bottom: 14px;
  padding: 16px 20px;
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: 12px;
  font-weight: 500;
}

.item span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--teks-abu);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: 16px;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--abu);
  border: 1px solid var(--garis);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--biru);
  background: var(--putih);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

form .btn { align-self: flex-start; }


/*==
   FOOTER
  == */
footer {
  padding: 28px 8%;
  background: var(--hitam);
  color: #8c8c95;
  text-align: center;
  font-size: 14px;
}


/*==
   TAMPILAN HP / LAYAR KECIL
 == */
@media (max-width: 860px) {
  nav ul { display: none; }
  .hero-grid, .about, .contact, .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
  .code { display: none; }
}
