:root {
  --bg: #070b14;
  --surface: rgba(16, 24, 40, 0.82);
  --surface-strong: #101828;
  --surface-border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.18), transparent 35%),
    linear-gradient(180deg, #04070d 0%, #070b14 35%, #0b1220 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo,
.eyebrow,
.project-status,
.panel-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a:not(.button) {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.65rem 1rem;
}

.hero,
.section {
  padding: 5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 78px);
}

.eyebrow,
.panel-label,
.project-status {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.85rem;
}

.hero-text,
.section-heading p,
.card p,
.bullet-list,
.meta-grid,
.supporting-text,
.form-message {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.career-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.filter-button:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #031116;
}

.button-secondary {
  border: 1px solid var(--surface-border);
  background: rgba(15, 23, 42, 0.65);
}

.button-small {
  min-height: 40px;
  padding-inline: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-grid,
.grid {
  display: grid;
  gap: 1rem;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid article span {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card a,
.project-card a {
  color: var(--accent);
  font-weight: 600;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-button {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.filter-button.active {
  background: rgba(94, 234, 212, 0.16);
  border-color: rgba(94, 234, 212, 0.45);
  color: var(--accent);
}

.project-grid,
.team-grid,
.about-layout,
.portal-layout {
  display: grid;
  gap: 1rem;
}

.portal-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.project-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.bullet-list,
.project-card ul {
  padding-left: 1.1rem;
}

.team-card p {
  margin-bottom: 0;
}

.form-card {
  display: grid;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.portal-header,
.meta-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill.active {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.portal-project {
  margin-top: 1rem;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  margin: 1rem 0 0.6rem;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.portal-stats {
  align-content: start;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(9, auto);
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero,
  .about-layout,
  .project-grid,
  .team-grid,
  .cards-4,
  .cards-3,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .site-footer,
  .system-flow {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: start;
  }

  .system-flow span {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: start;
    padding-bottom: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .form-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }
}

/* =====================================================
   EMPLOYEE PORTAL
===================================================== */

.employee-login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.employee-dashboard {
  display: grid;
  gap: 1.5rem;
}

.employee-profile-card {
  padding: 2rem;
}

.employee-profile-card h3 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.employee-stat-grid article {
  min-height: 145px;
}

.employee-stat-grid h3 {
  margin-top: 0.5rem;
  font-size: 1.65rem;
}

.employee-detail-layout {
  margin-top: 0.5rem;
}

.employee-project-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--surface-border);
}

.employee-project-item:last-child {
  border-bottom: 0;
}

.employee-project-item h4 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.09);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill.inactive {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.status-pill.loa {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

@media (max-width: 760px) {
  .employee-login-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-login-card .button {
    width: 100%;
  }
}
