:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #3b82f6;
  --shadow: rgba(0,0,0,0.06);
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: white;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin-left: 25px;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s;
}

.navbar ul li a:hover {
  color: var(--primary);
}

.navbar ul li a.active {
  color: var(--primary);
}

/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 80px;
  min-height: 80vh;
  background: white;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.highlight {
  color: var(--primary);
}

.hero p {
  margin-top: 15px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.6;
}

/* BUTTON */
button {
  margin-top: 25px;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ================= ABOUT (FIX CENTER UTAMA) ================= */
.about-container {
  display: flex;
  gap: 50px;

  /* INI YANG MEMPERBAIKI POSISI KE TENGAH */
  max-width: 1100px;
  margin: 60px auto;

  padding: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* kiri (foto) */
.left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile {
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow);
}

/* kanan (detail) */
.right {
  flex: 2;
}

.right h2 {
  margin-bottom: 10px;
}

/* ================= CARD ================= */
.card {
  background: var(--card);
  padding: 18px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--shadow);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* ================= SKILL ================= */
.skill {
  margin-top: 10px;
}

.bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

/* ================= CONTACT ================= */
.contact {
  text-align: center;
  padding: 60px;
}

.contact .card {
  max-width: 400px;
  margin: auto;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ================= MOBILE ================= */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media(max-width:768px){

  .menu-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    width: 180px;
    padding: 15px;
    box-shadow: 0 10px 20px var(--shadow);
  }

  .navbar ul.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .left {
    justify-content: center;
  }
}