/* =========================================================
   GLOBAL RESET & ROOT COLORS
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --accent-blue: #2b6fff;
  --accent-red: #c42b45;
  --accent-gold: #fbbf24;
  --glass: rgba(9, 39, 84, 0.25);
  --glass-heavy: rgba(15, 23, 42, 0.70);
  --muted: #6b7280;
  --bg: #f5f8ff; /* super light blue so white cards pop */
}

body {
  background: var(--bg);
  color: #042138;
  padding-top: 76px;
}

/* Utility container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* Generic page main (jobs/profiles pages) */
.page-main {
  padding-top: 24px;
}

/* =========================================================
   GLASS HEADER (GLOBAL)
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
}

/* =========================================================
   NAV BUTTONS (DESKTOP)
========================================================= */
.main-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.desktop-nav {
  display: flex;
  gap: 14px;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Generic buttons */
.btn {
  padding: 9px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-red));
  border: none;
}

.btn.glass {
  background: rgba(255, 255, 255, 0.18);
}

.btn.small {
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 999px;
}

.btn.full-width {
  width: 100%;
}

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

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
}

/* CTA in header */
#cta-create {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-red));
  border: none;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  width: 34px;
  height: 24px;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  background: #ffffff;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(9, 39, 84, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0 18px;
}

.mobile-nav.show {
  display: flex;
}

.mobile-nav a,
.mobile-nav .btn {
  width: 82%;
  margin: 4px auto;
  text-align: center;
}

/* =========================================================
   HERO VIDEO SECTION (HOME PAGE)
========================================================= */
.hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  min-height: calc(100vh - 76px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.18) saturate(1.12);
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(0,0,0,0.10), rgba(0,0,0,0.70));
  z-index: -1;
}

.hero-inner {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 960px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.85);
}

.hero .sub {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.90);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   STATS RINGS (HOME)
========================================================= */
.hero-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.stat-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(
    var(--accent-blue),
    var(--accent-red),
    var(--accent-gold),
    var(--accent-blue)
  );
  box-shadow: 0 18px 38px rgba(0,0,0,0.55);
}

.stat-circle {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: breathe 3.5s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: #000000;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================================
   FEATURED SECTIONS (HOME + INNER PAGES)
========================================================= */
.cards-section {
  padding: 56px 24px;
  background: #f8fbff;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 4px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* simple link pill under grids */
.section-footer-link {
  margin-top: 18px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.10);
  font-size: 0.9rem;
  color: #042138;
}

.link-pill:hover {
  background: rgba(15,23,42,0.08);
}

/* =========================================================
   GRID + CARDS (JOBS & PROFILES)
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Base card */
.card {
  background: #ffffff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.09);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

/* Job cards */
.job-card .job-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.job-card .company {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.job-card .location {
  font-size: 0.9rem;
  color: #0f172a;
}

.job-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.job-card .card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.job-card .card-footer .btn {
  flex-shrink: 0;
}

/* Profile cards */
.profile-card {
  text-align: center;
}

.profile-card h3 {
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card .muted {
  font-size: 0.9rem;
}

/* =========================================================
   PROFILE AVATARS (SUPPORT PHOTO + PLACEHOLDER)
========================================================= */

/* Wrapper div or img with this class */
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b63c6;
}

/* If an <img> is inside the wrapper */
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder style (no uploaded photo) */
.profile-avatar.placeholder {
  background: radial-gradient(circle at 30% 20%, #0b63c6, #d32f2f);
  background-image: url("assets/avatar-placeholder.svg");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Buttons row in profile card */
.profile-card .actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Make “Hire Me” / “Apply Now” nice & compact */
.profile-card .actions .btn {
  min-width: 110px;
}

/* =========================================================
   MODALS (JOB / PROFILE DETAILS)
========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.70);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal-panel {
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
  padding: 20px 20px 18px;
  position: relative;
}

/* Close X in top-right */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.modal-close:hover {
  color: #0f172a;
}

/* Optional back button style inside modal header */
.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  margin-bottom: 8px;
}

.modal-back span.icon {
  font-size: 1.1rem;
}

/* Content spacing inside modal */
.modal-panel h2,
.modal-panel h3 {
  margin-bottom: 8px;
}

.modal-panel p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* Form inside modal (hire form / apply form) */
.modal-panel form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.modal-panel label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-panel input,
.modal-panel textarea,
.modal-panel select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

.modal-panel textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-panel .form-row-inline {
  display: flex;
  gap: 8px;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 40px 24px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
}

.staff-login {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 700;
  margin-top: 16px;
  display: inline-block;
  font-size: 0.9rem;
}

.staff-login:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {

  body {
    padding-top: 82px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    padding-top: 90px;
  }

  .stat-ring {
    width: 118px;
    height: 118px;
  }

  .cards-section {
    padding-inline: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    max-width: 100%;
  }

  .modal-panel .form-row-inline {
    flex-direction: column;
  }
}
