body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #f7f7f8;
    background: #08090c;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      700px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
      rgba(167, 255, 62, 0.08),
      transparent 45%
    ),
    radial-gradient(
      500px circle at 88% 75%,
      rgba(125, 92, 255, 0.09),
      transparent 60%
    );
}

body::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.22) 0.7px,
    transparent 0.7px
  );
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ---------------- Container / Filter ---------------- */

.container {
  min-height: 90vh;
  width: min(1280px, calc(100% - 48px));
  margin: auto;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  
}

.section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex-shrink: 0;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #92939d;
  background: transparent;
  font-size: 0.76rem;
  transition: 0.25s ease;
}

.filter:hover {
  color: white;
}

.filter.active {
  border-color: rgba(199, 255, 69, 0.3);
  color: #101108;
  background: #c7ff45;
}

/* ---------------- Employees ---------------- */

.employees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 35px 0 50px;
}

.employee {
  --accent: #c7ff45;

  position: relative;
  display: flex;
  isolation: isolate;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 445px;
  padding: 0 12px 15px;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.employee::before {
  position: absolute;
  z-index: -2;
  top: 35px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  content: "";
  opacity: 0.14;
  background: var(--accent);
  filter: blur(55px);
  transition: 0.4s ease;
}

.employee::after {
  position: absolute;
  z-index: -1;
  top: 68px;
  width: 210px;
  height: 210px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
  transform: scale(0.8);
  transition: 0.4s ease;
}

.employee:hover {
  transform: translateY(-11px);
}

.employee:hover::before {
  opacity: 0.25;
  transform: scale(1.2);
}

.employee:hover::after {
  opacity: 0.9;
  transform: scale(1);
}

.robot-image-wrap {
  position: absolute;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 330px;
  pointer-events: none;
}

.robot-image {
  width: min(100%, 200px);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 20px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.employee:hover .robot-image {
  transform: translateY(-12px) scale(1.045);
}

.status-orbit {
  position: absolute;
  z-index: 3;
  top: 52px;
  right: max(5%, calc(50% - 122px));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: white;
  background: rgba(15, 16, 20, 0.55);
  backdrop-filter: blur(10px);
  font-size: 0.65rem;
  white-space: nowrap;
}

.status-orbit .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-orbit.available .dot {
  background: #c7ff45;
  box-shadow: 0 0 9px #c7ff45;
}

.status-orbit.busy .dot {
  background: #ff6474;
  box-shadow: 0 0 9px #ff6474;
}

.employee-info {
  width: 100%;
  margin-top: 340px;
}

.employee-role {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
}

.employee-name {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.employee-specialty {
  min-height: 40px;
  margin: 8px auto 15px;
  color: #92939d;
  font-size: 0.73rem;
  line-height: 1.8;
}

.employee-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.more-button,
.hire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 0.73rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.more-button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d7d7da;
  background: rgba(255, 255, 255, 0.025);
}

.more-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.hire-button {
  color: #12130c;
  background: var(--accent);
}

.hire-button:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.hire-button.disabled {
  color: #8d8e93;
  background: #27282d;
  cursor: not-allowed;
  pointer-events: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 0;
  color: #92939d;
  text-align: center;
}


/* ---------------- Modal ---------------- */

.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  padding: 20px;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: grid;
}

.modal-box {
  position: relative;
  width: min(450px, 100%);
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: #15161b;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-box::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: "";
  opacity: 0.15;
  background: var(--modal-accent, #c7ff45);
  filter: blur(40px);
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.modal-role {
  position: relative;
  margin: 0 0 6px;
  color: var(--modal-accent, #c7ff45);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-name {
  position: relative;
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
}

.modal-description {
  position: relative;
  margin: 18px 0;
  color: #b2b3ba;
  font-size: 0.88rem;
  line-height: 2;
}

.modal-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.modal-tags span {
  padding: 7px 10px;
  border-radius: 9px;
  color: #d2d2d5;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
}

.modal-hire {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  border-radius: 13px;
  color: #11120b;
  background: var(--modal-accent, #c7ff45);
  font-weight: 800;
}

.modal-hire.disabled {
  color: #8d8e93;
  background: #27282d;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
  .employees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }
}

@media (max-width: 700px) {

  .container {
    width: min(100% - 28px, 1280px);
  }

  .section-bar {
    display: block;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .employees {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
  }

  .employee {
    min-height: 420px;
  }

  .robot-image-wrap {
    height: 315px;
  }
}
