/* 
 * Lab.hire-mark.com - Custom Bootstrap Overrides
 * Modern styling to complement Bootstrap 5
 */

/* ===== CUSTOM FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
  --lab-primary: #0d6efd;
  --lab-secondary: #6c757d;
  --lab-success: #198754;
  --lab-warning: #ffc107;
  --lab-danger: #dc3545;
  --lab-info: #0dcaf0;
  --lab-light: #f8f9fa;
  --lab-dark: #212529;
  --lab-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --lab-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --lab-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #212529;
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

.display-4, .display-5 {
  font-weight: 700;
}

.lead {
  font-weight: 400;
  opacity: 0.9;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--lab-gradient);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ===== CARD ENHANCEMENTS ===== */
.card {
  border: none;
  box-shadow: var(--lab-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lab-shadow-hover);
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer {
  background: rgba(0, 0, 0, 0.03) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
  color: #212529;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #ffca2c 0%, #ffd43b 100%);
  color: #212529;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== BADGE ENHANCEMENTS ===== */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 0.5rem;
}

.badge.bg-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
  color: #212529 !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #6f42c1 100%) !important;
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ===== FOOTER ENHANCEMENTS ===== */
footer {
  margin-top: auto;
}

.footer-links {
  transition: all 0.3s ease;
}

.footer-links:hover {
  color: #0dcaf0 !important;
}

.footer-link {
  transition: all 0.3s ease;
  opacity: 0.9;
}

.footer-link:hover {
  color: #0dcaf0 !important;
  opacity: 1;
  transform: translateX(3px);
}

.footer-link i {
  transition: all 0.3s ease;
}

.footer-link:hover i {
  color: #0dcaf0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  min-height: calc(100vh - 200px);
}

/* ===== UTILITIES ===== */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
  background: var(--lab-gradient) !important;
}

.rounded-custom {
  border-radius: 1rem !important;
}

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

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

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Mobile Styles (320px and up) - Base styles above apply */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero {
    min-height: 50vh;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.125rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  .display-4 {
    font-size: 3rem;
  }
  
  .navbar-brand {
    font-size: 1.75rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Card grid improvements */
  .card-deck .card {
    margin-bottom: 2rem;
  }
  
  /* Enhanced hover effects for larger screens */
  .card:hover {
    transform: translateY(-8px);
  }
  
  .btn:hover {
    transform: translateY(-3px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero {
    min-height: 70vh;
  }
  
  .display-4 {
    font-size: 3.5rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
    margin: 0 0.5rem;
  }
  
  /* Better spacing for large screens */
  .container {
    max-width: 1140px;
  }
  
  section {
    padding: 5rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    min-height: 80vh;
  }
  
  .display-4 {
    font-size: 4rem;
  }
  
  .container {
    max-width: 1320px;
  }
}

/* ===== MOBILE-SPECIFIC OPTIMIZATIONS ===== */

/* Touch-friendly interactive elements */
@media (max-width: 767.98px) {
  /* Ensure minimum touch target size */
  .btn, .nav-link, .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust hero section for mobile */
  .hero {
    min-height: 50vh;
    padding: 3rem 0;
  }
  
  .hero .display-4 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem;
    margin: 0.25rem 0;
    text-align: center;
    border-radius: 0.5rem;
  }
  
  /* Mobile card adjustments */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card:hover {
    transform: none; /* Disable hover transforms on mobile */
  }
  
  .btn:hover {
    transform: none; /* Disable button hover transforms on mobile */
  }
  
  /* Mobile typography */
  h1, h2, h3 {
    line-height: 1.2;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Hide decorative elements on very small screens */
  .text-decoration-mobile-hidden {
    display: none;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus indicators */
.btn:focus,
.nav-link:focus,
.navbar-toggler:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  :root {
    --lab-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --lab-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
  }
  
  .card {
    background-color: #2d3748;
    color: #fff;
  }
  
  .bg-light {
    background-color: #1a202c !important;
  }
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ===== FOOTER ENHANCEMENTS ===== */
.bg-dark {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%) !important;
}

/* ===== SECTION SPACING ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.py-4 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== TEXT DECORATION OVERRIDES ===== */
a.text-decoration-none:hover {
  text-decoration: none !important;
  color: var(--bs-primary);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .btn {
    font-size: 0.9rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.shadow-custom {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.border-radius-lg {
  border-radius: 1rem !important;
}

/* ===== LOADING SPINNER ===== */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

