:root {
  --bg: #0b1020;
  --card: #040916;
  --text: #f5f7ff;
  --muted: #aab4cc;
  --primary: #6c63ff;
  --primary2: #8d7dff;
  --line: #25304a;
  --white: #fff;
}

/* ==========================================
   Base & Reset Styles
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   Layout Containers & Utilities
   ========================================== */
.container {
  width: min(1100px, 92%);
  margin: auto;
}

section {
  padding: 95px 0;
}

.badge {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #cbd0ff;
  background: #121832;
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 35px;
}

.section-title small {
  color: var(--primary2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-top: 7px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
}

.card p {
  color: var(--muted);
}

/* Buttons */
.buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 19px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary2);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--text);
}

/* ==========================================
   Header & Navigation
   ========================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary2);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--white);
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 25px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 55px;
  align-items: center;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

h1 span {
  color: var(--primary2);
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.profile-card {
  background: linear-gradient(145deg, #151d34, #0f1527);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.profile-image img {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-card p {
  color: var(--muted);
}

/* ==========================================
   About Section
   ========================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.info {
  padding: 15px;
  background: #0d1425;
  border-radius: 12px;
}

.info b {
  display: block;
}

.info span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================
   Projects Section
   ========================================== */
.project-link {
  display: inline-block;
  margin-top: 15px;
  color: #007bff; /* Sesuaikan warna dengan tema Anda */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9 rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ==========================================
   Timeline / Experience Section
   ========================================== */
.timeline {
  position: relative;
  margin-left: 10px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item small {
  color: var(--primary2);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 4px 0;
}

.timeline-item p {
  color: var(--muted);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill {
  margin: 16px 0;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.bar {
  height: 8px;
  background: #202a42;
  border-radius: 99px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #2dd4bf);
  border-radius: 99px;
}

/* ==========================================
   Contact Section & Footer
   ========================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

form {
  display: grid;
  gap: 13px;
}

.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d1425;
  color: white;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--muted);
  text-align: center;
}

/* ==========================================
   Responsive Styles (Media Queries)
   ========================================== */
@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b1020;
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .menu {
    display: block;
  }

  .hero-grid,
  .about,
  .contact,
  .skills,
  .projects {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero p {
    margin: auto;
  }

  .buttons {
    justify-content: center;
  }
}