/* ── Skills / “What I am good at” section ── */
.skills-section {
  width: 100%;
  background: var(
    --sk-color-primary-dark
  ); /* near-black, slightly softer than pure #000 */
  color: #fff;
  padding: clamp(5rem, 12vw, 8rem) 0;
  position: relative;
  overflow: hidden;
  place-content: center;
  height: 80vh;
}

/* subtle warm glow (terracotta) for depth — matches CTA treatment */
.skills-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: min(520px, 70vw);
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    rgba(247, 65, 35, 0.12) 0%,
    rgba(247, 65, 35, 0.03) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.skills-container {
  width: 100%;
  max-width: 1200px;
  align-items: center;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left column — list */
.skills-list {
  display: flex;
  flex-direction: column;
}

.skill-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
}

.skill-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-trigger {
  width: 100%;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.65rem 1.35rem;
  background: transparent;

  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: var(--sk-font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.skill-trigger:hover {
  color: var(--sk-color-terracotta);
  background: white;
}
.skill-trigger:hover .skill-icon {
  transform: rotate(-180deg);
  transition: ease-in-out all 0.4s;
  filter: none;
}

.skill-trigger[aria-expanded="true"] {
  color: var(--sk-color-terracotta);
}

.skill-label {
  flex: 1;
}

.skill-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  display: grid;
  filter: invert(1);
  place-items: center;
}

.skill-trigger[aria-expanded="true"] .skill-icon::after {
  transform: rotate(90deg) scaleY(0);
}

/* Expandable panel */
.skill-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-panel[data-open="true"] {
  grid-template-rows: 1fr;
}

.skill-panel-inner {
  overflow: hidden;
}

.skill-desc {
  font-family: var(--sk-font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 42ch;
}

/* Right column — big heading */
.skills-heading-wrap {
  /* position: sticky;
  top: 20vh; */
  padding-top: 0.25rem;
}

.skills-heading {
  font-family: var(--sk-font-heading);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.skills-heading span {
  display: block;
}

/* Optional small eyebrow */
.skills-eyebrow {
  display: inline-block;
  font-family: var(--sk-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
}
/* //hover image effect */
.cursor-img {
  position: fixed;
  width: 120px; /* change size as you like */
  height: 120px;
  background-size: cover;
  background-position: center;

  border-radius: 5px;
  pointer-events: none; /* very important so it doesn't block clicks */
  z-index: 9999;
  opacity: 0;
  /* transform: translate(-50%, -50%) scale(0.8); */
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.cursor-img.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 10px;
  }

  .skills-heading-wrap {
    position: static;
    order: -1;
  }

  .skills-heading {
    font-size: clamp(2.4rem, 10vw, 3.25rem);
  }
}

@media (max-width: 480px) {
  .skill-trigger {
    padding: 1.15rem 10px;
    font-size: 1.1rem;
  }
}
