/* ===== Design Tokens ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Header ===== */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employer-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.employer-link:hover {
  color: var(--primary);
}

.btn-header {
  padding: 8px 20px;
  font-size: 13px;
}

/* ===== Hero Section ===== */
.hero-section {
  background: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2850&q=80");
  background-size: cover;
  background-position: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 27, 75, 0.75) 50%,
    rgba(49, 46, 129, 0.85) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #c4b5fd, #818cf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Search Box */
.search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  transition: all var(--transition);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.search-box:focus-within {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(79, 70, 229, 0.3);
  background: white;
}

.search-icon {
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px 4px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  background: transparent;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-btn {
  padding: 14px 32px;
  font-size: 14px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.tag {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition);
}
.tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
}

/* ===== Categories ===== */
.categories-section {
  padding: 48px 0;
  background: white;
  border-bottom: 1px solid var(--border);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg);
  padding: 24px 16px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.category-card:hover {
  background: white;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.cat-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

/* ===== Job Cards ===== */
.featured-jobs {
  background: var(--bg);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.job-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.job-card:hover::before {
  opacity: 1;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.company-name {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.job-details {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.job-skills {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-edit {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-edit:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.btn-delete:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

/* ===== No Jobs / No Results ===== */
.no-jobs-container {
  display: block;
  padding: 60px 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-icon {
  font-size: 48px;
}
.no-jobs-text {
  font-size: 16px;
  color: var(--text-muted);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== Services ===== */
.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.service-card:hover {
  background: white;
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.service-link:hover {
  color: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 40px 0 80px;
  background: var(--bg);
}

.cta-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  border-radius: 24px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 480px;
  z-index: 1;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: #c4b5fd;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
}

.btn-cta {
  padding: 14px 32px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-full);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.cta-phone {
  font-size: 100px;
  z-index: 1;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: white;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.social-links a:hover {
  color: var(--primary-light);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #64748b;
  font-size: 14px;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 13px;
  color: #475569;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  margin: 8% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalIn 0.35s ease;
}

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

@keyframes modalIn {
  from {
    transform: translateY(-30px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--text-light);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.close-modal:hover {
  color: var(--text);
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-section {
    padding: 60px 0;
  }
  .nav-links {
    display: none;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }
  .cta-visual {
    margin-top: 32px;
  }
  .cta-buttons {
    justify-content: center;
  }
}
