.profile-container {
  position: relative;
  display: inline-block;
}

.profile-image {
  border: 3px solid #ffc107;
  border-radius: 50%;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.profile-container:hover .profile-image {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}


.outer-circle {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px dashed rgba(255, 193, 7, 0.5);
  border-radius: 50%;
  animation: spin 20s linear infinite;
  z-index: 1;
}

.hero-text {
  opacity: 0;
  animation: fadeInLeft 1s ease forwards;
}

.hero-image {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.gradient-text {
  background: linear-gradient(45deg, #ffffff, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* skill */
.skill-card {
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: none;
  margin-bottom: 20px;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill-card .card-body {
  padding: 2rem 1rem;
}

.skill-icon {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.skill-card:hover .skill-icon {
  transform: scale(1.2) rotate(360deg);
}

.progress-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ffc107;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover .progress-ring {
  opacity: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skill-title {
  margin-top: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.skill-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.3s ease;
}

.skill-card:hover .skill-title::after {
  width: 50px;
}

.fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  */
#achievements {
    background-color: #1e1e2f;
}
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}
.achievement-item h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffd700;
}
.achievement-item p {
    color: #ffd700;
    font-size: 0.95rem;
}
.achievement-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*  */
.card {
    border: none;
    border-radius: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
}

.bi {
    color: #f39c12;
}

.card-body {
    padding: 20px;
}

.d-flex {
    align-items: center;
}

.ms-3 {
    margin-left: 15px;
}


/*  */
.experience-card:hover .card-body {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.icon-box i {
  color: white;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
}

.card-text {
  font-size: 0.9rem;
  margin-top: 10px;
}

/* sertifikat */
.certificate-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.scroll-container {
  max-height: 80vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.certificate-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.certificate-img {
  height: 150px;
  object-fit: cover;
}

.modal img {
  max-width: 100%;
  height: auto;
}

/* kontak */
.social-icons a:hover {
  color: #ffcc00;
  transform: scale(1.2);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* karya */
.gallery-section {
    background-color: #1a1b26;
    padding: 80px 0;
}

.section-title {
    color: #ffcc00;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.portfolio-card {
    background-color: #1a1b26;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-card .card-body {
    padding: 1.5rem;
}

.portfolio-card .card-title {
    color: #ffcc00;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.portfolio-card .card-text {
    color: #ffffff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 30px;
    height: 30px;
    background-color: #ffcc00;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4a4b56;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #ffcc00;
}

@media (max-width: 768px) {
    .portfolio-card {
        margin: 10px;
    }
}