
/* Skills Category Styling */
.skill-category {
  margin-bottom: 40px;
}

.skill-category-header {
  position: relative;
  margin-bottom: 30px;
}

.skill-category-header h3 {
  color: var(--ztc-text-text-1);
  font-family: var(--ztc-family-font1);
  font-size: 24px;
  font-weight: var(--ztc-weight-semibold);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.category-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 2px;
}

/* Individual Skill Item - Fixed Dimensions */
.skill-item {
  text-align: center;
  padding: 20px 10px 15px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: var(--ztc-bg-bg2);
  border: 1px solid var(--ztc-border-border-2);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  /* Fixed dimensions for consistency - increased height for badges */
  height: 155px;
  min-height: 155px;
  max-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.skill-item:hover {
  transform: translateY(-8px);
  border-color: var(--ztc-bg-btn-bg1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.skill-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.skill-item:hover .skill-icon {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

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

.skill-icon i {
  font-size: 28px;
  color: var(--ztc-text-text-1);
}

.skill-name {
  display: block;
  color: var(--ztc-text-text-1);
  font-family: var(--ztc-family-font1);
  font-size: 13px;
  font-weight: var(--ztc-weight-medium);
  line-height: 1.3;
  margin-bottom: 10px;
  text-align: center;
  /* Ensure text doesn't overflow */
  word-wrap: break-word;
  hyphens: auto;
  /* Fixed height for consistency */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(255, 255, 255, 0.8) 100%);
  color: #000;
  font-size: 10px;
  font-weight: var(--ztc-weight-semibold);
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: auto;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.skill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Light mode adjustments */
.light-mode .skill-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .skill-item:hover {
  border-color: var(--ztc-bg-btn-bg1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.light-mode .skill-icon {
  background: rgba(0, 0, 0, 0.05);
}

.light-mode .skill-item:hover .skill-icon {
  background: rgba(0, 0, 0, 0.08);
}

.light-mode .skill-badge {
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
}

.light-mode .skill-badge:hover {
  background: linear-gradient(90deg, var(--ztc-bg-btn-bg1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .skill-category {
    margin-bottom: 30px;
  }
  
  .skill-category-header h3 {
    font-size: 20px;
  }
  
  .skill-category-header {
    margin-bottom: 25px;
  }
  
  .skill-item {
    padding: 16px 8px 12px 8px;
    margin-bottom: 16px;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
  }
  
  .skill-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }
  
  .skill-icon img {
    width: 28px;
    height: 28px;
  }
  
  .skill-icon i {
    font-size: 24px;
  }
  
  .skill-name {
    font-size: 12px;
    height: 28px;
  }
  
  .skill-badge {
    font-size: 9px;
    padding: 5px 10px;
  }
}

@media (max-width: 576px) {
  .skill-item {
    padding: 14px 6px 10px 6px;
    height: 135px;
    min-height: 135px;
    max-height: 135px;
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .skill-icon img {
    width: 24px;
    height: 24px;
  }
  
  .skill-icon i {
    font-size: 20px;
  }
  
  .skill-name {
    font-size: 11px;
    height: 26px;
  }
  
  .skill-badge {
    font-size: 8px;
    padding: 4px 8px;
  }
}
