/* 
 * Landing Page Stylesheet
 * Complements the modern dashboard style with landing page specific elements
 */

/* ===== LANDING PAGE STYLES ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background-color: #f8f9ff;
}

/* Fix for Why Choose Talent Brew section */
#why-choose .bi-check-circle-fill {
  color: var(--primary);
  font-size: 1.1rem;
}

#why-choose .col-md-4:nth-child(2) .bi-check-circle-fill {
  color: var(--success);
}

#why-choose .col-md-4:nth-child(3) .bi-check-circle-fill {
  color: var(--warning);
}

/* Improve text visibility in the cards */
#why-choose .card {
  background-color: white;
}

#why-choose .card-body {
  color: var(--gray-700);
}

#why-choose span {
  color: var(--gray-800);
  font-weight: 500;
}

#why-choose p {
  color: var(--gray-700);
}

.min-vh-75 {
  min-height: 75vh;
}

.section-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  margin: 0;
}

/* Animation for floating elements */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Client logos */
.client-logo {
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: scale(1.1);
  opacity: 1 !important;
}

/* Badge styles */
.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: white;
}

/* Enhanced Navigation Styles */
.navbar-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 108, 247, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.brand-icon {
  position: relative;
}

.brand-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
  transition: all 0.3s ease;
}

.brand-circle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

/* Enhanced Navigation Links */
.nav-link-enhanced {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link-enhanced:hover {
  color: white;
  transform: translateY(-1px);
}

.nav-link-enhanced:hover::before {
  opacity: 1;
}

.nav-link-enhanced.active {
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.nav-link-enhanced i {
  font-size: 1rem;
}

/* Navigation Badge */
.nav-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

/* User Dropdown */
.user-dropdown-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: #374151;
}

.user-dropdown-btn:hover {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(74, 108, 247, 0.2);
}

.user-initials {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.user-status.online {
  background: #10b981;
}

.user-status.incomplete {
  background: #f59e0b;
}

.user-info {
  text-align: left;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #1f2937;
}

.user-role {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.user-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Enhanced Dropdown Menu */
.user-dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 280px;
  margin-top: 0.5rem;
}

.user-dropdown-menu .dropdown-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
}

.user-dropdown-menu .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.user-dropdown-menu .dropdown-item:hover {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.user-dropdown-menu .dropdown-item.text-warning:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Notifications */
.nav-notifications {
  position: relative;
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Mobile Navigation */
.btn-nav-mobile {
  background: none;
  border: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-nav-mobile:hover {
  background: rgba(74, 108, 247, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-nav-mobile.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.btn-nav-mobile.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.btn-nav-mobile.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.show .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: between;
}

.mobile-menu-header .brand-name {
  color: white;
}

.btn-close-mobile {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin-left: auto;
}

.mobile-menu-body {
  padding: 1rem;
}

.mobile-menu .nav-link-enhanced {
  color: white;
  margin-bottom: 0.5rem;
}

.mobile-menu .nav-link-enhanced:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-menu .nav-link-enhanced.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Background opacity utilities */
.bg-opacity-5 {
  opacity: 0.05;
}

.bg-opacity-10 {
  opacity: 0.1;
}

/* Enhanced How it works section */
.bg-gradient-light {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Step items with enhanced styling */
.step-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.step-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
  transform: translateX(8px);
}

.step-number {
  position: relative;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-number-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-icon {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step-item:hover .step-icon {
  transform: scale(1.1);
  border-color: rgba(74, 108, 247, 0.2);
}

/* Enhanced card headers */
.card-header.bg-gradient-primary,
.card-header.bg-gradient-success {
  border: none;
  position: relative;
}

.card-header.bg-gradient-primary::before,
.card-header.bg-gradient-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Process flow visualization */
.process-flow {
  background: white;
  border-radius: 50px;
  padding: 1rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(74, 108, 247, 0.1);
}

/* Enhanced buttons */
.btn-lg.w-100 {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-lg.w-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-lg.w-100:hover::before {
  left: 100%;
}

.btn-lg.w-100:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Why Choose Section */
.hover-lift-strong {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift-strong:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.benefit-card {
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #6366f1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.featured-card {
  position: relative;
  border: 2px solid #10b981 !important;
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  z-index: 10;
}

.benefit-icon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

.benefit-stat {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #f8f9fa;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.stat-symbol {
  font-size: 0.875rem;
  font-weight: 600;
}

.benefits-list {
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
  transform: translateX(5px);
}

.benefit-check {
  flex-shrink: 0;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
}

.benefit-check i {
  font-size: 1.1rem;
}

.benefit-content {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

.benefit-content strong {
  color: #1f2937;
}

/* Success metrics */
.success-metric {
  text-align: center;
}

.metric-value {
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Animated counters */
.stat-number[data-target],
.metric-value [data-target] {
  transition: all 0.3s ease;
}

/* Background patterns */
#why-choose::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

#why-choose::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -5%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .step-item:hover {
    transform: none;
  }
  
  .hover-lift:hover {
    transform: none;
  }
  
  .hover-lift-strong:hover {
    transform: translateY(-4px);
  }
  
  .step-number {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .step-item {
    margin: 0;
    padding: 0;
  }
  
  .benefit-item:hover {
    transform: none;
    background-color: transparent;
  }
  
  .benefit-stat {
    position: static;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .benefit-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================================
   "Quiet Confidence" refinement layer - ADDITIVE ONLY
   Reuses existing class names; overrides by cascade order.
   ========================================================= */
:root {
  --tb-brand-1: #4a6cf7;
  --tb-brand-2: #6366f1;
  --tb-ink: #0f1729;
  --tb-ink-soft: #5b6478;
  --tb-surface-2: #f7f8fc;
  --tb-line: rgba(15, 23, 41, .06);
  --tb-radius: 16px;
  --tb-shadow-sm: 0 1px 2px rgba(15,23,41,.04), 0 4px 12px rgba(15,23,41,.04);
  --tb-shadow-lg: 0 8px 24px rgba(74,108,247,.10), 0 24px 48px rgba(15,23,41,.08);
  --tb-ease: cubic-bezier(.4, 0, .2, 1);
}

/* Type rhythm: tighter, more confident headline */
.hero-section .display-5 {
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--tb-ink);
}

.hero-section .lead {
  color: var(--tb-ink-soft);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero: layered gradient mesh + more air */
.hero-section {
  padding: 6.5rem 0 5.5rem !important;
  background-color: var(--tb-surface-2);
  background-image:
    radial-gradient(60% 50% at 18% 0%, rgba(74,108,247,.10) 0%, transparent 60%),
    radial-gradient(50% 55% at 92% 8%, rgba(99,102,241,.10) 0%, transparent 60%);
}

/* Elite gradient text for the accent span */
.hero-section .display-5 .text-primary {
  background: linear-gradient(135deg, var(--tb-brand-1) 0%, var(--tb-brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons: depth + micro-interaction */
.btn-primary {
  background: linear-gradient(135deg, var(--tb-brand-1) 0%, var(--tb-brand-2) 100%);
  border: 0;
  box-shadow: 0 6px 16px rgba(74,108,247,.28);
  transition: transform .22s var(--tb-ease), box-shadow .22s var(--tb-ease), filter .22s var(--tb-ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(74,108,247,.36);
  filter: saturate(1.06);
}

.btn-outline-primary {
  border-color: var(--tb-line);
  color: var(--tb-ink);
  background: #fff;
  box-shadow: var(--tb-shadow-sm);
  transition: transform .22s var(--tb-ease), box-shadow .22s var(--tb-ease), border-color .22s var(--tb-ease);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  border-color: var(--tb-brand-1);
  color: var(--tb-brand-1);
  background: #fff;
  box-shadow: var(--tb-shadow-lg);
}

.btn-lg {
  border-radius: 12px;
  font-weight: 600;
}

/* Cards: depth via shadow, not borders */
.benefit-card,
.card {
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-sm);
  transition: transform .24s var(--tb-ease), box-shadow .24s var(--tb-ease);
}

.hover-lift {
  transition: transform .24s var(--tb-ease), box-shadow .24s var(--tb-ease);
}

.hover-lift:hover,
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow-lg);
}

/* Step number: slightly larger, refined */
.step-number {
  width: 34px;
  height: 34px;
  box-shadow: 0 6px 16px rgba(74,108,247,.32);
}

/* Hairline dividers, softer */
.section-divider {
  background-image: linear-gradient(to right, transparent, var(--tb-line), transparent);
}

/* Accessibility: focus + reduced motion */
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(74,108,247,.45);
  outline-offset: 2px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .hover-lift:hover,
  .benefit-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-outline-primary,
  .hover-lift,
  .benefit-card,
  .card {
    transition: none !important;
  }

  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
