/* ===========================================
   NEXTGEN MINDS – GLOBAL GLASS UI THEME
   =========================================== */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-gradient: radial-gradient(circle at top left, #cad0ff, #e3e3e3);
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.6);
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.15);
  --danger: #ef4444;
  --radius-xl: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
  --transition-fast: 0.2s ease;
  --nav-height: 72px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
}

.ngm-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout wrapper */
.ngm-main {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ngm-footer {
  margin: 0 auto 1.5rem auto;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  width: calc(100% - 3rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===========================================
   HEADER & NAV
   =========================================== */

.ngm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  margin: 1rem;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.25)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.glass {
  backdrop-filter: blur(18px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.18)
  );
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

/* Logo */
.ngm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.ngm-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #4f46e5, #22c1c3, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f9fafb;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.55);
}

.ngm-logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* Nav links */
.ngm-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Auth area */
.ngm-auth-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #22c1c3);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

.btn.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.btn.wide {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

/* User menu */
.user-menu {
  position: relative;
  font-size: 0.85rem;
}

.user-menu > span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 115%;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.user-menu:hover .user-menu-dropdown {
  display: flex;
}

.user-menu-dropdown button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.user-menu-dropdown button:hover {
  background: rgba(148, 163, 184, 0.14);
}

/* ===========================================
   HERO (HOME PAGE)
   =========================================== */

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.7fr);
  padding: 1.8rem;
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero-content h1 {
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
}

.hero-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

.hero h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.values-list {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.hero-side {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===========================================
   TEAM SECTION
   =========================================== */

.team-section {
  padding: 1.5rem 1.6rem 1.6rem;
}

.team-section h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.team-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  text-align: center;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
}

.team-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.85rem;
  margin-bottom: 0.6rem;
}

.team-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.team-card p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
}

/* ===========================================
   CONTACT SECTION
   =========================================== */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 1.2rem;
  padding: 1.5rem 1.6rem;
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255, 255, 255, 0.98);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

/* Contact status message */
.status-text {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.status-text.error {
  color: var(--danger);
}

.status-text.success {
  color: #15803d;
}

/* ===========================================
   PAGE HEADER (JOBS / UPSKILL / PERFORMANCE)
   =========================================== */

.page-header {
  padding: 1.3rem 1.4rem;
}

.page-header h1 {
  margin: 0 0 0.3rem;
}

.page-header p {
  margin: 0.1rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
/* ===========================================
   JOBS PAGE
   =========================================== */

.jobs-section {
  padding: 1.3rem 1.4rem;
}

.job-filters {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-filters input,
.job-filters select {
  min-width: 160px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.job-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.93);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.job-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.job-company {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.job-meta span {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.job-skills {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.job-status {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-weight: 500;
}

.job-status.closed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.job-apply-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================================
   UPSKILL PAGE
   =========================================== */

.upskill-section {
  padding: 1.3rem 1.4rem;
}

.upskill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.upskill-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.upskill-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.upskill-card p {
  margin: 0.15rem 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.upskill-stat {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  margin-top: 0.25rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f46e5, #22c1c3);
  transition: width 0.6s ease;
}

/* ===========================================
   PERFORMANCE DASHBOARD
   =========================================== */

.performance-section {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Summary card */
.performance-summary {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
  line-height: 1.55rem;
}

.performance-summary strong {
  font-weight: 600;
}

/* Two-column block layout */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.performance-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.88rem;
}

/* Lists */
.simple-list,
.tag-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.simple-list li {
  margin-bottom: 0.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-list li {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.tag-list.gap li {
  background: rgba(244, 63, 94, 0.15);
  color: #b91c1c;
}

/* ===========================================
   PERFORMANCE — ADVANCED DASHBOARD (TOP JOBS)
   =========================================== */

.performance-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.perf-left,
.perf-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile header */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #22c1c3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.profile-sub {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Charts container */
.chart-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.chart-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Top job ranking */
.top-job-item {
  margin-bottom: 12px;
}

.top-job-main {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.top-job-title {
  font-weight: 600;
  color: #1d2a5b;
}

.top-job-match {
  font-weight: 600;
  color: var(--accent);
}

.match-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #22c1c3);
  transition: width 0.6s ease;
}

/* ===========================================
   MODALS (LOGIN + REGISTER)
   =========================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.45);
}

.modal-content {
  position: relative;
  max-width: 430px;
  width: 92%;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal h2 {
  margin: 0 0 0.2rem;
}

.modal-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-section {
    grid-template-columns: 1fr;
  }
  .ngm-nav {
    display: none;
  }
}

@media (max-width: 750px) {
  .performance-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================
   GLOBAL
============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-gradient: radial-gradient(circle at top left, #cad0ff, #e3e3e3);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.35);
  --text-main: #111827;
  --text-muted: #6b7280;
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --white: #fff;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
}

/* ============================================
   GLASS CARD
============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  width: 100%;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: 0.3s;
}

.navbar nav a:hover {
  color: var(--primary);
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--primary-light);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

/* ============================================
   PERFORMANCE LAYOUT
============================================ */
.container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 25px;
}

.performance-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* LEFT SECTION */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.avatar-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.profile-sub {
  margin-top: -5px;
  color: var(--text-muted);
}

.performance-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* Columns */
.performance-columns {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.list-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  list-style: none;
}

.list-box li {
  padding: 8px 0;
  border-bottom: 1px solid #d1d5db4d;
  color: var(--text-main);
  font-weight: 500;
}

.list-box li:last-child {
  border-bottom: none;
}

/* Status Banner */
.status-banner {
  margin-top: 25px;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary);
}

/* ============================================
   RIGHT: CHARTS
============================================ */
.perf-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.chart-card {
  padding: 20px;
  border-radius: 14px;
}

.chart-card h3 {
  margin-bottom: 12px;
}

/* ============================================
   MODAL
============================================ */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  width: 350px;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
}

.modal input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.status-text {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 950px) {
  .performance-layout {
    grid-template-columns: 1fr;
  }
  .perf-right {
    flex-direction: row;
    gap: 15px;
  }
}

@media (max-width: 700px) {
  nav {
    display: none;
  }
  .perf-right {
    flex-direction: column;
  }
}
.hidden {
  display: none !important;
}
