/* ===============================
   CSS Variables
=============================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --text: #111111;
  --text-muted: #555555;
  --accent: #1a3c34;          /* hijau gelap */
  --border: #e5e5e5;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --container: 920px;
  --header-height: 64px;
}

/* ===============================
   Reset & Base
=============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===============================
   Utility
=============================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* ===============================
   Header
=============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  z-index: 20;
}

/* Desktop Nav */
.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
}

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

/* ===============================
   Hamburger
=============================== */
.hamburger {
  display: none;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 20;
  padding: 0;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* Jadi X */
.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* ===============================
   Mobile Styles
=============================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 24px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 15;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 500;
  }

  .nav a::after {
    display: none;
  }
}

/* ===============================
   Hero
=============================== */
.hero {
  padding: 100px 0 90px;
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero__content {
  flex: 1;
  max-width: 520px;
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Foto */
.hero__image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;          /* bulat */
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 70px 0 60px;
  }

  .hero__container {
    flex-direction: column-reverse; /* foto di atas */
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    width: 200px;
    height: 200px;
  }
}

/* ===============================
   Buttons
=============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background-color: #14302a;
  border-color: #14302a;
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* ===============================
   About
=============================== */
.about__content {
  max-width: 640px;
}

.about__content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* ===============================
   Skills
=============================== */
.skills {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skills__group-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all 0.25s ease;
}

.skill-tag:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===============================
   Projects
=============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.project-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 24px;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-card__badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e8f0ee;
  color: var(--accent);
  white-space: nowrap;
}

.badge--soon {
  background: #f5f5f5;
  color: #777;
}

.project-card__role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-card__tech {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.project-card__links {
  display: flex;
  gap: 16px;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.project-link:hover {
  color: var(--accent);
}

.project-link:hover::after {
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card__image {
    height: 180px;
  }
}

/* ===============================
   Experience
=============================== */
.experience {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.exp-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.exp-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.exp-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.35;
}

.exp-card__meta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 3px;
}

.exp-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.exp-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
  .exp-card {
    padding: 24px 20px;
  }

  .exp-card__header {
    flex-direction: column;
    gap: 8px;
  }

  .exp-card__date {
    padding-top: 0;
  }
}


/* ===============================
   Contact
=============================== */
.contact {
  max-width: 560px;
}

.contact__text {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f2;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.contact-item__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-item__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease;
}

.contact-item:hover {
  padding-left: 6px;
}

.contact-item:hover .contact-item__icon {
  background: var(--accent);
  color: #ffffff;
}

.contact-item:hover .contact-item__value {
  color: var(--accent);
}

/* ===============================
   Footer
=============================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #fafaf9;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 6px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer__links {
    gap: 20px;
  }
}
/* ===============================
   Responsive
=============================== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .project__header,
  .exp-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .skills__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 480px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}