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

:root {
  --bg: #050816;
  --bg-soft: #0b1220;
  --accent: #22c55e;
  --accent-2: #6366f1;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-xl: 1.25rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* glow background */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.9;
  z-index: -1;
}

body::before {
  top: -120px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.25),
    transparent 60%
  );
}

body::after {
  bottom: -140px;
  right: -80px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.3),
    transparent 60%
  );
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 7vw;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  transition: background 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.navbar--scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.25);
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 500;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease-out;
}

.navbar a:hover {
  color: var(--text);
}

.navbar a:hover::after {
  width: 100%;
}

/* LAYOUT */
main {
  padding: 2.5rem 7vw 4rem;
  max-width: 1120px;
  margin-inline: auto;
}

.footer {
  padding: 1.2rem 7vw 1.4rem;
  max-width: 1120px;
  margin-inline: auto;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 3.4vw + 1rem, 3.4rem);
  margin-bottom: 0.7rem;
}

.hero-text h1 span {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-desc {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn.primary {
  background: radial-gradient(circle at 20% 0, #4ade80, var(--accent));
  color: #022c22;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.55);
}

.btn.outline {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.btn.outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* HERO CARD */
.hero-card {
  position: relative;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border-radius: 1.5rem;
  padding: 1.6rem 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 160deg,
    rgba(34, 197, 94, 0.22),
    transparent 40%,
    rgba(99, 102, 241, 0.25),
    transparent 75%,
    rgba(34, 197, 94, 0.22)
  );
  opacity: 0.4;
  z-index: -1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at top left, #020617, #020617);
  z-index: -1;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.hero-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.4rem;
}

/* SECTION */
.section {
  margin-bottom: 3.2rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.section h2::after {
  content: "";
  height: 2px;
  width: 74px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section p {
  color: var(--muted);
  max-width: 40rem;
}

/* GRID & CARD */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.grid.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.85);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease, background 0.16s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, #020617, #020617);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
}

.card ul {
  margin-top: 0.4rem;
  margin-left: 1rem;
  color: var(--muted);
}

/* PROJECT GRID */
#projects .grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* PILLS */
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.pill-list li {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* CONTACT */
.contact-list {
  list-style: none;
  margin-top: 0.6rem;
  color: var(--muted);
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .navbar {
    padding-inline: 1.2rem;
  }

  main {
    padding-inline: 1.2rem;
  }

  .footer {
    padding-inline: 1.2rem;
  }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* kasih animasi ke hero */
.hero-text {
  animation: fadeUp 0.7s ease-out both;
}

.hero-card {
  animation: fadeUp 0.8s ease-out both;
  animation-delay: 0.06s;
}

/* BADGE STYLE */
.section-badge {
  display: block;                /* ⬅️ ini kunci utamanya */
  width: fit-content;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  margin-bottom: 0.6rem;         /* jarak ke tulisan "Project" */
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35),
              0 0 12px rgba(34, 197, 94, 0.35);
}




/* section muncul pelan-pelan */
.section {
  animation: fadeInSoft 0.7s ease-out both;
}

/* BUTTON LINK KEREN UNTUK PROJECT */
.project-links {
  margin-top: 0.9rem;
}

.project-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.7); /* ungu */
  background: rgba(99, 102, 241, 0.15);
  transition: all 0.2s ease;
}

.project-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4),
              0 8px 24px rgba(34, 197, 94, 0.35);
  border-color: transparent;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .navbar nav {
    display: none;
  }

  .hero {
    margin-top: 1rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }
}
