.jobs-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #000 0%, #1a0a3e 50%, #000 100%);
  color: #fff;
  overflow: hidden;
}

.jobs-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.jobs-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(139, 92, 246, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.jobs-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.jobs-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jobs-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Tabs */
.jobs-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.tab-btn {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
}

.tab-btn.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Slider & Track */
.jobs-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

/* Mask for smooth fade edge */
.jobs-slider::before,
.jobs-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.jobs-slider::before {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.jobs-slider::after {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.jobs-track {
  display: flex;
  gap: 30px;
  animation: jobsScroll calc(var(--items-count) * 5s) linear infinite;
  width: max-content;
}

.jobs-track:hover {
  animation-play-state: paused;
}

@keyframes jobsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-330px * var(--items-count)));
  }
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Job Cards */
.job-card-v2 {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.job-card-v2:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.job-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.job-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.3;
}

.job-card-loc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.job-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}

.job-tech span {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.job-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.job-card-link .arrow-icon {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(240deg);
  transition: transform 0.3s ease;
}

.job-card-link:hover .arrow-icon {
  transform: rotate(-90deg) translateX(5px);
}

/* Spontaneous card specifics */
.spontaneous-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.spontaneous-v2 {
  border-style: dashed;
  background: rgba(139, 92, 246, 0.03);
}

@media (max-width: 768px) {
  .jobs-section {
    padding: 60px 0;
  }
  .jobs-title {
    font-size: 2.2rem;
  }
  .jobs-tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .tab-btn {
    width: 100%;
    max-width: 300px;
  }
  .job-card-v2 {
    flex: 0 0 280px;
    height: 350px;
    padding: 25px;
  }
}
