/**
 * Careers Page - Altroz Technologies
 * Animated and interactive design
 */

/* ============================================
   Scroll-triggered animations
   ============================================ */
.careers-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.careers-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero section - entrance animation
   ============================================ */
.careers-hero {
  position: relative;
  overflow: hidden;
}
.careers-hero .page-title {
  opacity: 0;
  transform: translateY(20px);
  animation: careers-hero-reveal 0.8s ease forwards;
}
@keyframes careers-hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Decorative circles (optional subtle background) */
.careers-hero::before,
.careers-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.careers-hero::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -80px;
}
.careers-hero::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
}

/* ============================================
   Careers content - section stays visible, children animate
   ============================================ */
.careers-content.careers-animate {
  opacity: 1 !important;
  transform: none !important;
}
.careers-content.animate-in .section-title {
  animation: careers-fade-up 0.6s ease 0.1s forwards;
}
.careers-content.animate-in .section-description {
  animation: careers-fade-up 0.6s ease 0.2s forwards;
}
.careers-content.animate-in .section-description + .section-description {
  animation-delay: 0.3s;
}
.careers-content.animate-in .btn-primary {
  animation: careers-fade-up 0.6s ease 0.4s forwards;
}
.careers-content .section-title,
.careers-content .section-description,
.careers-content .btn-primary {
  opacity: 0;
  transform: translateY(16px);
}
@keyframes careers-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Careers content section - CTA button
   ============================================ */
.careers-content .btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.careers-content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 100, 219, 0.35);
}

/* ============================================
   Job listings - card style with hover
   ============================================ */
.job-listings-box {
  overflow: hidden;
}
.job-item {
  padding: 24px 28px !important;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color) !important;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.job-item:last-child {
  margin-bottom: 0;
}
.job-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(24, 100, 219, 0.12);
  border-color: rgba(24, 100, 219, 0.25) !important;
}
.job-item .btn-apply {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.job-item:hover .btn-apply {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(24, 100, 219, 0.3);
}

/* Job item title - color transition on hover */
.job-item h3 {
  transition: color 0.2s ease;
}
.job-item:hover h3 {
  color: var(--primary-color) !important;
}

/* Staggered job item reveal */
.job-openings-section.animate-in .job-item {
  opacity: 0;
  animation: careers-job-reveal 0.5s ease forwards;
}
.job-openings-section.animate-in .job-item:nth-child(1) { animation-delay: 0.05s; }
.job-openings-section.animate-in .job-item:nth-child(2) { animation-delay: 0.12s; }
.job-openings-section.animate-in .job-item:nth-child(3) { animation-delay: 0.19s; }
.job-openings-section.animate-in .job-item:nth-child(4) { animation-delay: 0.26s; }
.job-openings-section.animate-in .job-item:nth-child(5) { animation-delay: 0.33s; }
.job-openings-section.animate-in .job-item:nth-child(6) { animation-delay: 0.4s; }
.job-openings-section.animate-in .job-item:nth-child(7) { animation-delay: 0.47s; }
.job-openings-section.animate-in .job-item:nth-child(8) { animation-delay: 0.54s; }
.job-openings-section.animate-in .job-item:nth-child(9) { animation-delay: 0.61s; }
.job-openings-section .job-item {
  opacity: 0;
  transform: translateY(16px);
}
@keyframes careers-job-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section header animation */
.job-openings-section .section-header {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
