*,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #121212, #1c1c1c);
  color: #f5f5f5;
  overflow-x: hidden;
}

.jumbotron {
  font-size: 1.5rem;
  padding: 5vw;
  background: linear-gradient(135deg, #111111, #333333);
  text-align: center;
  color: #ffffff;
  border-bottom: 5px solid #ffc107;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jumbotron h1 {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.jumbotron h1.active {
  opacity: 1;
  transform: translateY(0);
}

#typingEffect {
  color: #ffc107;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  min-width: 12ch; /* Estimasi panjang maksimal teks */
  text-align: left;
  transition: width 0.2s ease-out;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
}

main {
  padding: 20px;
  display: flex;
  gap: 2rem;
  background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
  justify-content: center;
  flex-wrap: wrap;
}

img {
  cursor: pointer;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  border: solid 4px #ffc107;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px #ffc107;
}

aside h3 {
  position: relative;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  color: #ffffff;
  z-index: 1;
}

aside h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #ffc107;
  border-radius: 10px;
  animation: lineInfinite 3s linear infinite;
  z-index: -1;
}

@keyframes lineInfinite {
  0% {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  25% {
    top: 0;
    left: 0;
    right: 100%;
    bottom: 0;
  }
  50% {
    top: 0;
    left: 100%;
    right: 100%;
    bottom: 0;
  }
  75% {
    top: 0;
    left: 100%;
    right: 0;
    bottom: 0;
  }
  100% {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

article q {
  font-size: 1.5rem;
  line-height: 1.8;
  text-align: center;
  display: block;
  margin: 20px 0;
  position: relative;
  color: #ffc107;
  background: linear-gradient(180deg, #2a2a2a, #0f0f0f);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0) scale(1); /* Posisi awal stabil */
}

article q:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6), inset 0 1px 5px rgba(255, 255, 255, 0.15);
}

article q::before,
article q::after {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Transisi halus */
  opacity: 1; /* Pastikan terlihat saat render pertama */
}

article q::before {
  top: -30px;
  left: 10px;
  transform: translateY(0); /* Posisi awal */
}

article q::after {
  bottom: -35px;
  right: 10px;
  transform: translateY(0); /* Posisi awal */
}

article q span {
  display: inline-block;
  position: relative;
  color: #ffc107;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease, background 0.3s ease;
}

article q span:hover {
  color: #000000;
  background: #ffc107;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

#profileImage {
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.8s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

#profileImage:hover {
  transform: perspective(1000px) rotateY(15deg);
  filter: brightness(1.2);
  box-shadow: 0 0 20px #ffc107;
}

.contact {
  margin-top: 30px;
}

.contact ul {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact li {
  position: relative;
  overflow: hidden;
  display: inline-block;
  list-style-type: none;
  padding: 10px 15px;
  background: linear-gradient(135deg, #111111, #333333);
  border: solid 2px #ffc107;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: auto;
  transition: transform 0.3s ease;
}

.contact li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffc107;
  z-index: -1;
  transition: top 0.3s ease-in-out;
}

.contact li:hover::after {
  top: 0;
}

.contact li:hover {
  background: #ffc107;
  box-shadow: 0 0 15px #ffc107;
  transform: scale(1.2);

}

.contact li:hover a {
  color: #000000;
}

.contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .jumbotron {
    font-size: 1.2rem;
    padding: 6vw;
  }

  .jumbotron h1 {
    font-size: 2rem;
  }

  main {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  img {
    max-width: 200px;
  }

  aside h3 {
    margin-top: 10px;
    padding: 8px;
  }

  .contact ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .contact li {
    margin-bottom: 10px;
    width: 60%;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .jumbotron {
    font-size: 1.3rem;
    padding: 4vw;
  }

  .jumbotron h1 {
    font-size: 2.5rem;
  }

  main {
    flex-direction: column;
    gap: 1.5rem;
  }

  aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  img {
    max-width: 220px;
  }
}

::-webkit-scrollbar {
  height: 8px;
  width: 12px;
  background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
  background: #4b4b4b;
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

::-webkit-scrollbar-corner {
  background: #2c2c2c;
}