.navbar {
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: #7d1c4a;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #56021f;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d17d98;
}

/* container kanan (burger + links) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* burger (disembunyikan di desktop) */
#nav-check {
  display: none;
}

.nav-burger {
  display: none;
  width: 32px;
  height: 22px;
  position: relative;
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #56021f;
  border-radius: 2px;
  transition: 0.3s ease;
}
.nav-burger span:nth-child(1) {
  top: 0;
}
.nav-burger span:nth-child(2) {
  top: 9px;
}
.nav-burger span:nth-child(3) {
  top: 18px;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  /* tampilkan burger, ubah menu jadi dropdown */
  .nav-burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(64px + 0.5rem);
    background: #fff;
    border: 1px solid #f0e1ea;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0; /* reset */
  }
  .nav-links li {
    border-top: 1px solid #f6ecf1;
  }
  .nav-links li:first-child {
    border-top: none;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.1rem;
  }

  /* buka menu saat checkbox dicentang */
  #nav-check:checked ~ .nav-links {
    max-height: 360px;
  }

  /* animasi burger jadi X */
  #nav-check:checked + .nav-burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #nav-check:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  #nav-check:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ========== HERO SECTION STYLING ========== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #56021f; /* warna background untuk bagian lain */
  color: #333;
}

/* ========== HERO (Responsive) ========== */
.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 2rem;
  background: linear-gradient(to right, #f4cce9, #ffffff);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 520px; 
  min-width: 260px;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #7d1c4a;
  margin: 0 0 0.75rem 0;
}

.hero-text h1 span {
  color: #d17d98;
}

.hero-text p {
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 60ch; /* batasi panjang baris biar nyaman dibaca */
  color: #56021f;
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.125rem);
}

/* Foto */
.hero-image {
  flex: 0 1 340px; /* kolom foto tidak terlalu besar */
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: clamp(160px, 30vw, 300px); /* fluid size */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #56021f;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center; /* center semuanya */
    text-align: center;
  }

  .hero-text {
    flex-basis: auto;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: 2;
  } 
  .hero-image img {
    border-width: 3px;
  }
}

/* Optional: very small phones */
@media (max-width: 380px) {
  .hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

.experience {
  background-color: #f4cce9;
  padding: 4rem 2rem;
}

.experience-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-image {
  position: relative;
  flex: 1 1 350px;
  text-align: center;
}

.experience-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 50% 50% 50% 0;
  object-fit: cover;
}

.badge {
  display: inline-block;
  position: absolute;
  top: -20px;
  left: -20px;
  background-color: #56021f;
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none; 
}

.experience-content {
  flex: 1 1 500px;
}

.experience-content h2 {
  color: #7d1c4a;
  margin-bottom: 0.5rem;
}

.experience-content h3 {
  color: #56021f;
  margin-bottom: 0.5rem;
}

.experience-content p {
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .experience-container {
    flex-direction: column;
    text-align: center;
  }

  .badge {
    position: static;
    margin-top: 1rem;
  }
}

.education {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.education h2 {
  font-size: 2.2rem;
  color: #7d1c4a;
  margin-bottom: 2rem;
}

.education-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.edu-card {
  background-color: #f4cce9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 280px;
  flex: 1 1 250px;
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
}

.edu-card h3 {
  margin-bottom: 0.5rem;
  color: #56021f;
  font-size: 1.2rem;
}

.edu-year {
  color: #7d1c4a;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-major {
  color: #333;
  font-size: 0.95rem;
}

.edu-subtext {
  font-size: 1rem;
  color: #333;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.edu-logo {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.skills {
  background: linear-gradient(to bottom, #fce4ec, #ffffff);
  padding: 4rem 2rem;
}

.skills h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #7d1c4a; 
  margin-bottom: 0.5rem;
  position: relative;
}

.skills h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #e91e63, #f48fb1);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.skills-subtext {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #fce4ec;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.skill-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-card h3 {
  margin: 0;
  color: #7d1c4a;
}

.skill-card p {
  margin: 0.5rem 0 0;
  color: #333;
}

.icon-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.icon-group img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

.projects {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #fce4ec, #fff);
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  color: #7d1c4a;
  margin-bottom: 3rem;
  position: relative;
}

.projects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #d17d98, #7d1c4a);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.project-card.reverse {
  flex-direction: row-reverse;
}

/* === Update ukuran gambar === */
.project-image {
  flex: 0 0 clamp(260px, 40vw, 380px); /* kolom gambar tidak lebih kecil 260px, ideal 40%, max 380px */
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 gambar sejajar */
  gap: 1rem;
}

/* Default untuk project image */
.project-image img {
  width: 100%;
  height: auto;
  max-width: 320px; /* default ukuran sedang */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* Khusus project web (Bootcamp App) → lebih lebar */
.project-card.webapp .project-image img {
  max-width: 480px; /* preview lebih besar */
}

/* Khusus project mobile app (Violation Reporting) → lebih ramping */
.project-card.mobileapp .project-image img {
  max-width: 220px; /* biar nggak kegedean */
}

/* Khusus UI/UX poster → lebih kecil */
.project-card.uiux .project-image img {
  max-width: 180px;
}

/* Responsif */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    text-align: center;
  }
  .project-image {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .project-card.webapp .project-image img,
  .project-card.mobileapp .project-image img,
  .project-card.uiux .project-image img {
    max-width: 100%; /* biar full kalau di HP */
  }
}

.project-info {
  flex: 1 1 380px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #56021f;
}

.project-info p {
  margin-bottom: 0.8rem;
  color: #333;
}

.btn-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #7d1c4a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn-link:hover {
  background: #56021f;
}

/* === Responsif untuk HP === */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }
  .project-card.reverse {
    flex-direction: column;
  }
  .project-image {
    grid-template-columns: 1fr; 
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ===== Contact Section ===== */
.contact {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #f4cce9, #ffffff);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* kiri lebih lebar */
  gap: 2rem;
  align-items: center;
}

/* Kartu kontak kiri */
.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border-radius: 999px; 
  border: 1px solid #f3e1ea;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.contact-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.contact-card h4 {
  margin: 0;
  color: #56021f;
  font-weight: 700;
  font-size: 1rem;
}

.contact-card p {
  margin: 2px 0 0;
  color: #7d1c4a;
  font-size: 0.95rem;
}

/* Panel info kanan */
.contact-info .eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  color: #7d1c4a;
  background: #f4cce9;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.contact-info h2 {
  margin: 0 0 0.75rem;
  color: #56021f;
  font-size: 2rem;
}

.contact-info p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.btn-contact {
  display: inline-block;
  background: #7d1c4a;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-contact:hover {
  background: #56021f;
}

/* Responsif */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr; /* stack */
  }
  .contact-info {
    text-align: center;
  }
  .contact-list {
    order: 2;
  }
}
