@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;700&display=swap');

:root {
  --bg: #0b0d10;
  --text: #f5f7fb;
  --muted: #b9c2d0;
  --accent: #d8f1ff;
  --accent-strong: #7ce3ff;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.35);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --blur: saturate(140%) blur(18px);
  --radius-large: 26px;
  --radius-pill: 999px;
  --transition: 200ms ease;
  --transition-slow: 320ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Times New Roman', 'Be Vietnam Pro', serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Background dots + vignette */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: 0.35;
}

body::after {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 75%);
}

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

h1, h2, h3, h4 {
  font-family: 'Times New Roman', 'Be Vietnam Pro', serif;
  letter-spacing: 0.3px;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.page-shell {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 22px 80px;
}

.navbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  margin: 0 auto 32px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-strong);
  border-radius: var(--radius-pill);
  max-width: 1120px;
  width: min(1100px, calc(100vw - 40px));
  overflow: visible;
}

.navbar:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: 'Times New Roman', 'Be Vietnam Pro', serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn {
  font-family: 'Times New Roman', 'Be Vietnam Pro', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(124, 227, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(124, 227, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(124, 227, 255, 0.3);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: 40px 16px 80px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  z-index: 1;
  margin-top: -60px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(3px);
  pointer-events: none;
  z-index: -2;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.hero-content {
  max-width: 760px;
  display: grid;
  gap: 20px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
}

.cta {
  margin: 14px auto 0;
  padding: 14px 28px;
  font-size: 16px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 30% 20%, rgba(124, 227, 255, 0.2), transparent 35%),
              radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08), transparent 40%),
              linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  filter: blur(10px);
  opacity: 0.8;
}

.section {
  margin: 40px auto;
  max-width: 1080px;
}

.jobs-only {
  max-width: 1200px;
  margin: 60px auto;
}

#jobsSection {
  margin-top: 70px;
}

@media (max-width: 900px) {
  #jobsSection {
    margin-top: 50px;
  }
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-large);
  padding: 28px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: -50% -50%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 227, 255, 0.12), transparent 35%);
  opacity: 0.6;
  filter: blur(30px);
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.tab-btn.active {
  border-color: var(--accent-strong);
  background: rgba(124, 227, 255, 0.1);
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(124, 227, 255, 0.25);
}

.note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.jobs-panel {
  display: grid;
  gap: 18px;
}

.job-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.job-group h3 {
  margin-bottom: 10px;
}

.job-group:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-item:last-child {
  border-bottom: none;
}

.task-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.section-title {
  font-size: 22px;
  margin-bottom: 4px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  right: 14px;
  top: 60px;
  width: 220px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 10px;
  z-index: 60;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 200ms ease;
}

.modal-card {
  position: relative;
  width: min(480px, 92vw);
  z-index: 1;
  animation: popIn 220ms ease;
}

.modal-title {
  margin: 0 0 10px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform var(--transition), border-color var(--transition);
}

.modal-close:hover {
  transform: scale(1.05);
  border-color: var(--accent-strong);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu a {
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.logout-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-link {
  text-align: right;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .navbar {
    padding: 12px 16px;
    justify-content: center;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }

  .logo {
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(32px, 7vw, 46px);
  }

  .glass-card {
    padding: 20px;
  }

  .section {
    margin: 24px auto;
  }
}

