.skills-section {
  position: relative;
  gap: 112px;
  width: 100%;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #1c1c1c;
  background-image: radial-gradient(
    circle at 0% 50%,
    rgba(8, 70, 59, 0.6) 10%,
    rgba(28, 28, 28, 0) 30%
  );
}

.skills-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: self-start;
  gap: 3px;
}

.skills-parent {
  width: 100%;
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #08463b 100%;
  border-radius: 30px;
  padding: 20px;
}

.skills-title {
  color: #3dcfb6;
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 400;
  font-style: medium;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: left;
  margin-bottom: 10px;
}

.skills-subtitle {
  color: #3dcfb6;
  font-family: var(--font-code);
  font-size: 64px;
  font-weight: 700;
  font-style: bold;
  line-height: 100%;
  letter-spacing: -3%;
  text-align: left;
  padding: 10px;
}

.skills-text {
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: left;
  padding: 10px;
}

.skill-query {
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 24px;
  font-weight: 700;
  font-style: bold;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: left;
  padding: 10px;
}

.skill-query span {
  color: #3dcfb6;
}

.contact-me-parent {
  gap: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 363px;
}

.contact-me-btn {
  width: 60%;
  height: 48px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-code);
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  cursor: pointer;
  border: #ffffff 1px solid;
  border-radius: 100px;
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  transition: transform 0.8s ease-in-out;
}

.scroll-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 50px;
  transform: translateX(0);
  align-items: center;
}

.scroll-btn span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  width: 100%;
  gap: 10px;
}

@keyframes contactTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 50px));
  }
}

.contact-me-btn:hover .scroll-btn {
  animation: contactTicker 3s linear infinite;
}

.contact-me-btn:hover {
  border-color: #3dcfb6;
  color: #3dcfb6;
}

.skills-grid {
  display: grid;
  max-width: 632px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top:-36px;
  gap: 8px;
}

.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  height: 116px;
  gap: 8px;
  transition: transform 0.3s ease;
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Optional: Ein leichter Graufilter, der beim Hover verschwindet */
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.main-label {
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 14px;
  text-align: center;
  transition: color 0.3s ease;
}

.skill-item:hover .icon-wrapper img {
  filter: grayscale(0%) drop-shadow(0 0 10px rgba(61, 207, 182, 0.4));
  transform: scale(1.1);
}

.skill-item:hover .main-label {
  color: #3dcfb6;
}

.skill-tooltip {
  position: absolute;
  bottom: 125%; /* Schwebt über dem Icon */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;

  /* Start-Zustand: Unsichtbar */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.skill-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

.skill-item:hover .skill-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.skill-tooltip p {
  color: #3dcfb6;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.tooltip-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.extra-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.extra-icon-box img {
  width: 30px;
  height: 30px;
  color: #3dcfb6;
}

.extra-icon-box span {
  color: #1c1c1c;
  font-size: 11px;
  font-weight: 600;
}
