/* Employee App Styles */
:root {
  --primary: #0d0430;
  --accent: #2a4ff6;
  --light-bg: #FFFFFF;
  --dark-bg: #000000;
  --primary-light: #1a0d60;
  --primary-dark: #060218;
  --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --warning-gradient: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  --danger-gradient: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
  --info-gradient: linear-gradient(135deg, #17a2b8 0%, #2a4ff6 100%);
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Professional Card Styles */
.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Professional Progress Bars */
.progress {
  height: 0.5rem;
  border-radius: 8px;
  background: #f0f0f0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.progress-bar {
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-lg {
  height: 32px;
  border-radius: 16px;
  font-size: 0.875rem;
}

.progress-lg .progress-bar {
  border-radius: 16px;
}

.progress-md {
  height: 24px;
  border-radius: 12px;
}

.progress-md .progress-bar {
  border-radius: 12px;
}

.progress-sm {
  height: 8px;
  border-radius: 4px;
}

.progress-sm .progress-bar {
  border-radius: 4px;
}

/* Gradient Progress Bars */
.progress-bar-gradient-success {
  background: var(--success-gradient);
}

.progress-bar-gradient-warning {
  background: var(--warning-gradient);
}

.progress-bar-gradient-danger {
  background: var(--danger-gradient);
}

.progress-bar-gradient-info {
  background: var(--info-gradient);
}

.progress-bar-gradient-primary {
  background: var(--primary-gradient);
}

.progress-bar-gradient-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
}

/* Professional Badges */
.badge {
  font-weight: 600;
  padding: 0.5em 0.75em;
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-lg {
  font-size: 0.875rem;
  padding: 0.625em 1em;
}

/* Score Display Typography */
.score-display {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-display-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-display-success {
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-display-warning {
  background: var(--warning-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-display-danger {
  background: var(--danger-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Professional Section Headers */
.section-header {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header i {
  font-size: 1.25rem;
}

/* Enhanced Card Variants */
.card-score {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.03) 0%, rgba(42, 79, 246, 0.03) 100%);
  border: 2px solid rgba(13, 4, 48, 0.1);
  padding: 2rem;
}

.card-score-high {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
  border-color: rgba(40, 167, 69, 0.2);
}

.card-score-medium {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(253, 126, 20, 0.05) 100%);
  border-color: rgba(255, 193, 7, 0.2);
}

.card-score-low {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(232, 62, 140, 0.05) 100%);
  border-color: rgba(220, 53, 69, 0.2);
}

/* Professional List Items */
.list-item-professional {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.list-item-professional:hover {
  background: #f8f9fa;
  border-color: rgba(13, 4, 48, 0.2);
  transform: translateX(4px);
}

/* Enhanced Accordion */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  align-items: flex-start !important; /* Override Bootstrap's default center alignment */
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.05) 0%, rgba(42, 79, 246, 0.05) 100%);
  color: var(--primary);
  box-shadow: none;
}

.accordion-body {
  padding: 1.25rem 1.5rem;
}

/* Accordion button content alignment */
.accordion-content-wrapper {
  padding-right: 0;
  margin-right: 0;
  align-items: flex-start !important; /* Align to top instead of center for multi-line text */
}

/* More specific selector to override Bootstrap */
.accordion-button .accordion-content-wrapper.d-flex {
  align-items: flex-start !important;
}

.accordion-button .accordion-content-wrapper .d-flex {
  align-items: flex-start !important;
}

.accordion-scoring {
  flex-shrink: 0;
  align-items: center; /* Badge and progress bar centered relative to each other */
  display: flex;
  gap: 0.5rem;
  align-self: flex-start; /* But the whole scoring group aligns with first line */
}

.accordion-scoring .badge {
  min-width: 50px;
  text-align: center;
  white-space: nowrap;
  margin-top: 0;
}

.accordion-scoring .progress {
  flex-shrink: 0;
  margin-top: 0;
  align-self: center; /* Center progress bar vertically relative to badge */
}

/* Ensure proper vertical alignment - align to top for multi-line text */
.accordion-button .d-flex {
  align-items: flex-start !important; /* Changed from center to flex-start */
}

/* Fix for icon and text alignment - override any Bootstrap classes */
.accordion-button .d-flex.align-items-center {
  align-items: flex-start !important; /* Override align-items-center for top alignment */
}

/* Ensure all flex containers in accordion buttons align to top */
.accordion-button > .d-flex,
.accordion-button .accordion-content-wrapper > .d-flex {
  align-items: flex-start !important;
}

/* Icon alignment - applies to all icons in accordion buttons */
.accordion-button .d-flex i,
.accordion-button .accordion-content-wrapper .d-flex i {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  align-self: flex-start;
  margin-top: 0.15rem; /* Align icon with text baseline */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure text aligns properly */
.accordion-button .fw-semibold {
  line-height: 1.5;
  display: inline-block;
  vertical-align: top;
  margin-top: 0;
  padding-top: 0;
}

/* Ensure scoring badge aligns with first line of text */
.accordion-scoring .badge {
  vertical-align: top;
  line-height: 1.2;
  margin-top: 0;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  display: inline-flex;
  align-items: center;
}

/* Ensure flex-grow-1 works properly */
.accordion-content-wrapper .flex-grow-1 {
  min-width: 0;
  overflow: hidden;
  align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accordion-scoring {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    align-self: flex-start; /* Maintain top alignment on mobile */
  }
  
  .accordion-scoring .badge {
    margin-top: 0;
  }
  
  .accordion-content-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start; /* Maintain top alignment */
  }
  
  .accordion-content-wrapper .flex-grow-1 {
    flex-basis: 100%;
    align-items: flex-start;
  }
  
  .accordion-scoring {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

/* Professional Alerts */
.alert {
  border-radius: 10px;
  border-width: 1px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-heading {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Enhanced Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 4, 48, 0.3);
}

.btn-outline-primary {
  border-width: 2px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 4, 48, 0.2);
}

.btn-outline-success,
.btn-outline-info {
  border-width: 2px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-success:hover,
.btn-outline-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.feature-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  text-align: center;
  white-space: nowrap;
}

/* Professional Spacing */
.match-result-section {
  margin-bottom: 2rem;
}

.match-result-section:last-child {
  margin-bottom: 0;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lead {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Professional Checkboxes */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 4, 48, 0.25);
}

.form-check-label {
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Roadmap Phase Cards */
.roadmap-phase {
  border-left: 4px solid;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.roadmap-phase:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roadmap-phase-phase1 {
  border-left-color: #28a745;
}

.roadmap-phase-phase2 {
  border-left-color: #17a2b8;
}

.roadmap-phase-phase3 {
  border-left-color: #ffc107;
}

.roadmap-phase-phase4 {
  border-left-color: #6c757d;
}

/* Action Item Cards */
.action-item-card {
  padding: 1.25rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.action-item-card:hover {
  border-color: rgba(13, 4, 48, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile-responsive Action Items */
@media (max-width: 768px) {
  .action-item-card {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .action-item-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .action-item-card .badge-lg {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .action-item-card strong {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .action-item-card .d-flex.flex-wrap {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .action-item-card {
    padding: 0.875rem;
  }
  
  .action-item-card .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }
  
  .action-item-card .badge-lg {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
  
  .action-item-card strong {
    font-size: 0.85rem;
  }
}

/* Breakdown Item */
.breakdown-item {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(248, 249, 250, 0.5);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.breakdown-item:hover {
  background: rgba(248, 249, 250, 1);
  transform: translateY(-2px);
}

/* Icon Enhancements */
.bi {
  vertical-align: -0.125em;
}

.icon-large {
  font-size: 1.5rem;
}

/* Professional Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  margin: 2rem 0;
  border: none;
}

.navbar-brand {
  color: var(--primary) !important;
  font-weight: 700;
}

.navbar-logo {
  height: 77px;
  width: auto;
  max-height: 77px;
  object-fit: contain;
  vertical-align: middle;
}

/* Dashboard Specific Styles */
.credits-card {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.05) 0%, rgba(42, 79, 246, 0.05) 100%);
  border: 2px solid rgba(13, 4, 48, 0.15);
}

.credits-card:hover {
  border-color: rgba(13, 4, 48, 0.25);
  transform: translateY(-2px);
}

/* Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-primary::before {
  background: var(--primary-gradient);
}

.stat-card-success::before {
  background: var(--success-gradient);
}

.stat-card-info::before {
  background: var(--info-gradient);
}

.stat-card-warning::before {
  background: var(--warning-gradient);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
  color: var(--primary);
  transition: all 0.3s ease;
}

.stat-card-primary .stat-icon {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.15) 0%, rgba(42, 79, 246, 0.15) 100%);
  color: var(--primary);
}

.stat-card-success .stat-icon {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
  color: #28a745;
}

.stat-card-info .stat-icon {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(42, 79, 246, 0.15) 100%);
  color: #17a2b8;
}

.stat-card-warning .stat-icon {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(253, 126, 20, 0.15) 100%);
  color: #ffc107;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-success h2 {
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-info h2 {
  background: var(--info-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-warning h2 {
  background: var(--warning-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dashboard List Items */
.dashboard-list-item {
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  background: rgba(248, 249, 250, 0.3);
  transition: all 0.2s ease;
}

.dashboard-list-item:hover {
  background: rgba(248, 249, 250, 0.8);
  border-color: rgba(13, 4, 48, 0.2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-list-item:last-child {
  margin-bottom: 0;
}

/* Empty State */
.text-center.py-4 {
  padding: 3rem 1.5rem;
}

.text-center.py-4 .display-4 {
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* Button Enhancements for Dashboard */
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.btn-outline-secondary {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-link {
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-link:hover {
  transform: translateX(4px);
}

/* Dashboard Header */
.display-4 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Match Page Specific Styles */
.credits-info-card {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.03) 0%, rgba(42, 79, 246, 0.03) 100%);
  border: 1px solid rgba(13, 4, 48, 0.1);
}

.credits-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.resume-info-card {
  padding: 0.5rem 0;
}

.professional-textarea {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.2s ease;
  resize: vertical;
}

.professional-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 4, 48, 0.15);
  outline: none;
}

.professional-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
}

.form-control-lg {
  min-height: 300px;
}

/* Form Label Enhancements */
.form-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Tips Card */
.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bg-light ul {
  list-style: none;
  padding-left: 0;
}

.bg-light li {
  padding-left: 1.5rem;
  position: relative;
}

.bg-light li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-card h2 {
    font-size: 2rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .credits-card .score-display {
    font-size: 2.5rem;
  }
  
  .professional-textarea {
    min-height: 250px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

/* ATS Analysis Enhancements */
.ats-score-circle {
  position: relative;
  display: inline-block;
}

.ats-score-circle svg circle {
  transition: stroke-dasharray 0.8s ease-in-out;
}

.keyword-badge {
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.keyword-badge i {
  font-size: 0.75rem;
}

.ats-breakdown-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ats-breakdown-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ats-tip-card {
  border-left: 3px solid var(--info);
  transition: background-color 0.2s ease;
}

.ats-tip-card:hover {
  background-color: rgba(23, 162, 184, 0.05);
}

/* Enhanced keyword matching display */
.keyword-found-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
}

.keyword-missing-badge {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
  color: white;
  border: none;
}

/* Summary stats cards */
.summary-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.summary-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Home Page Styles */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.95;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* Hero Image Carousel */
.hero-image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  /* Box styling removed - images display directly without container */
}

.hero-carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  padding: 2rem;
  will-change: opacity;
  transform: translateZ(0);
}

.hero-carousel-image.active {
  opacity: 1;
  z-index: 1;
  visibility: visible;
}

/* Preload images to prevent flickering */
.hero-carousel-image:not(.active) {
  visibility: hidden;
}

.trust-stat {
  padding: 1rem;
  transition: transform 0.2s ease;
}

.trust-stat:hover {
  transform: translateY(-5px);
}

.step-number {
  font-weight: bold;
  transition: transform 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  scroll-margin-top: 80px;
}

/* Button enhancements */
.btn-lg {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Accordion enhancements */
.accordion-button {
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* Badge enhancements */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
}

/* Text utilities */
.text-small {
  font-size: 0.875rem;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Scroll Animations & Intersection Observer
   ============================================ */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll,
  .slide-in-left,
  .slide-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Hero Section Enhancements
   ============================================ */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.8) 0%, rgba(13, 4, 48, 0.6) 40%, rgba(0, 0, 0, 0.5) 60%),
              radial-gradient(circle at 30% 50%, rgba(42, 79, 246, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(42, 79, 246, 0.2) 0%, transparent 50%);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 1;
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.hero-badge {
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.match-score-demo {
  transition: transform 0.3s ease;
  will-change: transform;
}

.match-score-demo:hover {
  transform: translateY(-5px) scale(1.02);
}

/* ============================================
   Trust Statistics Cards
   ============================================ */
.trust-stat-card {
  transition: all 0.3s ease;
  will-change: transform;
}

.trust-stat-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.trust-stat-card .display-6 {
  transition: all 0.3s ease;
  will-change: transform;
}

.trust-stat-card:hover .display-6 {
  transform: scale(1.1);
}

.counter-animate {
  display: inline-block;
}

/* ============================================
   Feature Cards Enhancement
   ============================================ */
.feature-card {
  perspective: 1000px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================
   Step Numbers Animation
   ============================================ */
.step-number {
  transition: all 0.3s ease;
  will-change: transform;
}

.step-number:hover {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================
   Pricing Cards Enhancement
   ============================================ */
.pricing-card {
  transition: all 0.3s ease;
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

.pricing-card-popular {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #28a745 0%, #20c997 100%) border-box;
}

.pricing-card-popular:hover {
  border-color: #28a745;
}

.pricing-badge {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, 0) scale(1.05);
  }
}

/* ============================================
   FAQ Accordion Enhancements
   ============================================ */
.accordion-icon {
  transition: transform 0.3s ease;
  display: inline-block;
  will-change: transform;
}

.accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.accordion-button {
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background-color: rgba(42, 79, 246, 0.05);
}

.accordion-collapse {
  transition: height 0.35s ease;
}

.accordion-body {
  animation: fadeInAccordion 0.3s ease-in;
}

@keyframes fadeInAccordion {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CTA Section Enhancement
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-gradient-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(42, 79, 246, 0.1) 0%,
    rgba(13, 4, 48, 0.1) 25%,
    rgba(42, 79, 246, 0.1) 50%,
    rgba(13, 4, 48, 0.1) 75%,
    rgba(42, 79, 246, 0.1) 100%);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   Button Ripple Effects
   ============================================ */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   Performance Optimizations
   ============================================ */
.feature-card,
.pricing-card,
.trust-stat-card,
.hero-content,
.btn-primary,
.btn-outline-primary {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Smooth Scroll
   ============================================ */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-gradient-overlay,
  .cta-gradient-bg {
    animation: none;
  }
}

/* ============================================
   Professional Image-Free UI Enhancements
   ============================================ */

/* Hero Section Enhanced */
.hero-section-enhanced {
  position: relative;
  overflow: hidden;
}

.hero-geometric-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(42, 79, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(42, 79, 246, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(13, 4, 48, 0.1) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

.hero-shape-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-60px) translateX(-20px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-30px) translateX(10px) rotate(270deg);
    opacity: 0.5;
  }
}

.hero-content-glass {
  /* Box styling removed - content displays directly on hero background */
}

.hero-feature-item {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hero-cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Match Score Demo Card */
.match-score-demo-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 4, 48, 0.1);
}

.match-score-demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.match-score-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.match-score-icon-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.match-score-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  color: var(--primary);
}

.match-score-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.match-score-progress {
  border-radius: 12px;
  background: rgba(13, 4, 48, 0.1);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-score-bar {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  border-radius: 12px;
  transition: width 2s ease-out;
}

.match-score-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42, 79, 246, 0.1) 0%, transparent 100%);
  opacity: 0.5;
}

/* Trust Statistics Enhanced */
.trust-section-enhanced {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.trust-stat-card {
  padding: 2rem 1rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.trust-stat-card:hover::before {
  transform: scaleX(1);
}

.trust-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.trust-stat-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.trust-stat-icon-bg {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.trust-stat-icon-bg-primary {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
}

.trust-stat-icon-bg-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
}

.trust-stat-icon-bg-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
}

.trust-stat-icon-bg-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
}

.trust-stat-card:hover .trust-stat-icon-bg {
  transform: translate(-50%, -50%) scale(1.15);
}

.trust-stat-icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
}

.trust-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-stat-primary .trust-stat-number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-stat-success .trust-stat-number {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-stat-info .trust-stat-number {
  background: linear-gradient(135deg, #17a2b8 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-stat-warning .trust-stat-number {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
}

/* Feature Cards Enhanced */
.feature-card-enhanced {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.feature-card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.03) 0%, transparent 100%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.feature-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrapper {
  position: relative;
  display: inline-block;
}

.feature-icon-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 0;
}

.feature-icon-bg-primary {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.15) 100%);
}

.feature-icon-bg-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.15) 100%);
}

.feature-icon-bg-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(42, 79, 246, 0.15) 100%);
}

.feature-card-enhanced:hover .feature-icon-bg {
  transform: translate(-50%, -50%) scale(1.15);
}

.feature-icon {
  position: relative;
  z-index: 1;
}

.feature-badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.feature-badge-primary {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
  color: var(--primary);
}

.feature-badge-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
  color: #28a745;
}

.feature-badge-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(42, 79, 246, 0.1) 100%);
  color: #17a2b8;
}

/* How It Works Enhanced */
.how-it-works-enhanced {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.step-card {
  position: relative;
  padding: 1rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.step-number-bg {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  transition: all 0.3s ease;
}

.step-number-bg-primary {
  background: var(--primary);
}

.step-number-bg-success {
  background: #28a745;
}

.step-number-bg-info {
  background: #17a2b8;
}

.step-number-bg-warning {
  background: #ffc107;
}

.step-card:hover .step-number-bg {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 0.3;
}

.step-number-enhanced {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-connector {
  position: absolute;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, rgba(13, 4, 48, 0.2) 0%, rgba(42, 79, 246, 0.2) 100%);
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
  
  .step-connector-1 {
    left: 25%;
    width: 25%;
  }
  
  .step-connector-2 {
    left: 50%;
    width: 25%;
  }
  
  .step-connector-3 {
    left: 75%;
    width: 25%;
  }
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid rgba(42, 79, 246, 0.3);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Testimonials Enhanced */
.testimonial-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.testimonial-card-primary::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.testimonial-card-success::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.testimonial-card-info::before {
  background: linear-gradient(90deg, #17a2b8 0%, var(--accent) 100%);
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.testimonial-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  opacity: 0.1;
  color: var(--primary);
  line-height: 1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonial-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.testimonial-avatar-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.testimonial-avatar-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.testimonial-avatar-info {
  background: linear-gradient(135deg, #17a2b8 0%, var(--accent) 100%);
}

.testimonial-initial {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
}

/* Trust Badges Enhanced */
.trust-badges-enhanced {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 140px;
}

.trust-badge-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.trust-badge-icon-wrapper {
  position: relative;
  display: inline-block;
}

.trust-badge-icon-bg {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.trust-badge-icon-bg-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
}

.trust-badge-icon-bg-primary {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.15) 0%, rgba(42, 79, 246, 0.15) 100%);
}

.trust-badge-icon-bg-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(42, 79, 246, 0.15) 100%);
}

.trust-badge-icon-bg-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(253, 126, 20, 0.15) 100%);
}

.trust-badge-item:hover .trust-badge-icon-bg {
  transform: translate(-50%, -50%) scale(1.2);
}

.trust-badge-icon {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
}

.trust-badge-success .trust-badge-icon {
  color: #28a745;
}

.trust-badge-primary .trust-badge-icon {
  color: var(--primary);
}

.trust-badge-info .trust-badge-icon {
  color: #17a2b8;
}

.trust-badge-warning .trust-badge-icon {
  color: #ffc107;
}

.trust-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  text-align: center;
}

/* Pricing Section Enhanced */
.pricing-section-enhanced {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pricing-card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  border-radius: 0 0 0 100%;
  pointer-events: none;
  opacity: 0.1;
}

.pricing-card-decoration-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.pricing-card-decoration-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 4, 48, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card-popular {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #28a745 0%, #20c997 100%) border-box;
}

.pricing-card-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.pricing-badge-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-badge-top {
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-price {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card-popular .pricing-price {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-features {
  padding-left: 0.5rem;
}

.pricing-feature-item {
  padding: 0.5rem 0;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.pricing-feature-item:hover {
  background: rgba(13, 4, 48, 0.03);
  transform: translateX(4px);
}

.pricing-cta {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.pricing-cta:hover::before {
  width: 300px;
  height: 300px;
}

/* FAQ Enhanced */
.accordion-item {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(13, 4, 48, 0.15);
  transform: translateY(-2px);
}

.accordion-button {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  align-items: flex-start !important; /* Override Bootstrap's default center alignment */
}

.accordion-button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::before {
  transform: scaleY(1);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.05) 0%, rgba(42, 79, 246, 0.05) 100%);
  color: var(--primary);
}

.accordion-button:hover {
  background: linear-gradient(135deg, rgba(13, 4, 48, 0.03) 0%, rgba(42, 79, 246, 0.03) 100%);
}

.accordion-body {
  background: white;
  padding: 1.5rem;
  line-height: 1.7;
  color: #495057;
}

/* CTA Section Enhanced */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-gradient-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: ctaFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ctaFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10%, 10%) rotate(180deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0 !important;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    transform: none !important;
  }
  
  .feature-card:hover,
  .pricing-card:hover,
  .trust-stat-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .hero-gradient-overlay {
    animation: none;
  }
  
  .cta-gradient-bg {
    animation: none;
  }
  
  .hero-floating-shapes {
    display: none;
  }
  
  .step-connector {
    display: none;
  }
  
  .hero-content-glass {
    padding: 1.5rem;
  }
  
  .match-score-demo-card {
    padding: 1.5rem;
  }
  
  .trust-badges-enhanced {
    padding: 1rem;
  }
  
  .trust-badge-item {
    min-width: auto;
    padding: 0.75rem;
  }
  
  .hero-image-carousel {
    max-width: 100%;
    padding: 1rem;
  }
  
  .hero-carousel-image {
    padding: 1rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .hero-geometric-bg,
  .cta-gradient-bg,
  .match-score-icon-bg,
  .testimonial-avatar::before {
    animation: none !important;
  }
  
  .hero-floating-shapes {
    display: none;
  }
  
  .hero-shape {
    animation: none;
  }
  
  .hero-carousel-image {
    transition: opacity 0.01ms !important;
  }
  
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Additional Polish */
.pricing-card-free {
  border-color: var(--primary);
}

.pricing-card-free:hover {
  border-color: var(--accent);
}

/* Smooth transitions for all interactive elements */
a, button, .card, .btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.btn:focus,
.accordion-button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero-floating-shapes,
  .hero-geometric-bg,
  .cta-gradient-bg,
  .btn,
  .accordion-button {
    display: none !important;
  }
  
  .hero-section-enhanced,
  .cta-section {
    background: white !important;
    color: black !important;
  }
}

/* ========== Mobile responsive (all devices) ========== */

/* Global: prevent horizontal scroll, container padding */
body {
  overflow-x: hidden;
}

@media (max-width: 576px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Navbar: smaller logo on mobile */
@media (max-width: 768px) {
  .navbar-logo {
    height: 48px;
    max-height: 48px;
  }
  
  .navbar .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .navbar .navbar-nav .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
  
  .navbar-user-dropdown-trigger {
    font-size: 0.9rem;
  }
  
  .navbar-user-dropdown-trigger .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }
  
  .navbar .dropdown-menu {
    min-width: 100%;
  }
}

/* Footer: professional site footer */
.site-footer {
  background:
    radial-gradient(circle at top, rgba(61, 213, 243, 0.18) 0, transparent 45%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%);
  color: #f8f9fa;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-top {
  padding-bottom: 1.5rem;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.site-footer h5,
.site-footer h6 {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer .footer-text-muted {
  color: rgba(248, 249, 250, 0.75);
}

.site-footer .footer-link {
  color: rgba(248, 249, 250, 0.8);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer .social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.site-footer .footer-cta {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 1.25rem 1rem;
}

.site-footer .footer-cta .btn {
  font-weight: 600;
}

/* Footer: spacing when stacked, smaller bottom row */
@media (max-width: 768px) {
  .site-footer .row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .site-footer .row.g-4 > [class*="col-"]:last-of-type {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .site-footer .row.align-items-center .col-md-6 {
    text-align: center !important;
  }
  
  .site-footer .row.align-items-center .text-md-end {
    text-align: center !important;
  }
  
  .site-footer .footer-text-muted.small {
    font-size: 0.8rem;
  }
}

/* Home page: features section overlap fix (mobile) */
@media (max-width: 991px) {
  #features .row.g-4 > [class*="col-"] {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 0;
  }
  #features .row.g-4 > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  #features .feature-block {
    margin-bottom: 3rem;
  }
  #features .row.g-4 > [class*="col-"]:last-child .feature-block {
    margin-bottom: 0;
  }
  #features .fade-in-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  #features .feature-card {
    min-height: 280px;
  }
}

/* Feature blocks: align buttons to bottom when columns side-by-side */
@media (min-width: 768px) {
  #features .row.g-4 > [class*="col-"] {
    display: flex;
  }
  #features .feature-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  #features .feature-block .feature-card {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}

/* Home page: trust and how-it-works spacing when stacked */
@media (max-width: 576px) {
  #why-trust .row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  #why-trust .row.g-4 > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  #how-it-works .row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  #how-it-works .row.g-4 > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Home page: pricing row spacing when stacked */
@media (max-width: 768px) {
  #pricing-preview .row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  #pricing-preview .row.g-4 > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Dashboard: list items stack on small screens */
@media (max-width: 576px) {
  .dashboard-list-item .d-flex.justify-content-between,
  .dashboard-list-item .d-flex.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
  }
  
  .dashboard-list-item .btn-sm {
    align-self: flex-start;
  }
  
  .dashboard-list-item .d-flex.gap-2 {
    flex-wrap: wrap;
  }
  
  .credits-card {
    min-width: 0;
  }
  
  .credits-card .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .stat-card h2 {
    font-size: 1.75rem;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* Match result / Interview result: page header with title and button */
.page-header-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .page-header-row .display-5 {
    font-size: 1.5rem;
  }
  
  .page-header-row .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .match-result-section .alert .d-flex {
    flex-wrap: wrap;
  }
  
  .match-result-section .alert .fs-3 {
    font-size: 1.5rem !important;
  }
  
  .match-result-section .alert p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .progress[style*="max-width"] {
    max-width: 100% !important;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .match-result-section .card-body.text-center .btn-lg {
    width: 100%;
  }
}

.breakdown-item {
  min-width: 0;
}

@media (max-width: 576px) {
  .breakdown-item .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .breakdown-item .fw-bold.fs-5 {
    font-size: 1rem;
  }
}

/* Resume analysis / ATS: badges wrap, no horizontal scroll */
.match-result-section .d-flex.flex-wrap.gap-2 {
  flex-wrap: wrap;
}

.match-result-section .card-body {
  overflow-wrap: break-word;
}

/* Roadmap phase headers wrap */
@media (max-width: 576px) {
  .roadmap-phase .card-header h6 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .roadmap-phase .card-header .badge {
    margin-left: 0 !important;
  }
}

/* Match upload: credits info card */
.credits-info-card-inner {
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .credits-info-card .credits-info-card-inner {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .credits-info-card .btn {
    width: 100%;
  }
}

/* Activity: same list item behavior as dashboard */
@media (max-width: 576px) {
  .card-body .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .card-body .d-flex.justify-content-between .d-flex.gap-2 {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Profile: label-value rows */
@media (max-width: 576px) {
  .card-body .row .col-sm-4,
  .card-body .row .col-sm-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .card-body .row .col-sm-4 {
    margin-bottom: 0.25rem;
  }
  
  .card-body .row .col-sm-8 {
    word-break: break-word;
  }
}

/* Interview: recording controls wrap, touch targets */
@media (max-width: 768px) {
  .recording-controls {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  .recording-controls .btn-lg {
    min-height: 44px;
    flex: 1 1 auto;
    min-width: 140px;
  }
}

@media (max-width: 576px) {
  .recording-controls .btn {
    width: 100%;
    justify-content: center;
  }
  
  .video-section .bg-dark {
    min-height: 200px;
  }
}

/* Home: very small viewport typography */
@media (max-width: 576px) {
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  
  .hero-section .h4 {
    font-size: 1.15rem;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 375px) {
  .display-4 {
    font-size: 1.5rem;
  }
  
  .display-5 {
    font-size: 1.35rem;
  }
  
  .display-6 {
    font-size: 1.2rem;
  }
}

/* Auth layout: padding on very small screens */
@media (max-width: 576px) {
  body.bg-light .container .row {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Touch targets: primary actions */
@media (max-width: 768px) {
  .btn-primary,
  .btn-success:not(.spinner-border),
  .btn-lg {
    min-height: 44px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

/* Forms and inputs: no overflow */
input.form-control,
textarea.form-control,
select.form-select {
  max-width: 100%;
}

/* Pricing: card and badge on narrow */
@media (max-width: 576px) {
  .pricing-card-free .card-body,
  .card-body.p-5 {
    padding: 1.25rem !important;
  }
  
  .position-absolute.translate-middle {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem !important;
  }
}
