/* Simplified Skills Styles */
.skill-category {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

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

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}

.skill-header i {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-right: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-header h4 {
  margin: 0;
  font-weight: 600;
  color: #1e3a8a;
  font-size: 1.1rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
  border: none;
  display: inline-block;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

/* Specialties Section */
.specialties-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.specialties-section h3 {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  color: #1e3a8a;
  font-weight: 600;
}

.specialties-section h3 i {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-right: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.specialty-item {
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.specialty-item:hover {
  background: #fff;
  border-color: #1e3a8a;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(30, 58, 138, 0.15);
}

.specialty-item i {
  font-size: 1.6rem;
  color: #1e3a8a;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.specialty-item h5 {
  margin-bottom: 6px;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1rem;
}

.specialty-item p {
  color: #6c757d;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skill-category {
    padding: 14px;
  }
  
  .skill-header h4 {
    font-size: 1rem;
  }
  
  .skill-tag {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  
  .specialty-item {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .skill-items {
    gap: 5px;
  }
  
  .skill-tag {
    font-size: 0.7rem;
    padding: 4px 7px;
  }
}

/* Animation for skill tags */
.skill-tag {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-tag:nth-child(5) { animation-delay: 0.5s; }
.skill-tag:nth-child(6) { animation-delay: 0.6s; }
.skill-tag:nth-child(7) { animation-delay: 0.7s; }
.skill-tag:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact section spacing for Skills */
#skills {
  padding: 36px 0;
}

#skills .section-title {
  padding-bottom: 12px;
}

#skills .section-title h2 {
  font-size: 28px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#skills .section-title p {
  font-size: 0.95rem;
}

/* Ensure compact card styles override earlier rules */
.skills .skill-category {
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Reduce spacing before Specialties row */
#skills .row.mt-5 {
  margin-top: 1.25rem !important;
}
