/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('../images/background.png') ;
  background-size: cover; /* biar nutup layar penuh */
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 20px;
}
.profile-photo {
  width: 220px;
  height: 330px;
  object-fit: cover;
  margin-top: 20px;
  position: absolute;
  right: 530px;
  top: 90px;
  
}
/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  position: relative;
  right: 260px;
}

.hero h2 {
  font-size: 1.5rem;
  position: relative;
  right: 360px;
  top: 20px;
  color: #898884;
  margin-bottom: 20px;
  line-height: 0.5;
}

.hero p {
 position: relative;
  right: 302px;   /* ini bikin geser ke kanan, hati-hati konten bisa keluar layar */
  max-width: 230px;
  text-align: justify;
  margin: 0 auto 20px;
  color: #b0b0b0;
  font-size: 80%;
  line-height: 1.3;       /* rapatin jarak antar baris */
  letter-spacing: 0.2px; 
}

.hero hr{
  border: none;
  border-top: 6px solid #fff; /* warna & ketebalan garis */
  position: relative;
  left: 175px;       /* auto biar ke tengah */
  width: 150px;
  color: #887706;
}

.hero .info {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.container {
      text-align: right;
      position: relative;
      right: 230px;
      bottom: 400px;
    }

    .info {
      margin: 40px 0;
    }

    .label {
      font-size: 16px;
      color: #bbb;
      margin-bottom: 8px;
      position: relative;
      top: 25px;
    }

    .value {
      font-size: 50px;
      font-weight: bold;
    }

/* Education Section */

h2.education {
  text-align: center;
  margin: 60px 0;
  position: relative;
  right: 300px;
  bottom: 60px;
}
 .education-item {
  position: relative;
  left: 700px;
  bottom: 360px;
  width: 300px;
  height: 150px;
    display: flex;
    align-items: center;
    background-color: #222248;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.3);
  }
  .education-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px;
  }
  .education-info {
    display: flex;
    flex-direction: column;
  }
  .education-info strong {
    font-size: 1.2rem;
  }
  .education-info small {
    color: #a0a0a0;
    font-weight: 400;
  }

/* Portfolio Section */
.portfolio {
  text-align: center;
  margin: 60px 0;
  position: relative;
  bottom: 300px;
}

.portfolio h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #2e2e47;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.card span {
  font-size: 0.9rem;
  color: #aaa;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}
 .icon {
    width: 60px;
    height: 60px;
    fill: white;
    cursor: pointer;
 }
 /* Responsive untuk layar Android */

@media (max-width: 600px) {
  body {
    padding: 10px;
    text-align: center;
  }

  .profile-photo {
    position: static;  /* biar nggak ngambang di kanan */
    display: block;
    margin: 20px auto;
    width: 150px;
    height: auto;
  }

  .hero h1 {
    font-size: 1.8rem;
    right: 0; /* reset */
    text-align: center;
  }

  .hero h2 {
    font-size: 1rem;
    right: 0;
    top: 0;
    text-align: center;
  }

  .hero p {
    right: 0;
    max-width: 90%;
    margin: 10px auto;
    text-align: left;
    font-size: 0.85rem;
  }

  .hero hr {
    left: 0;
    margin: 10px auto;
  }

  .container {
    right: 0;
    bottom: 0;
    text-align: center;
    margin-top: 20px;
  }

  h2.education {
    right: 0;
    bottom: 0;
    font-size: 1.2rem;
    margin: 20px 0;
  }

  .education-item {
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 10px 0;
  }

  .portfolio {
    bottom: 0;
    margin: 40px 0;
  }

  .portfolio h3 {
    font-size: 1.5rem;
  }

  .portfolio-list {
    grid-template-columns: 1fr; /* 1 kolom di HP */
  }
}
