/* Virender AI Hub — dark glassmorphism + neon */

:root {
  --bg-deep: #05060d;
  --bg-panel: rgba(12, 14, 28, 0.55);
  --glass-border: rgba(120, 160, 255, 0.22);
  --neon-blue: #38b6ff;
  --neon-purple: #b967ff;
  --neon-cyan: #5cf0e8;
  --text: #e8ecff;
  --text-muted: #98a2c9;
  --radius: 18px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Ambient background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 103, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 20%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate;
}

.bg-glow--1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
}

.bg-glow--2 {
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
  animation-delay: -6s;
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.08);
  }
}

.glass {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 1rem 1.25rem 0;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.logo__mark {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-blue);
  animation: pulseMark 3s ease-in-out infinite;
}

@keyframes pulseMark {
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--neon-purple));
  }
}

.logo__accent {
  color: var(--neon-blue);
  text-shadow: 0 0 20px rgba(56, 182, 255, 0.5);
}

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

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(56, 182, 255, 0.1);
}

.nav__link--cta {
  color: var(--neon-cyan);
  border: 1px solid rgba(92, 240, 232, 0.35);
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.15);
}

.nav__link--cta:hover {
  box-shadow: 0 0 28px rgba(185, 103, 255, 0.35);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: inherit;
}

.nav__dropdown-toggle::-webkit-details-marker {
  display: none;
}

.nav__dropdown-toggle::after {
  content: "▾";
  font-size: 0.75em;
  opacity: 0.85;
  /* transition: transform var(--transition); */
}

.nav__dropdown[open] .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: #0c0e1c;
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 182, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
  /* animation: fadeUp 0.25s ease both; */
}

.nav__dropdown-item {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: #12142a;
  /* transition: color var(--transition), background var(--transition), box-shadow var(--transition); */
}

.nav__dropdown-item:hover {
  color: var(--neon-cyan);
  background: #1a1d38;
  box-shadow: 0 0 16px rgba(56, 182, 255, 0.15);
}

.nav__dropdown-item--soon {
  cursor: default;
  opacity: 0.55;
}

.nav__dropdown-item--soon::after {
  content: "Coming Soon";
  float: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav__dropdown-item--soon:hover {
  color: var(--text-muted);
  background: #12142a;
  box-shadow: none;
}

/* Main */
.main-content {
  position: relative;
  z-index: 1;
  /* background: red; */
  /* max-width: 1200px; */
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
}

.neon-text {
  color: var(--neon-purple);
  text-shadow: 0 0 24px rgba(185, 103, 255, 0.55);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.hero__accent {
  background: linear-gradient(120deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(56, 182, 255, 0.4));
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Module cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1020px;
  margin: 0 auto;
}

.card-grid .module-card {
  flex: 0 1 calc(33.333% - 0.84rem);
  min-width: 240px;
  max-width: 320px;
}

.module-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  animation: fadeUp 0.7s ease both;
}

.module-card:nth-child(1) {
  animation-delay: 0.05s;
}
.module-card:nth-child(2) {
  animation-delay: 0.12s;
}
.module-card:nth-child(3) {
  animation-delay: 0.19s;
}
.module-card:nth-child(4) {
  animation-delay: 0.26s;
}
.module-card:nth-child(5) {
  animation-delay: 0.33s;
}

.module-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(56, 182, 255, 0.45);
  box-shadow:
    0 0 40px rgba(56, 182, 255, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.module-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.module-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(56, 182, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.module-card:hover .module-card__glow {
  opacity: 1;
}

.module-card--featured {
  border-color: rgba(185, 103, 255, 0.45);
  box-shadow: 0 0 36px rgba(185, 103, 255, 0.12);
}

.module-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--neon-blue), var(--neon-purple));
  color: #05060d;
  font-weight: 700;
}

.module-card__icon {
  font-size: 1.75rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(92, 240, 232, 0.5);
}

.module-card__icon--pulse {
  animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
  50% {
    transform: scale(1.08);
    text-shadow: 0 0 28px rgba(185, 103, 255, 0.7);
  }
}

.module-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.06em;
}

.module-card__desc {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.98rem;
}

.module-card__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.module-card__tag--accent {
  color: var(--neon-blue);
}

/* Job search page */
.page-head {
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(56, 182, 255, 0.12);
  border: 1px solid rgba(56, 182, 255, 0.25);
}

.loading-panel {
  padding: 2.5rem 1.5rem;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.loading-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.loading-panel__row .spinner {
  flex-shrink: 0;
  margin: 0;
}

.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid rgba(56, 182, 255, 0.2);
  border-top-color: var(--neon-cyan);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(56, 182, 255, 0.25);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-panel__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.loading-panel__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.alert--error {
  border-color: rgba(255, 100, 120, 0.45);
  color: #ffc9d0;
  background: rgba(40, 10, 20, 0.5);
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1rem;
}

.search-toolbar {
  margin-bottom: 1.25rem;
}

.search-toolbar #btn-fetch:disabled,
.results-toolbar #btn-refresh:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.results-toolbar__count {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  margin-right: 0.5rem;
}

.results-toolbar--controls {
  align-items: flex-end;
}

.results-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  flex: 1;
  min-width: 0;
}

.job-control-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.job-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.35);
  background: rgba(8, 10, 22, 0.85);
  color: var(--text);
  cursor: pointer;
  min-width: 9rem;
}

.job-select:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 2px rgba(56, 182, 255, 0.25);
}

.job-filter-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.35);
  background: rgba(8, 10, 22, 0.85);
  color: var(--text);
  min-width: 12rem;
  flex: 1;
  max-width: 22rem;
}

.job-filter-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.job-filter-input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 2px rgba(185, 103, 255, 0.2);
}

.job-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.job-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

.job-table th,
.job-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(120, 160, 255, 0.12);
}

.job-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.job-table tbody tr {
  transition: background var(--transition);
}

.job-table tbody tr:hover {
  background: rgba(56, 182, 255, 0.06);
}

.job-table tbody tr.job-row--relevant {
  box-shadow: inset 3px 0 0 0 rgba(34, 197, 94, 0.85);
}

.job-table tbody tr.job-row--relevant:hover {
  background: rgba(34, 197, 94, 0.07);
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.job-badge--relevant {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.job-badge--not {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
}

.job-toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.job-toolbar-check input {
  accent-color: var(--neon-cyan);
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn--ghost {
  background: rgba(56, 182, 255, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(92, 240, 232, 0.35);
}

.btn--ghost:hover {
  box-shadow: 0 0 24px rgba(185, 103, 255, 0.25);
}

.job-table .job-actions-cell {
  white-space: nowrap;
}

.job-table .job-actions-cell .btn {
  margin-right: 0.35rem;
  margin-bottom: 0.15rem;
}

.job-detail-page {
  padding: 1.5rem 1.75rem;
  max-width: 920px;
  margin: 0 auto 3rem;
}

.job-detail-meta {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.job-detail-meta dt {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.job-detail-meta dd {
  margin: 0;
  color: var(--text-main, #e8ecff);
}

.job-detail-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--neon-cyan);
}

.job-detail-list {
  margin: 0 0 1rem 1rem;
  color: var(--text-muted);
}

.job-detail-back {
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.interview-layout {
  display: flex;
  gap: 20px;
  padding: 30px;
  width: 100% !important;
}

.interview-sidebar {
  width: 320px;
  padding: 20px;
}

.interview-sidebar label {
  margin-top: 15px;
  display: block;
  font-size: 13px;
  color: #aaa;
}

.interview-tts-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.interview-tts-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.interview-tts-audio {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 40px;
}

.msg.question .tts-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.msg.question .tts-hint--err {
  color: #f5a623;
}

.msg.question .tts-hint--browser {
  color: #7dd3fc;
}

.tts-browser-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(125, 211, 252, 0.12);
  color: #e0f2fe;
}

.tts-browser-btn:hover:not(:disabled) {
  background: rgba(125, 211, 252, 0.22);
}

.tts-browser-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tts-env-hint {
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}
/* FIX SELECT DROPDOWN */
.input,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;

  background: rgba(255, 255, 255, 0.05);
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;

  backdrop-filter: blur(10px);
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
}

/* Dropdown arrow fix */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* OPTION styling (important) */
select option {
  background: #0b0f1a;
  color: #fff;
}

/* LIMIT DROPDOWN HEIGHT */
select {
  max-height: 200px;
  overflow-y: auto;
}

/* SCROLLBAR (optional but clean) */
select::-webkit-scrollbar {
  width: 6px;
}
select::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 10px;
}

/* HOVER + FOCUS EFFECT */
select:hover {
  border-color: #6366f1;
}
select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4);
}

.btn-primary {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

.interview-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 80vh;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.msg {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 10px;
}

.question {
  background: rgba(255,255,255,0.05);
}

.answer {
  background: rgba(99,102,241,0.3);
  text-align: right;
}

.feedback {
  background: rgba(16,185,129,0.15);
}

.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input textarea {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  color: white;
}

.chat-input button {
  margin-left: 10px;
  padding: 10px 20px;
  background: #f97316;
  border: none;
  color: white;
  border-radius: 6px;
}