/* --- Dropdown selector for tabs (mobile) --- */
.skill-tabs-dropdown-wrap {
  display: block;
  width: 100%;
  margin: 0.5rem 0 0.7rem 0;
  padding: 0 1.1rem;
  background: transparent;
}
.skill-tabs-dropdown {
  width: 100%;
  padding: 0.6rem 1.1rem;
  border-radius: 0.7rem;
  border: 1.5px solid #7f5af0;
  background: rgba(30,34,60,0.98);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(127,90,240,0.08);
  outline: none;
  margin-bottom: 0.5rem;
  appearance: none;
  transition: border 0.18s, box-shadow 0.18s;
}
.skill-tabs-dropdown:focus {
  border-color: #2cb67d;
  box-shadow: 0 0 0 2px #2cb67d44;
}

@media (max-width: 600px) {
  .skill-tabs-dropdown-wrap {
    display: block;
    margin-bottom: 0.5rem;
  }
  .skill-tabs {
    display: none !important;
  }
  .skill-modal-flexrow {
    padding-top: 0;
  }
}

@media (min-width: 601px) {
  .skill-tabs-dropdown-wrap {
    display: none !important;
  }
}
/* =========================================
   SKILL MODAL (Vertical tabs on desktop)
   ========================================= */

/* --- Modal Overlay --- */
.skill-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 40, 0.65);
  backdrop-filter: blur(4px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.7, 1.6, 0.5, 1);
  z-index: 9999;
}
.skill-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal Box --- */
.skill-modal-content {
  background: linear-gradient(
    120deg,
    rgba(30, 34, 60, 0.98) 60%,
    rgba(60, 40, 90, 0.98) 100%
  );
  border-radius: 1.3rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18),
    0 1.5px 8px 0 rgba(80, 80, 120, 0.08);
  min-width: 320px;
  max-width: 410px;
  width: 95vw;
  max-height: 82vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 2.5px solid rgba(127, 90, 240, 0.18);
  animation: skillModalPopIn 0.22s cubic-bezier(0.7, 1.6, 0.5, 1) 1;
}
@keyframes skillModalPopIn {
  0% {
    transform: scale(0.92) translateY(30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Header inside modal */
.skill-modal-close {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 0.8rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 2rem;
  border: 0;
  background: transparent;
  color: #cfd1f6;
  cursor: pointer;
}
.skill-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Modal Header (inside modal box) --- */
.skill-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem 1.1rem 1.5rem;
  background: linear-gradient(
    120deg,
    rgba(40, 44, 70, 0.98) 60%,
    rgba(60, 40, 90, 0.92) 100%
  );
  border-bottom: 1.5px solid rgba(127, 90, 240, 0.1);
  box-shadow: 0 2px 8px 0 rgba(127, 90, 240, 0.04);
  position: relative;
  z-index: 1;
}
.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f5af0 20%, #2cb67d 100%);
  box-shadow: 0 2px 8px rgba(127, 90, 240, 0.1);
}
.skill-icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
.skill-title-area h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.13rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.skill-one-liner {
  margin: 0;
  color: #b6b9d6;
  font-size: 0.97rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.skill-tag {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7f5af0 10%, #2cb67d 90%);
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
  opacity: 0.92;
  border: none;
}

/* Actions */
.skill-actions {
  display: flex;
  gap: 0.4rem;
}
.skill-actions .btn {
  padding: 0.36rem 0.9rem;
  border-radius: 0.7rem;
  border: 0;
  background: linear-gradient(90deg, #7f5af0 10%, #2cb67d 90%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* --- Modal Flex Row --- */
.skill-modal-flexrow {
  display: block;
  min-height: 340px;
  max-height: 68vh;
  overflow: hidden;
}

/* --- Tabs: Mobile (horizontal) --- */
.skill-tabs {
  position: sticky;
  top: 70px;
  z-index: 1;
  background: rgba(25, 28, 50, 0.96);
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(127, 90, 240, 0.1);
  border-right: none;
  min-width: 0;
  max-width: 100vw;
}
.skill-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  color: #b6b9d6;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
}
.skill-tab:hover,
.skill-tab:focus {
  background: rgba(127, 90, 240, 0.13);
  color: #4b277a;
  box-shadow: 0 2px 8px 0 rgba(127, 90, 240, 0.08);
}
.skill-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(90deg, #7f5af0 10%, #2cb67d 90%);
  box-shadow: 0 2px 8px 0 rgba(127, 90, 240, 0.1);
}

/* --- Tabs: Desktop (vertical) --- */
@media (min-width: 601px) {
  .skill-modal-flexrow {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
  }
  .skill-tabs {
    position: static;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 170px;
    min-width: 140px;
    max-width: 200px;
    border-right: 1px solid rgba(127, 90, 240, 0.1);
    border-bottom: none;
    padding: 1rem 0.6rem;
    gap: 0.18rem;
    background: transparent;
    box-shadow: none;
  }
  .skill-tab {
    width: 100%;
    text-align: left;
    border-radius: 999px 0 0 999px;
    border-left: 3px solid transparent;
    margin-bottom: 0.1rem;
    font-size: 1rem;
  }
  .skill-tab:hover,
  .skill-tab:focus {
    background: rgba(127, 90, 240, 0.1);
    color: #4b277a;
    border-left: 3px solid #7f5af0;
  }
  .skill-tab[aria-selected="true"] {
    background: linear-gradient(90deg, #7f5af0 10%, #2cb67d 90%);
    color: #fff;
    border-left: 3px solid #7f5af0;
    font-weight: 800;
    box-shadow: 0 2px 8px 0 rgba(127, 90, 240, 0.13);
  }
  .skill-sections {
    flex: 1 1 auto;
    padding: 1.2rem 1.6rem;
  }
}

/* Content panels */
.skill-sections {
  padding: 1rem 1.2rem 1.4rem;
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  max-height: 54vh;
}
.skill-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}
.skill-section h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

/* Panels content helpers */
.skill-bullets {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0;
}
.skill-bullets li {
  line-height: 1.55;
}
  .skill-modal-flexrow {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
    max-height: 68vh;
    overflow: hidden;
  }
  .skill-tabs {
    position: static;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 132px;
    min-width: 120px;
    max-width: 140px;
    border-right: 1px solid rgba(127,90,240,0.10);
    border-bottom: none;
    padding: 0.7rem 0.3rem;
    gap: .12rem;
    background: transparent;
    box-shadow: none;
  }
  .skill-tab {
    width: 100%;
    text-align: left;
    border-radius: 999px 0 0 999px;
    border-left: 3px solid transparent;
    margin-bottom: 0.1rem;
    font-size: 0.98rem;
    padding: 0.48rem 0.7rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
  }
  .skill-tab:hover,
  .skill-tab:focus {
    background: rgba(127, 90, 240, 0.1);
    color: #4b277a;
    border-left: 3px solid #7f5af0;
  }
  .skill-tab[aria-selected="true"] {
    background: linear-gradient(90deg, #7f5af0 10%, #2cb67d 90%);
    color: #fff;
    border-left: 3px solid #7f5af0;
    font-weight: 800;
    box-shadow: 0 2px 8px 0 rgba(127, 90, 240, 0.13);
  }
  .skill-sections {
    flex: 1 1 auto;
    padding: 1.2rem 1.6rem;
    overflow-y: auto;
    max-height: 54vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    padding: 1rem 0.6rem;
    gap: 0.25rem;
  }
  .skill-tab {
    width: 100%;
    text-align: left;
    border-radius: 999px 0 0 999px;
    border-left: 3px solid transparent;
  }
  .skill-tab[aria-selected="true"] {
    background: rgba(127, 90, 240, 0.12);
    border-left-color: #7f5af0;
  }
  .skill-sections {
    flex: 1 1 auto;
    padding: 1.2rem 1.6rem;
  }

