/* Technical Skills Section Styles */
.skill-section {
  padding: 10px 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background-color: #ffffff;
}

.skill-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Heading with Gradient */
.skill-main-heading {
  font-size: 60px;
  font-weight: 700;
  background: linear-gradient(90deg, #0d6efd, #de0284);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 12px;
  margin-top: 70px;
  letter-spacing: -0.5px;
}

.skill-description {
  font-size: 18px;
  color: #334155;
  margin-bottom: 25px;
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
}

/* Stats Cards */
.skill-stats-row {
  margin-bottom: 35px;
}

.skill-stat-card {
  background-color: white;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 2px solid #e9ecef;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-stat-card:hover {
  border: 2px solid #de0284 !important;
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-stat-title {
  font-size: 13px;
  color: #6c757d;
  font-weight: 400;
  margin-bottom: 0px;
  letter-spacing: 0.5px;
}

.skill-stat-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 100%;
  color: #212529;
}

/* Search Input */
.skill-search-container {
  margin-bottom: 35px;
}

.skill-search-wrapper {
  position: relative;
  width: 100%;
}

.skill-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 16px;
}

.skill-search-input {
  width: 100%;
  padding: 5px 20px 5px 48px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  color: #495057;
}

.skill-search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  outline: none;
}

.skill-search-input::placeholder {
  color: #adb5bd;
}

/* Skills Categories */
.skill-categories-container {
  margin-bottom: 10px;
}

.skill-categories-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.skill-category-item {
  padding: 0 0px;
  margin-bottom: 16px;
}

.skill-category-btn {
  width: 100%;
  padding: 7px 13px;
  background-color: #f9fbfd;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
  cursor: pointer;
}

.skill-category-btn {
    position: relative;
    transition: all 0.4s ease !important;
    z-index: 1;
    overflow: hidden;
}

.skill-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #de0284);
    transition: left 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.skill-category-btn:hover {
    color: white !important;
}

.skill-category-btn:hover::before {
    left: 0;
}

.skill-category-btn-active {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.skill-category-btn-active .skill-category-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.skill-category-name {
  font-weight: 500;
}

.skill-category-count {
  background-color: #d1d6db;
  color: #495057;
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}


/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Skill Section */
.skill-section {
  overflow: hidden;
}

.skill-main-heading {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.skill-description {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

.skill-search-container {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.skill-categories-container {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

.skill-category-item .skill-category-btn {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out both;
}

.skill-category-item:nth-child(1) .skill-category-btn {
  animation-delay: 0.8s;
}
.skill-category-item:nth-child(2) .skill-category-btn {
  animation-delay: 0.85s;
}
.skill-category-item:nth-child(3) .skill-category-btn {
  animation-delay: 0.9s;
}
.skill-category-item:nth-child(4) .skill-category-btn {
  animation-delay: 0.95s;
}
.skill-category-item:nth-child(5) .skill-category-btn {
  animation-delay: 1s;
}
.skill-category-item:nth-child(6) .skill-category-btn {
  animation-delay: 1.05s;
}
.skill-category-item:nth-child(7) .skill-category-btn {
  animation-delay: 1.1s;
}
.skill-category-item:nth-child(8) .skill-category-btn {
  animation-delay: 1.15s;
}
.skill-category-item:nth-child(9) .skill-category-btn {
  animation-delay: 1.2s;
}
.skill-category-item:nth-child(10) .skill-category-btn {
  animation-delay: 1.25s;
}
.skill-category-item:nth-child(11) .skill-category-btn {
  animation-delay: 1.3s;
}
.skill-category-item:nth-child(12) .skill-category-btn {
  animation-delay: 1.35s;
}

#showingSkills {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1.4s both;
}

/* Expert Section Styles */
.expert-section {
  background-color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.expert-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expert-title {
  font-size: 24px;
  color: #333;
}

.expert-subtitle {
  font-size: 12px !important;
  margin-bottom: 0px;
  font-weight: 500 !important;
  line-height: 100% !important;
  padding: 4px 8px !important;
  border-radius: 6px;
  background: linear-gradient(90deg, #009966, #00a63e) !important;
  color: white !important;
}

/* Card Styles */
.expert-card {
  height: 125px !important;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Card Header */
.expert-icon {
  font-size: 24px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 10px;
  flex-shrink: 0;
}

.expert-skill-name {
  color: #212529;
  font-size: 18px;
  font-weight: 500 !important;
}

.expert-category {
  font-size: 12px;
  padding: 4px 10px;
  font-weight: 400 !important;
  border-radius: 6px;
  background-color: transparent !important;
  border: 1px solid #e9ecef;
}

.expert-years {
  font-size: 18px;
  white-space: nowrap;
  line-height: 100%;
}

.expert-years span {
  color: #383838 !important;
  font-size: 13px !important;
  font-weight: 400;
}

/* Card Content */
.expert-card-content .small {
  font-size: 12px;
  color: #6c757d;
}

.expert-tag {
  font-size: 14px;
  display: inline-block;
}

/* Progress Bar Customization */
.expert-progress .progress-bar {
  border-radius: 3px;
  background-color: #00a053 !important;
}

.expert-progress .progress {
  background-color: #e9ecef;
  border-radius: 3px;
  height: 8px !important;
}

/* Additional styles for the new sections */
.level-section {
  background-color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 20px 0;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.level-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 0;
}

.level-subtitle {
  font-size: 13px;
  margin-bottom: 0;
  padding: 3px 12px;
  border-radius: 6px;
  font-weight: 500;
}

/* Advanced Level Styles */
.advanced-subtitle {
  font-size: 12px !important;
  margin-bottom: 0px;
  font-weight: 500 !important;
  line-height: 100% !important;
  padding: 4px 8px !important;
  border-radius: 6px;
  background: linear-gradient(90deg, #4f39f6, #155dfc);
  color: white !important;
}

/* Intermediate Level Styles */
.intermediate-subtitle {
  background: linear-gradient(90deg, #ff6900, #f0b100);
  font-size: 12px !important;
  margin-bottom: 0px;
  font-weight: 500 !important;
  line-height: 100% !important;
  padding: 4px 8px !important;
  border-radius: 6px;
  color: white !important;
}

/* Beginner Level Styles */
.beginner-subtitle {
  background: linear-gradient(90deg, #62748e, #6a7282);
  font-size: 12px !important;
  margin-bottom: 0px;
  font-weight: 500 !important;
  line-height: 100% !important;
  padding: 4px 8px !important;
  border-radius: 6px;
  color: white !important;
}

/* Card Styles */
.level-card {
  border-radius: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 2px solid #dee2e6 !important;
  height: 125px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.level-card:hover {
  transform: translateY(-5px);
  border: 2px solid #de0284 !important;
}

/* Card Header */
.level-icon {
  font-size: 24px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 10px;
  flex-shrink: 0;
}

.level-skill-name {
  color: #212529;
  font-size: 18px;
  margin-bottom: 5px;
}

.level-category {
  font-size: 12px !important;
  padding: 2px 10px !important;
  border-radius: 12px;
  background-color: transparent !important;
  border: 1px solid #e9ecef;
  color: #6c757d;
}

.level-years {
  font-size: 18px;
  white-space: nowrap;
  line-height: 100%;
  text-align: right;
}

.level-years span {
  color: #383838 !important;
  font-size: 13px !important;
  font-weight: 400;
}

/* Progress Bars */
.level-progress .progress {
  background-color: #e9ecef;
  border-radius: 3px;
  height: 8px !important;
}

/* Advanced Progress */
.advanced-progress .progress-bar {
  background-color: #4a40f7;
}

/* Intermediate Progress */
.intermediate-progress .progress-bar {
  background-color: #ffc107;
}

/* Beginner Progress */
.beginner-progress .progress-bar {
  background-color: #6c757d;
}

/* Proficiency Distribution Section */
.proficiency-section {
  max-width: 1240px;
  background-color: #fbfcff;
  border: 1px solid #e2e8f0;
  margin: auto;
  border-radius: 12px;
  margin-bottom: 50px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.proficiency-heading {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.proficiency-item {
  padding: 15px;
}

.proficiency-number-btn {
  width: 60px;
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom button colors */
.proficiency-number-btn.btn-primary {
  background: linear-gradient(90deg, #009966, #00a63e);
}

.proficiency-number-btn.btn-danger {
  background: linear-gradient(90deg, #4f39f6, #155dfc);
}

.proficiency-number-btn.btn-warning {
  background: linear-gradient(90deg, #ff6900, #f0b100);
  color: #ffffff;
}

.proficiency-number-btn.btn-secondary {
  background: linear-gradient(90deg, #62748e, #6a7282);
}

.proficiency-level {
  font-size: 1rem;
  color: #212529;
  margin-top: 0px;
  font-weight: 500 !important;
}

.proficiency-percentage {
  margin-bottom: 0;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .skill-category-item {
    width: 25%;
  }
}

@media (max-width: 992px) {
  .skill-category-item {
    width: 33.333%;
  }

  .skill-stats-row .col-md-4 {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .skill-main-heading {
    font-size: 28px;
  }

  .skill-description {
    font-size: 16px;
  }

  .skill-stat-number {
    font-size: 24px;
  }

  .skill-category-item {
    width: 50%;
  }

  .skill-container {
    padding: 0 15px;
  }

  /* Expert/Level sections adjustments */
  .expert-title,
  .level-title {
    font-size: 24px;
  }

  .expert-card,
  .level-card {
    height: auto !important;
    min-height: 125px;
  }

  .expert-skill-name,
  .level-skill-name {
    white-space:nowrap  !important;
    font-size: 14px !important;
  }

  .expert-icon,
  .level-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* Proficiency section adjustments */
  .proficiency-heading {
    font-size: 2rem;
  }

  .proficiency-number-btn {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .proficiency-level {
    font-size: 1.1rem;
  }

  .proficiency-percentage {
    font-size: 1.5rem !important;
  }
}

/* Small screens (576px and below) - IMPORTANT: For skill-stats-row and category buttons */
@media (max-width: 576px) {
  .skill-main-heading {
    font-size: 24px;
  }

  /* Stats cards adjustments */
  .skill-stat-card {
    padding: 20px 16px !important;
    margin-bottom: 15px;
  }

  .skill-stat-number {
    font-size: 22px;
  }

  /* Category buttons - horizontal layout with static width */
  .skill-categories-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    margin: 0 -4px !important;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .skill-category-item {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 4px !important;
    margin-bottom: 8px !important;
  }

  .skill-category-btn {
    width: auto !important;
    min-width: auto !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
  }

  /* Expert/Level sections adjustments */
  .expert-header,
  .level-header {
    flex-wrap: wrap;
  }

  .expert-years,
  .level-years {
    margin-top: 10px;
    text-align: right;
  }

  .expert-card,
  .level-card {
    margin-bottom: 20px;
  }

  /* Proficiency section adjustments */
  .proficiency-heading {
    font-size: 1.75rem;
  }

  .proficiency-number-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .proficiency-level {
    font-size: 1rem;
  }

  .proficiency-percentage {
    font-size: 1.25rem !important;
  }

  .col-6 {
    padding-left: 8px;
    padding-right: 8px;
  }
}
