:root {
  --bs-primary: #2563EB;
  --bs-primary-rgb: 37, 99, 235;
  --bs-secondary: #6B7280;
  --bs-success: #10B981;
  --bs-purple: #7C3AED;
  --bs-gray-50: #F8FAFC;
  --bs-gray-100: #F1F5F9;
  --bs-gray-600: #6B7280;
  --bs-gray-800: #1F2937;
  --bs-brand-dark: #03045E;
  --bs-brand-dark-rgb: 3, 4, 94;
  --bs-font-family-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--bs-font-family-sans-serif);
  color: var(--bs-gray-800);
  line-height: 1.6;
}

/* Custom spacing classes */
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-7 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.py-8 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.mb-7 { margin-bottom: 6rem !important; }

/* Modern button styles */
.btn-gradient-primary {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  border: none;
  color: white;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(37, 99, 235, 0.4);
  color: white;
}

.btn-gradient-primary:active {
  transform: translateY(0);
}

/* Purple button styles */
.btn-purple {
  background-color: var(--bs-purple);
  border-color: var(--bs-purple);
  color: white;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  background-color: #6D28D9;
  border-color: #6D28D9;
  color: white;
  transform: translateY(-1px);
}

.btn-outline-purple {
  color: var(--bs-purple);
  border-color: var(--bs-purple);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover {
  background-color: var(--bs-purple);
  border-color: var(--bs-purple);
  color: white;
  transform: translateY(-1px);
}

/* Modern card hover effects */
.card-hover-lift {
  transition: all 0.3s ease;
}

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

/* Hover effects */
.hover-white:hover {
  color: white !important;
  transition: color 0.3s ease;
}

/* Enhanced form styling */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Loading spinner for buttons */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Gradient text effect */
.text-gradient {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced shadows */
.shadow-custom {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Background patterns */
.bg-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

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

/* Navbar enhancements */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

/* Animation classes for intersection observer */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Custom purple utility class */
.bg-purple {
  background-color: var(--bs-purple) !important;
}

.text-purple {
  color: var(--bs-purple) !important;
}

.border-purple {
  border-color: var(--bs-purple) !important;
}

/* Custom brand dark utility classes */
.bg-brand-dark {
  background-color: var(--bs-brand-dark) !important;
}

.text-brand-dark {
  color: var(--bs-brand-dark) !important;
}

.border-brand-dark {
  border-color: var(--bs-brand-dark) !important;
}

/* Enhanced card styles */
.card {
  border: none;
  border-radius: 12px;
}

.card-body {
  padding: 2rem;
}

/* Modern progress bars */
.progress {
  height: 8px;
  border-radius: 4px;
}

/* Enhanced badges */
.badge {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* Icon backgrounds */
.icon-bg-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--bs-primary);
}

.icon-bg-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--bs-success);
}

.icon-bg-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.icon-bg-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

/* Min height utilities */
.min-vh-100 {
  min-height: 100vh;
}

/* Object fit utilities */
.object-fit-cover {
  object-fit: cover;
}

/* Enhanced text utilities */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
  color: var(--bs-gray-600) !important;
}

/* Focus ring for accessibility */
.focus-ring:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Custom container max-widths */
.container-xl {
  max-width: 1320px;
}

/* Enhanced list styles */
.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Modern input styles */
.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Select dropdown styles */
.form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Button enhancements */
.btn {
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  transform: translateY(-1px);
}

/* Section spacing */
section {
  position: relative;
}

/* Utility for rounded corners */
.rounded-3 {
  border-radius: 0.75rem !important;
}

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

/* Enhanced shadows */
.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Fix for rounded-circle elements to maintain perfect circles */
.rounded-circle {
  aspect-ratio: 1 / 1 !important;
}

/* Specific fixes for icon containers with proper Bootstrap 5 centering */
.icon-circle-lg {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  flex-shrink: 0 !important;
}

.icon-circle-md {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  flex-shrink: 0 !important;
}

.icon-circle-sm {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex-shrink: 0 !important;
}

/* Ensure icons inside circles are properly centered */
.rounded-circle i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}