:root {
  --bg: #0f0f0f;
  --card: #1b1b1b;
  --accent: #007acc;
  --text: #fff;
  --muted: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  height: 100vh;
  background: #141414;
  position: fixed;
  padding: 30px;
  transition: 0.3s;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.profile {
  text-align: center;
}

.typing {
  color: var(--accent);
  font-size: 13px;
  height: 20px; /* 🔥 ini kunci */
  display: block;
}

/* .profile img {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
} */
.profile img {
    width: 100%;
    /* aspect-ratio: 9 / 10; */
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: auto;
}

.profile h2 {
  margin-top: 10px;
}

.typing {
  color: var(--accent);
  font-size: 13px;
}

.menu {
  margin-top: 40px;
}

.menu a {
  display: block;
  margin: 12px 0;
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
}

.menu a.active,
.menu a:hover {
  color: var(--accent);
}

/* CONTENT */
.content {
  margin-left: 260px;
  padding: 50px;
  width: 100%;
}

/* SECTION */
.section {
  margin-bottom: 80px;
}

.section h1 {
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

/* CARD */
.card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* SKILL */
.skill {
  margin-bottom: 15px;
}

.bar {
  height: 6px;
  background: #333;
  border-radius: 5px;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 5px;
  transition: 1s;
}

/* SKILLS SIDEBAR */
.skills-sidebar {
  margin-top: 30px;
  padding: 0 30px;
}

.skills-sidebar h3 {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.skills-sidebar .skill {
  margin-bottom: 12px;
  font-size: 12px;
}

.skills-sidebar .bar {
  height: 4px;
  margin-top: 5px;
}

/* TIMELINE */
.timeline {
  border-left: 2px solid #333;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  position: absolute;
  left: -26px;
  top: 5px;
  border-radius: 50%;
}

.timeline-item strong {
  color: var(--accent);
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

.timeline-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.timeline-item small {
  color: #666;
  font-size: 12px;
  display: block;
  margin-bottom: 10px;
}

.timeline-item p {
  margin: 10px 0;
  line-height: 1.6;
  color: var(--text);
}

.timeline-item ul {
  margin: 10px 0;
  padding-left: 20px;
}

.timeline-item li {
  margin-bottom: 5px;
  line-height: 1.5;
  color: var(--text);
}

/* PORTFOLIO */
.filter {
  margin-bottom: 20px;
}

.filter button {
  margin-right: 10px;
  padding: 5px 10px;
  background: #222;
  border: none;
  color: #fff;
  cursor: pointer;
}

.filter button.active {
  background: var(--accent);
  color: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.item {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.item:hover {
  transform: scale(1.05);
}

.item img {
  width: 100%;
}

.item h3 {
  padding: 10px;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
}

/* CONTACT */
input, textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: #222;
  border: none;
  color: #fff;
}

button.submit {
  background: var(--accent);
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}