/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #fff;
}

/* NAVBAR */
.navbar {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-fixed {
  position: fixed;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
}

.nav-menu a {
  margin-left: 24px;
  text-decoration: none;
  color: #000000;
}

.nav-menu a:hover {
  color: #2563eb;
}

.hamburger {
  display: none;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex: wrap;
  justify-content: center;
}

.hero-welcome {
  display: flex;
  align-items: center;      /* sejajar secara vertikal */
  justify-content: space-between; /* teks kiri, gambar kanan */
  gap: 400px;                /* jarak antara teks & gambar */
  padding: 30px;
  padding-top: 100px;
}


.hero-text {
  padding: 20px;
  display: grid;
  justify-content: center;
  align-items: center;
}

.hero h2{
  color: #2563eb;
}

.hero h1{
  color: #000;
  font-size: 48px;
}

.hero p{
  color: #000;
}

.hero p span {
  color: #000000;
  font-weight: bold;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 2px;
}

.hero-image {
  display: grid;
  justify-content: center;
  align-items: center;
  max-width: 400px;
}

.hero-image img {
  width: 400px;
  height: 430px;
  object-fit: cover;
}


.btn-primary {
  padding: 10px 18px;
  max-width: fit-content;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  margin-top: 20px;
}

.btn-primary:hover {
  background: #1e40af;
}

.about {
  background: white;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 182, 193, 0.5);
  max-width: 900px;
  margin: 80px auto;
  color: #000;
}

.about h2 {
  text-align: left;
  margin-bottom: 20px;
  color: #2563eb;
}
.about p {
  line-height: 1.3;
  text-align: justify;
}

.portfolio {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.portfolio h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #2563eb;
}
.portfolio h4 {
  text-align: center;
  margin-bottom: 40px;
  color: #000;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.portfolio-item {
  background: #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.portfolio-item:hover {
  transform: translateY(-5px);
}
.portfolio-item img {
  width: 100%;
  height: auto;
}
.portfolio-item h3 {
  margin: 16px;
  color: #000;
}
.portfolio-item p {
  margin: 0 16px 16px;
  color: #333;
}

.pendidikan {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  color: #000;
}
.pendidikan-container {  /* wadah untuk item pendidikan jadi min harus ada 3 div */
  display: flex;
  gap: 5px;              /* jarak antar item */
}

.pendidikan-item {
  flex: 1;                /* semua item lebar sama biar simetris */
  text-align: center;
}

.pendidikan-item img {
  width: 100%;          /* semua gambar ngikuti lebar item */
  height: 180px;        /* tinggi DIPAKSA sama */
  object-fit: cover;    /* gambar tidak gepeng */
  border-radius: 8px;   /* opsional: biar rapi */
  display: block;
}
.pendidikan-item p {
  margin-top: 10px;
}

.pendidikan h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #2563eb;
}
.pendidikan-text {
  text-align: center;
  margin-bottom: 40px;
}

.contact {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  color: #000;
}
.contact h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2563eb;
}
.contact h1 {
  text-align: center;
  margin-bottom: 20px;
}
.contactsocial {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.contactsocial li {
  margin: 0 10px;
}

.contactsocial a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  transition: 0.3s;
}

.contactsocial a:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* FOOTER */
.footer {
  background: #020617;
  padding: 80px 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 170px;
  margin-bottom: 40px;
}

.footer h3,
.footer h4 {
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

/* SOCIAL */
.social {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.social li {
  margin: 0 10px;
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.3s;
}

.social a:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* COPYRIGHT */
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 14px;
}

.copyright span {
  color: #38bdf8;
}

/* TO TOP */
#to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

@media (max-width: 1024px) {
  .hero-welcome {
  display: flex;
  align-items: center;      /* sejajar secara vertikal */
  justify-content: space-between; /* teks kiri, gambar kanan */
  gap: 40px;                /* jarak antara teks & gambar */
  padding: 30px;
  padding-top: 100px;
  }
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-container {
    padding: 16px;
  }

  .nav-menu {
    display: none; /* siap untuk hamburger */
  }

  /* HERO */
  .hero {
    min-height: auto;
  }

  .hero-welcome {
    flex-direction: column;
    gap: 40px;          /* ganti dari 400px */
    padding: 100px 20px 40px;
    text-align: center;
  }

  .hero-text {
    justify-content: start;
    text-align: left;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p span {
    font-size: 16px;
  }

  .hero-image img {
    width: 260px;
    height: 300px;
  }

  /* ABOUT */
  .about {
    margin: 60px auto;
  }

  /* PORTFOLIO */
  .portfolio {
    margin: 60px auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* PENDIDIKAN */
  .pendidikan-container {
    flex-direction: column;
    gap: 20px;
  }

  .pendidikan-item img {
    height: 200px;
    width: 60%;          /* semua gambar ngikuti lebar item */
    margin: auto;       /* gambar di tengah */
  }

  /* CONTACT */
  .contact {
    margin: 60px auto;
  }

  .contactsocial {
    flex-wrap: wrap;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    gap: 40px;        /* ganti dari 170px */
    text-align: center;
  }

  .footer ul {
    padding: 0;
  }

  /* SOCIAL ICON FOOTER */
  .social {
    flex-wrap: wrap;
  }

  /* TO TOP BUTTON */
  #to-top {
    bottom: 20px;
    right: 20px;
  }
}
