.hero {
  min-height: calc(50vh - 70px);
  padding-top: 50px;
}
/* ===== PROJECT CARD ANIMATION ===== */

.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;

  /* Shadow awal */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

  /* Animasi hover */
  transition: all 0.4s ease;

  /* Animasi saat muncul */
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Hover effect */
.card:hover {
  box-shadow: 0 12px 30px rgba(13, 109, 253, 0.986);
}

/* Gambar di dalam card */
.card img {
  transition: transform 0.5s ease;
}

/* Zoom gambar saat hover */
.card:hover img {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

/* Animasi muncul dari bawah */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay tiap card */
.col-md-4:nth-child(1) .card {
  animation-delay: 0.1s;
}
.col-md-4:nth-child(2) .card {
  animation-delay: 0.3s;
}
.col-md-4:nth-child(3) .card {
  animation-delay: 0.5s;
}

/* Optional: animasi teks */
.card-title,
.card-text {
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: #0d6efd; /* warna primary bootstrap */
}
@media (max-width: 768px) {
  .card:hover {
    transform: none;
  }
}
/* ===== ABOUT IMAGE EFFECT ===== */

#about img {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

  /* animasi halus */
  transition: box-shadow 0.4s ease;

  /* animasi muncul */
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* hover TANPA membesar */
#about img:hover {
  box-shadow: 0 12px 30px rgb(13, 109, 253);
}

/* animasi muncul dari bawah (sama seperti card) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SKILLS ANIMATION ===== */

#skills .badge {
  display: inline-block;
  font-size: 1rem;
  border-radius: 12px;

  /* shadow awal */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

  /* animasi halus */
  transition: transform 0.35s ease, box-shadow 0.35s ease;

  /* animasi muncul */
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* hover: maju & membesar SEDIKIT */
#skills .badge:hover {
  transform: translateY(-2px) scale(1.09);
  box-shadow: 0 10px 25px rgb(13, 109, 253);
  -webkit-transform: translateY(-2px) scale(1.09);
  -moz-transform: translateY(-2px) scale(1.09);
  -ms-transform: translateY(-2px) scale(1.09);
  -o-transform: translateY(-2px) scale(1.09);
}

/* delay tiap badge */
#skills .col-md-3:nth-child(1) .badge { animation-delay: 0.1s; }
#skills .col-md-3:nth-child(2) .badge { animation-delay: 0.2s; }
#skills .col-md-3:nth-child(3) .badge { animation-delay: 0.3s; }
#skills .col-md-3:nth-child(4) .badge { animation-delay: 0.4s; }
#skills .col-md-3:nth-child(5) .badge { animation-delay: 0.5s; }
#skills .col-md-3:nth-child(6) .badge { animation-delay: 0.6s; }

/* animasi muncul dari bawah */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  #skills .badge:hover {
    transform: none;
  }
}

.blob {
  position: absolute;
  top: 120px;
  right: 80px;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6, #06b6d4, #10b981, #22c55e,  #84cc16);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  z-index: -1;
}
@media (max-width: 768px) {
  .blob {
    top: 100px;
    right: 20px;
    width: 200px;
    height: 200px;
    filter: blur(70px);
  }
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-9px);
  box-shadow: 0 10px 25px rgba(59, 131, 246, 0.842);
  -webkit-transform: translateY(-9px);
  -moz-transform: translateY(-9px);
  -ms-transform: translateY(-9px);
  -o-transform: translateY(-9px);
}

.col-md-4.text-center {
  animation: float 4s ease-in-out infinite;
  animation-timing-function: ease-in-out;
  img {
    animation: float 4s ease-in-out infinite;
    animation-timing-function: ease-in-out;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}
/* ===== IMAGE GALLERY ===== */
.galery-foto {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
  font: 2em sans-serif;
  filter: drop-shadow(10px 10px 10px rgb(0, 162, 255));
  -webkit-filter: drop-shadow(10px 10px 10px rgb(0, 162, 255));
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;
}

.gallery {
  display: grid;
  gap: 50px;

  /* Center grid horizontal */
  grid-template-columns: repeat(4, 200px); /* desktop 4 kolom */
  justify-content: center;
}
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 200px); /* tablet 3 kolom */
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 150px); /* HP 2 kolom */
  }
}

.gallery img {
  width: 105%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.gallery img:hover {
  transform: scale(1.05);
}
