/* ═══════════════════════════════════════════
   CAREER TOOLS — Modern Professional CSS
   ═══════════════════════════════════════════ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --gray-lighter: #cbd5e1;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-card: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

a { text-decoration: none; color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

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

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--dark-3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: rgba(37,99,235,0.08);
  color: var(--primary);
}

.nav-links a.btn {
  color: white;
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero Section ─── */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: var(--gray-light);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  font-size: 32px;
  font-weight: 800;
  color: white;
}

.hero-stat p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.hero-card h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Default form input styles (white/light backgrounds) */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--dark);
  font-size: 15px;
  font-family: var(--font);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Hero card dark theme overrides */
.hero-card .form-group input,
.hero-card .form-group select,
.hero-card .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 15px;
  font-family: var(--font);
  transition: all 0.2s;
}

.hero-card .form-group input:focus,
.hero-card .form-group select:focus,
.hero-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.hero-card .form-group select {
  color: white;
  cursor: pointer;
}

.hero-card .form-group select option {
  background: var(--dark-2);
  color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

/* ─── Section Common ─── */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(37,99,235,0.1); color: var(--primary); }
.feature-icon.cyan { background: rgba(6,182,212,0.1); color: var(--accent); }
.feature-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.feature-icon.orange { background: rgba(245,158,11,0.1); color: var(--warning); }
.feature-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.feature-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── Tools Section ─── */
.tools-section {
  background: linear-gradient(180deg, var(--bg) 0%, #eef2ff 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.tool-card-header {
  padding: 32px 32px 20px;
}

.tool-card-header .tool-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tool-badge.free { background: rgba(16,185,129,0.1); color: var(--success); }
.tool-badge.premium { background: rgba(245,158,11,0.1); color: var(--warning); }
.tool-badge.new { background: rgba(37,99,235,0.1); color: var(--primary); }

.tool-card-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card-header p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

.tool-card-body {
  padding: 0 32px 24px;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-features span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(37,99,235,0.06);
  border-radius: 20px;
  color: var(--dark-3);
}

.tool-card-footer {
  padding: 20px 32px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ─── How It Works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Testimonials ─── */
.testimonials {
  background: var(--dark);
  color: white;
  padding: 80px 24px;
}

.testimonials .section-header h2 {
  color: white;
}

.testimonial-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-card .stars {
  color: var(--warning);
  font-size: 16px;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--gray-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author h4 {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--gray);
}

/* ─── CTA / Lead Magnet ─── */
.cta-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 16px;
  font-family: var(--font);
}

.cta-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.cta-form .btn {
  padding: 14px 28px;
  background: var(--dark);
  color: white;
}

.cta-form .btn:hover {
  background: #1e293b;
}

.cta-note {
  font-size: 13px;
  opacity: 0.7;
}

.lead-magnet-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.lead-magnet-box .magnet-icon {
  font-size: 36px;
}

.lead-magnet-box h4 {
  text-align: left;
  font-size: 16px;
  margin-bottom: 4px;
}

.lead-magnet-box p {
  text-align: left;
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

/* ─── Footer ─── */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: var(--gray-light);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Loading ─── */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ─── Mobile Responsive ─── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text h1 { font-size: 36px; }
  .hero-card { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links.open a { padding: 12px 16px; }
  .cta-form { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .hero-stat h3 { font-size: 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 16px 60px; }
  .hero-text h1 { font-size: 28px; }
  .section { padding: 60px 16px; }
  .section-header h2 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
