/* ================================================================
   CareerSadhana – Main Stylesheet
   Colors: Navy #0B3D91 | Orange #FF6A00 | White #FFFFFF
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap');

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

:root {
  --navy: #0B3D91;
  --navy-dark: #082d6b;
  --orange: #FF6A00;
  --orange-dark: #e05a00;
  --white: #ffffff;
  --bg: #f4f7ff;
  --card: #ffffff;
  --border: #e2e8f5;
  --text: #1a2540;
  --muted: #6b7a99;
  --light-navy: #e8efff;
  --success: #38a169;
  --warning: #dd6b20;
  --danger: #e53e3e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(11,61,145,0.08);
  --shadow-lg: 0 8px 40px rgba(11,61,145,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ──────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ────────────────────────────────────────── */
#main-nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(11,61,145,.3);
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; background: white; padding: 2px; }

.logo-text { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.logo-text .career { color: var(--navy); background: #fff; padding: 1px 5px; border-radius: 4px; }
.logo-text .sadhana { color: var(--orange); margin-left: 3px; }

.nav-links { display: flex; gap: 4px; }
.nav-btn {
  background: none; border: none;
  color: rgba(255,255,255,.8);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover, .nav-btn.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-btn.active { font-weight: 500; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── PAGE HERO ──────────────────────────────────── */
.page-hero {
  background: var(--navy);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: .75rem; }
.page-hero p { opacity: .85; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── HOME HERO ──────────────────────────────────── */
.hero-section {
  background: var(--navy);
  color: white;
  padding: 4rem 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 560px; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,106,0,.25);
  color: #ffb380;
  border: 1px solid rgba(255,106,0,.4);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero-content h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero-content h1 .highlight { color: var(--orange); }
.hero-content p { opacity: .85; font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Sora',sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.stat span { font-size: .85rem; opacity: .75; }

.hero-illustration { position: relative; width: 340px; z-index: 1; }
.hero-blob {
  width: 320px; height: 320px;
  background: rgba(255,106,0,.12);
  border-radius: 50%;
  position: absolute;
  top: -40px; left: -40px;
  z-index: 0;
}
.hero-card-float {
  position: absolute;
  background: white;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}
.card1 { top: 10px; left: 0; animation-delay: 0s; }
.card2 { top: 80px; right: -20px; animation-delay: 1.3s; }
.card3 { bottom: 40px; left: 20px; animation-delay: 2.6s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── BUTTONS ────────────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: .2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,106,0,.35); }

.btn-outline {
  background: none;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: .2s;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover { background: var(--light-navy); }

/* The hero section has a navy background. Without this override,
   .btn-outline's navy text/border blend into it and the "Take Versant
   Test" button becomes invisible even though it is a normal, rendered
   element (not display:none). Force it to white/light styling here. */
.hero-section .btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}
.hero-section .btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.btn-full { width: 100%; text-align: center; padding: 13px; }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* ── FEATURES SECTION ───────────────────────────── */
.features-section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; margin-bottom: .5rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: .25s;
  display: block;
}
.feat-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }
.feat-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feat-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.feat-link { color: var(--navy); font-weight: 500; font-size: .9rem; }

/* ── HOW IT WORKS ───────────────────────────────── */
.how-section { padding: 4rem 0; background: var(--navy); color: white; }
.how-section .section-header h2 { color: white; }
.how-section .section-header p { color: rgba(255,255,255,.7); }
.steps-row { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.step-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; max-width: 220px; }
.step-num { font-family: 'Sora',sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--orange); margin-bottom: .75rem; }
.step-card h3 { margin-bottom: .5rem; }
.step-card p { font-size: .9rem; opacity: .8; }
.step-arrow { font-size: 1.5rem; opacity: .5; }

/* ── CTA SECTION ────────────────────────────────── */
.cta-section { padding: 4rem 0; }
.cta-box { background: var(--navy); border-radius: 20px; padding: 3rem; text-align: center; color: white; }
.cta-box h2 { font-size: 2rem; margin-bottom: .75rem; }
.cta-box p { opacity: .8; margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .4rem; color: var(--text); }
.form-hint { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.form-textarea, .form-input-auth, .form-input-contact, .search-input, .filter-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: .2s;
}
.form-textarea:focus, .form-input-auth:focus, .form-input-contact:focus, .search-input:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
}
.form-textarea { resize: vertical; }

/* ── UPLOAD ZONE ────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: .25s;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--navy); background: var(--light-navy); }
.upload-zone p { color: var(--muted); font-size: .92rem; }
.upload-zone strong { color: var(--navy); }
.file-name-display { margin-top: .5rem; font-size: .875rem; color: var(--navy); font-weight: 500; }

/* ── LOADING ────────────────────────────────────── */
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-bar { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 1.5rem; }
.loading-fill { height: 100%; background: var(--navy); border-radius: 99px; animation: loadAnim 2.5s ease forwards; }
@keyframes loadAnim { from { width: 0; } to { width: 88%; } }

/* ── ATS RESULT ─────────────────────────────────── */
.score-result { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.score-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.score-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 7px solid var(--border);
  flex-shrink: 0;
}
.score-num { font-family: 'Sora',sans-serif; font-size: 2.2rem; font-weight: 700; }
.score-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.score-breakdown { flex: 1; min-width: 200px; }
.bar-item { margin-bottom: 1rem; }
.bar-item .bar-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; }
.bar-track { height: 9px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 1.2s ease; }

.suggestion-item {
  background: var(--bg);
  border-left: 4px solid var(--border);
  border-radius: 0 8px 8px 0;
  padding: .8rem 1rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  line-height: 1.55;
}
.suggestion-item.high { border-color: var(--danger); background: #fff5f5; }
.suggestion-item.medium { border-color: var(--orange); background: #fff8f0; }
.suggestion-item.low { border-color: var(--success); background: #f0fff4; }
.severity-badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; margin-right: .5rem; text-transform: uppercase; }
.badge-high { background: #fed7d7; color: #9b2c2c; }
.badge-medium { background: #feebc8; color: #7b341e; }
.badge-low { background: #c6f6d5; color: #276749; }
.kw-tag { background: var(--light-navy); color: var(--navy); border-radius: 99px; padding: 3px 12px; font-size: .8rem; font-weight: 500; display: inline-block; margin: 3px; }
.kw-missing { background: #fff0ee; color: #c53030; }

/* ── JOBS ───────────────────────────────────────── */
.tab-row { display: flex; gap: 8px; margin-bottom: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.tab-btn { flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer; font-family: 'DM Sans',sans-serif; font-size: .95rem; font-weight: 500; transition: .2s; background: none; color: var(--muted); }
.tab-btn.active { background: var(--navy); color: white; }
.tab-btn:hover:not(.active) { background: var(--bg); }

.search-filter-row { display: flex; gap: 12px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; }
.filter-select { width: auto; min-width: 160px; cursor: pointer; }

.jobs-count { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }

.table-wrapper { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.job-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 720px; }
.job-table th { background: var(--navy); color: white; text-align: left; padding: 12px 16px; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.job-table th:first-child { border-radius: 14px 0 0 0; }
.job-table th:last-child { border-radius: 0 14px 0 0; }
.job-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: middle; }
.job-table tr:last-child td { border-bottom: none; }
.job-table tbody tr:hover td { background: var(--bg); }
.apply-btn { background: var(--orange); color: white; border: none; padding: 7px 16px; border-radius: 8px; font-size: .8rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans',sans-serif; white-space: nowrap; transition: .2s; text-decoration: none; display: inline-block; }
.apply-btn:hover { background: var(--orange-dark); }
.date-badge { display: inline-block; font-size: .78rem; padding: 3px 9px; border-radius: 99px; font-weight: 500; white-space: nowrap; }
.date-active { background: #c6f6d5; color: #276749; }
.date-soon { background: #feebc8; color: #7b341e; }
.date-exp { background: #fed7d7; color: #9b2c2c; }
.edu-tag, .qual-tag { font-size: .78rem; background: var(--light-navy); color: var(--navy); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }

.pagination { display: flex; gap: 6px; margin-top: 1.25rem; justify-content: center; flex-wrap: wrap; }
.page-btn { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-family: 'DM Sans',sans-serif; font-size: .875rem; cursor: pointer; transition: .2s; }
.page-btn.active, .page-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* ── ABOUT ──────────────────────────────────────── */
.about-mission-card {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}
.about-mission-card h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.about-mission-card p { opacity: .88; line-height: 1.75; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.social-links-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  background: var(--light-navy);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'DM Sans',sans-serif;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: .2s;
  display: inline-block;
}
.social-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.success-banner { background: #f0fff4; border: 1px solid #c6f6d5; border-radius: 10px; padding: 1rem; color: #276749; font-size: .9rem; margin-top: 1rem; }

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-title { font-size: 1.4rem; margin-bottom: .25rem; }
.modal-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-error { background: #fff5f5; border: 1px solid #fed7d7; color: #9b2c2c; border-radius: 8px; padding: .75rem; font-size: .875rem; margin-bottom: 1rem; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--navy); cursor: pointer; font-weight: 500; text-decoration: underline; }

.modal-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 1.5rem; }
.modal-tab { flex: 1; padding: 9px; border: none; border-radius: 7px; cursor: pointer; font-family: 'DM Sans',sans-serif; font-size: .9rem; font-weight: 500; transition: .2s; background: none; color: var(--muted); }
.modal-tab.active { background: var(--navy); color: white; }

/* ── FOOTER ─────────────────────────────────────── */
footer { background: var(--navy); color: white; margin-top: 4rem; }
.footer-inner { display: flex; gap: 3rem; padding: 3rem 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.footer-brand p { opacity: .7; font-size: .9rem; margin-top: .5rem; max-width: 260px; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: .5rem; }
.footer-links strong { opacity: .6; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem; }
.footer-links a { opacity: .8; font-size: .9rem; transition: .2s; }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer-bottom { background: rgba(0,0,0,.2); text-align: center; padding: 1rem; font-size: .85rem; opacity: .8; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-btn { width: 100%; text-align: left; }
  .hero-section { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-illustration { display: none; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .form-row-2 { grid-template-columns: 1fr; }
  .score-header { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .card { padding: 1.25rem; }
  .tab-row { flex-direction: row; }
  .search-filter-row { flex-direction: column; }
  .filter-select { width: 100%; }
}
