/* css/pages/careers.css - Enhanced Careers page styles */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =====================
   PAGE HEADER
   ===================== */
.page-header {
  text-align: center;
  padding: var(--space-16, 5rem) var(--space-6, 1.5rem) var(--space-12, 3rem);
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 40%, #e0f2fe 100%);
  margin-bottom: var(--space-12, 3rem);
  border-radius: 0 0 3rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -50px;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-20px, 20px) scale(1.05); }
  66%       { transform: translate(10px, -15px) scale(0.95); }
}

.page-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-4, 1rem);
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeSlideDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
  position: relative;
  z-index: 1;
}

/* =====================
   KEYFRAMES
   ===================== */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleReveal {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* =====================
   CAREERS CONTENT
   ===================== */
.careers__content {
  max-width: 1000px;
  margin: 0 auto;
}

/* =====================
   COMPANY CULTURE
   ===================== */
.company-culture {
  margin-bottom: var(--space-12, 3rem);
}

.company-culture h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  text-align: center;
  margin-bottom: var(--space-10, 2.5rem);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #0f172a;
}

.company-culture h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #0369a1, #0ea5e9);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5, 1.25rem);
}

.culture-item {
  padding: var(--space-7, 1.75rem) var(--space-5, 1.25rem);
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.12);
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  animation: scaleReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.culture-item:nth-child(1) { animation-delay: 0.08s; }
.culture-item:nth-child(2) { animation-delay: 0.16s; }
.culture-item:nth-child(3) { animation-delay: 0.24s; }
.culture-item:nth-child(4) { animation-delay: 0.32s; }

/* Animated bottom gradient bar */
.culture-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0369a1, #0ea5e9, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* Emoji icon area */
.culture-item::after {
  content: attr(data-icon);
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.culture-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(3, 105, 161, 0.13);
  border-color: rgba(14, 165, 233, 0.3);
}
.culture-item:hover::before { transform: scaleX(1); }

.culture-item h3 {
  color: #0369a1;
  margin-bottom: var(--space-2, 0.5rem);
  font-weight: 600;
  font-size: 1.05rem;
}

.culture-item p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* =====================
   JOB OPENINGS
   ===================== */
.job-openings {
  margin-bottom: var(--space-12, 3rem);
}

.job-openings h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  margin-bottom: var(--space-6, 1.5rem);
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.job-openings h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0369a1, #0ea5e9);
  border-radius: 2px;
  margin: 0.5rem 0 0;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.job-card {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 1.25rem;
  padding: var(--space-7, 1.75rem);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  animation: fadeSlideLeft 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
}

.job-card:nth-child(1) { animation-delay: 0.08s; }
.job-card:nth-child(2) { animation-delay: 0.18s; }
.job-card:nth-child(3) { animation-delay: 0.28s; }

/* Left status bar */
.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0369a1, #0ea5e9, #38bdf8);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* OPEN badge */
.job-card::after {
  content: '● OPEN';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.job-card:hover {
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(3, 105, 161, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
}
.job-card:hover::before { transform: scaleY(1); }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3, 0.75rem);
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
}

.job-header h3 {
  margin: 0;
  color: #0369a1;
  font-size: 1.2rem;
  font-weight: 700;
}

.job-meta {
  display: flex;
  gap: var(--space-2, 0.5rem);
  flex-wrap: wrap;
}

.job-meta span {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.job-description {
  margin-bottom: var(--space-4, 1rem);
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =====================
   APPLICATION FORM
   ===================== */
.application-form {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 1.75rem;
  padding: var(--space-10, 2.5rem);
  margin-top: var(--space-12, 3rem);
  animation: fadeSlideUp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  position: relative;
  overflow: hidden;
}

.application-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0369a1, #0ea5e9, #38bdf8, #0369a1);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.application-form h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  margin-bottom: var(--space-3, 0.75rem);
  color: #0369a1;
  font-size: 1.6rem;
}

.application-form > p {
  margin-bottom: var(--space-6, 1.5rem);
  color: #64748b;
  font-size: 0.95rem;
}

/* Form field animations */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-control:focus {
  transform: scale(1.005);
}

.header__logo-img {
    max-height: 50px; /* Adjust based on your header size */
    width: auto;
    display: block;
}