/* ===================================
   SKILLS SECTION
   =================================== */

.skills-section {
  width: min(1180px, calc(100% - 48px));
  min-height: 420px;
  margin: 80px auto;
  padding: clamp(45px, 6vw, 75px);

  background-color: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 26px;

  box-shadow: 0 18px 45px var(--shadow);

  scroll-margin-top: 110px;

  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* ===================================
   SKILLS HEADING
   =================================== */

.skill-headline {
  display: block;

  margin-bottom: 48px;

  color: var(--text);
  text-align: center;
}

.skill-headline .section-label {
  justify-content: center;
}

.skill-headline h2 {
  position: relative;

  padding-bottom: 17px;

  color: var(--text);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.skill-headline h2::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 50%;

  width: 54px;
  height: 4px;

  background-color: var(--accent);
  border-radius: 100px;

  transform: translateX(-50%);
}

/* ===================================
   SKILLS GRID
   =================================== */

.skill-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ===================================
   SKILL CARD
   =================================== */

.skill-set {
  position: relative;

  min-height: 315px;
  padding: 30px;

  background-color: var(--card);

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 12px 25px var(--shadow);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    background-color 0.35s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-set::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 95px;
  height: 95px;

  background: radial-gradient(
    circle at top right,
    rgba(255, 32, 32, 0.18),
    transparent 70%
  );

  pointer-events: none;
}

.skill-set:hover {
  border-color: var(--accent);

  transform: translateY(-10px);

  box-shadow: 0 20px 38px var(--shadow);
}

/* ===================================
   SKILL ICON
   =================================== */

.skill-icon {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 80px;
  height: 80px;
  margin-bottom: 27px;
  padding: 13px;

  background-color: #ffffff;

  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: 0 8px 18px var(--shadow);

  transition:
    transform 0.3s ease,
    border-radius 0.3s ease;
}

.skill-set:hover .skill-icon {
  border-radius: 50%;

  transform: rotate(-6deg) scale(1.08);
}

.skill-icon img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.skill-icon svg {
  width: 100%;
  height: 100%;

  color: var(--accent);
  stroke-width: 1.8;
}

.skill-icon > i[data-lucide] {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

/* ===================================
   SKILL TEXT
   =================================== */

.skill-title {
  position: relative;
  z-index: 1;

  margin-bottom: 14px;

  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.skill-description {
  position: relative;
  z-index: 1;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.skill-tags {
  position: relative;
  z-index: 1;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 24px;
  padding: 0;

  list-style: none;
}

.skill-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 7px 11px;

  background-color: color-mix(in srgb, var(--accent) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 999px;

  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.skill-tags li > i {
  display: inline-block;
  width: 18px;
  height: 18px;

  font-size: 18px;
  line-height: 1;
}

.skill-tags li > svg {
  width: 18px;
  height: 18px;

  color: var(--accent);
  stroke-width: 2;
}

.language-flag {
  font-size: 14px;
  line-height: 1;
}

/* ===================================
   TABLET
   =================================== */

@media (max-width: 900px) {
  .skills-section {
    width: calc(100% - 40px);
    margin: 60px auto;
    padding: 55px 35px;
  }

  .skill-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-set:last-child {
    grid-column: 1 / -1;
  }
}

/* ===================================
   MOBILE
   =================================== */

@media (max-width: 600px) {
  .skills-section {
    width: calc(100% - 24px);
    margin: 45px auto;
    padding: 40px 20px;

    border-radius: 20px;
  }

  .skill-headline {
    margin-bottom: 34px;
  }

  .skill-headline h2 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .skill-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .skill-set,
  .skill-set:last-child {
    grid-column: auto;

    min-height: auto;
    padding: 26px 22px;

    text-align: center;
  }

  .skill-icon {
    margin-right: auto;
    margin-left: auto;
  }

  .skill-title {
    font-size: 21px;
  }

  .skill-description {
    font-size: 14px;
    text-align: center;
  }

  .skill-tags {
    justify-content: center;
  }
}

/* ===================================
   SMALL PHONES
   =================================== */

@media (max-width: 370px) {
  .skills-section {
    width: calc(100% - 16px);
    padding: 35px 16px;
  }

  .skill-headline h2 {
    font-size: 30px;
  }

  .skill-set {
    padding: 22px 17px;
  }
}
