/* Skills section — premium capability-card redesign */

.skills {
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 2%;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.skills-grid {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 48px !important;
}

.skills-copy {
  max-width: 780px;
}

.skills-copy h2 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(2.2rem, 3.7vw, 3.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}

.skills-copy p:last-child {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1rem;
}

.skill-groups {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
}

.skill-group {
  position: relative;
  min-height: 220px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px !important;
  overflow: hidden;
  padding: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.skill-group:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.skill-group::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(93, 220, 255, 0.18);
  border-radius: 12px;
  color: var(--premium-cyan);
  background: rgba(93, 220, 255, 0.055);
  font-family: "Space Grotesk", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.skill-group:nth-child(1)::before { content: "01"; }
.skill-group:nth-child(2)::before { content: "02"; }
.skill-group:nth-child(3)::before { content: "03"; }
.skill-group:nth-child(4)::before { content: "04"; }
.skill-group:nth-child(5)::before { content: "05"; }
.skill-group:nth-child(6)::before { content: "06"; }

.skill-group::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  top: -72px;
  right: -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,108,255,.13), transparent 68%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.skill-group:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 220, 255, 0.22) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(91,140,255,.035));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.skill-group:hover::after {
  opacity: 1;
}

.skill-group strong {
  position: absolute;
  top: 31px;
  left: 78px;
  color: #f5f7fc !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.skill-group > div {
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px !important;
  margin-top: 4px;
}

.skill-group span {
  padding: 8px 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 999px;
  color: #cbd5e7 !important;
  background: rgba(5, 8, 20, 0.35) !important;
  font-size: .78rem !important;
  font-weight: 650 !important;
  line-height: 1.2;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}

.skill-group:hover span {
  color: #eef4ff !important;
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.035) !important;
}

/* Contact section — compact premium panel */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: -250px;
  bottom: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 220, 255, 0.075), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr) !important;
  gap: clamp(42px, 6vw, 86px) !important;
  align-items: center;
}

.contact-copy {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.contact-copy::after {
  content: "Available for roles + freelance";
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid rgba(93, 220, 255, 0.16);
  border-radius: 999px;
  color: #cdeeff;
  background: rgba(93, 220, 255, 0.045);
  font-size: .74rem;
  font-weight: 750;
}

.contact-copy h2 {
  max-width: 540px;
  margin-top: 16px;
  font-size: clamp(2.1rem, 3.15vw, 2.9rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.045em !important;
}

.contact-copy p {
  max-width: 520px;
  margin-top: 20px;
  font-size: .96rem;
  line-height: 1.75 !important;
}

.contact-card {
  display: block !important;
  overflow: hidden;
  padding: 10px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 140, 255, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.022) !important;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.16) !important;
}

.contact-card a {
  position: relative;
  min-height: 92px;
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) 34px;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: padding .24s ease, background .24s ease !important;
}

.contact-card a:last-child {
  border-bottom: 0 !important;
}

.contact-card a::before {
  content: none !important;
}

.contact-card a::after {
  content: "↗" !important;
  position: static !important;
  justify-self: end;
  color: #78859d !important;
  font-size: 1rem;
  transition: transform .24s ease, color .24s ease !important;
}

.contact-card a:hover {
  transform: none !important;
  padding-inline: 14px !important;
  border-color: rgba(255, 255, 255, 0.075) !important;
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: none !important;
}

.contact-card a:hover::after {
  color: var(--premium-cyan) !important;
  transform: translate(3px, -3px) !important;
}

.contact-card span {
  color: #7f8ba3 !important;
  font-size: .71rem !important;
  font-weight: 800;
  letter-spacing: .13em !important;
  text-transform: uppercase;
}

.contact-card strong {
  min-width: 0;
  margin: 0 !important;
  color: #f5f7fc;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(.88rem, 1.05vw, 1rem) !important;
  font-weight: 650 !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-group {
    min-height: 205px;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact-copy {
    max-width: 700px;
  }

  .contact-card {
    max-width: 820px;
  }
}

@media (max-width: 700px) {
  .skills-grid {
    gap: 34px !important;
  }

  .skills-copy h2 {
    max-width: 560px;
    font-size: clamp(2rem, 8.5vw, 2.65rem) !important;
  }

  .skill-groups {
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  .skill-group {
    min-height: 0;
    padding: 22px !important;
    border-radius: 20px;
  }

  .skill-group strong {
    top: 27px;
    left: 72px;
  }

  .contact-card {
    padding: 6px 16px !important;
    border-radius: 22px !important;
  }

  .contact-card a {
    min-height: 84px;
    grid-template-columns: 88px minmax(0, 1fr) 26px;
    gap: 12px !important;
  }
}

@media (max-width: 520px) {
  .contact-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.35rem) !important;
  }

  .contact-copy p {
    font-size: .94rem;
  }

  .contact-card {
    padding: 4px 14px !important;
  }

  .contact-card a {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    gap: 6px 12px !important;
    padding-block: 14px !important;
  }

  .contact-card span {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-card strong {
    grid-column: 1;
    grid-row: 2;
    font-size: .9rem !important;
  }

  .contact-card a::after {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
}

@media (max-width: 420px) {
  .skills-copy h2 {
    font-size: clamp(1.9rem, 9.2vw, 2.3rem) !important;
  }

  .skills-copy p:last-child {
    font-size: .94rem;
    line-height: 1.7;
  }

  .skill-group {
    padding: 20px !important;
  }

  .skill-group::before {
    width: 36px;
    height: 36px;
  }

  .skill-group strong {
    top: 25px;
    left: 68px;
    font-size: 1rem !important;
  }

  .skill-group span {
    font-size: .75rem !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .skill-group:hover,
  .contact-card a:hover {
    transform: none;
  }
}
