/* Reset & Layout */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #1e3a8a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  animation: fadeSlideIn 1s ease-in-out;
}


/* Text */
.text-side {
  flex: 1;
  min-width: 280px;
}

.typing-text {
  font-weight: 600;
  color: #0ea5e9;
  font-size: 1.1rem;
  margin-bottom: 10px;
  min-height: 24px;
}

.text-side h1 {
  font-size: 2.7rem;
  margin-bottom: 0.6rem;
  color: #1e40af;
}

.text-side h1 span {
  color: #0ea5e9;
}

.sub {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #334155;
  animation: fadeIn 1.2s ease-in-out;
}

.desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 2rem;
  animation: fadeIn 1.4s ease-in-out;
}

/* CTA Button */
.btn {
  background-color: #0ea5e9;
  color: white;
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5);
}

/* Social Icons */
.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icons img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.social-icons img:hover {
  transform: scale(1.2) rotate(8deg);
}

/* Image */
.image-side {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
  animation: fadeIn 1.5s ease-in-out;
}

.image-side img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #0ea5e9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.image-side img:hover {
  transform: scale(1.05) rotate(-2deg);
  transition: transform 0.4s ease;
}


/* Animations */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .image-side {
    margin-top: 2rem;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Tambahkan ini di bawah bagian Animations */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terapkan ke elemen text-side dan image-side */
.text-side,
.image-side {
  animation: slideFadeIn 1s ease forwards;
  opacity: 0;
}

.text-side {
  animation-delay: 0.2s;
}

.image-side {
  animation-delay: 0.2s;
}
