/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.skill-card {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.skill-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  color: var(--text-color);
}

.skill-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.skill-tag {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-percentage {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 0.9rem;
  width: max-content;
  max-width: 200px;
}

.skill-card:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar span {
  display: block;
  height: 10px;
  background: #007bff;
}

/* New styles for skills filter */
.skills-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.skill-filter-btn {
  background: var(--secondary-color);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.skill-item {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.skill-text {
  line-height: 1;
}

.skill-category {
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease;
  text-align: center;
  padding: 20px 0;
}

.skill-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

/* Dark mode adjustments */
.dark-mode .skill-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.dark-mode .skill-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-icon {
  filter: brightness(0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-filter-container {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .skills-filter-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  
  .skill-filter-btn {
    flex-shrink: 0;
  }
}

/* Animation for skill category transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.skill-category {
  animation: fadeIn 0.5s ease;
}

/* Highlight effect for auto-cycling buttons */
.skill-filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

/* Add a subtle pulse effect to the active button during auto-cycling */
@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.auto-cycling .skill-filter-btn.active {
  animation: buttonPulse 2s infinite;
}

/* Smooth transition for skill items */
.skill-items-container {
  transition: all 0.3s ease;
} 