/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(
    to bottom right,
    #e5d4ef,
    #d4e4f7,
    #fff3c4,
    #fddde6
  );
  color: #333;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #e5d4ef, #fddde6);
  padding: 10px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  transition: background 0.3s ease;
}

.navbar:hover {
  background: linear-gradient(to right, #dccdf0, #fbd0dc);
}

.navbar .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .logo img {
  height: clamp(80px, 15vw, 100px);
  width: auto;
  object-fit: contain;
  margin-top: -4px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #6b214e;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Links (di luar navbar) */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #6b214e;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #b83280;
  color: white;
  transform: scale(1.05);
}

/* Active state for nav links */
.nav-links.show {
  display: flex !important;
}

/* Responsif untuk menu */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    height: auto;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #e5d4ef, #fddde6);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.show {
    display: flex !important;
    max-height: 450px;
    padding: 10px 0;
  }

  .nav-links li {
    margin: 8px 0;
    text-align: center;
  }

  .nav-links li:first-child {
    margin-top: 8px;
  }

  .nav-links a {
    color: #4a1a38;
    font-size: 16px;
    padding: 8px 15px;
    display: block;
  }
}

/* Pastikan nav-links tetap terlihat di layar besar */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
}

/* Header */
header {
  background: linear-gradient(to right, #dccdf0, #fbd0dc);
  padding: clamp(10px, 5vw, 20px) 15px;
  text-align: center;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(80px, 15vw, 100px);
}

header:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header .header-content h2 {
  margin: 0;
  color: #b83280;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Profile Section */
.profile-container {
  max-width: 90%;
  width: 800px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
  background-color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.profile-container:hover {
  transform: translateY(-5px);
}

.profile-img {
  width: clamp(120px, 20vw, 160px);
  height: clamp(120px, 20vw, 160px);
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  outline: 4px solid #d63384;
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-container h2 {
  color: #d63384;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.profile-container h3 {
  color: #b83280;
  font-size: clamp(18px, 3.5vw, 22px);
  margin: 20px 0 10px;
  font-weight: 600;
}

.education {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.education li {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #555;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  margin: 5px 0;
}

.bio {
  max-width: 90%;
  margin: 20px auto;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.6;
  color: #555;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #d63384;
  transition: all 0.3s ease;
}

.bio:hover {
  transform: scale(1.02);
  background-color: #f1f1f1;
}

/* Contact Section */
.kontak-section {
  background: linear-gradient(to right, #fbd0dc, #dccdf0);
  padding: 30px 15px;
  text-align: center;
  border-radius: 20px;
  margin: 30px auto;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kontak-section h3 {
  color: #b83280;
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.kontak-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.kontak-item {
  background-color: #ffe4ec;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kontak-item:hover {
  transform: translateY(-3px);
  background-color: #fcd3e1;
}

.kontak-item a {
  color: #6b214e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kontak-item a:hover {
  color: #b83280;
}

/* Footer */
footer {
  background: linear-gradient(to right, #e5d4ef, #fddde6);
  text-align: center;
  padding: 15px;
  color: #6b214e;
  font-size: clamp(10px, 2vw, 12px);
}

footer p {
  font-size: clamp(10px, 2vw, 12px);
  color: #b83280;
  font-weight: 400;
  margin: 8px auto 0;
  display: inline-block;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 15px;
    height: 80px;
  }

  /* Profile */
  .profile-container {
    padding: 15px;
    margin: 20px auto;
  }

  .bio {
    padding: 15px;
  }

  /* Contact */
  .kontak-section {
    padding: 20px 10px;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    height: 60px;
  }

  header .header-content h2 {
    font-size: 20px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .profile-container h2 {
    font-size: 18px;
  }

  .profile-container h3 {
    font-size: 16px;
  }

  .education li {
    font-size: 14px;
  }

  .bio {
    font-size: 14px;
  }

  .kontak-section h3 {
    font-size: 18px;
  }

  .kontak-item {
    font-size: 14px;
    padding: 8px 15px;
  }
}