/* Enhanced styles for the skills section */

/* Global Skills Section Enhancement */
.skills {
  background-color: #f8f9fc; /* Soft light background */
}

.dark-mode .skills {
  background-color: #1e2235; /* Dark blue-gray for dark mode */
}

/* Enhanced skills container */
.skills-container {
  margin-top: 30px;
  padding: 20px 0;
}

.skills-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Skill category styling */
.skill-category {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dark-mode .skill-category {
  background-color: #252a41;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dark-mode .skill-category:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-category.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced skill group */
.skill-group {
  margin-bottom: 30px;
}

/* Skill category headers */
.skill-category h3 {
  color: #2d3748;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(58, 134, 255, 0.15);
}

.dark-mode .skill-category h3 {
  color: #e2e8f0;
  border-bottom: 2px solid rgba(58, 134, 255, 0.25);
}

.skill-category h3 i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Skill item enhancements */
.skill-info {
  margin-bottom: 10px;
}

.skill-name {
  color: #2d3748;
  font-weight: 500;
}

.dark-mode .skill-name {
  color: #e2e8f0;
  text-shadow: 0 0 10px rgba(58, 134, 255, 0.1);
}

.dark-mode .skill-name::before {
  filter: drop-shadow(0 0 3px rgba(58, 134, 255, 0.3));
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

/* Progress bar styling - with higher specificity */
.skills .skill-progress {
  height: 8px !important;
  background-color: rgba(58, 134, 255, 0.1) !important;
  border-radius: 10px !important;
  margin-bottom: 16px;
  overflow: hidden !important;
  position: relative !important;
}

.dark-mode .skills .skill-progress {
  background-color: rgba(58, 134, 255, 0.15) !important;
}

.skills .skill-bar {
  background: linear-gradient(45deg, var(--primary-color), #4facfe) !important;
  border-radius: 10px !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: width 1.5s ease-out !important;
}

/* Add pulsing animation to skill bars */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(58, 134, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
  }
}

.skill-bar[data-width="95%"] {
  animation: pulse 2s infinite;
}

/* Skill tags styling */
.skill-tag {
  background-color: rgba(58, 134, 255, 0.1);
  color: #4a5568;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark-mode .skill-tag {
  background-color: rgba(58, 134, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.skill-tag:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(58, 134, 255, 0.3);
}

.dark-mode .skill-tag:hover {
  background-color: var(--primary-color);
  box-shadow: 0 5px 10px rgba(58, 134, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Other skills section */
.other-skills {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dark-mode .other-skills {
  background-color: #252a41;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.other-skills h3 {
  color: #2d3748;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(58, 134, 255, 0.15);
}

.dark-mode .other-skills h3 {
  color: #e2e8f0;
  border-bottom: 2px solid rgba(58, 134, 255, 0.25);
}

.other-skills.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Specific category colors */
.skill-category.frontend {
  border-top: 4px solid #42b883; /* Vue.js green */
}

.skill-category.backend {
  border-top: 4px solid #68a063; /* Node.js green */
}

.skill-category.database {
  border-top: 4px solid #4db33d; /* MongoDB green */
}

.skill-category.tools {
  border-top: 4px solid #f05033; /* Git red */
}

/* Skills section heading */
.skills .section-title {
  color: #2d3748;
}

.dark-mode .skills .section-title {
  color: #e2e8f0;
}

.skills .section-subtitle {
  color: var(--primary-color);
}

/* Skills text enhancement */
.skills-text p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
}

.dark-mode .skills-text p {
  color: #a0aec0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skill-category {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .other-skills {
    padding: 20px 15px;
  }
}

/* Add a subtle hover effect to the entire skills section */
.skills {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.skills.enhanced-skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(58, 134, 255, 0.03),
    transparent 70%
  );
  z-index: 0;
}

.dark-mode .skills::before {
  background: radial-gradient(
    circle at top right,
    rgba(58, 134, 255, 0.05),
    transparent 70%
  );
}

.skills .container {
  position: relative;
  z-index: 1;
}
