/* ==========================================================================
   CAREERS PAGE STYLES (css/pages/careers.css)
   Acarya Global - Enterprise Careers & Talent Opportunities
   Representation inspired by modern tech career portals
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Inner Page Banner (Ken Burns moving background with dark overlay)
   -------------------------------------------------------------------------- */
.page-title-area {
  position: relative;
  background-color: #000000;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  z-index: 1;
}

/* Background image & Gentle Ken Burns Zoom Animation */
.page-title-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../../assets/images/hero/page-title-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000000;
  animation: heroBgPanZoom 18s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 1;
}

/* Black overlay blending */
.page-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
  pointer-events: none;
}

.page-title-content {
  text-align: center;
  position: relative;
  z-index: 3;
}

.page-title-content .page-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--dt-pri-color, #00a0e8);
  margin-bottom: 0.75rem;
  animation: heroCategoryDrop 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.page-title-content .page-category:hover {
  letter-spacing: 3.2px;
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(0, 160, 232, 0.5);
  transform: translateY(-1px);
}

.page-title-content .page-main-heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-white, #ffffff);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  animation: heroHeadingSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
  cursor: default;
}

.page-title-content .page-main-heading:hover {
  transform: translateY(-2px);
  text-shadow: 0 6px 28px rgba(0, 160, 232, 0.35);
}

.page-title-content .page-subheading {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  animation: heroSubheadingFadeIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* --------------------------------------------------------------------------
   Shared Section Typography & Headers
   -------------------------------------------------------------------------- */
.careers-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.careers-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--dt-pri-color, #00a0e8);
  margin-bottom: 0.6rem;
}

.careers-title {
  font-size: 2.375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.careers-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   1. Culture & Employee Value Proposition Section (Why AcaryaGlobal?)
   -------------------------------------------------------------------------- */
.careers-culture-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.culture-container-inner {
  max-width: 880px;
  margin: 0 auto;
}

.culture-quote-card {
  background: linear-gradient(135deg, rgba(0, 160, 232, 0.04) 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 160, 232, 0.2);
  border-left: 4px solid var(--dt-pri-color, #00a0e8);
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(15, 43, 72, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-left-color 0.3s ease;
}

.culture-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 160, 232, 0.12);
  border-left-color: #38bdf8;
}

.quote-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 160, 232, 0.12);
  color: var(--dt-pri-color, #00a0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.culture-quote-card:hover .quote-icon-badge {
  transform: scale(1.12) rotate(6deg);
  background: rgba(0, 160, 232, 0.2);
}

.culture-lead-quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2b48;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.culture-narrative-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.culture-lead-p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Current Openings Grid Section (from data/careers.json)
   -------------------------------------------------------------------------- */
.careers-openings-section {
  padding: 6rem 0;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.openings-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.opening-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.opening-card:hover {
  transform: translateY(-8px);
  border-color: var(--dt-pri-color, #00a0e8);
  box-shadow: 0 16px 36px rgba(15, 43, 72, 0.12);
}

.opening-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.opening-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.opening-card:hover .opening-tag {
  transform: translateY(-1px);
}

.tag--type {
  background: rgba(0, 160, 232, 0.1);
  color: var(--dt-pri-color, #00a0e8);
}

.tag--loc {
  background: #f1f5f9;
  color: #475569;
}

.opening-role-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.opening-role-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dt-pri-color, #00a0e8);
  margin-bottom: 1rem;
}

.opening-role-desc {
  font-size: 0.90625rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.opening-apply-wrap {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

.job-apply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dt-pri-color, #00a0e8);
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.job-apply-link i {
  font-size: 0.8125rem;
  color: var(--dt-pri-color, #00a0e8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-card:hover .job-apply-link,
.job-apply-link:hover {
  gap: 0.75rem;
  color: #0284c7;
}

.opening-card:hover .job-apply-link i,
.job-apply-link:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. Direct Application CTA Portal (#apply)
   -------------------------------------------------------------------------- */
.careers-apply-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.apply-portal-card {
  background: linear-gradient(135deg, #0f2b48 0%, #081a2c 100%);
  border-radius: 18px;
  padding: 4rem 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 43, 72, 0.2);
  border: 1px solid rgba(0, 160, 232, 0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.apply-portal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.apply-portal-header .careers-eyebrow {
  color: #38bdf8;
}

.apply-portal-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.apply-portal-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.apply-portal-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.apply-action-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}

.apply-action-box:hover {
  border-color: rgba(0, 160, 232, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.apply-action-box h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.apply-action-box p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.apply-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--dt-pri-color, #00a0e8);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.apply-email-btn:hover {
  background: #008cc9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
}

.apply-hints-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  text-align: left;
}

.apply-hints-list li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.apply-hints-list li:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.apply-hints-list li i {
  color: var(--dt-pri-color, #00a0e8);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apply-hints-list li:hover i {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Hero Keyframes
   -------------------------------------------------------------------------- */
@keyframes heroBgPanZoom {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
  100% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
}

@keyframes heroCategoryDrop {
  0% {
    opacity: 0;
    transform: translate3d(0, -22px, 0);
    letter-spacing: 3.8px;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    letter-spacing: 2.5px;
  }
}

@keyframes heroHeadingSlideUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroSubheadingFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   Section Scroll Reveal Animations (Distinct Choreography Per Section)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section 1: Work Culture (Life at Acarya Global)
   THEME: Harmonious Vertical Unfold & Lateral Inward Converge
   -------------------------------------------------------------------------- */
.careers-culture-section .careers-section-header,
.careers-culture-section .culture-quote-card,
.careers-culture-section .culture-narrative-col {
  opacity: 0;
  will-change: transform, opacity;
}

.careers-culture-section.is-in-view .careers-section-header {
  animation: cultureHeaderFloatDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.careers-culture-section.is-in-view .culture-quote-card {
  animation: cultureQuoteUnfold 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.careers-culture-section.is-in-view .quote-icon-badge {
  animation: quoteBadgePopRotate 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both;
}

.careers-culture-section.is-in-view .culture-narrative-col:nth-child(1) {
  animation: narrativeConvergeLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.careers-culture-section.is-in-view .culture-narrative-col:nth-child(2) {
  animation: narrativeConvergeRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

@keyframes cultureHeaderFloatDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -32px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cultureQuoteUnfold {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(-14deg) translate3d(0, 30px, 0) scale(0.96);
    box-shadow: 0 0 0 rgba(15, 43, 72, 0);
  }
  65% {
    transform: perspective(900px) rotateX(1.5deg) translate3d(0, -2px, 0) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.04);
  }
}

@keyframes quoteBadgePopRotate {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes narrativeConvergeLeft {
  0% {
    opacity: 0;
    transform: translate3d(-45px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes narrativeConvergeRight {
  0% {
    opacity: 0;
    transform: translate3d(45px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Section 2: Current Job Openings
   THEME: 3D Tilt Domino Rising Cascade (Distinct from Section 1)
   -------------------------------------------------------------------------- */
.careers-openings-section .careers-section-header,
.careers-openings-section .opening-card {
  opacity: 0;
  will-change: transform, opacity;
}

.careers-openings-section.is-in-view .careers-section-header {
  animation: openingsHeaderScaleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.careers-openings-section.is-in-view .opening-card:nth-child(1) {
  animation: card3DTiltDomino 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.careers-openings-section.is-in-view .opening-card:nth-child(2) {
  animation: card3DTiltDomino 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.careers-openings-section.is-in-view .opening-card:nth-child(3) {
  animation: card3DTiltDomino 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

@keyframes openingsHeaderScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes card3DTiltDomino {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(20deg) translate3d(0, 60px, 0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  65% {
    transform: perspective(1000px) rotateX(-2deg) translate3d(0, -6px, 0);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translate3d(0, 0, 0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  }
}

/* --------------------------------------------------------------------------
   Section 3: Take The Next Step (Direct Application Portal)
   THEME: Cinematic Lens Expanding Frame & Glassmorphic Split-Pop (Distinct from Sections 1 & 2)
   -------------------------------------------------------------------------- */
.careers-apply-section .apply-portal-card,
.careers-apply-section .apply-portal-header,
.careers-apply-section .apply-action-box,
.careers-apply-section .apply-hints-list li {
  opacity: 0;
  will-change: transform, opacity;
}

.careers-apply-section.is-in-view .apply-portal-card {
  animation: portalFrameLensIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.careers-apply-section.is-in-view .apply-portal-header {
  animation: applyHeaderSweepIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.careers-apply-section.is-in-view .apply-action-box {
  animation: applyActionBoxGlassPop 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.38s both;
}

.careers-apply-section.is-in-view .apply-hints-list li:nth-child(1) {
  animation: hintItemSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.careers-apply-section.is-in-view .apply-hints-list li:nth-child(2) {
  animation: hintItemSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.66s both;
}

.careers-apply-section.is-in-view .apply-hints-list li:nth-child(3) {
  animation: hintItemSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes portalFrameLensIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translate3d(0, 45px, 0);
  }
  60% {
    transform: scale(1.01) translate3d(0, -4px, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes applyHeaderSweepIn {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes applyActionBoxGlassPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translate3d(0, 30px, 0);
  }
  70% {
    transform: scale(1.03) translate3d(0, -3px, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes hintItemSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .culture-narrative-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .openings-list-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .apply-portal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .page-title-content .page-main-heading {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .page-title-area {
    padding: 3.5rem 0 3rem;
  }
  .page-title-content .page-main-heading {
    font-size: 1.875rem;
  }
  .page-title-content .page-subheading {
    font-size: 0.9375rem;
  }
  .culture-quote-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
  }
  .culture-lead-quote {
    font-size: 1.0625rem;
  }
  .careers-title {
    font-size: 1.875rem;
  }
  .apply-portal-card {
    padding: 2.5rem 1.5rem;
  }
  .apply-portal-title {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion Handling
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-title-bg,
  .page-title-content .page-category,
  .page-title-content .page-main-heading,
  .page-title-content .page-subheading,
  .careers-culture-section .careers-section-header,
  .careers-culture-section .culture-quote-card,
  .careers-culture-section .culture-narrative-col,
  .quote-icon-badge,
  .careers-openings-section .careers-section-header,
  .careers-openings-section .opening-card,
  .careers-apply-section .apply-portal-card,
  .careers-apply-section .apply-portal-header,
  .careers-apply-section .apply-action-box,
  .careers-apply-section .apply-hints-list li,
  .apply-email-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
