:root {
  --vibrant-primary: #2563eb;
  --vibrant-primary-dark: #1e40af;
  --vibrant-secondary: #10b981;
  --vibrant-accent: #8b5cf6;
  --vibrant-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --vibrant-gradient-light: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

main {
  margin: 0;
  padding: 0;
  padding-top: 80px !important; /* Account for fixed navbar */
  padding-bottom: 2rem !important; /* Space before footer */
  min-height: calc(100vh - 80px);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
  margin-top: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
  font-size: 1.25rem;
  opacity: 0.95;
}

.hero-graphic {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

.hero-graphic::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: pulse 3s ease-in-out infinite 0.5s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--vibrant-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.feature-icon svg {
  width: 32px;
  height: 32px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 4rem 0;
  margin: 0;
  width: 100%;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Benefits Section */
.benefit-item {
  padding: 2rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.benefit-item:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
}

/* Difference Section */
.difference-item {
  padding: 2rem;
  border-left: 4px solid var(--vibrant-primary);
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
}

.difference-item:hover {
  background: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-left-color: var(--vibrant-secondary);
  transform: translateX(8px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5rem 0;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.cta-section .container {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: white;
  color: var(--vibrant-primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-outline-primary {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: white;
  color: var(--vibrant-primary);
  transform: translateY(-2px);
}

/* Section Spacing */
section {
  padding: 5rem 0;
  margin: 0;
  width: 100%;
}

section .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Maximum width containers for full-width content */
.container-max {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 1400px) {
  .container-max {
    max-width: 1600px;
  }
}

@media (max-width: 1200px) {
  .container-max {
    max-width: 100%;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .container-max {
    padding: 0 1rem;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--vibrant-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar Enhancement */
.navbar {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 1rem 0;
  margin-bottom: 0 !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  padding: 0.75rem 0;
}

.navbar .container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
  background: var(--vibrant-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  padding: 0.5rem 0;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: #1f2937 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 0.25rem;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--vibrant-gradient);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  color: var(--vibrant-primary) !important;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--vibrant-primary) !important;
}

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

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #374151;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--vibrant-primary);
  transform: translateX(4px);
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

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

/* Sign In Button */
.navbar-nav .nav-link[href*="Account"],
.navbar-nav .nav-link[href*="SignIn"],
.navbar-nav .nav-link[href*="SignOut"] {
  background: var(--vibrant-gradient);
  color: white !important;
  font-weight: 600;
  margin-left: 1rem;
  padding: 0.6rem 1.5rem !important;
}

.navbar-nav .nav-link[href*="Account"]::before,
.navbar-nav .nav-link[href*="SignIn"]::before,
.navbar-nav .nav-link[href*="SignOut"]::before {
  display: none;
}

.navbar-nav .nav-link[href*="Account"]:hover,
.navbar-nav .nav-link[href*="SignIn"]:hover,
.navbar-nav .nav-link[href*="SignOut"]:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: white !important;
}

.navbar-text {
  color: #6b7280 !important;
  font-weight: 500;
  margin-right: 1rem;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Privacy Policy Page */
.privacy-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding-top: 6rem;
  padding-bottom: 4rem;
  width: 100%;
  margin-top: 0;
}

.privacy-hero h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.privacy-section {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  background: var(--vibrant-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-content {
  padding-left: calc(48px + 1rem);
  margin-bottom: 0;
}

.privacy-section:last-child .section-content {
  padding-bottom: 0;
  margin-bottom: 0;
}

.info-card {
  background: #f9fafb;
  border-left: 4px solid var(--vibrant-primary);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #4b5563;
  line-height: 1.7;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vibrant-gradient);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--vibrant-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  color: #374151;
  font-weight: 500;
}

.security-item:hover {
  border-color: var(--vibrant-primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.security-item svg {
  color: var(--vibrant-primary);
  flex-shrink: 0;
}

.contact-method-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--vibrant-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-method-card:hover {
  border-color: var(--vibrant-primary);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  transform: translateY(-4px);
}

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

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

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

.contact-method-card h3 {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-email {
  display: inline-block;
  color: var(--vibrant-primary);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.contact-email:hover {
  color: var(--vibrant-primary-dark);
  border-bottom-color: var(--vibrant-primary);
  transform: translateX(4px);
}

.alert {
  border-radius: 12px;
  border: none;
  padding: 1.25rem 1.5rem;
}

.alert-info {
  background: rgba(102, 126, 234, 0.1);
  color: #1e40af;
  border-left: 4px solid var(--vibrant-primary);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #854d0e;
  border-left: 4px solid #ffc107;
}

@media (max-width: 768px) {
  .privacy-hero {
    padding-top: calc(3rem + 70px);
    padding-bottom: 2rem;
  }
  
  .privacy-hero h1 {
    font-size: 2rem;
  }
  
  .section-content {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .highlight-box {
    flex-direction: column;
  }
  
  .contact-method-card {
    margin-bottom: 1rem;
  }
}

/* Footer */
.footer {
  margin-top: 0;
  padding: 1.5rem 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* Responsive */
@media (max-width: 991px) {
  main {
    padding-top: 70px;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link[href*="Account"],
  .navbar-nav .nav-link[href*="SignIn"],
  .navbar-nav .nav-link[href*="SignOut"] {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

/* Book Demo Modal Styles */
.demo-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-modal-header {
  background: var(--vibrant-gradient);
  color: white;
  border: none;
  padding: 2rem;
  position: relative;
}

.demo-modal-header .modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.demo-modal-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  text-align: center;
}

.demo-modal-body {
  padding: 2.5rem;
  background: white;
}

.demo-form-control {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.demo-form-control:focus {
  border-color: var(--vibrant-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

.demo-form-control::placeholder {
  color: #9ca3af;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-check-label {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

.form-check-input:checked {
  background-color: var(--vibrant-primary);
  border-color: var(--vibrant-primary);
}

.form-check-input:focus {
  border-color: var(--vibrant-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

#demoFormSuccess {
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: #059669;
  padding: 1.5rem;
}

#demoFormSuccess .alert-heading {
  color: #059669;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Submit button in demo modal */
.demo-modal-body .btn-primary {
  background: var(--vibrant-gradient);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.demo-modal-body .btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.demo-modal-body .btn-primary:active {
  background: linear-gradient(135deg, #4a5bc0 0%, #5d3580 100%);
  color: white;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .demo-modal-body {
    padding: 1.5rem;
  }
  
  .demo-modal-header {
    padding: 1.5rem;
  }
  
  .demo-modal-header .modal-title {
    font-size: 1.5rem;
  }
}