.skills-desktop{
  background: #101917;
}

.skills-mobile {
  display: none;
}

.skills-section {
  position: relative;
  background: #101917;
  overflow: hidden;
}

#pcb-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;

  transform-origin: top center;
  transition: transform 0.15s linear;
}

#pcb-container svg {
  width: 1920px;
  height: auto;
  display: block;
  
  background: linear-gradient(
    to right,
    #101917 0%,
    rgba(16, 25, 23, 0) 15%,
    rgba(16, 25, 23, 0) 85%,
    #101917 100%
  );
}

/* PCB traces */
#layer1 path {
  stroke: #00ffcc;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* Skill cards */
.skill-card {
  width: 100%;
  height: 100%;
  background: #192320;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transition: all 0.15s linear;
}

.skill-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.skill-card p {
  font-size: 1.15rem;
  line-height: 1.15;
  color: #f1f2f3;
}

.skills-mobile {
  padding: 4rem 1.25rem 6rem;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.45);
}

.tilted-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tilt-card {
  width: 270px;
  padding: 1.25rem;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45);

  margin-bottom: 1rem;

  will-change: transform;
  transform:
    translate(var(--x), var(--y))
    rotate(var(--r))
    translateZ(0);
}
.tilt-card img {
  width: 228px;
  height: 140px;
  object-fit: fill;
  display: block;
  margin-bottom: 0.75rem;
}
.tilt-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.85);
}

.skills-mobile h1 {
  color: #f1f2f3;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .skills-desktop {
    display: none !important;
  }

  .skills-mobile {
    display: block !important;
  }
}