.skills-section {
  padding: 0 0 118px;
}

.skills-wrapper {
  width: min(1440px, calc(100% - 126px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: start;
  gap: 120px;
}

.skills-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skills-eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.skills-card {
  width: 520px;
  min-height: 506px;
  padding: 38px 32px 30px;
  border: 1px solid rgba(57, 232, 212, 0.82);
  border-radius: 32px;
  background: linear-gradient(
    90deg,
    rgba(17, 39, 39, 0.96) 0%,
    rgba(12, 26, 28, 0.92) 48%,
    rgba(8, 14, 16, 0.98) 100%
  );
  box-shadow: var(--shadow-large);
}

.skills-title {
  margin: 0 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 70px;
  line-height: 0.84;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: var(--accent);
}

.skills-text,
.skills-small-text {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(241, 241, 237, 0.86);
}

.skills-text {
  margin-bottom: 34px;
}

.skills-subtitle {
  margin: 0 0 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

.skills-subtitle span {
  color: var(--accent);
}

.skills-small-text {
  max-width: 420px;
  margin-bottom: 34px;
}

.skills-btn {
  --skills-button-marquee-gap: 40px;

  position: relative;
  min-width: 142px;
  height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(241, 241, 237, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  color: #ffffff;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease;
}

.skills-btn__size {
  visibility: hidden;
  pointer-events: none;
}

.skills-btn__marquee {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  display: inline-block;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.skills-btn__text {
  display: block;
  white-space: nowrap;
}

.skills-btn__text + .skills-btn__text {
  position: absolute;
  left: calc(100% + var(--skills-button-marquee-gap));
  top: 0;
}

.skills-btn:hover,
.skills-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(57, 232, 212, 0.05);
  transform: translateY(-2px);
  outline: none;
}

.skills-btn:hover .skills-btn__marquee,
.skills-btn:focus-visible .skills-btn__marquee {
  animation: skills-button-text-run 1.8s linear infinite;
}

.skills-right {
  padding-top: 68px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 118px);
  justify-content: space-between;
  gap: 44px 46px;
}

.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.skill-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 10px;
  border-radius: 18px;
}

.skill-icon-wrap {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  transition: transform 0.22s ease;
}

.skill-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.skill-item:hover .skill-icon-wrap,
.skill-item:focus-visible .skill-icon-wrap {
  transform: scale(1.12);
}

.skill-item:hover .skill-icon,
.skill-item:focus-visible .skill-icon {
  filter: brightness(0) invert(1);
  transform: scale(1.03);
}

.skill-name {
  max-width: 150px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(241, 241, 237, 0.9);
  transition: color 0.22s ease;
}

.skill-item--growth-mindset {
  z-index: 2;
}

.skill-item--growth-mindset:hover,
.skill-item--growth-mindset:focus-visible {
  z-index: 8;
}

.skill-item--growth-mindset:hover .skill-name,
.skill-item--growth-mindset:focus-visible .skill-name {
  color: var(--accent);
}

.skill-item--growth-mindset:hover .skill-icon,
.skill-item--growth-mindset:focus-visible .skill-icon,
.skill-growth-overlay__brand-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(80%) saturate(745%) hue-rotate(112deg) brightness(99%) contrast(89%);
}

.skill-growth-overlay {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: 188px;
  min-height: 112px;
  padding: 11px 12px 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.skill-growth-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.08);
}

.skill-item--growth-mindset:hover .skill-growth-overlay,
.skill-item--growth-mindset:focus-visible .skill-growth-overlay {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.skill-growth-overlay__headline {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 164px;
  margin: 0 auto 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 500;
  text-align: center;
  color: var(--accent);
}

.skill-growth-overlay__list {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.skill-growth-overlay__item {
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.skill-growth-overlay__icon,
.skill-growth-overlay__fallback-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.skill-growth-overlay__icon {
  color: var(--accent);
}

.skill-growth-overlay__brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.skill-growth-overlay__fallback-icon {
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.skill-growth-overlay__name {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

@keyframes skills-button-text-run {
  from {
    transform: translate(-50%, -50%) translateX(0);
  }

  to {
    transform: translate(-50%, -50%) translateX(calc(-100% - var(--skills-button-marquee-gap)));
  }
}

@media (max-width: 1320px) {
  .skills-grid {
    grid-template-columns: repeat(4, minmax(92px, 118px));
    gap: 42px 34px;
  }
}

@media (max-width: 1180px) {
  .skills-section {
    padding-bottom: var(--responsive-section-gap);
  }

  .skills-wrapper {
    width: min(1440px, calc(100% - var(--responsive-gutter)));
    grid-template-columns: 1fr;
    max-width: 860px;
    gap: 54px;
  }

  .skills-card {
    width: 100%;
    max-width: 680px;
    min-height: 0;
  }

  .skills-right {
    padding-top: 0;
  }

  .skills-grid {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    justify-content: stretch;
    gap: 42px 28px;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding-bottom: 86px;
  }

  .skills-wrapper {
    width: calc(100% - var(--responsive-gutter));
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-left {
    gap: 16px;
  }

  .skills-eyebrow {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .skills-card {
    max-width: none;
    padding: 26px 28px 28px;
    border-radius: 28px;
  }

  .skills-title {
    margin-bottom: 28px;
    font-size: clamp(44px, 15vw, 58px);
    line-height: 0.9;
  }

  .skills-text,
  .skills-small-text {
    font-size: 15px;
    line-height: 1.35;
  }

  .skills-text {
    text-align: justify;
  }

  .skills-subtitle {
    font-size: 20px;
    line-height: 1.25;
  }

  .skills-btn {
    min-width: 122px;
    height: 48px;
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(57, 232, 212, 0.05);
  }

  .skills-btn .skills-btn__marquee {
    animation: skills-button-text-run 1.8s linear infinite;
  }

  .skills-btn:hover,
  .skills-btn:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(57, 232, 212, 0.05);
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 34px 18px;
  }

  .skill-item {
    min-height: 104px;
    gap: 10px;
  }

  .skill-icon-wrap {
    width: 64px;
    height: 64px;
    animation: skill-icon-pulse 4.2s ease-in-out infinite;
  }

  .skill-icon {
    width: 54px;
    height: 54px;
  }

  .skill-name {
    max-width: 94px;
    font-size: 15px;
    line-height: 1.2;
  }

  .skill-growth-overlay {
    display: none;
  }

  .skill-item:hover .skill-icon-wrap,
  .skill-item:focus-visible .skill-icon-wrap {
    animation: none;
    transform: scale(1.12);
  }
}

@media (max-width: 360px) {
  .skills-grid {
    gap: 30px 14px;
  }

  .skill-icon-wrap {
    width: 60px;
    height: 60px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }
}

@keyframes skill-icon-pulse {
  0%,
  68%,
  100% {
    transform: scale(1);
  }

  78% {
    transform: scale(1.15);
  }

  88% {
    transform: scale(0.97);
  }
}

.skill-item--growth-mindset.is-growth-overlay-open {
  z-index: 9;
}

.skill-item--growth-mindset.is-growth-overlay-open .skill-name {
  color: var(--accent);
}

.skill-item--growth-mindset.is-growth-overlay-open .skill-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(80%) saturate(745%) hue-rotate(112deg) brightness(99%) contrast(89%);
}

.skill-item--growth-mindset.is-growth-overlay-open .skill-growth-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 768px) {
  .skills-grid {
    overflow: visible;
  }

  .skill-item--growth-mindset {
    z-index: 4;
  }

  .skill-growth-overlay {
    display: block;
    bottom: calc(100% + 10px);
    width: 188px;
    min-height: 112px;
    padding: 11px 12px 10px;
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.96);
  }

  .skill-item--growth-mindset:hover .skill-growth-overlay,
  .skill-item--growth-mindset:focus-visible .skill-growth-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.96);
  }

  .skill-item--growth-mindset.is-growth-overlay-open .skill-growth-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 420px) {
  .skill-growth-overlay {
    width: min(188px, calc(100vw - 28px));
  }
}