/* Critical CSS - Optimized for PageSpeed 100/100 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --max-width: 1200px;
  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  padding: 1rem 0;
}

.nav-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.logo:hover {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 100%;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-download {
  background: var(--secondary);
  color: white;
  width: 100%;
}

.btn-download:hover {
  background: #059669;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-btn {
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: none;
}

.search-results.active {
  display: block;
}

/* Features Grid */
.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}

/* Resources Grid */
.latest-resources {
  padding: 4rem 0;
  background: var(--bg-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.resource-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: calc(var(--radius) / 2);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.resource-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.template-card {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.template-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.template-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.feature-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.875rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Guide Articles */
.guide-article {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.reading-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.guide-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.guide-list li {
  margin-bottom: 0.5rem;
}

.action-box {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
}

/* Career Section */
.career-section {
  padding: 3rem 0;
}

.career-article {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.example-box {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.example-text {
  font-style: italic;
  color: var(--text-secondary);
}

.verb-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.verb-list {
  list-style: none;
  padding: 0;
}

.transformation-examples {
  margin: 2rem 0;
}

.before-after {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.before {
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.after {
  color: var(--secondary);
}

.interview-qa {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.answer-guide {
  margin-top: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow-x: auto;
  display: block;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-light);
  font-weight: 600;
}

tbody tr:hover {
  background: var(--bg-light);
}

/* Salary Table */
.salary-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.salary-factors {
  margin: 2rem 0;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.factor-card {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

/* Certification Cards */
.certification-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Career Path */
.path-diagram {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.path-level {
  text-align: center;
}

.path-arrow {
  font-size: 2rem;
  color: var(--primary);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tip-card {
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* About Page */
.mission-section {
  padding: 3rem 0;
}

.mission-statement {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.value-card {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.audience-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.commitment-item {
  text-align: center;
  padding: 1.5rem;
}

.commitment-item svg {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-article {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
}

.last-updated {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.contact-info {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

/* Newsletter */
.newsletter {
  padding: 4rem 0;
  background: var(--bg-light);
}

.newsletter-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.email-notice {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: var(--radius);
}

/* Page Hero */
.page-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 100%;
}

/* Footer */
footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #d1d5db;
  font-size: 0.875rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* CTA Sections */
.cta-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.template-request,
.guide-cta,
.career-cta {
  padding: 3rem 0;
  background: var(--bg-light);
}

.request-box,
.cta-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Utilities */
.text-link {
  color: var(--primary);
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 100%;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.skill-category {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.skill-category h5 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.25rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 2rem 0;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .features-grid,
  .resources-grid,
  .templates-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline-marker {
    margin: 0 auto;
  }

  .path-diagram {
    flex-direction: column;
  }

  .path-arrow {
    transform: rotate(90deg);
  }

  table {
    font-size: 0.875rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding: 0 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  header, footer, .nav-menu, .search-box, .filter-bar, .cta-section {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .template-card,
  .guide-article {
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #0050ff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-light: #f0f0f0;
    --border: #000000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-white: #111827;
    --bg-light: #1f2937;
    --border: #374151;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
  }

  .template-card,
  .feature-card,
  .resource-card {
    background: var(--bg-light);
  }

  .logo svg,
  .feature-icon,
  .template-icon {
    color: var(--primary);
  }

  footer {
    background: #030712;
  }

  .shadow-sm,
  .shadow-md,
  .shadow-lg {
    box-shadow: none;
    border: 1px solid var(--border);
  }
}

/* Performance Optimizations */
.container > * {
  contain: layout style;
}

img {
  loading: lazy;
  decoding: async;
}