/* =========================
   Global Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8f6ff, #ece6ff, #fdfcff);
  background-size: 400% 400%;
  color: #2c2146;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: bgShift 18s ease infinite;
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* =========================
   Header
========================= */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(150, 130, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  font-weight: 700;
  color: #7c4dff;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #5e35b1;
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #4a4458;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #7c4dff;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #7c4dff;
}
.main-nav a:hover::after {
  width: 100%;
}

/* =========================
   Job List
========================= */
.jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
}

.job-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(124, 77, 255, 0.25);
}

.job-title {
  font-size: 1.3rem;
  color: #2c2146;
  margin-bottom: 0.4rem;
}

.job-meta {
  font-size: 0.9rem;
  color: #6b6580;
  margin-bottom: 1rem;
}

.job-snippet {
  flex: 1;
  font-size: 0.95rem;
  color: #453a69;
  margin-bottom: 1rem;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  background: #ede7f6;
  color: #2c2146;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #d1c4e9;
}

.btn-primary {
  background: linear-gradient(135deg, #7c4dff, #9575cd);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5e35b1, #7e57c2);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #b39ddb;
  color: #5e35b1;
}

.btn-ghost:hover {
  background: rgba(124, 77, 255, 0.1);
  color: #2c2146;
}

/* =========================
   Modal
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(76, 60, 120, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
  backdrop-filter: blur(6px);
}

.modal[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}

.modal-dialog {
  background: #ffffff;
  color: #2c2146;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  position: relative;
  animation: scaleIn 0.3s ease forwards;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.2);
}

.modal-content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
  color: #5e35b1;
}

.modal-close:hover {
  background: rgba(124, 77, 255, 0.1);
  transform: rotate(90deg);
}

/* =========================
   Forms
========================= */
.apply-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.apply-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a4458;
}

.apply-form input,
.apply-form textarea {
  padding: 0.7rem;
  border: 1px solid #b39ddb;
  border-radius: 0.6rem;
  font: inherit;
  width: 100%;
  background: #faf8ff;
  color: #2c2146;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.25);
}

.consent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #6b6580;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
  animation: slideDown 0.4s ease;
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: auto;
  background: linear-gradient(135deg, #f3e5f5, #ede7f6);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #5e35b1;
}

/* =========================
   Animations
========================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
