/* --- Animasi Masuk Halaman (On Load) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Penundaan untuk elemen yang berbeda */
.hero-section .col-lg-6 {
  animation-delay: 0.5s;
}

.hero-section .profile {
  animation-delay: 0.8s;
}

/* --- Animasi Scroll (Elements on scroll) --- */
.animated-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05); /* Efek melayang lebih terasa */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); /* Bayangan lebih dalam */
}

.skill-card:hover .fa-2x,
.skill-card:hover h6 {
  color: var(--primary); /* Ganti warna ikon dan teks */
  transition: color 0.3s ease;
}

.portfolio-section .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-section .card-img-top {
  transition: transform 0.3s ease;
}

.portfolio-section .card:hover .card-img-top {
  transform: scale(1.05); /* Gambar sedikit membesar */
}

.btn-primary, .btn-dark, .btn-outline-primary {
  transition: all 0.3s ease;
}

/* Efek Hover untuk Tombol */
.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(165, 61, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    box-shadow: 0 5px 15px rgba(165, 61, 255, 0.4);
    transform: translateY(-2px);
}

/* Efek Hover untuk Ikon Sosial Media */
.intro-section .btn {
  transition: all 0.3s ease;
}

.intro-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-section .btn i {
  transition: color 0.3s ease;
}

.intro-section .btn:hover i {
  color: var(--dark) !important;
}

:root {
  --primary: #A53DFF;
  --dark: #333333;
  --white: #ffffff;
}

.text-primary {
  color: var(--primary) !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #fdfbfb, #ebedee);
  color: var(--dark);
}

.navbar {
  z-index: 1000;
  position: sticky;
  top: 0;
}

.navbar-brand {
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  color: #333;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.hero-section {
  padding: 100px 128px;
  background: linear-gradient(90deg, #fceaff, #e0f7ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.btn-primary {
  background-color: var(--primary);
  border: none;
}

.btn-primary:hover {
  background-color: #8a2ce2;
}

.btn-dark {
  background-color: #000;
  border: none;
}

.btn-dark:hover {
  background-color: #333;
}

.profile img {
  width: 100%;
  max-width:320px;
  height: auto;
  background-color: var(--white);
  margin-top: -6rem;
}

.detail{
  background-color: var(--primary);
  width: 360px;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

}

.detail h4{
  color: var(--white);
  display: flex;
  margin-top: 12px;
  padding-inline: 24px;
}

.detail small{
  color: var(--white);
  display: flex;
  padding-inline: 24px;
  padding-bottom: 12px;
}

.intro-section {
  padding: 0 128px;
  background: linear-gradient(90deg, #fceaff, #e0f7ff);
}

.intro-section .btn {
  border-radius: 8px;
}

.intro-section .btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.intro-section .btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.intro-section .btn i {
  font-size: 1rem;
}

.intro-section img{
  margin-block: 2rem;
  width: 100%;
  max-width:240px;
}

.desc{
  margin-left: -1rem;
  margin-bottom: 3rem;
}

.skills-section {
  padding: 0 128px;
  background: #f9f9f9;
}

.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-section {
  padding: 0 128px;
  background: #fff;
}

.portfolio-section .card {
  transition: transform 0.3s ease;
}

.portfolio-section .card:hover {
  transform: translateY(-5px);
}
.contact-section {
  padding: 0 128px;
  background: #f9f9fb;
}

.contact-section .form-control {
  border-radius: 0.75rem;
  border: 1px solid #ccc;
  padding: 0.75rem;
}

.contact-section .form-control:focus {
  border-color: #9b5de5;
  box-shadow: 0 0 0 0.25rem rgba(155, 93, 229, 0.2);
}

.contact-section .btn-primary {
  background: linear-gradient(135deg, #9b5de5, #5f27cd);
  border: none;
  border-radius: 2rem;
  transition: background 0.3s;
}

.contact-section .btn-primary:hover {
  background: linear-gradient(135deg, #7b4bd9, #3d1dbf);
}
#kerjasama {
  background: linear-gradient(135deg, #f4f1de, #fff);
}

#kerjasama h2 {
  font-size: 2rem;
  color: #3D2C2E;
}

#kerjasama p{
  max-width: 600px;
  margin: 0 auto;
}

#kerjasama .btn-primary {
  background: linear-gradient(to right, #e07a5f, #9b5de5);
  border: none;
  transition: 0.3s ease;
}

#kerjasama .btn-primary:hover {
  background: linear-gradient(to right, #c8644d, #7c44cc);
}

.footer-section {
  padding: 0 128px;
  color: var(--dark);
}

.footer-section h5 {
  color: var(--primary);
}

.footer-section iframe {
  border-radius: 12px;
}

.footer-section a {
  color: var(--primary);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.skills-section img {
  max-height: 50px;
  object-fit: contain;
}

  /* PERTEMUAN 6 PHP */
  .back-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 20px;
  }

  .back-btn i {
    font-size: 24px;
    margin-right: 10px;
  }

  .container-custom {
    max-width: 960px;
    margin: auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .badge-info {
    background-color: var(--primary);
    color: #fff;
  }

  img.guide-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    justify-content: center; align-items: center
  }

  h1, h2, h3, h4 {
    margin-top: 1.5rem;
    font-weight: 700;
    font-weight: bold;
  }

  ul {
    padding-left: 1.2rem;
  }

@media (max-width: 768px) {
  /* Section padding */
  .hero-section,
  .intro-section,
  .skills-section,
  .portfolio-section,
  .contact-section,
  .footer-section {
    padding: 2rem 1rem;
  }

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 100vh;
}


  /* Gambar profil */
  .profile img {
    max-width: 200px;
    margin-top: 1.5rem;
  }

  /* Detail card (jika ada) */
  .detail {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
  }

  .detail h4,
  .detail small {
    padding-inline: 1rem;
  }

  /* Typography */
  h1, h2 {
    font-size: 1.5rem;
  }

  h3, h4 {
    font-size: 1.25rem;
  }

  p, small {
    font-size: 0.95rem;
  }

  /* Tombol */
  .btn,
  .btn-primary,
  .btn-dark {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  /* Contact form input */
  .contact-section .form-control {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  /* Navbar */
  .navbar-collapse {
    align-items: flex-end;
    text-align: right;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .navbar-collapse .btn {
    width: 100%;
    text-align: right;
    margin-top: 1rem;
  }

  /* Footer */
  .footer-section {
    text-align: center;
    padding: 2rem 1rem;
  }

  .footer-section iframe {
    width: 100%;
    height: 250px;
  }
}
