.skills {
  background: linear-gradient(135deg, #fc4e4e 0%, #47bffc 100%);
  padding: 5rem 9%;
  text-align: center;
}

.section-title {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease forwards;
}

.section-title span {
  color: #ffffff;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.skill-card {
  background-color: #1a1a1a;
  border: 2px solid #b74b4b;
  padding: 2rem;
  border-radius: 1.5rem;
  width: 150px;
  height: 150px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInZoom 1s ease forwards;
  opacity: 0;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 20px #b74b4b;
}

.skill-card i {
  font-size: 4rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.8rem;
  color: #ffffff;
}

.skill-card:nth-child(1) { animation-delay: 0.2s; }
.skill-card:nth-child(2) { animation-delay: 0.4s; }
.skill-card:nth-child(3) { animation-delay: 0.6s; }
.skill-card:nth-child(4) { animation-delay: 0.8s; }
.skill-card:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInZoom {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.skills-container-percent {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

.skill-bar {
  margin-bottom: 2rem;
}

.skill-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
}

.progress-bar {
  width: 100%;
  background: #2e2e2e;
  border-radius: 1rem;
  overflow: hidden;
  height: 25px;
}

.progress {
  height: 100vh;
  color: #000;
  text-align: right;
  line-height: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  padding-right: 1rem;
  background: #b74b4b;
  animation: growBar 2s ease forwards;
  width: 0%;
  opacity: 0;
}

/* Animate each bar */
@keyframes growBar {
  0% {
    width: 0%;
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.progress.html   { width: 90%; }
.progress.css    { width: 70%; }
.progress.js     { width: 65%; }
.progress.python { width: 60%; }
.progress.java   { width: 65%; }

/* Mobile-friendly */
@media (max-width: 768px) {
  .skills-container-percent {
    padding: 1rem;
  }

  .skill-title {
    font-size: 1.5rem;
  }
}


.progress.html {
  background: #e44d26;  /* Orange-red for HTML */
  width: 90%;
}

.progress.css {
  background: #264de4;  /* Blue for CSS */
  width: 85%;
}

.progress.js {
  background: #f0db4f;  /* Yellow for JavaScript */
  color: #000;
  width: 75%;
}

.progress.python {
  background: #306998;  /* Blue for Python */
  width: 70%;
}

.progress.java {
  background: #b07219;  /* Brown-orange for Java */
  width: 65%;
}

.progress {
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.3);
}

* {
  font-family: 'Poppins', sans-serif;
}


/* font weigth */
.section-title {
  font-weight: 700; /* Bold title */
}

.skill-title {
  font-weight: 600;
}

.progress {
  font-weight: 500;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 768px) {
  .home {
    flex-direction: column;
    gap: 2rem;
    padding: 6rem 2rem;
    text-align: center;
  }

  .home-img img {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .home-content h1 {
    font-size: 3.5rem;
  }

  .home-content h3 {
    font-size: 2.2rem;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    right: 1rem;
    top: 5rem;
    width: 60%;
    border-radius: 10px;
    padding: 1rem;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 1rem 0;
    font-size: 1.6rem;
  }

  .hamburger {
    display: block;
  }
}
