/* --- RESET & LAYOUT -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #020d2e; /* super‑dark blue */
  color: #e8ecff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow: hidden;
}

/* --- TYPOGRAPHY ------------------------------------------------------ */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 6rem);
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
p {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.5rem);
  margin: 0.5rem 0 2rem;
  text-align: center;
  max-width: 32ch;
  line-height: 1.4;
  opacity: 0.85;
}

/* --- CALL TO ACTION -------------------------------------------------- */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  background: #0b47ff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover, .cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 71, 255, 0.4);
}

.cta.jobs {
  background: #6e0bff;
}
.cta.jobs:hover, .cta.jobs:focus {
  box-shadow: 0 8px 20px rgba(110, 11, 255, 0.4);
}

/* --- BACKGROUND CANVAS ---------------------------------------------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow clicks through */
  z-index: -1;
}

/* --- JOB POSTING PAGE ---------------------------------------------- */
.job-container {
  max-width: 900px;
  width: 92%;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(17, 27, 65, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(135, 150, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 85vh;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-header {
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.job-title {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
  margin-bottom: 0.5rem;
  color: #e8ecff;
  animation: titleGlow 3s infinite alternate;
  width: 100%;
  text-align: center;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 5px rgba(135, 150, 255, 0.5); }
  100% { text-shadow: 0 0 20px rgba(135, 150, 255, 0.8), 0 0 30px rgba(110, 11, 255, 0.4); }
}

.job-subtitle {
  font-size: 1.2rem;
  color: #a5afff;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: center;
  max-width: none;
}

.job-section {
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  width: 100%;
}

.job-section p {
  text-align: left;
  max-width: none;
  width: 100%;
}

.job-section:hover {
  transform: translateX(5px);
}

.job-section h2 {
  font-size: 1.5rem;
  color: #87f0ff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.job-section h2:hover {
  color: #6e0bff;
}

.job-section h2 .emoji {
  margin-right: 0.5rem;
  font-size: 1.7rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.job-section:hover h2 .emoji {
  transform: scale(1.2) rotate(10deg);
}

.highlight {
  background: linear-gradient(135deg, #0b47ff, #6e0bff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

.job-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.job-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.job-list li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #0b47ff, #6e0bff);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-list li:hover::before {
  opacity: 1;
}

.apply-btn {
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #6e0bff, #0b47ff);
  position: relative;
  overflow: hidden;
  width: fit-content;
  text-align: center;
}

.apply-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.apply-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.back-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(135, 150, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-btn:hover {
  transform: translateX(-3px);
  background: rgba(135, 150, 255, 0.4);
}

/* Ensure job page has scrollable body */
body.job-page {
  overflow-y: auto;
  justify-content: flex-start;
  padding: 5rem 1rem;
}

/* New styles for enhanced job posting */
.requirements-title, .bonus-title {
  font-size: 1.3rem;
  color: #a5afff;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
}

.requirements-title .emoji, .bonus-title .emoji {
  margin-right: 0.5rem;
  font-size: 1.4rem;
}

.req-highlight {
  font-weight: bold;
  color: #87f0ff;
}

.requirements-list li, .bonus-list li, .apply-list li {
  padding-left: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.requirements-list li:hover {
  background: rgba(135, 150, 255, 0.1);
  border-radius: 0.3rem;
  padding-left: 1rem;
}

.role-details {
  background: rgba(11, 71, 255, 0.1);
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(135, 150, 255, 0.1);
  margin-top: 1.5rem;
}

.role-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: baseline;
}

.role-item:last-child {
  margin-bottom: 0;
}

.role-label {
  font-weight: bold;
  color: #87f0ff;
  width: 120px;
  min-width: 120px;
  position: relative;
}

.role-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(135, 150, 255, 0.5);
  transform: translateY(-50%);
}

.role-value {
  flex: 1;
}

.signature {
  text-align: right;
  font-style: italic;
  margin-top: 2rem;
  color: #a5afff;
}

.cta-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Sparkle animation for Apply button */
.sparkle {
  display: inline-block;
  animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg) scale(1.2); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-15deg) scale(1.2); }
  100% { transform: rotate(0deg); }
}

/* Floating labels effect */
.role-details:hover .role-item:not(:hover) {
  opacity: 0.7;
}

.role-item {
  transition: all 0.3s ease;
  position: relative;
}

.role-item:hover {
  transform: translateX(5px);
  z-index: 1;
}

.role-item:hover .role-label {
  color: #ffffff;
}

/* New background gradient effect */
.job-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(110, 11, 255, 0.15), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(11, 71, 255, 0.15), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  animation: gradientPulse 8s ease infinite;
}

@keyframes gradientPulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* 3D floating effect on hover for Apply button */
.apply-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apply-btn:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 15px 30px rgba(110, 11, 255, 0.4), 
              0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Typing effect animation for one of the job sections */
.job-section:first-of-type p:first-of-type {
  border-right: 2px solid transparent;
  animation: typing 4s steps(40, end) 1s both, blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  max-width: 100%;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #87f0ff }
} 