/* Base Styles */
:root {
  /* Color System */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #4338ca;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --white: #ffffff;
  --black: #000000;
  
  /* Shadows */
  --shadow: 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Glass Effect */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-blur: blur(10px);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  --gradient-dark: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

/* Dark Theme Overrides */
[data-bs-theme="dark"] {
  --light: #1e293b;
  --lighter: #0f172a;
  --dark: #f8fafc;
  --darker: #f1f5f9;
  --white: #0f172a;
  --glass: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--white);
  overflow-x: hidden;
  transition: var(--transition-slow);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--lighter);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

::selection {
  background-color: var(--primary);
  color: var(--white);
}

/* Typography */
h1, h2, .h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.2;
}

.subheading {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
  padding-left: 1.5rem;
}

.subheading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 3px;
  background: var(--primary);
  transform: translateY(-50%);
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

strong {
  font-weight: 700;
  color: var(--dark);
}

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.text-uppercase {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: inline-block;
  color: var(--primary) !important;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title span {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline-primary::before {
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-outline-primary:hover::before {
  opacity: 1;
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon i {
  transition: var(--transition);
}

.btn-icon:hover i {
  transform: translateX(5px);
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

/* Banner Section */
.banner-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e6f0ff 0%, #d6e4ff 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Dark theme banner */
[data-bs-theme="dark"] .banner-section {
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a2a 100%);
    color: #ffffff;
}

[data-bs-theme="dark"] .banner-section h1,
[data-bs-theme="dark"] .banner-section h2,
[data-bs-theme="dark"] .banner-section h3,
[data-bs-theme="dark"] .banner-section p,
[data-bs-theme="dark"] .banner-section .text-muted {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .banner-section .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-bs-theme="dark"] .banner-section .card-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .banner-section .card-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Section */
section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-bg {
  background-color: var(--lighter);
}

.section-padding {
  padding: 8rem 0;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* Card */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  opacity: 0.9;
  z-index: -1;
  transition: var(--transition);
}

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.card-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* Icon Box */
.icon-box-sm {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  background: white !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-box-sm i {
  font-size: 1.4em;
  color: var(--primary) !important;
}

.icon-box {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: white !important;
}

.icon-box i {
  transition: var(--transition);
  font-size: 2em; /* Make the icon larger */
  color: var(--primary) !important; /* Ensure icon color is primary */
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-box:hover i {
  transform: scale(1.1);
  color: var(--primary-dark) !important;
  z-index: 1;
}

.icon-box::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
  transition: var(--transition);
}

.icon-box:hover::before {
  transform: scale(1.1);
  opacity: 0.2;
}

/* Form Controls */
.form-control {
  height: 56px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: none;
}

.form-control:focus {
  color: var(--dark);
  background-color: var(--white);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: none;
}

/* Alert */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Utility Classes */
.bg-primary {
  background: var(--gradient-primary) !important;
}

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

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

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

.rounded {
  border-radius: var(--border-radius) !important;
}

.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}

.rounded-xl {
  border-radius: var(--border-radius-xl) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
  box-shadow: var(--shadow-xl) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.flex-column {
  flex-direction: column !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.vh-100 {
  height: 100vh !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

/* Main Header */
.main-header {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Dark theme header - Always ensure dark background and light text */
[data-bs-theme="dark"] .main-header,
.dark-theme .main-header,
.dark-header {
  background: rgba(15, 23, 42, 0.98) !important;
}

/* Force text colors in dark mode */
[data-bs-theme="dark"] .main-header .navbar-brand,
[data-bs-theme="dark"] .main-header .nav-link,
.dark-theme .main-header .navbar-brand,
.dark-theme .main-header .nav-link,
.dark-header .navbar-brand,
.dark-header .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .main-header .navbar-brand:hover,
[data-bs-theme="dark"] .main-header .nav-link:hover,
.dark-theme .main-header .navbar-brand:hover,
.dark-theme .main-header .nav-link:hover,
.dark-header .navbar-brand:hover,
.dark-header .nav-link:hover {
  color: var(--primary) !important;
}

/* Ensure text is visible in the brand */
[data-bs-theme="dark"] .navbar-brand span,
.dark-theme .navbar-brand span,
.dark-header .navbar-brand span {
  color: white !important;
}

/* Navigation Links */
.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

/* Brand text */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-brand span {
  color: var(--dark);
}

/* Dark mode overrides */
[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link,
.dark-header .navbar-nav .nav-link,
body.dark-theme .navbar-light .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link.active,
.dark-header .navbar-nav .nav-link:hover,
.dark-header .navbar-nav .nav-link.active,
body.dark-theme .navbar-light .navbar-nav .nav-link:hover,
body.dark-theme .navbar-light .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .navbar-brand span,
.dark-header .navbar-brand,
.dark-header .navbar-brand span,
body.dark-theme .navbar-brand,
body.dark-theme .navbar-brand span {
  color: white !important;
}

[data-bs-theme="dark"] .navbar-brand:hover,
[data-bs-theme="dark"] .navbar-brand span:hover,
.dark-header .navbar-brand:hover,
.dark-header .navbar-brand span:hover,
body.dark-theme .navbar-brand:hover,
body.dark-theme .navbar-brand span:hover {
  color: var(--primary) !important;
}

/* Scrolled Header State */
.main-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure dark theme stays dark when scrolled */
[data-bs-theme="dark"] .main-header.scrolled,
.dark-theme .main-header.scrolled,
.dark-header.scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Force text color in dark mode */
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .navbar-brand span,
.dark-header .nav-link,
.dark-header .navbar-brand,
.dark-header .navbar-brand span,
body.dark-theme .nav-link,
body.dark-theme .navbar-brand,
body.dark-theme .navbar-brand span {
  color: white !important;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .navbar-brand:hover,
[data-bs-theme="dark"] .navbar-brand span:hover,
.dark-header .nav-link:hover,
.dark-header .navbar-brand:hover,
.dark-header .navbar-brand span:hover,
body.dark-theme .nav-link:hover,
body.dark-theme .navbar-brand:hover,
body.dark-theme .navbar-brand span:hover {
  color: var(--primary) !important;
}

/* Navbar toggler icon in dark mode */
[data-bs-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

/* Add padding to body to prevent content from being hidden under fixed header */
body {
  padding-top: 100px;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 80px;
  }
  
  .main-header {
    padding: 1rem 0;
  }
  
  .main-header.scrolled {
    padding: 0.5rem 0;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.loading-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid var(--light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.loading-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    width: 0;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  transition: all 0.3s ease;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60px;
  height: 30px;
  background: var(--light);
  border-radius: 50px;
  padding: 5px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0.03, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
  transform: translateX(30px);
  background: var(--primary);
}

.toggle-label i {
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 1;
  width: 20px;
  text-align: center;
}

.toggle-label .fa-moon {
  color: var(--dark);
  opacity: 1;
}

.toggle-label .fa-sun {
  color: #ffd700;
  opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .fa-moon {
  opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .fa-sun {
  opacity: 1;
}

/* Dark theme specific styles */
[data-bs-theme="dark"] .toggle-label {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .toggle-label .fa-moon {
  color: #a0a0a0;
}

[data-bs-theme="dark"] .toggle-label .fa-sun {
  color: #ffd700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    transform: scale(0.9);
  }
}

/* Particle.js */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.5;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
}

/* Custom Cursor */
.cursor {
  pointer-events: none;
}

/* Hero Shapes */
.hero-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-shape img {
  position: absolute;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

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

.hero-shape .shape-2 {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
  animation-direction: reverse;
}

/* Responsive */
@media (max-width: 1199.98px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
}

@media (max-width: 991.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .theme-toggle {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.75rem;
    font-size: 0.95rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  .theme-toggle {
    top: 15px;
    right: 15px;
  }
  
  .toggle-label {
    width: 50px;
    height: 26px;
  }
  
  .toggle-ball {
    width: 20px;
    height: 20px;
  }
  
  .toggle-checkbox:checked + .toggle-label .toggle-ball {
    transform: translateX(24px);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: none !important;
    color: #000 !important;
  }
  
  a {
    text-decoration: none !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.section-padding {
  padding: 5rem 0;
}

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

.navbar.scrolled {
  background-color: var(--white) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8)), url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Icon Box */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.bg-primary-light {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Card Hover Effect */
.card {
  transition: var(--transition);
  border: none;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonials */
.testimonial-card {
  position: relative;
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.testimonial-card .rating {
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 30px;
}

.back-to-top:hover {
  background-color: var(--dark);
  color: var(--white);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 0 2rem;
}

footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
  
  .nav-link::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

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

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

/* Utility Classes */
.rounded-3 {
  border-radius: 0.5rem !important;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

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

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

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

.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}
