/* Base styling improvements */
:root {
  --brand: #6366f1; /* Updated primary color - indigo */
  --brand-hover: #4f46e5;
  --brand-light: rgba(99, 102, 241, 0.1);
  --text-primary: #1e293b; /* Slate-800 */
  --text-secondary: #64748b; /* Slate-500 */
  --bg-light: #f8fafc; /* Slate-50 */
  --bg-dark: #0f172a; /* Slate-900 */
  --success: #10b981; /* Emerald-500 */
  --warning: #f59e0b; /* Amber-500 */
  --danger: #ef4444; /* Red-500 */
  --transition-standard: all 0.3s ease;
  --animation-duration: 0.5s;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --rounded-sm: 0.375rem;
  --rounded-md: 0.5rem;
  --rounded-lg: 1rem;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* For fixed header */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
}

[data-bs-theme="dark"] {
  --text-primary: #f1f5f9; /* Slate-100 */
  --text-secondary: #94a3b8; /* Slate-400 */
  --bg-light: var(--bg-dark);
}

/* More modern hero section */
.hero-section {
  background: linear-gradient(135deg, var(--brand-light), transparent);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  border-radius: 0 0 var(--rounded-lg) var(--rounded-lg);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-section .btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-section .btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-section .btn-outline-primary:hover {
  background-color: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Theme mode handling */
.d-dark-inline { display: none; }
.d-dark-none { display: inline; }
[data-bs-theme="dark"] .d-dark-inline { display: inline !important; }
[data-bs-theme="dark"] .d-dark-none { display: none !important; }

/* Modern card styling */
.card {
  transition: var(--transition-standard);
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  background: white;
}

[data-bs-theme="dark"] .card {
  background: #1e293b; /* Slate-800 */
  border-color: rgba(255,255,255,0.05);
}

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

.card .card-body {
  padding: 1.75rem;
}

.card ul { 
  padding-left: 1rem;
  margin-bottom: 0;
  list-style-type: none;
}

.card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* Enhanced navbar */
.navbar {
  transition: var(--transition-standard);
  padding: 1rem 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8) !important;
}

[data-bs-theme="dark"] .navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.8) !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--text-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Button styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition-standard);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--rounded-sm);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.5);
}

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

.btn-outline-primary:hover {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Form styling */
.form-control, .form-select {
  transition: var(--transition-standard);
  border-width: 1px;
  border-radius: var(--rounded-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-color: rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .form-control, 
[data-bs-theme="dark"] .form-select {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  border-color: var(--brand);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Section styling */
section {
  padding: 5rem 0;
}

section h2 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--brand);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Improved badges */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 0.25rem;
}

/* Footer improvements */
footer {
  background-color: var(--bg-light);
  border-top: 1px solid rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] footer {
  border-color: rgba(255,255,255,0.05);
}

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

footer a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* Testimonial styling */
.testimonial {
  position: relative;
  padding: 2rem;
  border-radius: var(--rounded-md);
  background-color: white;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--brand);
}

[data-bs-theme="dark"] .testimonial {
  background-color: #1e293b;
}

.testimonial:before {
  content: """;
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.1);
  font-family: Georgia, serif;
}

/* Scroll animations */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Improved toast styling */
.toast {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
}

.toast-header {
  border-bottom: none;
  padding: 1rem;
}

.toast-body {
  padding: 1rem;
}

/* Icon animations */
.bi {
  transition: var(--transition-standard);
}

.card:hover .bi {
  transform: scale(1.1);
  color: var(--brand);
}

/* Theme toggle button */
#themeToggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background-color: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

[data-bs-theme="dark"] #themeToggle {
  background-color: rgba(255,255,255,0.05);
}

#themeToggle:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--brand);
}

/* Utility classes */
.text-brand {
  color: var(--brand) !important;
}

.bg-brand {
  background-color: var(--brand) !important;
}

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

/* Media queries */
@media (max-width: 991.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .card:hover {
    transform: none;
  }
  
  .animate-ready {
    transform: translateY(10px);
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
}

/* Font sizes */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* Image styling */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  border-radius: var(--rounded-md);
}
