* {
  box-sizing: border-box;
}

body {
  background-color: #201e30;
  color: white;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin: 0;
}

canvas#finisher-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.header {
  width: 100%;
  height: auto;  /* Gunakan auto agar tinggi header menyesuaikan dengan kontennya */
  min-height: 300px;  /* Minimum height untuk memastikan header tidak terlalu kecil */
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  font-size: 2rem;
  padding: 20px 0;  /* Tambahkan sedikit padding untuk ruang yang cukup */
  height: 100%;  /* Pastikan konten memenuhi tinggi header */
  box-sizing: border-box; /* Untuk menghindari overflow */
}


/* Styling untuk headerone dan headerdua */
.headerone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.headertwo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.headersatu {
  display: flex;
  font-size: 5vmax;
  padding: 5vmax;
}

.headerdua {
  font-size: 3vmax;
  padding-top: 3%;
  padding-bottom: 5%;
}

.headertiga img{
  width: auto;
  height: 20vmax;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.6));
  transform: scale(1);
  transition: transform 0.3s ease;
}

.headerempat {
    font-size: 2.5vmax;
    padding-top: 3vmax;
}

.headertiga img:hover {
  transform: scale(1.05);
}


.PageBreak img{
  width: 70vw;
  height: auto;
  align-items: center;
  justify-content: center;
  margin-top: 0%;
  margin-bottom: 0%;
  
}

.PageBreak1 {
  display: none; /* Sembunyikan elemen secara default */
}



/* Responsif untuk tampilan kecil */
  @media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .PageBreak1 {
    display: block; /* Tampilkan elemen */
    text-align: center; /* Opsional: Untuk memusatkan konten */
  }

  .PageBreak1 img {
    width: 70vw;
    height: auto;
    align-items: center;
    justify-content: center;
    padding-top: 10%;
    margin-bottom: -10%;
  }
}

.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 15rem; /* Reduced from 4rem to 2rem for top/bottom margins */
    z-index: 1;
    position: relative;
}

/* Update responsive margins as well */
@media (max-width: 1600px) {
    .profile-container {
        margin: 2rem 8rem; /* Reduced from 4rem to 2rem */
    }
}

.profile-card {
    background-color: rgba(40, 40, 40, 0.90);
    border-radius: 15px;
    padding: 2rem;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(76, 0, 130, 0.3);
    border: 1px solid rgba(76, 0, 130, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center profile image and content */
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(76, 0, 130, 0.5);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 3px solid rgba(76, 0, 130, 0.5);
}

.profile-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.profile-card p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #d7d7d7;
}

.portfolio-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem; /* Reduced padding */
    background-color: rgba(76, 0, 130, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 20px; /* Reduced border radius */
    transition: all 0.3s ease;
    font-size: 1rem; /* Reduced font size */
}

.portfolio-link:hover {
    background-color: rgba(76, 0, 130, 1);
    transform: scale(1.05);
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
    margin-bottom: 2rem; /* Added bottom margin */
    padding: 1rem 2rem;
    background-color: rgba(76, 0, 130, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.back-button:hover {
    background-color: rgba(76, 0, 130, 1);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1600px) {
    .profile-container {
        margin: 2rem 8rem; /* Reduced from 4rem to 2rem */
    }
}

@media (max-width: 1200px) {
    .profile-container {
        margin: 2rem; /* Reduce margins on smaller screens */
        justify-content: center; /* Center cards when stacked */
    }
}

@media (max-width: 900px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 90%;
        max-width: 400px;
        min-height: auto; /* Remove fixed height on mobile */
    }
}
