.skills {
  min-height: auto;
  padding: 5rem 0 7rem;
  background-color: var(--second-bg-color);
  scroll-margin-top: 50px;
}

.skills .container1 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--main-color);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 1px;
  text-transform: capitalize;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.skill-category {
  border: 2px solid var(--main-color);
  border-radius: 12px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.03), rgba(0, 212, 255, 0.01));
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1rem;
}

.skill-category:hover {
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.08), rgba(0, 212, 255, 0.05));
  box-shadow: 0 10px 30px rgba(0, 183, 255, 0.2), inset 0 0 20px rgba(0, 183, 255, 0.05);
  transform: translateY(-5px);
  border-color: #00d4ff;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 183, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 183, 255, 0.1);
  transition: all 0.3s ease;
}

.badges-container:hover {
  background: rgba(0, 183, 255, 0.08);
  border-color: rgba(0, 183, 255, 0.2);
  transform: translateY(-2px);
}

.badges-container img {
  height: 35px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.badges-container img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 183, 255, 0.4));
}

/* Responsive Design */
@media (max-width: 1200px) {
  .section-subtitle {
    font-size: 1.6rem;
  }

  .skill-category {
    padding: 1.8rem;
  }

  .badges-container {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .badges-container img {
    height: 32px;
  }
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .badges-container {
    padding: 1rem;
    gap: 0.6rem;
  }

  .badges-container img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .skills {
    padding: 3rem 0 5rem;
  }

  .skill-category {
    padding: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .badges-container {
    padding: 0.8rem;
    gap: 0.5rem;
  }

  .badges-container img {
    height: 24px;
  }
}
